/* ===========================
   RESET & BASE
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ===========================
   NAVBAR FLUIDE
=========================== */
.navbar {
    transition: all 0.3s ease;
    padding: clamp(0.5rem, 1.5vw, 1rem) 1rem;
    background-color: transparent;
    position: fixed;
    width: 100%;
    z-index: 999;
}

.navbar.scrolled {
    background-color: #212529 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    padding: clamp(0.3rem, 1vw, 0.6rem) 1rem;
}

.navbar-brand {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    color: #ffc107 !important;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.navbar-brand.loaded {
    opacity: 1;
    transform: translateY(0);
}

.nav-link {
    color: #fff !important;
    margin-left: clamp(0.5rem, 1vw, 0.8rem);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.nav-link.loaded {
    opacity: 1;
    transform: translateY(0);
}

.nav-link:hover,
.nav-link.active {
    color: #ffc107 !important;
}

.navbar-toggler {
    border: none;
}

/* ===========================
   HERO FLUIDE (aucune coupe)
=========================== */
header {
    position: relative;
    width: 100%;
    min-height: clamp(300px, 50vw, 600px); /* toujours visible sur mobiles et grands écrans */
    color: #fff;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('../../images/hero-bg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

header > * {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
}

header h1 {
    font-size: clamp(1.8rem, 6vw, 3.2rem);
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

header h1.visible {
    opacity: 1;
    transform: translateY(0);
}

header p.lead {
    font-size: clamp(1rem, 4vw, 1.6rem);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

header p.lead.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===========================
   SECTIONS FLUIDES
=========================== */
.section {
    padding: clamp(2rem, 5vw, 5rem) 1rem;
}

.section h2 {
    text-align: center;
    font-size: clamp(1.4rem, 5vw, 2.4rem);
    margin-bottom: 2.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section h2::after {
    content: '';
    width: clamp(40px, 10vw, 60px);
    height: 3px;
    background-color: #ffc107;
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

.section h2.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   CREATIONS
=========================== */
.creation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.creation-card {
    background-color: #fff;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.creation-card:hover {
    transform: translateY(-6px);
}

.creation-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.creation-card img:hover {
    transform: scale(1.06);
}

.creation-info {
    padding: 1rem;
    text-align: center;
}

.price {
    color: #ffc107;
    font-weight: 600;
}

/* ===========================
   LIGHTBOX
=========================== */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* ===========================
   FOOTER
=========================== */
footer {
    background-color: #212529;
    color: #fff;
    text-align: center;
    padding: clamp(1.5rem, 5vw, 2rem) 1rem;
    margin-top: 2rem;
}

footer p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* ===========================
   WHATSAPP BUTTON
=========================== */
#whatsapp-btn {
    position: fixed;
    bottom: clamp(15px, 3vw, 30px);
    right: clamp(15px, 3vw, 30px);
    background-color: #25D366;
    color: white;
    font-size: clamp(1.8rem, 4vw, 2rem);
    padding: clamp(10px, 2vw, 15px);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

#whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }

    header {
        padding: 3rem 1rem;
        min-height: 350px;
        background-attachment: scroll;
    }

    header h1 {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }

    header p.lead {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
    }

    header .btn {
        padding: 0.7rem 1.8rem;
        font-size: 1rem;
    }

    .creation-card img {
        height: 200px;
    }
}
