/* Variables */
:root {
    --primary-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --navbar-height: 76px;
}

/* Global - suppression des espaces blancs */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

/* STRUCTURE FLEXBOX POUR FOOTER STICKY */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: var(--navbar-height);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container principal qui pousse le footer vers le bas */
.main-content {
    flex: 1 0 auto;
}

/* Footer qui reste en bas */
footer {
    flex-shrink: 0;
    border-top: 1px solid #444;
    margin-top: auto;
}

/* Suppression des marges entre sections */
section {
    margin: 0;
    padding: 0;
}

/* ===== NAVIGATION AMÉLIORÉE ===== */
.navbar {
    height: var(--navbar-height);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1030;
}

.navbar-brand {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.navbar-brand img {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.brand-text {
    transition: all 0.3s ease;
}

/* Bouton toggler personnalisé */
.custom-toggler {
    width: 40px;
    height: 40px;
    position: relative;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-toggler:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.toggler-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    margin: 4px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animation du menu burger */
.custom-toggler:not(.collapsed) .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.custom-toggler:not(.collapsed) .toggler-icon:nth-child(2) {
    opacity: 0;
}

.custom-toggler:not(.collapsed) .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Menu desktop */
.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 2px;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(255,193,7,0.1);
    transform: translateY(-2px);
}

.nav-link i {
    opacity: 0.8;
}

/* ===== MENU MOBILE AMÉLIORÉ ===== */
@media (max-width: 991.98px) {
    /* Ajustement du padding-top pour mobile */
    body {
        padding-top: 70px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .navbar {
        height: 70px;
    }
    
    /* Cacher le texte de la marque sur mobile/tablette */
    .brand-text {
        display: none !important;
    }
    
    /* Ajuster la marge du logo sur mobile */
    .navbar-brand {
        padding: 0.25rem 0;
    }
    
    .navbar-brand img {
        margin-right: 0 !important;
        height: 42px;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(33, 37, 41, 0.98);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255,193,7,0.3);
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        border-radius: 0 0 15px 15px;
        margin: 0 15px;
        padding: 0;
        z-index: 1020;
    }
    
    .mobile-menu {
        padding: 20px 0;
    }
    
    .mobile-menu .nav-item {
        margin: 5px 0;
    }
    
    .mobile-menu .nav-link {
        display: flex;
        align-items: center;
        padding: 12px 20px !important;
        margin: 0 15px;
        border-radius: 12px;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }
    
    .mobile-menu .nav-link:hover {
        background: linear-gradient(45deg, var(--primary-color), #e6b800);
        color: var(--dark-color) !important;
        border-color: var(--primary-color);
        transform: translateX(5px);
    }
    
    .mobile-menu .nav-link i {
        font-size: 18px;
        width: 20px;
    }
    
    .mobile-cta {
        margin: 15px 0 5px 0;
        padding: 0 15px;
    }
    
    .mobile-cta .btn {
        width: 100%;
        border-radius: 12px;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(255,193,7,0.3);
    }
    
    .mobile-cta .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255,193,7,0.4);
    }
    
    /* Animation d'ouverture */
    .navbar-collapse.collapsing,
    .navbar-collapse.show {
        animation: slideDown 0.3s ease-in-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Hero Section pleine largeur - correction espacement */
.hero-fullwidth {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.hero-fullwidth .container {
    z-index: 3;
    position: relative;
}

.hero-buttons .btn {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Gallery propre sans overlay */
.gallery-item-clean {
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item-clean:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(-5px);
}

.gallery-img-clean {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-img-clean:hover {
    transform: scale(1.05);
}

/* Modal galerie simplifié */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.stars i {
    font-size: 1.2rem;
}

/* Contact section */
.contact-info h6 {
    color: var(--primary-color);
    font-weight: 600;
}

.social-links .btn {
    border-radius: 50px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    transform: translateY(-2px);
}

.map-container {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 15px;
    overflow: hidden;
}

/* ===== FOOTER STICKY ===== */
footer {
    flex-shrink: 0;
    border-top: 1px solid #444;
    margin-top: auto;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: #e6b800 !important;
    text-shadow: 0 0 10px rgba(255,193,7,0.5);
}

/* Footer mobile styling */
@media (max-width: 767.98px) {
    footer p {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    footer .text-muted {
        font-size: 0.8rem;
    }
}

/* WhatsApp Button */
.btn-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 65px;
    height: 65px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.2);
    }
    100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* Ajustement navbar mobile */
    body {
        padding-top: 65px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .navbar {
        height: 65px;
    }
    
    /* Logo encore plus petit sur mobile */
    .navbar-brand img {
        height: 38px !important;
    }
    
    .hero-fullwidth {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-fullwidth h1 {
        font-size: 2.5rem;
    }
    
    .service-img {
        width: 80px;
        height: 80px;
    }
    
    .gallery-img-clean {
        height: 200px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    /* Navbar très compacte sur très petits écrans */
    body {
        padding-top: 60px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .navbar {
        height: 60px;
    }
    
    /* Logo très petit sur très petits écrans */
    .navbar-brand img {
        height: 35px !important;
    }
    
    .navbar-brand {
        padding: 0.1rem 0;
    }
    
    .hero-fullwidth h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    /* Menu mobile sur très petits écrans */
    .navbar-collapse {
        margin: 0 10px;
    }
    
    .mobile-menu .nav-link {
        margin: 0 10px;
        padding: 10px 15px !important;
    }
    
    /* Footer très compact */
    footer {
        padding: 1rem 0;
    }
    
    footer p {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
}

/* Fix pour éliminer complètement les espaces */
.container-fluid {
    padding: 0;
}

/* Assurer que les sections se collent */
section + section {
    margin-top: 0;
}

/* CLASSES UTILITAIRES POUR ESPACEMENTS */
.min-vh-70 {
    min-height: 70vh;
}

.min-vh-80 {
    min-height: 80vh;
}