/* --- CONFIGURATION GLOBALE --- */
:root {
    --primary: #1b263b;    /* Bleu nuit profond */
    --accent: #c5a044;     /* Or/Doré pour les accents */
    --accent-hover: #e0b853;
    --dark: #0d1b2a;       
    --white: #ffffff;
    --bg-light: #f8f9fa;   /* Gris très clair */
    --radius: 8px;         
    --radius-full: 50px;   
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Roboto, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- SPLASH SCREEN --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#splash-screen img {
    width: 180px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}

/* --- NAVIGATION MISE À JOUR (LOGO PLUS GRAND) --- */
header {
    background: var(--white);
    padding: 0.2rem 5%; /* Réduction du padding vertical pour laisser plus de place */
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 120px; /* On monte à 120px pour un impact visuel fort */
}

.logo img {
    height: 100px; /* L'image prend maintenant 100px de haut */
    width: auto;
    display: block;
    padding: 2px 0;
    transition: transform 0.3s ease;
}

/* Petit effet sympa : le logo grossit légèrement au survol */
.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--accent); }

/* --- GESTION DU BOUTON CONTACT (DOUBLON) --- */
.nav-links .mobile-only { display: none; }
.desktop-only { display: flex; }

.btn-contact {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(197, 160, 68, 0.3);
    border: none;
    cursor: pointer;
}

.btn-contact i {
    margin-right: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(197, 160, 68, 0.4);
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}

.btn-contact:hover i { transform: translateX(4px) translateY(-3px); }

/* --- ACTIONS & LANGUES --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-selector {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-selector span {
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-selector span.active {
    background: var(--accent);
    color: var(--white);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 75vh;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 60px 20px;
}

.hero-content {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.hero-content h1 span { color: var(--accent); }

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.primary-btn { background: var(--accent); color: var(--primary) !important; }
.secondary-btn { background: rgba(255, 255, 255, 0.1); color: var(--white) !important; border: 1px solid rgba(255, 255, 255, 0.3); }
.outline-btn { background: transparent; color: var(--white) !important; border: 1px solid rgba(255, 255, 255, 0.2); }

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    background: var(--white);
    color: var(--primary) !important;
}

/* --- BARRE DE RECHERCHE --- */
.search-bar-container { margin-top: 50px; padding: 0 20px; }

.search-bar {
    display: flex;
    background: var(--white);
    padding: 5px; 
    border-radius: var(--radius-full); 
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid var(--accent); 
    box-shadow: var(--shadow-md);
}

.search-bar input {
    border: none;
    padding: 10px 20px;
    flex: 1;
    outline: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
}

.search-bar button {
    background: var(--primary);
    color: var(--white); 
    border: none;
    padding: 10px 25px; 
    border-radius: var(--radius-full);
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

/* --- HISTORIQUE DE RECHERCHE --- */
.history-container {
    margin-top: 20px;
    text-align: center;
}

.history-container h5 {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.history-item {
    background: #f0f2f5;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
    color: #1b263b;
    border: 1px solid transparent;
}

.history-item:hover {
    background: #e0e4e8;
    border-color: #3498db;
}

.btn-clear {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
}

/* --- SECTIONS GRILLES --- */
.steps, .services { padding: 80px 5%; text-align: center; }

.underline {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.steps-container, .service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.step-card, .service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.step-card:hover, .service-card:hover { transform: translateY(-10px); }

.step-num {
    background: var(--primary);
    color: var(--accent);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-weight: 800;
    border: 2px solid var(--accent);
}

.icon-box { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }

/* --- CALCULATEUR & TARIFS --- */
.pricing-section { padding: 60px 5%; background: var(--bg-light); }

.pricing-display-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    flex-wrap: wrap;
}

.price-box {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(197, 160, 68, 0.2);
    transition: var(--transition);
}

.price-box:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.price-box i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.price-box h4 {
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-box .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.price-box .price span {
    color: var(--accent);
    font-size: 1.8rem;
    font-weight: 800;
}

.price-box small {
    color: #7f8c8d;
    display: block;
    margin-top: 5px;
}

.calculator-card {
    background: var(--white);
    width: 95%;
    max-width: 500px;
    margin: 0 auto;
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-top: 5px solid var(--accent);
}

.calc-form { display: flex; flex-direction: column; gap: 15px; }
.calc-form input, .calc-form select { 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: var(--radius); 
    outline: none; 
}

#btn-calc {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

#btn-calc:hover { background: var(--accent); color: var(--primary); }

/* --- SECTION CONTACT --- */
.contact-section { padding: 80px 5%; background: #f9f9f9; }

.contact-section .section-title {
    text-align: center;
    width: 100%;
    margin-bottom: 40px; 
}

.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    gap: 40px; 
    max-width: 1200px;
    margin: 40px auto 0; 
}

.info-card { 
    background: white; padding: 30px; border-radius: 15px; 
    box-shadow: var(--shadow-md); margin-bottom: 20px; text-align: center;
}
.info-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 15px; }
.info-card h4 { margin-bottom: 10px; color: var(--primary); }

.contact-form-container { 
    background: white; padding: 40px; border-radius: 15px; 
    box-shadow: var(--shadow-lg); 
}
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }

.btn-main {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-main:hover { background: var(--accent); color: var(--primary); }

.btn-contact-alt { 
    display: inline-block; margin-top: 10px; color: #25d366; font-weight: bold; text-decoration: none; 
}

/* --- FOOTER --- */
footer { background: var(--primary); padding: 40px; text-align: center; color: var(--white); }

/* --- MEDIA QUERIES (LOGOS BOOSTÉS AU MAXIMUM SUR MOBILE) --- */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-actions .desktop-only { display: none !important; }
    
    .navbar {
        height: 130px; /* Augmenté pour accueillir un logo géant */
    }

    .logo img {
        height: 110px; /* Le logo devient très imposant */
        padding: 0;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 130px; /* Aligné sur la nouvelle hauteur de navbar */
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 30px 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        gap: 20px;
    }
    .nav-links.active { display: flex; }
    .nav-links .mobile-only { display: block; width: 100%; margin-top: 15px; }
    .nav-links .btn-contact { width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    
    header {
        padding: 0.2rem 2%; /* Espace minimal sur les côtés pour laisser le logo respirer */
    }
}

@media (max-width: 600px) {
    .logo img {
        height: 100px; /* Taille massive même sur petit écran */
    }
    .navbar {
        height: 120px;
    }
    .nav-links {
        top: 120px;
    }

    .hero { padding: 40px 15px; }
    .hero-actions { flex-direction: column; padding: 0 20px; gap: 12px; }
    .btn-hero { width: 100%; justify-content: center; padding: 12px; font-size: 0.85rem; }
    .search-bar { flex-direction: column; border-radius: 15px; padding: 10px; }
    .search-bar button { width: 100%; margin-top: 10px; border-radius: 10px; }
}

/* Style du bouton flottant WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: white;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- AJOUT DU BOUTON BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 37px;
    background: var(--accent);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    bottom: 100px;
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-5px);
}