/* --- STYLE ULTIMATE : VERSION STABLE & DÉZOOMÉE (FINAL) --- */

:root {
    --primary-blue: #0f172a; /* Bleu Nuit très profond (Style Tesla/Apple) */
    --accent-gold: #d4af37;  /* Vrai Or Métallique */
    --gold-light: #f9f5e6;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8; /* Lecture plus aérée (Luxe) */
    overflow-x: hidden;
    display: flex; flex-direction: column; min-height: 100vh;
}

h1, h2, h3 { 
    font-family: 'Montserrat', sans-serif; 
    color: var(--primary-blue); 
    letter-spacing: -0.03em; /* Lettrage serré très moderne */
}

a { text-decoration: none; color: inherit; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
img { display: block; max-width: 100%; height: auto; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 25px; width: 100%; }

/* --- HEADER FIXE, OPAQUE ET STABLE (CORRIGÉ POUR LA STABILITÉ) --- */
header {
    /* CORRECTION : Rétabli en STICKY pour la stabilité */
    position: sticky; 
    top: 0; left: 0; right: 0;
    padding: 20px 0;
    z-index: 1001; /* Z-INDEX augmenté */
    transition: all 0.4s ease; 
    background: var(--primary-blue) !important; /* Couleur Solide Garantie */
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Règle .scrolled conservée mais désormais inactive */
header.scrolled {
    background: var(--primary-blue); 
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    backdrop-filter: none;
}

.header-content { display: flex; justify-content: space-between; align-items: center; max-width: 1280px; margin: 0 auto; padding: 0 25px; }

.logo { 
    color: #fff; font-weight: 900; font-size: 1.6rem; 
    text-transform: uppercase; letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav ul { display: flex; gap: 40px; list-style: none; }
nav ul li a { 
    color: rgba(255, 255, 255, 0.9); font-weight: 600; font-size: 0.9rem; 
    text-transform: uppercase; letter-spacing: 1px; padding-bottom: 5px;
}
/* Soulignement animé */
nav ul li a::after { content: ''; display: block; width: 0; height: 2px; background: var(--accent-gold); transition: width 0.3s; margin-top: 3px; }
nav ul li a:hover::after, nav ul li a.active::after { width: 100%; }
nav ul li a:hover { color: var(--accent-gold); text-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* --- HERO SECTION CINÉMATIQUE (TAILLES AJUSTÉES) --- */
.hero {
    position: relative;
    height: 90vh; /* Ajusté */
    display: flex; align-items: center; justify-content: center; text-align: center;
    background-color: var(--primary-blue);
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=1920&auto=format&fit=crop');
    background-size: cover; background-position: center; background-attachment: fixed; /* Effet Parallaxe */
    color: #fff;
    padding: 0 20px;
    margin-top: 0; /* SUPPRESSION DE LA MARGE NÉGATIVE RISQUÉE */
}

.hero-content { max-width: 900px; animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hero h1 { 
    font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.hero p { 
    font-size: 1.5rem; margin-bottom: 50px; color: rgba(255,255,255,0.9); font-weight: 300; max-width: 700px; margin-left: auto; margin-right: auto;
}

/* --- BOUTONS HIGH-TECH --- */
.btn {
    display: inline-block; padding: 18px 45px; border-radius: 4px;
    font-weight: 700; font-size: 1rem; cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
    background: var(--accent-gold); color: #fff; border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative; overflow: hidden; z-index: 1;
}
.btn::before { content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%; background: #fff; z-index: -1; transition: width 0.3s ease; }
.btn:hover::before { width: 100%; }
.btn:hover { color: var(--primary-blue); box-shadow: var(--shadow-glow); }

/* --- CONTENU & GRILLES --- */
.content-section { background: var(--white); padding: 100px 0; }
.content-section:first-of-type { padding-top: 100px !important; }

.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: 3rem; margin-bottom: 15px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }

.grid-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 40px; }

.text-block h2 { font-size: 2.5rem; margin-bottom: 30px; }
.text-block p { margin-bottom: 20px; color: var(--text-light); font-size: 1.1rem; }
.text-block ul { margin-bottom: 40px; }
.text-block li { margin-bottom: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }

.image-block { position: relative; }
.image-block img { border-radius: 4px; box-shadow: var(--shadow-card); }
.image-block::after { content: ''; position: absolute; bottom: -20px; right: -20px; width: 100px; height: 100px; background: var(--accent-gold); z-index: -1; opacity: 0.2; }

/* CARDS PREMIUM */
.card-pro, .service-card {
    background: var(--white); border-radius: 8px; overflow: hidden;
    box-shadow: var(--shadow-card); transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    height: 100%; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.03);
}
.card-pro:hover, .service-card:hover { transform: translateY(-15px); box-shadow: 0 30px 60px rgba(0,0,0,0.1); }

.card-img { height: 260px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.card-pro:hover .card-img img { transform: scale(1.1); }
.card-body { padding: 40px; }
.card-body h3 { margin-bottom: 15px; font-size: 1.4rem; }
.card-body p { color: var(--text-light); }

/* Icônes Services */
.service-card { padding: 50px 40px; }
.icon-box {
    width: 70px; height: 70px; background: var(--primary-blue); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin-bottom: 30px;
    color: var(--accent-gold);
}
.icon-box svg { width: 35px; height: 35px; fill: currentColor; }

/* Formulaire Contact "Luxe" */
.form-wrapper { max-width: 800px; margin: 0 auto; background: #fff; padding: 60px; border-radius: 8px; box-shadow: var(--shadow-card); }
.form-group label { display: block; font-weight: 700; margin-bottom: 10px; color: var(--primary-blue); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.form-control { width: 100%; padding: 18px; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 1rem; background: #f8fafc; transition: all 0.3s; }
.form-control:focus { border-color: var(--accent-gold); background: #fff; box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1); outline: none; }

/* Footer */
footer { background: var(--primary-blue); color: #fff; padding: 80px 0 40px; text-align: center; margin-top: auto; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .header-content { flex-direction: column; gap: 15px; }
    .hero { margin-top: 0; height: auto; padding: 100px 20px; }
    .hero h1 { font-size: 2.5rem; }
    .grid-2-cols { grid-template-columns: 1fr; }
}

/* Animations */
.fade-in-section { opacity: 0; transform: translateY(30px); transition: all 1s ease; }
.fade-in-section.visible { opacity: 1; transform: translateY(0); }

.floating-btn {
    position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px;
    background: var(--accent-gold); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 30px;
    box-shadow: var(--shadow-glow); z-index: 9999; display: none;
    animation: pulse 2s infinite;
}
@media (max-width: 768px) { .floating-btn { display: flex; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }

/* --- AJOUT CHIRURGICAL : STYLES LIGHTBOX --- */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.9); 
    cursor: zoom-out; 
    transition: opacity 0.3s ease;
    opacity: 0;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none; 
}

/* --- AJOUT : STYLE CHATBOT INTELLIGENT --- */

/* Le widget de chat */
.chat-widget {
    position: fixed;
    bottom: 100px; /* Au-dessus du bouton appel */
    right: 25px;
    width: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 9998; /* Sous le bouton flottant */
    overflow: hidden;
    display: none; /* Caché par défaut */
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
    animation: slideUpChat 0.3s ease-out;
    font-family: 'Lato', sans-serif;
}

/* En-tête du chat */
.chat-header {
    background: var(--primary-blue);
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.chat-header h4 { margin: 0; font-size: 1rem; font-weight: 700; color: #fff; }
.chat-header span { font-size: 0.8rem; opacity: 0.8; font-weight: 400; }
.close-chat { cursor: pointer; font-size: 1.2rem; transition: opacity 0.2s; }
.close-chat:hover { opacity: 0.7; }

/* Zone des messages */
.chat-messages {
    height: 320px;
    padding: 15px;
    overflow-y: auto;
    background: #f4f7f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Bulles de message */
.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-msg {
    background: #fff;
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user-msg {
    background: var(--accent-gold);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Zone de saisie */
.chat-input-area {
    padding: 12px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}
.chat-input:focus { border-color: var(--accent-gold); }

.send-btn {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    font-size: 1rem;
}
.send-btn:hover { transform: scale(1.1); }

/* Bouton d'ouverture du chat (Bulle) */
.chat-toggle-btn {
    position: fixed;
    bottom: 105px; /* Positionné au-dessus du bouton téléphone */
    right: 30px;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--primary-blue);
}
.chat-toggle-btn:hover { transform: scale(1.1); }

/* Animation d'apparition du chat */
@keyframes slideUpChat { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Responsive Mobile pour le chat */
@media (max-width: 480px) {
    .chat-widget { 
        width: 92%; 
        right: 4%; 
        bottom: 100px; 
        left: 4%;
    }
    .chat-toggle-btn { 
        bottom: 100px; 
        right: 20px;
    }
}
/* --- AJOUT STYLE CHATBOT ÉLITE (BOUTONS) --- */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    animation: fadeIn 0.5s;
}

.chat-option-btn {
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    font-family: 'Lato', sans-serif;
}

.chat-option-btn:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Indicateur "En train d'écrire..." */
.typing-indicator {
    font-size: 0.8rem;
    color: #888;
    margin-left: 15px;
    margin-bottom: 5px;
    font-style: italic;
    display: none; /* Caché par défaut */
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- AJOUT : STYLE DU SLIDER AVANT/APRÈS --- */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Largeur max pour que ce soit beau */
    height: 450px; /* Hauteur fixe pour le cadre */
    margin: 0 auto 50px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.img-background, .img-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit tout le cadre */
}

/* L'image du dessus (Avant) qui va être coupée */
.img-foreground {
    width: 50%; /* Commence à la moitié */
    border-right: 3px solid var(--accent-gold); /* La ligne de séparation */
    z-index: 2;
}

/* Le bouton rond (Curseur) */
.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    border-radius: 50%;
    z-index: 10;
    cursor: ew-resize; /* Curseur flèche gauche-droite */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    color: white;
    font-size: 20px;
    pointer-events: none; /* Le clic passe à travers vers l'input */
}

/* L'input invisible qui permet de glisser */
.slider-range {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 20;
}

/* Labels Avant / Après */
.label-img {
    position: absolute;
    top: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 5;
}
.label-before { left: 20px; }
.label-after { right: 20px; }

/* --- EFFET MACHINE À ÉCRIRE (TYPEWRITER) --- */
.txt-rotate {
    color: var(--accent-gold); /* Le texte qui change sera DORÉ */
    border-right: 0.08em solid #fff; /* Le curseur */
    padding-right: 5px;
    animation: blink-caret 0.75s step-end infinite;
}

/* Animation du curseur qui clignote */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-gold); }
}

/* On grossit un peu le titre pour l'impact */
.hero h1 {
    min-height: 1.2em; /* Empêche le texte de sauter quand il change */
}

/* --- AJOUT "EFFET WOW" : PRELOADER & ANIMATIONS --- */

/* 1. Écran de Chargement de Luxe */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--primary-blue);
    z-index: 99999; /* Au-dessus de TOUT */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: pulseText 2s infinite;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulseText { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

/* Classe pour cacher le loader */
.loaded {
    opacity: 0;
    visibility: hidden;
}

/* 2. Animation "Ken Burns" (Zoom lent sur l'accueil) */
/* Modification légère de la classe .hero existante pour permettre l'animation */
.hero {
    overflow: hidden; /* Important pour ne pas que l'image dépasse */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* On reprend ton image de fond ici */
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%), url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: -1; /* Derrière le texte */
    animation: kenBurns 20s infinite alternate; /* Zoom lent aller-retour */
}

/* L'animation de zoom lent */
@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}
/* --- STYLE TEXTE ANIMÉ (MACHINE À ÉCRIRE) --- */
.txt-rotate {
    color: var(--accent-gold);
    border-right: 0.08em solid #fff;
    animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-gold); }
}
/* --- SECTION CHIFFRES CLÉS (ANIMÉS) --- */
.stats-section {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}
/* --- STYLE FAQ (ACCORDÉON) --- */
.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}
.faq-question {
    background: var(--white);
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-blue);
    transition: 0.3s;
}
.faq-question:hover { color: var(--accent-gold); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    background: #fff;
    color: var(--text-light);
}
/* Petite flèche */
.faq-question::after { content: '+'; font-size: 1.5rem; }
.faq-item.active .faq-question::after { content: '-'; }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 20px; }
/* --- SECTION PROCESSUS (COMMENT ÇA MARCHE) --- */
.process-step {
    text-align: center;
    position: relative;
    padding: 20px;
    transition: transform 0.3s ease;
}
.process-step:hover {
    transform: translateY(-5px);
}
.step-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.15); /* Or très pâle en fond */
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    line-height: 1;
}
.step-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    position: relative;
    z-index: 2;
    margin-top: 20px;
    margin-bottom: 15px;
    background: #fff;
    width: 80px; height: 80px;
    line-height: 80px;
    border-radius: 50%;
    box-shadow: var(--shadow-card);
    margin-left: auto; margin-right: auto;
}
.step-title {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    position: relative; z-index: 2;
}
.step-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    position: relative; z-index: 2;
}
/* --- STYLE DU LOGO (AJOUT) --- */
.logo {
    display: flex;
    align-items: center; /* Centre l'image et le texte verticalement */
    gap: 10px; /* Espace entre l'image et le texte */
}

.logo-img {
    height: 45px; /* Hauteur parfaite pour le menu */
    width: auto;  /* Largeur automatique pour ne pas déformer */
    border-radius: 4px; /* Coins légèrement arrondis */
    background-color: white; /* Petit fond blanc si ton logo est transparent */
    padding: 2px; /* Petite marge interne */
}