/* ===========================
   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 IMAGE ENTIÈRE
=========================== */
header {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #212529;
    overflow: hidden;
}

.hero-container {
    position: relative;
    width: 100%;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

/* Texte hero centré */
header h1 {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.8rem, 6vw, 3.2rem);
    color: #fff;
    margin-bottom: 0.5rem;
    opacity: 0;
    transition: all 0.8s ease;
    z-index: 2;
}

header h1.visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

header p.lead {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1rem, 4vw, 1.6rem);
    color: #fff;
    opacity: 0;
    transition: all 0.8s ease 0.3s;
    z-index: 2;
}

header p.lead.visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* ===========================
   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;
}

/* ===========================
   CONTACT
=========================== */
.contact-section {
    background-color: #fff;
    padding: clamp(2rem, 5vw, 5rem) 1rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ffc107;
    outline: none;
}

.contact-form button {
    background-color: #ffc107;
    color: #212529;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: #e0a800;
    color: #fff;
}

/* ===========================
   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 h1 {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
        top: 35%;
    }
    header p.lead {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        top: 50%;
    }

    .creation-card img {
        height: 200px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }

    .contact-form button {
        width: 100%;
        padding: 0.8rem 0;
    }
}
