/* --- CONFIGURATION DARK MODE --- */
:root {
    --primary-color: #2563eb;
    --accent-color: #f97316;
    --cta-orange: #ff5733; 
    --text-dark: #f3f4f6;   /* Texte clair pour fond sombre */
    --text-light: #94a3b8;  
    --white: #0c111d;       /* Fond des cartes (Sombre) */
    --light-bg: #060910;    /* Fond de page (Noir profond) */
    --faq-bg: #080b14; 
    --border-color: rgba(255, 255, 255, 0.1);
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    background-color: var(--light-bg);
    color: var(--text-dark);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    scroll-behavior: smooth; 
}

body { 
    background-color: var(--light-bg); 
    color: var(--text-dark); 
    overflow-x: hidden; 
    line-height: 1.5;
}

/* --- NAVBAR --- */
.navbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 8%; 
    background: #060910; 
    position: sticky; 
    top: 0;
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); 
    height: 80px;
}

.logo img { height: 65px; width: auto; }

.nav-links { display: flex; list-style: none; gap: 25px; }

.nav-links a { 
    text-decoration: none; 
    color: var(--text-light); 
    font-weight: 600; 
    font-size: 0.95rem; 
    transition: 0.3s;
}

.nav-links a:hover { color: var(--primary-color); }

.btn-connexion { 
    background: var(--primary-color); 
    color: white; 
    padding: 10px 22px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.85rem; 
    transition: 0.3s;
}

.btn-connexion:hover { background: #1d4ed8; }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); }

/* --- HERO SECTION --- */
.hero {
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    padding: 0 5% 120px 5%; 
    min-height: 85vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://cdn.pixabay.com/photo/2015/08/13/01/00/keyboard-886462_1280.jpg');
    background-size: cover; 
    background-position: center; 
    color: #ffffff;
}

.hero::after {
    content: ""; 
    position: absolute; 
    bottom: -1px; 
    left: 50%; 
    width: 150%; 
    height: 80px;
    background-color: var(--light-bg); 
    border-radius: 50% 50% 0 0 / 100% 100% 0 0; 
    transform: translateX(-50%); 
    z-index: 1;
}

.hero-content { max-width: 900px; z-index: 2; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; margin-bottom: 20px; font-weight: 800; }
.hero-content h1 span { color: #60a5fa; }

/* --- BARRE DE RECHERCHE --- */
.search-container {
    display: flex; 
    background: #161e2d; 
    padding: 6px; 
    border-radius: 50px; 
    margin: 30px auto 40px auto;
    max-width: 650px; 
    width: 100%; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.search-container input { 
    border: none; 
    padding: 12px 25px; 
    flex: 1; 
    outline: none; 
    font-size: 1rem; 
    border-radius: 50px; 
    color: white;
    background: transparent;
}

.btn-primary-search { 
    background: var(--accent-color); 
    color: white; 
    border: none; 
    padding: 0 30px; 
    border-radius: 30px; 
    cursor: pointer; 
    font-weight: 700; 
    transition: 0.3s; 
}

.btn-primary-search:hover { background: var(--cta-orange); transform: scale(1.05); }

/* --- SECTIONS & GRIDS --- */
.section-padding { padding: 80px 8%; }
.text-center { text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; margin-top: 40px; }

.card { 
    padding: 40px; 
    background: var(--white); 
    border-radius: 20px; 
    transition: 0.3s; 
    border: 1px solid var(--border-color);
}

.card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4); 
}

.card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; display: block; }

/* --- FAQ --- */
.faq-section { background-color: var(--faq-bg); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1200px; margin: 40px auto 0; }

.faq-card { 
    background: var(--white); 
    border-radius: 12px; 
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.faq-card:hover { border-color: var(--primary-color); }
.faq-card details { padding: 20px; }
.faq-card summary { list-style: none; display: flex; justify-content: space-between; font-weight: 700; cursor: pointer; color: #ffffff; }

/* --- BANNIÈRE CTA --- */
.cta-container { padding: 60px 8%; }
.cta-banner {
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.3) 100%), 
                url('https://cdn.pixabay.com/photo/2020/10/21/18/07/laptop-5673901_1280.jpg');
    background-size: cover; background-position: center; border-radius: 25px;
    padding: 80px 60px; color: white;
}
.btn-cta-orange { 
    background: var(--accent-color); color: white; padding: 15px 35px; border-radius: 50px; 
    text-decoration: none; font-weight: bold; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s; 
}
.btn-cta-orange:hover { transform: scale(1.05); background: #e66712; }

/* --- SERVICES --- */
.services-circular-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; max-width: 1200px; margin: 0 auto; }

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-item:hover { transform: translateY(-12px); border-color: var(--primary-color); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); }

.circle-img {
    width: 200px; height: 200px; border-radius: 50%; overflow: hidden; margin-bottom: 20px;
    border: 6px solid #1a2333; transition: 0.3s ease; box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.circle-img img { width: 100%; height: 100%; object-fit: cover; }
.service-item:hover .circle-img { transform: scale(1.05); border-color: var(--primary-color); }
.service-item h3 { font-size: 1.25rem; margin-bottom: 15px; color: #ffffff; }
.service-item p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.5; min-height: 75px; }

.btn-service { background: var(--primary-color); color: white; padding: 10px 25px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.85rem; transition: 0.3s; }
.btn-service:hover { background: var(--accent-color); transform: translateY(-2px); }

/* --- QUI SOMMES-NOUS --- */
.about-flex-container { display: flex; align-items: center; gap: 80px; max-width: 1200px; margin: 0 auto; }
.about-visual { flex: 1; position: relative; display: flex; align-items: center; }
.main-img-wrapper img { width: 350px; height: 450px; object-fit: cover; border-radius: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.stats-mini-grid { display: flex; flex-direction: column; gap: 20px; margin-left: -40px; }

.stat-bubble {
    background: var(--white); padding: 15px 25px; border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); display: flex; flex-direction: column;
    align-items: center; min-width: 140px; border: 1px solid var(--border-color);
}

.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--primary-color); }
.stat-bubble i { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 5px; }
.stat-label { font-size: 0.8rem; font-weight: 600; color: var(--text-light); text-align: center; }

.about-content { flex: 1.2; }
.about-title { font-size: 2.5rem; margin-bottom: 25px; position: relative; display: inline-block; color: #ffffff; }
.about-title::after { content: ""; position: absolute; bottom: -5px; left: 0; width: 60px; height: 4px; background: var(--accent-color); }
.about-description p { font-size: 1.15rem; line-height: 1.8; color: var(--text-dark); margin-bottom: 20px; }

/* --- FORMULAIRE DE CONTACT (CORRECTIONS TEXTES "CHELOUS") --- */
.pcr-unique-section { padding: 80px 20px; background-color: var(--light-bg); display: flex; justify-content: center; }
.pcr-unique-wrapper { display: flex; width: 100%; max-width: 1300px; background: var(--white); border-radius: 30px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); }
.pcr-unique-visual-side { flex: 0 0 38%; position: relative; background-image: url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?q=80&w=2070'); background-size: cover; background-position: center; min-height: 600px; }
.pcr-unique-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(37, 99, 235, 0.8) 100%); padding: 60px 45px; color: white; display: flex; align-items: center; }
.pcr-unique-visual-content h2 { font-size: 2.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.pcr-unique-badge { background: rgba(255, 255, 255, 0.2); padding: 8px 16px; border-radius: 50px; font-size: 0.9rem; display: inline-block; margin-bottom: 40px; backdrop-filter: blur(5px); }

.pcr-unique-form-side { flex: 1; padding: 70px 80px; }

/* Correction du Titre "Remplissez le formulaire" */
.pcr-unique-form-side h3 {
    color: #ffffff !important; 
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

/* Correction du Texte "On vous répondra en un temps record" */
.pcr-unique-form-side p {
    color: var(--text-light) !important;
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.pcr-unique-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.pcr-unique-input, .pcr-unique-textarea {
    width: 100% !important;
    background-color: #161e2d !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 18px 22px !important;
    font-size: 1rem !important;
    color: #ffffff !important;
    outline: none;
    transition: 0.3s;
}

.pcr-unique-input::placeholder, .pcr-unique-textarea::placeholder { color: #64748b !important; }
.pcr-unique-input:focus, .pcr-unique-textarea:focus { border-color: var(--primary-color) !important; background-color: #1e293b !important; }

.pcr-unique-btn { background-color: var(--primary-color); color: white; border: none; padding: 18px 40px; border-radius: 50px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; transition: 0.3s; }
.pcr-unique-btn:hover { background-color: #1d4ed8; transform: translateY(-2px); }

/* --- EFFETS FESTIFS NOEL --- */
.snowflake {
    position: fixed;
    top: -10px;
    color: #ffffff;
    font-size: 2em;
    opacity: 0.8;
    z-index: 999;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    10% {
        transform: translateY(10vh) translateX(2px) rotate(10deg);
    }
    20% {
        transform: translateY(20vh) translateX(-2px) rotate(-10deg);
    }
    30% {
        transform: translateY(30vh) translateX(2px) rotate(10deg);
    }
    40% {
        transform: translateY(40vh) translateX(-2px) rotate(-10deg);
    }
    50% {
        transform: translateY(50vh) translateX(2px) rotate(10deg);
    }
    60% {
        transform: translateY(60vh) translateX(-2px) rotate(-10deg);
    }
    70% {
        transform: translateY(70vh) translateX(2px) rotate(10deg);
    }
    80% {
        transform: translateY(80vh) translateX(-2px) rotate(-10deg);
    }
    90% {
        transform: translateY(90vh) translateX(2px) rotate(10deg);
    }
    100% {
        transform: translateY(100vh) translateX(-2px) rotate(-10deg);
        opacity: 0;
    }
}


/* --- EFFET NEIGE --- */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.snowflake {
    position: fixed;
    top: -10px;
    color: #ffffff;
    font-size: 1.5em;
    opacity: 0.8;
    z-index: 100;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    animation: snowfall linear forwards;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    10% {
        transform: translateY(10vh) translateX(10px) rotate(20deg);
    }
    20% {
        transform: translateY(20vh) translateX(-10px) rotate(-20deg);
    }
    30% {
        transform: translateY(30vh) translateX(15px) rotate(30deg);
    }
    40% {
        transform: translateY(40vh) translateX(-15px) rotate(-30deg);
    }
    50% {
        transform: translateY(50vh) translateX(20px) rotate(40deg);
    }
    60% {
        transform: translateY(60vh) translateX(-20px) rotate(-40deg);
    }
    70% {
        transform: translateY(70vh) translateX(15px) rotate(30deg);
    }
    80% {
        transform: translateY(80vh) translateX(-10px) rotate(-20deg);
    }
    90% {
        transform: translateY(90vh) translateX(10px) rotate(20deg);
    }
    100% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
}

/* --- POPUP BONNE ANNÉE --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid #f97316;
    border-radius: 15px;
    padding: 40px 35px;
    max-width: 450px;
    width: 90%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.2);
}

.popup-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 1.8em;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #f97316;
}

.popup-content h2 {
    font-size: 1.8em;
    color: #fbbf24;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.popup-content p {
    font-size: 1em;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: center;
}

.popup-footer {
    color: #f97316 !important;
    font-weight: 600;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(249, 115, 22, 0.3);
}

/* --- FOOTER --- */
.main-footer { background-color: #000000; color: #ffffff; padding: 80px 8% 20px 8%; font-size: 0.9rem; border-top: 2px solid #1a1a1a; }
.footer-container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-column h3 { font-size: 1.1rem; margin-bottom: 25px; font-weight: 700; color: #ffffff; position: relative; }
.footer-column h3::after { content: ""; position: absolute; bottom: -8px; left: 0; width: 30px; height: 2px; background: var(--accent-color); }
.footer-logo img { height: 80px; width: auto; margin-bottom: 20px; }
.slogan { color: #a0a0a0; font-style: italic; line-height: 1.6; margin-bottom: 25px; max-width: 280px; }
.social-icons { display: flex; gap: 15px; font-size: 1.3rem; }
.social-icons a { color: #ffffff; transition: 0.3s; }
.social-icons a:hover { color: var(--accent-color); transform: translateY(-3px); }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: #a0a0a0; text-decoration: none; transition: 0.3s; }
.footer-column ul li a:hover { color: #ffffff; padding-left: 5px; }
.contact-details li { display: flex; align-items: center; gap: 12px; color: #a0a0a0; }
.newsletter-form { display: flex; background: #111; border: 1px solid #333; border-radius: 8px; overflow: hidden; padding: 4px; }
.newsletter-form input { background: transparent; border: none; padding: 10px 15px; color: white; flex: 1; outline: none; }
.newsletter-form button { background: linear-gradient(90deg, #ff7e5f, #f97316); border: none; color: white; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 700; }
.footer-bottom { border-top: 1px solid #222; padding-top: 30px; display: flex; justify-content: space-between; align-items: center; color: #666; font-size: 0.8rem; }

/* --- RESPONSIVE GENERAL --- */
@media (max-width: 1024px) {
    .navbar { padding: 0 5%; }
    .menu-toggle { display: block; }
    .nav-links { 
        display: none; 
        flex-direction: column; 
        position: fixed; 
        top: 80px; 
        left: 0; 
        width: 100%; 
        background: var(--white); 
        padding: 30px; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.3); 
        gap: 20px; 
        text-align: center;
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1rem; }
    .btn-connexion { display: none; }
    .search-container { flex-direction: column; background: transparent; box-shadow: none; gap: 10px; border: none; }
    .search-container input { background: #161e2d; border-radius: 10px; width: 100%; }
    .btn-primary-search { padding: 15px; border-radius: 10px; width: 100%; }
    .faq-grid, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .pcr-unique-wrapper { flex-direction: column; }
    .pcr-unique-visual-side { flex: 0 0 auto; min-height: 350px; }
    .pcr-unique-form-side { padding: 40px 20px; }
    .pcr-unique-grid { grid-template-columns: 1fr; }
    .pcr-unique-visual-content h2 { font-size: 2rem; }
}