/*
 Theme Name:   OceanWP Child - LS Bâtiment
 Theme URI:    https://ls-batiment.fr
 Description:  Thème BTP pour LS Bâtiment (Doubs - Île-de-France) utilisant Tailwind CSS.
 Author:       LS Dev
 Template:     oceanwp
 Version:      1.0.0
*/

/* =====================================================
   Base Typography
===================================================== */

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1e293b;
    line-height: 1.6;
}

/* Titres */
h1, h2, h3, h4, h5, h6,
.font-display {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-wrap: balance;
    overflow-wrap: break-word; /* fallback */
}

strong {
    font-weight: 600;
    color: #0f172a;
}

.wpforms-form label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* =====================================================
   Structure
===================================================== */

#site-header {
    display: none !important;
}

/* =====================================================
   Menu
===================================================== */

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav .menu-item a {
    transition: color 0.2s ease;
}

nav .menu-item a:hover {
    color: #f97316; /* btp-orange */
}

/* Desktop Tailwind override */
.hidden.lg\:flex ul li a {
    display: block;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.hidden.lg\:flex ul li a:hover {
    color: #f97316;
}

/* Mobile menu animation */
.mobile-link {
    transition: all 0.3s ease;
}

.mobile-link:hover {
    color: #f97316;
    transform: scale(1.1);
}

/* =====================================================
   Cards
===================================================== */

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .service-card:active {
        transform: scale(0.98);
    }
}

/* =====================================================
   WPForms Custom LS Bâtiment
===================================================== */

.ls-wpforms-container .wpforms-form input[type="text"],
.ls-wpforms-container .wpforms-form input[type="email"],
.ls-wpforms-container .wpforms-form input[type="tel"],
.ls-wpforms-container .wpforms-form textarea {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease;
}

.ls-wpforms-container .wpforms-form input:focus,
.ls-wpforms-container .wpforms-form textarea:focus {
    border-color: #f97316 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
    outline: none !important;
}

.ls-wpforms-container .wpforms-submit {
    background-color: #0f172a !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 14px 32px !important;
    border-radius: 0.75rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    width: 100% !important;
}

.ls-wpforms-container .wpforms-submit:hover {
    background-color: #f97316 !important;
}

/* Responsive formulaire */
@media (min-width: 640px) {
    .ls-wpforms-container .wpforms-field-container {
        display: flex;
        flex-wrap: wrap;
        gap: 2%;
    }

    .ls-wpforms-container .wpforms-field {
        width: 100% !important;
        clear: none !important;
    }
}

/* =====================================================
   Extra Small Devices (iPhone SE etc.)
===================================================== */

@media (max-width: 380px) {
    h1 {
        font-size: 1.8rem !important;
    }

    .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}
