/* ==================== VARIABLES CSS ==================== */
:root {
    /* ... (tout le reste de vos variables est inchangé) ... */
    --primary-color: #D4A017;
    --primary-color-alt: #b98d13;
    --secondary-color: #1a1a1a;
    --accent-color: #00AEEF;
    --bg-color-light: #fdfdfd;
    --text-color-light: #333333;
    --card-bg-light: #ffffff;
    --border-color-light: #eeeeee;
    --bg-color-dark: #121212;
    --text-color-dark: #f0f0f0;
    --card-bg-dark: #1e1e1e;
    --border-color-dark: #333333;
    --bg-color: var(--bg-color-light);
    --text-color: var(--text-color-light);
    --card-bg: var(--card-bg-light);
    --border-color: var(--border-color-light);
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --header-height: 4.5rem;
    --container-width: 1140px;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition: 0.3s ease;
}

/* Thème Sombre */
[data-theme="dark"] {
    --bg-color: var(--bg-color-dark);
    --text-color: var(--text-color-dark);
    --card-bg: var(--card-bg-dark);
    --border-color: var(--border-color-dark);
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==================== STYLES DES ICÔNES SVG (NOUVEAU) ==================== */
.icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    stroke: currentColor; /* L'icône prend la couleur du texte */
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Style pour les icônes cliquables de la nav */
.nav-actions .icon {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}
.nav-actions .icon:hover {
    color: var(--primary-color);
}
/* Style pour les icônes dans les cartes */
.about-card .icon {
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
/* Style pour les icônes du processus */
.process-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
.process-icon .icon {
    width: 24px;
    height: 24px;
    stroke: var(--secondary-color); /* Couleur spécifique */
}
/* Style pour les icônes FAQ */
.faq-icon {
    transition: transform var(--transition);
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ==================== Styles de Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition), color var(--transition);
}
h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-color);
}
ul { list-style: none; }
a { text-decoration: none; color: var(--primary-color); }
img { max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-color-alt);
    border-color: var(--primary-color-alt);
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* ==================== Pré-chargeur ==================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}
.preloader-logo {
    width: 150px;
    animation: pulse 1.5s infinite ease-in-out;
}
body.loaded .preloader {
    opacity: 0;
    pointer-events: none;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ==================== Header & Nav ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    z-index: 100;
    transition: var(--transition);
}
.header.sticky { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo img { height: 40px; }
.nav-list {
    display: flex;
    gap: 2rem;
}
.nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active-link { color: var(--primary-color); }
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
/* On ne cible plus les <i>, mais les .icon */
.nav-actions button {
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}
.nav-actions button:hover { color: var(--primary-color); }
.nav-toggle {
    display: none; /* Masqué sur desktop */
}

/* ==================== Section Hero ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--secondary-color);
    color: #fff;
    padding-top: var(--header-height);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    overflow: hidden;
}
.hero-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px);
}
.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #f0f0f0;
}
.hero-counters {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
}
.counter-item { text-align: center; }
.counter-value {
    font-size: 3rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
}
.counter-label {
    display: block;
    font-size: 1rem;
    color: #f0f0f0;
}

/* ==================== Section Présentation (About) ==================== */
.about-card {
    background-color: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
}
.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ==================== Section Services (Images sur les cartes) ==================== */
.services { background-color: var(--bg-color); }
.service-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.service-img {
    width: 100%;
    height: 200px;
    /* Propriétés pour un affichage propre des images */
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    /* Ajout d'un overlay pour le contraste si besoin */
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.0) 100%), var(--image-url);
}

/* 1. Services Juridiques & Fiscaux - Assumant que les images sont à la racine (ou JS gère le chemin) */
#service-img-1 { 
    /* Utilisation du nom de fichier exact. Le JS gérera le chemin pour la modale. */
    --image-url: url('../assets/le-marteau-la-balance-de-la-justice-et-les-livres-de-droit.jpg');
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%), var(--image-url);
}
/* 2. Immobilier & BTP */
#service-img-2 { 
    --image-url: url('../assets/nouvelles-cles-de-la-maison-et-plan-sur-table-avec-couple-defocalise.jpg');
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%), var(--image-url);
}
/* 3. Digital & Événementiel */
#service-img-3 { 
    --image-url: url('../assets/un-lieu-de-mariage-photorealiste-avec-un-decor-et-des-ornements-intricats.jpg');
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%), var(--image-url);
}
#service-img-4 { 
    --image-url: url('../assets/hologrammes-technologiques-et-futuristes-pour-les-moyens-de-transport-logistique\ \(1\).jpg');
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%), var(--image-url);
}


.service-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.service-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.service-card-content p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.service-card-content .btn { align-self: flex-start; }

/* ==================== Section Vision (Image) ==================== */
.vision { background-color: var(--card-bg); }
.vision-img-placeholder {
    width: 100%;
    max-width: 500px;
    /* Correction de l'image de la vision pour utiliser 'image_b3532b.png' ou 'assets/logo.jpg' */
    background-image: url('../assets/lui.jpg'); 
    background-size: cover; /* L'image couvrira toute la zone */
    background-position: center; /* L'image sera centrée */
    background-repeat: no-repeat;
    height: 600px; 
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.vision-content blockquote {
    border-left: 5px solid var(--primary-color);
    padding-left: 2rem;
    font-size: 1.5rem;
    font-style: italic;
    margin-top: 2rem;
}
.vision-content cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    font-family: var(--font-primary);
    margin-top: 1.5rem;
    color: var(--primary-color);
}

/* ==================== Section Processus ==================== */
.process-wrapper {
    position: relative;
    padding: 2rem 0;
}
.process-line {
    position: absolute;
    left: calc(50px / 2);
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--border-color);
    z-index: -1;
    transform: translateX(-50%);
    display: none;
}
.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}
.process-content { padding: 0.5rem 0; }
.process-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* ==================== Section Témoignages ==================== */
.testimonials { background-color: var(--card-bg); }
.testimonial-carousel-wrapper {
    position: relative;
    max-width: 800px;
    overflow: hidden;
}
.testimonial-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.testimonial-slide {
    min-width: 100%;
    padding: 2rem 3rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s;
    position: absolute;
    top: 0;
    left: 0;
}
.testimonial-slide.active {
    opacity: 1;
    position: relative;
}
.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}
.testimonial-author {
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--primary-color);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--text-color);
    transition: var(--transition);
    display: flex; /* Pour centrer le SVG */
    justify-content: center;
    align-items: center;
}
.carousel-btn .icon {
    width: 20px;
    height: 20px;
}
.carousel-btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}
.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }

/* ==================== Section FAQ ==================== */
.faq-container { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question {
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-primary);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer p {
    padding: 0 1rem 1.5rem 1rem;
    line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 300px; }
/* La rotation se fait sur la classe .faq-icon */

/* ==================== Section Contact ==================== */
.contact-info p { margin-bottom: 2rem; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.contact-item .icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}
.contact-socials {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}
.contact-socials a {
    color: var(--text-color);
    transition: var(--transition);
}
.contact-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}
.contact-socials a .icon {
    width: 30px;
    height: 30px;
}
.contact-map iframe {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--card-bg);
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}
.footer-logo {
    height: 45px;
    margin-bottom: 1rem;
}
.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a {
    color: var(--text-color);
    transition: var(--transition);
}
.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.newsletter-form { display: flex; }
.newsletter-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background-color: var(--bg-color);
    color: var(--text-color);
    outline: none;
}
.newsletter-form button {
    padding: 0 1rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    border: 2px solid var(--primary-color);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    display: flex; /* Pour centrer le SVG */
    justify-content: center;
    align-items: center;
}
.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* ==================== Pop-ups & Modals (CORRIGÉ POUR LE RESPONSIVE) ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 90%;
    width: 500px;
    transform: scale(0.9);
    transition: transform var(--transition);
    /* FIX RESPONSIVE CLÉ : Empêche le débordement vertical et ajoute le défilement */
    max-height: 90vh; 
    overflow-y: auto;
}
.modal-overlay.visible .modal-content { transform: scale(1); }
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
}
.modal-close:hover { color: var(--primary-color); }

/* Newsletter Popup */
.newsletter-popup { text-align: center; }
.newsletter-icon {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.newsletter-popup h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.newsletter-popup p { margin-bottom: 1.5rem; }

/* Service Modal */
.service-modal #modal-service-img {
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    /* Ajout des règles pour le background-image appliqué par JS */
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
}
.service-modal h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.service-modal p { margin-bottom: 1.5rem; }
.service-modal ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}
.service-modal ul li { margin-bottom: 0.5rem; }

/* Bulle WhatsApp */
.whatsapp-bubble {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 99;
    transform: scale(0);
    transition: transform 0.4s ease;
}
.whatsapp-bubble.visible { transform: scale(1); }
.whatsapp-bubble a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}
.whatsapp-bubble a:hover { transform: scale(1.1); }
.whatsapp-bubble a .icon {
    width: 30px;
    height: 30px;
    stroke: #fff;
}

/* ==================== Animations au Scroll ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
    .container { max-width: 960px; }
}
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .hero-title { font-size: 3.5rem; }
    .process-line { display: none; }
    .vision-image {
        display: flex;
        justify-content: center;
    }
    .vision-img-placeholder { height: 500px; }
    .footer .grid-3 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: var(--card-bg);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease;
        z-index: 101;
    }
    .nav-menu.show-menu { right: 0; }
    .nav-list {
        flex-direction: column;
        gap: 2.5rem;
    }
    .nav-link { font-size: 1.2rem; }
    .nav-toggle {
        display: block;
        z-index: 102;
    }
    .nav-toggle[data-icon="x"] {
        position: fixed;
        right: 1.5rem;
    }
    .grid-3 { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-counters {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 3rem;
    }
    .counter-value { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .contact .grid-2 { gap: 3rem; }
    .modal-content {
        width: 90%;
        padding: 2rem 1.5rem;
    }
    .vision-img-placeholder { height: 400px; }
}
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero { min-height: 80vh; }
    .testimonial-slide { padding: 1rem 0; }
    .carousel-btn { display: none; }
    .whatsapp-bubble {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
    .whatsapp-bubble a .icon {
        width: 24px;
        height: 24px;
    }
}