:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --primary: #ff6b00;
    --primary-glow: rgba(255, 107, 0, 0.4);
    --text-pure: #ffffff;
    --text-muted: #b3b3b3;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition-premium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-pure);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================================================
   STYLE SÉCURISÉ DE L'ÉCRAN DE CHARGEMENT (SITE LOADER)
   ========================================================================== */
.site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
}

/* Rond qui tourne (Loading) */
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 0, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

.loader-welcome {
    color: var(--text-pure);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   INTERFACES DESIGN VITRINE
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 107, 0, 0.1);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: var(--transition-premium);
}

.profile-img:hover { transform: scale(1.05) rotate(5deg); }

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.brand-name span { color: var(--primary); }

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-pure);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-premium);
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 8% 60px 8%;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-greeting {
    color: var(--primary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    max-width: 900px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 750px;
    margin-bottom: 40px;
}

.mission-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--primary);
    padding: 30px;
    border-radius: 4px 16px 16px 4px;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.mission-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

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

.service-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-premium);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 107, 0, 0.4);
    box-shadow: 0 15px 35px rgba(255, 107, 0, 0.1);
}

.service-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-premium);
}

.service-card:hover .service-img { transform: scale(1.1); }

.service-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.service-content { padding: 25px; }
.service-content h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-content p { color: var(--text-muted); font-size: 0.95rem; }

.skills-list-wrapper { margin-top: 60px; text-align: center; }
.skills-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 25px; }

.skill-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-premium);
}

.skill-badge:hover {
    background: rgba(255, 107, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

.contact-section {
    background: #0f0f0f;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 80px 5%;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 25px 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 220px;
    text-decoration: none;
    color: var(--text-pure);
    transition: var(--transition-premium);
}

.contact-item i { font-size: 2rem; color: var(--primary); }
.contact-item span { font-weight: 600; font-size: 1.1rem; }
.contact-item small { color: var(--text-muted); }

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.15);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 99;
    text-decoration: none;
    transition: var(--transition-premium);
}

.whatsapp-float:hover { transform: scale(1.1) rotate(15deg); }

/* ==========================================================================
   ASSISTANT IA GRAND PANNEAU
   ========================================================================== */
.ai-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.ai-trigger {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #ff8c00);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 25px var(--primary-glow);
    border: none;
    transition: var(--transition-premium);
}

.ai-trigger:hover { transform: scale(1.1); }

.ai-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-premium);
}
.ai-overlay.active { opacity: 1; visibility: visible; }

.ai-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.9);
    width: 85vw;
    max-width: 900px;
    height: 75vh;
    background: #111111;
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.ai-header {
    background: #181818;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 107, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-bot-info { display: flex; align-items: center; gap: 15px; }
.ai-status-dot { width: 10px; height: 10px; background: #00ff66; border-radius: 50%; box-shadow: 0 0 10px #00ff66; }

.ai-chat-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #0d0d0d;
}

.msg { max-width: 70%; padding: 14px 20px; border-radius: 16px; font-size: 1rem; }
.msg.bot { background: rgba(255, 255, 255, 0.04); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: linear-gradient(135deg, var(--primary), #ff8c00); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }

.ai-quick-replies { padding: 15px 30px; display: flex; gap: 12px; flex-wrap: wrap; background: #111111; }
.quick-reply-btn { background: rgba(255, 107, 0, 0.08); border: 1px solid rgba(255, 107, 0, 0.25); color: var(--primary); padding: 8px 18px; border-radius: 30px; cursor: pointer; font-weight: 600; transition: var(--transition-premium); }
.quick-reply-btn:hover { background: var(--primary); color: white; transform: translateY(-2px); }

footer {
    text-align: center;
    padding: 30px 5%;
    background-color: #0a0a0a; /* Même couleur que le fond du site */
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ai-input { flex: 1; background: #0a0a0a; border: 1px solid rgba(255,255,255,0.08); padding: 15px 25px; border-radius: 30px; color: white; outline: none; }
.ai-input:focus { border-color: var(--primary); }
.ai-send-btn { background: var(--primary); border: none; color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; }

/* Animations globalisées */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.3rem; }
    .ai-panel { width: 95vw; height: 85vh; }
}
