    /* ==========================================================================
                SMIT - SEN MAINTENANCE INDUSTRIELLE & TERTIAIRE
                        Feuille de style principale
    ========================================================================== */

/* Variables globales du site */
:root {
    --primary-blue: #0F172A;      
    --secondary-blue: #1E293B;   
    --accent-orange: #F59E0B;    
    --accent-amber: #D97706;      
    --text-dark: #334155;         
    --text-muted: #64748B;        
    --bg-light: #F8FAFC;          
    --border-color: #E2E8F0;      
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Réinitialisation de base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #FFFFFF;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-blue);
}

/* Utilitaires de boutons personnalisés */
.btn-smit-primary {
    background-color: var(--accent-orange);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 6px;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-smit-primary:hover {
    background-color: var(--accent-amber);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-smit-outline {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 11px 28px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.btn-smit-outline:hover {
    background-color: #FFFFFF;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

    /* ==========================================================================
                        STYLE DE LA TOPBAR ET DE LA NAVBAR
    ========================================================================== */

.fs-7 {
    font-size: 0.85rem;
}

.topbar-section {
    background-color: var(--primary-blue) !important;
    font-size: 0.825rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-section a:hover {
    color: var(--accent-orange) !important;
    transition: var(--transition-smooth);
}

header.sticky-top {
    z-index: 1030;
    transition: var(--transition-smooth);
}

.navbar .nav-link {
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 14px !important;
    position: relative;
    transition: var(--transition-smooth);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--accent-amber);
}

/* Animation de soulignement sous les liens du menu */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2.5px;
    background-color: var(--accent-orange);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

    /* ==========================================================================
                        STYLE DE LA BANNIÈRE HERO
    ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.93) 0%, rgba(13, 59, 102, 0.88) 100%), 
                url('../img/poste-haute-tension.jpg') center/cover no-repeat;
    min-height: 88vh;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.min-vh-70 {
    min-height: 70vh;
}

.fw-black {
    font-weight: 900;
}

.opacity-90 {
    opacity: 0.90;
}

.bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.15) !important;
}

.border-warning-subtle {
    border-color: rgba(245, 158, 11, 0.35) !important;
}

    /* ==========================================================================
                        STYLE SECTION À PROPOS
    ========================================================================== */

.letter-spacing-1 {
    letter-spacing: 1.5px;
}

#apropos img {
    transition: var(--transition-smooth);
}

#apropos img:hover {
    transform: scale(1.02);
}

    /* ==========================================================================
                        STYLE CARTES DE SERVICES
    ========================================================================== */

.service-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid var(--border-color) !important;
}

.service-card img {
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}

.service-card:hover img {
    transform: scale(1.08);
}

    /* ==========================================================================
                        STYLE GALERIE & PORTFOLIO (AVEC HAUTE LISIBILITÉ)
    ========================================================================== */

.gallery-item {
    transition: var(--transition-smooth);
}

.gallery-item img {
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.75) 55%, rgba(15, 23, 42, 0.2) 100%);
    opacity: 0.92;
    transition: var(--transition-smooth);
}


.gallery-overlay h5,
.gallery-overlay h5.fw-bold {
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.gallery-overlay p,
.gallery-overlay .small {
    color: #F1F5F9 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 0.95;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.25) !important;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(15, 23, 42, 1) 0%, rgba(13, 59, 102, 0.85) 60%, rgba(15, 23, 42, 0.3) 100%);
}

    /* ==========================================================================
                        STYLE FORMULAIRE DE CONTACT
    ========================================================================== */

#contactForm .form-control:focus,
#contactForm .form-select:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.22);
}

    /* ==========================================================================
                        STYLE FOOTER & BOUTON BACK TO TOP
    ========================================================================== */

footer a {
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--accent-orange) !important;
    padding-left: 3px;
}

#backToTop {
    transition: var(--transition-smooth);
}

#backToTop:hover {
    transform: translateY(-4px);
}

    /* ==========================================================================
                        OPTIMISATIONS SPÉCIFIQUES SMARTPHONES (MOBILE RESPONSIVE)
    ========================================================================== */

@media (max-width: 768px) {
    /* Taille idéale du gros titre sur écran smartphone */
    .hero-section h1.display-3 {
        font-size: 2.1rem !important;
        line-height: 1.25;
    }

    /* Style du menu déroulant */
    .navbar-collapse.show {
        background-color: #FFFFFF;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
        margin-top: 10px;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px !important;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    /* Taille compacte de la topbar sur mobile */
    .topbar-section {
        font-size: 0.78rem !important;
    }
}