/* ===================================
   WOODBE - Feuille de style principale
   =================================== */

/* ADMIN PANEL - overlay plein écran */
.admin-panel {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 200;  /* > navbar (50) */
}

/* Quand actif : visible */
.admin-panel.active {
    display: flex;
}

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

:root {
    --dark-bg: rgb(21, 21, 34);
    --darker-bg: rgb(24, 24, 35);
    --wood-accent: rgb(102, 64, 42);
    --light-text: #f5f5f5;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    display: flex;
    align-items: center;
    background: #181822; /* même couleur que le footer */
    height: 80px;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(245, 245, 245, 0.08);
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: auto; /* Force le logo à rester à gauche */
}

.nav-logo img {
    height: 75%;
    width: auto;
    object-fit: contain;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    background: #181822;
    padding: 0 2rem;
}

#adminAccess {
    height: 100%;                 /* prend 100% de la nav */
    display: flex;
    align-items: center;
    margin-left: 10px;
}

/* L'image du logo */
#adminAccess .logo {
    height: 80%;                  /* ≈ 80% de la barre */
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
     display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;  /* centre horizontalement */
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wood-accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.burger {
    display: none;
    margin-left: auto;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    transition: var(--transition);
}

/* ===================================
   Hero Section / Slider
   =================================== */
.hero {
    height: 95vh;
    position: relative;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    object-position: center top;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.slide-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.slider-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--wood-accent);
    width: 35px;
    border-radius: 6px;
}

/* ===================================
   Features Section
   =================================== */
.features {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.feature-card:nth-child(even) {
    direction: rtl;
}

.feature-card:nth-child(even) > * {
    direction: ltr;
}

.feature-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.feature-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(102, 64, 42, 0.4);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-text {
    padding: 2rem;
}

.feature-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--wood-accent);
}

.feature-text p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    color: rgba(245, 245, 245, 0.9);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: #181822;
    border-top: 1px solid rgba(245, 245, 245, 0.08);
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.4fr);
    gap: 3rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.7);
    margin-bottom: 1rem;
}

.footer-brand .footer-logo {
    width: 140px;
    max-width: 100%;
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.75);
    max-width: 320px;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li + li {
    margin-top: 0.4rem;
}

.footer-nav a {
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.85);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: var(--transition);
}

.footer-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--wood-accent);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: #fff;
}

.footer-nav a:hover::after {
    width: 100%;
}

.footer-contact {
    font-size: 0.9rem;
}

.footer-link {
    display: block;
    color: rgba(245, 245, 245, 0.9);
    text-decoration: none;
    margin-bottom: 0.2rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--wood-accent);
}

.footer-address {
    margin-top: 0.6rem;
    color: rgba(245, 245, 245, 0.6);
}

.footer-social {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: transparent;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--wood-accent);
    border-color: var(--wood-accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 245, 245, 0.05);
    padding: 1rem 2rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(245, 245, 245, 0.6);
}

/* Responsive footer */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ===================================
   Media Queries - Responsive
   =================================== */

/* Tablettes et petits écrans */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--darker-bg);
        width: 100%;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .hero {
        margin-top: 70px;
        height: 70vh;
    }

    .feature-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card:nth-child(even) {
        direction: ltr;
    }

    .feature-image {
        height: 300px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
    }
     .footer-inner {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem 1.5rem;
        gap: 2rem;
    }

    .footer-bottom {
        padding-inline: 1.5rem;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .hero {
        height: 50vh;
    }
    .slider-nav {
        bottom: 5px;
    }

    .slide-content h1 {
        font-size: clamp(1.5rem, 3.75vw, 3rem);
        margin-bottom: 1rem;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    }

    .slide-content p {
        font-size: clamp(0.75rem, 1.5vw, 1.2rem);
        margin-bottom: 1rem;
        text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .slide-content {
        padding: 1rem;
    }

    .features {
        padding: 0 1rem;
    }

    .feature-text {
        padding: 1rem;
    }

    .hero {
        height: 40vh;
    }
}


/* ===================================
   Page Créations
   =================================== */

.page-creations {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
}

.creations-header {
    text-align: center;
    margin-bottom: 3rem;
}

.creations-header h1 {
    font-size: 2.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.creations-header p {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(245,245,245,0.75);
    font-size: 0.98rem;
}

/* Patchwork / grille responsive */

.creations-gallery {
    margin-top: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

/* Patchwork léger avec quelques variations */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #14141d;
}

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

/* Quelques variantes pour casser la monotonie sur grands écrans */
@media (min-width: 900px) {
    .gallery-item.wide {
        grid-column: span 2;
    }

    .gallery-item.tall {
        grid-row: span 2;
    }
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05),
        rgba(0,0,0,0.35)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-item:hover::before {
    opacity: 1;
    cursor: zoom-in;
}

/* ===================================
   Lightbox
   =================================== */

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 500; /* au-dessus de la navbar et du panel admin */
}

.lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    background: #111119;
}

#lightboxImage {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* Bouton de fermeture */

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: none;
    outline: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    background: var(--wood-accent);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .page-creations {
        padding-inline: 1.5rem;
    }

    .creations-header h1 {
        font-size: 1.8rem;
    }
}
