/* ===========================
   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 RÉDUITE & FLUIDE
=========================== */
.navbar {
    transition: all 0.3s ease;
    padding: clamp(0.4rem, 2vw, 0.8rem) 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, 1.5vw, 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;
    background-color: #f8f9fa;
}

.section h2 {
    text-align: center;
    font-size: clamp(1.5rem, 5vw, 2.4rem);
    margin-bottom: clamp(1.5rem, 2vw, 2rem);
    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);
}

/* ===========================
   FORMULAIRE CONTACT FLUIDE
=========================== */
.section form {
    width: 100%;
    max-width: clamp(300px, 90%, 700px);
    margin: 0 auto;
    background-color: #fff;
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.section form input,
.section form textarea {
    width: 100%;
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(0.8rem, 2vw, 1rem);
    margin-bottom: clamp(1rem, 2vw, 1.2rem);
    border: 1px solid #ccc;
    border-radius: 0.7rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    background-color: #f8f9fa;
    color: #212529;
    resize: none;
    transition: all 0.3s ease;
}

.section form input:focus,
.section form textarea:focus {
    border-color: #ffc107;
    box-shadow: 0 0 8px rgba(255,193,7,0.4);
    outline: none;
    background-color: #fff;
}

.section form textarea {
    min-height: clamp(120px, 25vw, 150px);
}

.section form button {
    width: 100%;
    background-color: #ffc107;
    color: #212529;
    border: none;
    padding: clamp(0.7rem, 2vw, 0.8rem);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    border-radius: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section form button:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===========================
   FOOTER FLUIDE
=========================== */
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, 12px);
    border-radius: 50%;
    box-shadow: 0 4px 10px 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 14px rgba(0,0,0,0.4);
}

/* ===========================
   RESPONSIVE TABLET & DESKTOP
=========================== */
@media (min-width: 576px) {
    header h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }

    header p.lead {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    }

    .section h2 {
        font-size: clamp(1.6rem, 4vw, 1.8rem);
    }

    .section form textarea {
        min-height: 150px;
    }
}

@media (min-width: 768px) {
    header h1 {
        font-size: clamp(2.2rem, 4vw, 2.8rem);
    }

    header p.lead {
        font-size: clamp(1.2rem, 3vw, 1.4rem);
    }

    .section {
        padding: clamp(3rem, 4vw, 4rem) 2rem;
    }

    .section h2 {
        font-size: clamp(1.8rem, 3.5vw, 2rem);
    }

    .section form {
        padding: 2rem;
        max-width: 600px;
    }

    .section form button {
        font-size: 1.1rem;
    }

    .navbar-brand {
        font-size: clamp(1.6rem, 3vw, 1.8rem);
    }
}

@media (min-width: 992px) {
    header h1 {
        font-size: clamp(2.8rem, 3.5vw, 3rem);
    }

    header p.lead {
        font-size: clamp(1.4rem, 3vw, 1.5rem);
    }

    .section {
        padding: clamp(4rem, 3vw, 5rem) 3rem;
    }

    .section h2 {
        font-size: clamp(2rem, 3vw, 2.2rem);
    }

    .section form {
        max-width: 700px;
    }

    .navbar-brand {
        font-size: 1.8rem;
    }

    .nav-link {
        margin-left: 0.8rem;
    }
}

@media (min-width: 1200px) {
    header h1 {
        font-size: 3.2rem;
    }

    header p.lead {
        font-size: 1.6rem;
    }

    .section h2 {
        font-size: 2.4rem;
    }
}
