:root {
    --primary-color: #198754;
    --secondary-color: #146c43;
    --accent-color: #0dc143;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
}

/* ========== BASE ========== */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.section-title-pavailler {
    color: #d6251f !important; /* Rouge proche du logo Pavailler */
    margin-bottom: 30px;
    text-decoration: underline;
}

.intro-occasion {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 20px;
    font-size: 25px;
    line-height: 1.6;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 60px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========== MULTI-NIVEAUX (au survol) ========== */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
}

/* affiche le sous-menu au survol */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}


/* Survol d'un élément dans n'importe quel sous-menu */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Survol du lien parent d’un sous-menu (ex. Fours Professionnels, Pavailler...) */
.dropdown-submenu:hover > a {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Flèche (›) devient aussi verte sur survol */
.dropdown-submenu:hover > a::before {
    color: #fff !important;
}

/* Supprime la flèche Bootstrap ▼ sur les sous-menus */
.dropdown-submenu > a.dropdown-toggle::after {
    display: none !important;
}

/* Ajoute une flèche latérale personnalisée propre et visible */
.dropdown-submenu > a::before {
    content: "›";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #333;
    transition: transform 0.2s ease;
}

/* Petite rotation au survol (effet fluide) */
.dropdown-submenu:hover > a::before {
    transform: translateY(-50%) rotate(90deg);
}

/* effet doux */
.dropdown-menu {
    transition: all 0.25s ease;
    border-radius: 8px;
}

/* ajuste le survol du 3e et 4e niveau */
.dropdown-menu > .dropdown-submenu:hover > .dropdown-menu {
    display: block;
}


/* ===== Ouvrir le menu principal "Nos Produits" au survol ===== */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
}

/* transition douce d'apparition */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
}

/* quand visible */
.nav-item.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

/* ========== HERO SLIDER ========== */
#heroSlider {
    margin-top: 76px;
}

#heroSlider .carousel-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

#heroSlider .carousel-item img {
    height: 600px;
    object-fit: contain;
    width: 100%;
    margin: 0 auto;
    display: block;
    background-color: #fff;
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(25, 135, 84, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
}

/* ========== TITRES & SECTIONS ========== */
.section-title {
    color: var(--dark-color);
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    text-align: center;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ========== PRODUITS ========== */
.product-card {
    transition: all 0.4s ease;
    cursor: pointer;
    height: 100%;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
    height: 400px; /* plus haute */
    object-fit: cover;
    transition: transform 0.5s ease;
}


.product-card:hover img {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 20px; margin-top: 10px; margin-bottom: 10px; color: #007A33;
}

.product-price span {
    color: #FFD200
}

/* ========== SERVICES ========== */
.services-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.section-title {
    color: #007A33; /* Vert du logo */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2rem;
}

.section-title .text-yellow {
    color: #FFD200; /* Jaune du logo */
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.service-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ========== CONTACT ========== */
.contact-section {
    padding: 80px 0;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 20px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ========== FOOTER ========== */
footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-links h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
    color: #999;
}

/* ========== CLASSES UTILITAIRES ========== */
.mt-7 { margin-top: 6rem !important; }

.equal-cols {
    display: flex;
    align-items: stretch;
}

.equal-cols > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    #heroSlider .carousel-item img {
        height: 400px;
    }

    .navbar-brand img {
        height: 50px;
    }

    .service-card, .product-card {
        margin-bottom: 20px;
    }

    /* ouvre les sous-menus au clic sur mobile */
    .dropdown-submenu > .dropdown-menu {
        position: static;
        margin-left: 1rem;
    }
}

@media (max-width: 576px) {
    #heroSlider .carousel-item img {
        height: 300px;
    }

    .carousel-control-prev, .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }

    .contact-form {
        padding: 20px;
    }
}
