/* ==========================================================================
   CHARTE GRAPHIQUE UNIFIÉE & DESIGN SYSTEM HUD (ASSIST INFORMATIQUE)
   ========================================================================== */
:root {
    --blue-primary: #0052FF;
    --blue-dark: #0038B8;
    --cyan-accent: #00D2FF;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --border-blue: rgba(0, 82, 255, 0.22);
    --glow-cyan: rgba(0, 210, 255, 0.35);
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

#webgl-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    #webgl-bg { display: none; }
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* NAVBAR FIXE */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--border-blue);
    z-index: 1000;
    padding: 16px 0;
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { display: flex; align-items: center; gap: 12px; }
.logo-symbol { color: var(--blue-primary); display: flex; align-items: center; }
.brand-name { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 800; letter-spacing: 1.5px; color: var(--text-dark); }
.brand-name span { color: var(--blue-primary); }

.main-nav { display: flex; gap: 28px; }
.nav-link {
    font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-dark);
    position: relative; transition: color 0.25s;
}
.nav-link:hover, .nav-link.active { color: var(--blue-primary); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: -6px; left: 0;
    width: 100%; height: 2px; background: linear-gradient(90deg, var(--blue-primary), var(--cyan-accent));
}

/* BOUTONS CUT-CORNER HUD */
.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px;
    font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; border: none; cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.btn-primary { background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark)); color: var(--bg-white); box-shadow: 0 4px 20px rgba(0, 82, 255, 0.25); }
.btn-primary:hover { background: linear-gradient(135deg, var(--cyan-accent), var(--blue-primary)); transform: translateY(-3px); box-shadow: 0 0 25px var(--glow-cyan); }
.btn-secondary { background: rgba(255, 255, 255, 0.85); color: var(--blue-primary); border: 1px solid var(--blue-primary); }
.btn-call { background: rgba(0, 82, 255, 0.06); color: var(--blue-primary); border: 1px solid var(--border-blue); }
.btn-full { width: 100%; justify-content: center; }

/* SECTIONS STYLES COMMUNS */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: var(--font-heading); font-size: 2.6rem; letter-spacing: 2px; color: var(--text-dark); }
.section-divider { width: 70px; height: 3px; background: linear-gradient(90deg, var(--blue-primary), var(--cyan-accent)); margin: 12px auto 0; }
.sub-text { font-size: 0.95rem; color: var(--text-muted); }

/* HERO */
.hero-section { padding: 90px 0 70px; }
.hero-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.tech-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--border-blue); padding: 8px 18px; font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; color: var(--blue-primary); margin-bottom: 24px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.pulse-dot { width: 9px; height: 9px; background-color: var(--cyan-accent); border-radius: 50%; box-shadow: 0 0 10px var(--cyan-accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.35); } }
.hero-text h1 { font-family: var(--font-heading); font-size: 3.4rem; line-height: 1.05; font-weight: 800; color: var(--text-dark); margin-bottom: 20px; }
.accent-dot { color: var(--blue-primary); }
.hero-description { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 38px; }
.hero-buttons { display: flex; gap: 18px; }

.hero-hud-card {
    position: relative;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border: 2px solid var(--blue-primary);
    padding: 50px 35px;
    box-shadow: 0 20px 50px rgba(0, 82, 255, 0.12);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.hud-corner { position: absolute; width: 16px; height: 16px; border-color: var(--cyan-accent); border-style: solid; }
.top-left { top: -2px; left: -2px; border-width: 4px 0 0 4px; }
.top-right { top: -2px; right: -2px; border-width: 4px 4px 0 0; }
.bottom-left { bottom: -2px; left: -2px; border-width: 0 0 4px 4px; }
.bottom-right { bottom: -2px; right: -2px; border-width: 0 4px 4px 0; }

.hud-card-body { text-align: center; }
.hud-card-body h2 { font-family: var(--font-heading); font-size: 2rem; color: var(--text-dark); margin-bottom: 6px; letter-spacing: 1px; }
.hud-tagline { font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; color: var(--blue-primary); letter-spacing: 1.5px; margin-bottom: 24px; }
.hud-location { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 1px solid var(--border-blue); border-radius: 20px; font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; color: var(--blue-primary); background: rgba(0, 82, 255, 0.04); }
.hud-icon-wrapper { margin-bottom: 20px; color: var(--blue-primary); }

/* SERVICES */
.services-section { padding: 90px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 36px; }
.service-hud-card {
    background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(16px);
    border: 1px solid var(--border-blue); padding: 40px 32px; position: relative;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.service-hud-card:hover { transform: translateY(-8px); border-color: var(--blue-primary); box-shadow: 0 15px 35px rgba(0, 82, 255, 0.15); }
.service-icon { color: var(--blue-primary); margin-bottom: 20px; }

.service-duration-note {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 6px 10px;
    border-radius: 4px;
    margin-top: 16px;
    display: inline-block;
    border: 1px solid var(--border-blue);
}

.service-price-tag {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-blue);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-raw {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blue-primary);
}

.price-type-badge {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 82, 255, 0.08);
    color: var(--blue-primary);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-blue);
}

.price-tax {
    font-size: 0.85rem;
    color: #00A852;
    background: rgba(0, 230, 118, 0.12);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #00E676;
    display: inline-block;
}

/* MODULE UNIFIÉ : COCKPIT ZONE & SIMULATEUR */
.simulator-section { padding: 80px 0; background: rgba(255, 255, 255, 0.6); border-top: 1px solid var(--border-blue); border-bottom: 1px solid var(--border-blue); }

.cockpit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.map-hud-frame {
    position: relative;
    background: #FFFFFF;
    border: 2px solid var(--blue-primary);
    padding: 12px;
    box-shadow: 0 15px 40px rgba(0, 82, 255, 0.12);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

#map { height: 480px; width: 100%; border: 1px solid var(--border-blue); z-index: 1; }

#map .leaflet-tile-container {
    filter: contrast(105%) brightness(98%);
}

.tarifs-legend {
    display: flex; justify-content: space-between; gap: 10px; margin-top: 10px;
    padding: 8px 12px; background: var(--bg-light); border: 1px solid var(--border-blue);
    font-size: 0.85rem; font-weight: 600;
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.badge-color { width: 14px; height: 14px; border-radius: 3px; }
.bg-z1 { background: #0052FF; }
.bg-z2 { background: #00D2FF; }

.sim-card {
    background: #FFFFFF; border: 1px solid var(--border-blue); padding: 32px;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.sim-card h3 { font-family: var(--font-heading); font-size: 1.6rem; }

.client-type-selector { display: flex; gap: 20px; margin-top: 15px; font-family: var(--font-heading); font-weight: 700; }
.client-type-selector label { cursor: pointer; }

.sim-options { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.sim-option-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border: 1px solid var(--border-blue); background: var(--bg-light);
    cursor: pointer; transition: all 0.25s ease;
}
.sim-option-item:hover { border-color: var(--blue-primary); background: rgba(0, 82, 255, 0.05); }
.sim-option-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue-primary); }

.location-group { margin-top: 20px; }
.calc-input-group { display: flex; gap: 10px; margin-top: 8px; }
.calc-input-group input { flex: 1; padding: 10px 12px; border: 1px solid var(--border-blue); outline: none; font-family: var(--font-body); font-size: 0.95rem; }

.sim-result-box {
    background: var(--bg-light); border: 2px solid var(--blue-primary); padding: 24px;
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.totals-breakdown { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.price-badge { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; color: var(--blue-primary); margin: 6px 0; }
.tax-deduction-badge {
    background: rgba(0, 230, 118, 0.12); border: 1px solid #00E676; color: #00A852;
    padding: 10px 14px; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; margin-bottom: 16px;
}

/* CAS CLIENTS & AVIS */
.cases-section { padding: 80px 0; background: rgba(255, 255, 255, 0.5); border-top: 1px solid var(--border-blue); border-bottom: 1px solid var(--border-blue); }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.case-card {
    background: #FFFFFF; border: 1px solid var(--border-blue); padding: 28px;
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.rating-stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.review-author {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--blue-primary);
    font-size: 0.95rem;
}

/* CONTACT */
.contact-section { padding: 90px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card, .contact-form-card {
    background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(16px);
    border: 1px solid var(--border-blue); padding: 40px;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.contact-info-card h3, .contact-form-card h3 { font-family: var(--font-heading); font-size: 1.7rem; color: var(--text-dark); margin-bottom: 24px; }
.contact-item { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.item-icon { width: 44px; height: 44px; background: rgba(0, 82, 255, 0.08); color: var(--blue-primary); display: flex; align-items: center; justify-content: center; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.contact-item .label { display: block; font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
.contact-item .value { font-weight: 600; font-size: 1.1rem; }

/* FOOTER */
.site-footer { background: var(--text-dark); color: rgba(255, 255, 255, 0.85); padding: 32px 0; border-top: 2px solid var(--blue-primary); font-size: 0.95rem; }
.footer-layout { display: flex; justify-content: space-between; align-items: center; }
.footer-contact-info { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.siret-text { font-family: var(--font-heading); color: var(--cyan-accent); font-size: 1.05rem; font-weight: 700; }

@media (max-width: 900px) {
    .hero-layout, .contact-grid, .cockpit-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .hero-text h1 { font-size: 2.5rem; }
    #map { height: 320px; }
}