:root {
    --primary-color: #ff5900; /* Orange vif Enfold */
    --dark-color: #140f42;    /* Bleu profond Enfold */
    --light-color: #f1f2f5;   /* Gris clair Enfold */
    --white: #ffffff;
    --text-color: #333;
    --text-gray: #7e7c8f;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
    scroll-behavior: smooth;
}

/* --- TITRES DECORE --- */
h1, h2, h3 { font-family: 'Sen', sans-serif; }

.titre-tirets {
    text-align: center;
    margin-bottom: 50px;
}

.titre-tirets h2 {
    display: inline-block;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-color);
}

.titre-tirets h2::before,
.titre-tirets h2::after {
    content: "";
    position: absolute;
    top: 55%;
    background-color: var(--dark-color);
    height: 1px;
    width: 65px;
}

.titre-tirets h2::before { left: -85px; }
.titre-tirets h2::after { right: -85px; }

@media (max-width: 768px) {
    .titre-tirets h2::before, .titre-tirets h2::after { display: none; }
}

/* --- HEADER --- */
header {
    background: #fff;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
}

/* Icône du menu hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--dark-color);
}

.nav-call-mobile {
    display: none;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.logo-svg {
    width: 45px;
    height: 45px;
    color: var(--dark-color);
}

.logo span { color: var(--primary-color); font-weight: 400; }

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    margin-left: 20px;
    font-weight: 500;
}

/* --- HERO SECTION --- */
.hero {
    height: 90vh;
    background: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(20,15,66,0.7), rgba(20,15,66,0.4)), url('https://images.unsplash.com/photo-1505798577917-a65157d3320a?auto=format&fit=crop&q=80') center/cover;
}

.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 20px; 
    text-shadow: 0 0 15px rgba(20,15,66,0.5);
}

.btn {
    background: var(--primary-color);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 0;
    display: inline-block;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn:hover { background: var(--dark-color); }

/* --- SECTIONS --- */
#services { padding: 80px 5%; background: var(--light-color); }

#a-propos { padding: 80px 5%; text-align: center; max-width: 800px; margin: 0 auto; }

/* --- GRILLE BESOINS (Type Enfold) --- */
.besoins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    margin-bottom: 50px;
}

.besoin-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: var(--dark-color);
}

.besoin-card img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.7; transition: transform 0.6s ease, opacity 0.6s ease;
}

.besoin-card:hover img { transform: scale(1.1); opacity: 0.4; }

.besoin-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 30px; box-sizing: border-box; color: white;
    background: linear-gradient(transparent, rgba(20,15,66,0.9));
}

.besoin-overlay h3 { font-size: 1.5rem; margin-bottom: 10px; }

.testimonial-card {
    flex: 1;
    min-width: 300px;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    font-style: italic;
}

.testimonial-card span {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    font-style: normal;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* --- SPLIT SECTIONS (Agencement & Combles) --- */
.split-container {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    min-height: 500px;
}

.split-container.reverse { flex-direction: row-reverse; }

.split-image, .split-text { flex: 1; min-width: 350px; }

.split-image img {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: cover;
}

.split-text { padding: 80px 8%; display: flex; flex-direction: column; justify-content: center; }

.check-list { list-style: none; padding: 0; margin: 25px 0; }
.check-list li { margin-bottom: 12px; position: relative; padding-left: 30px; }
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.check-list.light li::before { color: var(--white); }

/* --- FAQ SECTION --- */
#faq-combles { padding: 80px 5%; background: var(--white); }

.faq-wrapper { max-width: 900px; margin: 0 auto; }

.faq-wrapper details {
    background: var(--light-color);
    margin-bottom: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.faq-wrapper summary {
    padding: 20px 25px;
    font-weight: 700;
    font-family: 'Sen', sans-serif;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-color);
    outline: none;
}

.faq-wrapper summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-wrapper details[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 25px 25px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

#contact { padding: 80px 5%; }

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

#contact-form { flex: 2; display: flex; flex-direction: column; }

#contact-form input, #contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact-info { flex: 1; background: var(--dark-color); color: white; padding: 30px; border-radius: 8px; }

footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 5% 20px;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.footer-logo { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.footer-logo h3 { font-size: 1.4rem; margin: 0; }
.footer-logo span { color: var(--primary-color); font-weight: 400; }

.footer-section p { color: var(--text-gray); font-size: 0.95rem; }

.footer-section h4 { color: var(--white); margin-bottom: 25px; font-family: 'Sen', sans-serif; position: relative; }
.footer-section h4::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 30px; height: 2px; background: var(--primary-color); }

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-gray); text-decoration: none; transition: 0.3s ease; }
.footer-links a:hover { color: var(--primary-color); padding-left: 5px; }

.footer-contact p { margin-bottom: 12px; color: var(--text-gray); font-size: 0.95rem; }
.footer-contact a { color: var(--white); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.footer-contact a:hover { color: var(--primary-color); }

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Nouveaux styles pour les pages secondaires */
.page-header, .contact-hero {
    padding: 120px 5% 60px;
    background: var(--dark-color);
    color: white;
    text-align: center;
}

.details-prestations {
    padding: 60px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.presta-block {
    background: #f9f9f9;
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    border-radius: 4px;
}

.form-container {
    max-width: 800px;
    margin: -40px auto 60px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-group label { font-weight: bold; margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-large { width: 100%; font-size: 1.1rem; }

/* Bouton d'appel flottant */
.floating-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white !important;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center; /* Centre explicitement le contenu */
    gap: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.floating-call-btn:hover {
    transform: scale(1.05);
    background-color: var(--dark-color);
}

/* Volet "En ce moment" */
#volet-en-ce-moment {
    position: fixed;
    z-index: 100;
    top: 30%;
    left: -280px; /* Largeur du contenu principal pour le cacher */
    background-color: var(--primary-color);
    color: white;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: left 0.4s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center; /* Aligne verticalement le contenu et l'onglet */
}

#volet-en-ce-moment:hover {
    left: 0;
}

#volet-en-ce-moment .volet-content-wrapper {
    width: 280px; /* Largeur explicite pour la zone de contenu principale */
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#volet-en-ce-moment .volet-trigger-tab {
    position: absolute;
    right: -40px; /* Positionne l'onglet en dehors du contenu principal */
    top: 50%;
    transform: translateY(-50%) rotate(270deg);
    transform-origin: 0 0; /* Rotation à partir de son coin supérieur gauche */
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px; /* Pour donner l'apparence d'un onglet une fois tourné */
    cursor: pointer;
    white-space: nowrap; /* Empêche le texte de se casser sur plusieurs lignes */
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

#volet-en-ce-moment .volet-trigger-tab h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#volet-en-ce-moment img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

#volet-en-ce-moment .volet-info {
    background-color: rgba(0,0,0,0.1); /* Fond légèrement transparent */
    padding: 10px;
    border-radius: 4px;
}

#volet-en-ce-moment .volet-titre {
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--light-color);
}

#volet-en-ce-moment .volet-soustitre {
    margin: 5px 0 10px 0;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.3;
    color: white;
}

#volet-en-ce-moment .btn-volet {
    display: inline-block;
    background-color: var(--dark-color);
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

#volet-en-ce-moment .btn-volet:hover {
    background-color: var(--text-color);
}

@media (max-width: 768px) {
    header { padding: 10px 5%; }
    .logo { font-size: 1.2rem; }
    .logo-svg { width: 35px; height: 35px; }
    
    .hamburger { display: block; }
    
    /* Menu mobile coulissant */
    nav ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: -100%;
        top: 60px;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - 60px); /* Prend toute la hauteur restante */
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
        margin: 0;
        z-index: 999;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 15px 0;
    }

    nav ul li a {
        margin-left: 0;
        font-size: 1.1rem;
    }

    /* Animation du hamburger en "X" */
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-call-mobile { display: block; }

    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem !important; }

    .besoins-grid { grid-template-columns: 1fr; }
    .besoin-card { height: 300px; }

    .split-text { padding: 40px 5%; }
    .split-image img { height: 300px; }
    .titre-tirets h2 { margin-left: 0 !important; font-size: 1.5rem; text-align: center; width: 100%; }

    .contact-container { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    #contact-form { order: 2; }
    .contact-info { order: 1; }

    .floating-call-btn {
        padding: 15px;
        border-radius: 50%;
    }
    .floating-call-btn span { display: none; }
}

/* Cache le volet sur les écrans plus petits */
@media (max-width: 990px) {
    #volet-en-ce-moment {
        display: none !important;
    }
}