/* Reconstructed Premium Design for CTM Euromeuble - Inspired by TMS13 Captain Template */
:root {
    --primary-color: #002d5b;
    --accent-color: #d32f2f;
    --text-color: #333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --gray: #777;
    --black: #111;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container, .centrage {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-right: 15px;
}

.navbar {
    background-color: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 15px 5px;
    transition: var(--transition);
    display: block;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--accent-color);
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    margin: 0;
    border-bottom: 1px solid #eee;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown a {
    padding: 12px 20px;
    text-transform: none;
    font-weight: 500;
    font-size: 0.9rem;
    color: #444;
}

.dropdown a:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
    padding-left: 25px;
}

/* Action Buttons */
.btn-blue {
    background-color: #007bff;
    color: var(--white) !important;
    padding: 10px 15px;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
}

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

.btn-red {
    background-color: #d32f2f;
    color: var(--white) !important;
    padding: 10px 15px;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 10px;
}

.btn-red:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 20px;
}

/* Hero Section / Slider */
.hero-slider {
    height: 70vh;
    position: relative;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    padding-top: 150px;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 5px;
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-ton3 { background-color: var(--primary-color); color: var(--white); }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.small-trait {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

/* Service Grid */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2px;
    background-color: #eee;
}

.service-item {
    position: relative;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.service-overlay h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    border: 2px solid var(--white);
    padding: 10px 20px;
}

/* Footer */
footer {
    background-color: #111;
    color: #bbb;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.85rem;
}

/* Mobile Nav & Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.burger {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .navbar .container {
        justify-content: space-between;
    }
    
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        width: 80%;
        max-width: 320px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        padding: 80px 0 40px;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav-links li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links a {
        padding: 15px 25px;
        font-size: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: #f9f9f9;
        display: none; /* Hidden by default on mobile, toggled by JS */
        min-width: 100%;
    }

    .nav-links .dropdown li {
        border-bottom: 1px solid #eee;
    }

    .nav-links .dropdown a {
        padding-left: 40px;
        font-size: 0.9rem;
        text-transform: none;
    }

    .dropdown-active {
        display: block !important;
    }

    /* Sub-menu indicators for mobile */
    .nav-links li > a i {
        transition: transform 0.3s ease;
    }
    .li-active > a i {
        transform: rotate(180deg);
    }
    
    .burger {
        display: block;
        margin-left: 15px;
    }

    .header-actions {
        margin-right: 0;
        margin-left: auto;
    }

    .btn-blue, .btn-red {
        font-size: 0.75rem;
        padding: 10px 12px;
    }
}

.nav-active {
    transform: translateX(0%) !important;
}

body.no-scroll {
    overflow: hidden;
}

/* Burger Animation */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: var(--accent-color);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: var(--accent-color);
}

@media (max-width: 768px) { .hide-for-small { display: none !important; } .header_top_left { justify-content: center; width: 100%; } }
