﻿/* Variables de couleurs basées sur le cahier des charges */
:root {
    /* Bleu foncé professionnel */
    --primary-blue: #F8F9FA; 
    /* Orange pour les appels à l'action */
    --accent-orange: #FF6B00; 
    /* Gris anthracite pour le texte */
    --text-dark: #333333; 
    /* Blanc et fond léger */
    --bg-light: #F8F9FA; 
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* --- Header & Navigation --- */
header {
    background-color:  #F8F9FA; 
    color: #0A2540;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    max-width: 250px;
    height: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

nav a:hover, nav a.active {
    color: var(--accent-orange);
}

/* Specific blue color for selected nav links */
nav a.nav-blue {
    color: #0A2540 !important;
}


nav a.nav-blue:hover {
    color: #0A2540 !important;
}

/* --- Boutons --- */
.btn-orange {
    background-color: var(--accent-orange);
    color: var(--white) !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

.btn-orange-large {
    display: inline-block;
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn-orange:hover, .btn-orange-large:hover {
    background-color: #e65c00;
}

/* --- Bannière Accueil --- */
.hero {
    background-color: #0A2540;
    color: var(--white);
    padding: 100px 5%;
    text-align: left;
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image:
        linear-gradient(to right, rgba(10, 37, 64, 1) 50%, rgba(10, 37, 64, 0) 50%),
        url('images/electriciens2.png');
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, 50% 100%;
    background-position: left top, right top;
}

.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* --- Carousel expertises --- */
.expertise-carousel {
    padding: 60px 5%;
    background: transparent;
}
.carousel-title {
    font-size: 2.6rem;
    color: #0A2540;
    margin-bottom: 20px;
}
.carousel-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.carousel-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 6px;
}
.carousel-track::-webkit-scrollbar{ display:none; }
.card-carousel {
    min-width: 260px;
    max-width: 260px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.card-carousel img { display:block; width:100%; height: 220px; object-fit: cover; }
.card-caption { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,0.95); padding: 10px 14px; border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.card-caption h3 { font-size: 1rem; margin: 0; color: #0A2540; }
.carousel-btn { width:44px; height:44px; border-radius:50%; border:none; background:#fff; box-shadow:0 6px 18px rgba(0,0,0,0.12); font-size:1.4rem; cursor:pointer; }
.carousel-btn:active{ transform: scale(0.98); }

/* --- Lightbox --- */
.lightbox { position: fixed; inset:0; display:none; align-items:center; justify-content:center; background: rgba(0,0,0,0.6); z-index:1200; }
.lightbox.open { display:flex; }
.lightbox-inner{ position: relative; max-width: 1100px; width: 95%; background: transparent; }
.lightbox-content{ background: #fff; padding: 0; border-radius:6px; overflow: hidden; display:flex; align-items:center; gap:0; flex-wrap:wrap; }
.lightbox-content img{ width:60%; max-width:720px; height:auto; object-fit:cover; display:block; flex:0 0 60%; }
.lightbox-caption{ padding: 26px; background: #fff; flex:1 1 40%; min-width:260px; }
.lightbox-caption h3{ margin:0 0 10px 0; color:#0A2540; }
.lightbox-caption p{ margin:0; color:#444; line-height:1.6; }
.lightbox-close{ position:absolute; right:-12px; top:-12px; background:#fff; border-radius:50%; width:44px; height:44px; border:none; box-shadow:0 6px 18px rgba(0,0,0,0.2); font-size:20px; cursor:pointer; }
.lightbox-nav{ position:absolute; top:50%; transform:translateY(-50%); background: rgba(255,255,255,0.9); border:none; width:56px; height:56px; border-radius:50%; font-size:28px; cursor:pointer; }
.lightbox-nav.prev{ left:-28px; }
.lightbox-nav.next{ right:-28px; }

@media (max-width: 900px) {
    .card-carousel { min-width: 220px; max-width: 220px; }
    .lightbox-inner{ max-width: 95%; }
}

.framed-image {
    position: relative;
    max-width: 1200px;
    margin: 60px auto;
}
.framed-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    object-fit: cover;
    filter: brightness(0.98);
}
.frame-card {
    position: absolute;
    bottom: 32px;
    left: 32px;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    padding: 28px 30px;
    border-radius: 20px;
    box-shadow: 0 22px 48px rgba(0,0,0,0.18);
}
.frame-card h2 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.1;
    color: #0A2540;
}
.frame-card p {
    margin: 0 0 18px;
    color: #333;
    line-height: 1.7;
}
@media (max-width: 900px) {
    .frame-card {
        position: static;
        margin: 20px;
        width: auto;
        max-width: none;
    }
}

.split-image,
.split-text {
    width: 100%;
}

.split-image img {
    width: 105%;
    height: 600px;
    border-radius: 0px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.split-text h2 {
    font-size: 2.8rem;
    margin-bottom: 24px;
    color: #0A2540;
}

.split-text p {
    margin-bottom: 24px;
    line-height: 1.8;
    color: #333333;
}

.split-text ul {
    list-style: disc inside;
    line-height: 1.8;
    color: #444444;
}

.split-text ul li {
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .section-split {
        display: grid;
        grid-template-columns: 1fr;
        padding: 60px 5%;
    }
    .split-image img {
        max-height: 420px;
    }
}
.maintenance-section {
    background: #f8fafc;
    padding: 80px 10%;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.maintenance-section h2 {
    font-size: 42px;
    color: #0f172a;
    margin-bottom: 30px;
}

.maintenance-section p {
    font-size: 18px;
    line-height: 1.9;
    color: #475569;
    margin-bottom: 25px;
}

.questions-box {
    margin-top: 40px;
    background: white;
    padding: 35px;
    border-left: 5px solid #f97316;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.questions-box h3 {
    margin-bottom: 20px;
    color: #0f172a;
}

.questions-box ul {
    padding-left: 20px;
}

.questions-box li {
    margin-bottom: 12px;
    color: #334155;
}
/* Important */
.mega-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    background: white;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    z-index: 1000;
}

.mega-dropdown:hover .mega-menu {
    display: grid;
}

.mega-column h3 {
    font-size: 18px;
    margin-bottom: 18px;
    color: #0f3b82;
    border-bottom: 2px solid #0f3b82;
    padding-bottom: 8px;
}

.mega-column a {
    display: block;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.mega-column a:hover {
    background: #f1f5f9;
    color: #0f3b82;
    padding-left: 18px;
}
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}
.hero-mobilier {
    background-color: #0A2540;
    color: var(--white);
    padding: 100px 5%;
    text-align: left;
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image:
        linear-gradient(to right, rgba(10, 37, 64, 1) 50%, rgba(10, 37, 64, 0) 50%),
     url('images/residence.png');
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, 50% 100%;
    background-position: left top, right top;
}
.hero-import-export {
    background-color: #0A2540;
    color: var(--white);
    padding: 100px 5%;
    text-align: left;
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image:
        linear-gradient(to right, rgba(10, 37, 64, 1) 50%, rgba(10, 37, 64, 0) 50%),
     url('images/import-export.png');
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, 50% 100%;
    background-position: left top, right top;
}
.hero-arrets-techniques {
    background-color: #0A2540;
    color: var(--white);
    padding: 100px 5%;
    text-align: left;
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image:
        linear-gradient(to right, rgba(10, 37, 64, 1) 50%, rgba(10, 37, 64, 0) 50%),
     url('images/arrets.png');
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, 50% 100%;
    background-position: left top, right top;
}
.hero-retrofit{
    background-color: #0A2540;
    color: var(--white);
    padding: 100px 5%;
    text-align: left;
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image:
        linear-gradient(to right, rgba(10, 37, 64, 1) 50%, rgba(10, 37, 64, 0) 50%),
     url('images/retrofit.png');
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, 50% 100%;
    background-position: left top, right top;
}
.hero-transfert{
    background-color: #0A2540;
    color: var(--white);
    padding: 100px 5%;
    text-align: left;
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image:
        linear-gradient(to right, rgba(10, 37, 64, 1) 50%, rgba(10, 37, 64, 0) 50%),
     url('images/transfert.png');
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, 50% 100%;
    background-position: left top, right top;
}
.hero-intermediaire{
    background-color: #0A2540;
    color: var(--white);
    padding: 100px 5%;
    text-align: left;
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image:
        linear-gradient(to right, rgba(10, 37, 64, 1) 50%, rgba(10, 37, 64, 0) 50%),
     url('images/alimentaire.jpg');
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, 50% 100%;
    background-position: left top, right top;
}
.hero-dechets{
    background-color: #0A2540;
    color: var(--white);
    padding: 100px 5%;
    text-align: left;
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image:
        linear-gradient(to right, rgba(10, 37, 64, 1) 50%, rgba(10, 37, 64, 0) 50%),
     url('images/dechets1.png');
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, 50% 100%;
    background-position: left top, right top;
}
.hero-stockage{
    background-color: #0A2540;
    color: var(--white);
    padding: 100px 5%;
    text-align: left;
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image:
        linear-gradient(to right, rgba(10, 37, 64, 1) 50%, rgba(10, 37, 64, 0) 50%),
     url('images/stockage3.png');
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, 50% 100%;
    background-position: left top, right top;
}
.image {
     max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.image2 {
     max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.hero-content {
    max-width: 560px;
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- Grille Services --- */
.services-summary {
    padding: 60px 5%;
    text-align: center;
    background-color: var(--bg-light);
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.card {
    padding: 30px;
    border-radius: 8px;
    width: calc(25% - 20px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: left;
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.card-large {
    min-height: 240px;
    padding: 40px;
}


/* Dark overlay for text readability */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    z-index: 1;
}

.card h3, .card p {
    position: relative;
    z-index: 2;
    color: var(--white);
}

/* Individual card backgrounds */
.card-electricite {
    background-image: url('images/electriciens.png');
}
.card-import-export {
    background-image: url('images/import-export.png');
}
.card-Marchandises {
    background-image: url('images/import-export2.png');
}
.card-Logistique {
    background-image: url('images/import-export3.png');
}
.card-Douanes {
    background-image: url('images/import-export4.png');
}
.card-Stockage {
    background-image: url('images/import-export5.png');
}

 .card-mobilier {
     background-image: url('images/mobilier.png');
        }
 .card-Montage {
    background-image: url('images/mobilier2.png');
        }
.card-Agencement {
     background-image: url('images/mobilier3.jpg');
}
/* carousel 2 */
body{
    background-color:#f8f9fa;
}

.secteursSwiper{
    width:75%;
    padding:100px 0;
}

.swiper-slide{
    width:10px;
    height:100px;
    position:relative;
    overflow:hidden;
    border-radius:10px;
}

.swiper-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.content{
    position:absolute;
    bottom:30px;
    left:30px;
    color:white;
}

.content h2{
    font-size:3rem;
    margin-bottom:10px;
}

.content p{
    max-width:100px;
    font-size:1.1rem;
}


/* CTA Footer styles (inserted) */
.site-cta-footer{ background: #0A2540; color:#fff; padding:48px 5%; }
.site-cta-inner{ max-width:1200px; margin:0 auto; display:flex; gap:40px; align-items:flex-start; }
.cta-left{ flex:0 0 38%; }
.cta-left h2{ font-size:36px; line-height:1.05; margin-bottom:18px; color:#fff; font-weight:600; }
.cta-left .cta-btn{ display:inline-block; background:#fff; color:#0F2633; padding:12px 28px; border-radius:4px; text-decoration:none; font-weight:700; letter-spacing:2px; }
.cta-links{ flex:1 1 62%; display:flex; gap:28px; justify-content:flex-end; }
.link-col{ min-width:160px; }
.link-col h4{ color:#dbe8ee; font-size:13px; margin-bottom:12px; letter-spacing:2px; text-transform:uppercase; }
.link-col ul{ list-style:none; padding:0; margin:0; color:#bcd0d8; }
.link-col ul li{ margin:10px 0; font-size:14px; }

@media (max-width:900px){
    .site-cta-inner{ flex-direction:column; align-items:stretch; }
    .cta-left{ order:1; }
    .cta-links{ order:2; flex-wrap:wrap; gap:16px; }
    .link-col{ min-width:140px; }
}

/* Link color defaults to avoid browser "visited" purple */
a { color: #0A2540; text-decoration: none; }
a:visited { color: #0A2540; }
a:hover, a:focus { color: var(--accent-orange); text-decoration: underline; }

/* Buttons keep their intended colors */
.btn-orange, .btn-orange-large, .cta-btn { color: var(--white); }

/* Footer and CTA link overrides */
.site-cta-footer a { color: #bcd0d8; }
.site-cta-footer a:visited { color: #bcd0d8; }
.footer-info a, .footer-legal a { color: #fff; }

   
        
.card-Demontage {
     background-image: url('images/mobiler4.jpg');
        }
.card-Qualite {
     background-image: url('images/mobilier5.jpg');
}

.card-dechets {
    background-image: url('images/dechets.jpg');
}

.card-stockage {
    background-image: url('images/stockages.jpg');
}

.card-alimentaire {
    background-image: url('images/alimentaire.jpg');
}

/* --- Formulaire --- */
.contact-section {
    max-width: 600px;
    margin: 60px auto;
    padding: 20px;
}

.form-devis label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.form-devis input, .form-devis select, .form-devis textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-devis button {
    margin-top: 20px;
    width: 100%;
}

.success { color: green; font-weight: bold; }
.error { color: red; font-weight: bold; }

/* --- Footer --- */
footer {
    background-color: #0A2540;
    color: var(--white);
    text-align: center;
    padding: 40px 5% 20px;
}

footer a {
    color: var(--accent-orange);
}

/* --- Dropdown Menu --- */
nav ul li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    padding: 0;
    margin: 0;
    list-style: none;
    flex-direction: column;
    min-width: 260px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    z-index: 1000;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--accent-orange);
    padding-left: 25px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: flex;
}

/* --- Responsive (Smartphones) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .card {
        width: 100%;
    }
    .hero h1 {
        font-size: 2rem;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        margin: 10px 0 0 0;
    }
    
    .dropdown:hover .dropdown-menu {
        display: flex;
    }
    
}
