/* === VARIABLES CYBER ÉLÉGANT === */
:root {
    --noir: #000000;
    --jaune: #FFEA00;
    --violet: #8B5CF6;
    --bleu: #0066FF;
    --blanc: #ffffff;
    --cyan: #00D4FF;
}

/* === POLICES CYBER === */
body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--noir);
    color: var(--blanc);
    line-height: 1.6;
    overflow-x: hidden;
}

.cyber-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.neon-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === NAVIGATION CYBER AMÉLIORÉE === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.98);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid var(--violet);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

/* EFFET DE RESPIRATION SUR LE LOGO */
.logo-img {
    height: 80px !important;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px var(--cyan));
    animation: logo-breath 3s ease-in-out infinite;
}

@keyframes logo-breath {
    0%, 100% {
        filter: drop-shadow(0 0 8px var(--cyan));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 15px var(--cyan)) drop-shadow(0 0 25px var(--violet));
        transform: scale(1.05);
    }
}

.logo-img:hover {
    animation: none;
    filter: drop-shadow(0 0 20px var(--cyan)) drop-shadow(0 0 30px var(--violet));
    transform: scale(1.1);
}

/* === MENU HAMBURGER POUR MOBILE === */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--cyan);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-menu a {
    color: var(--blanc);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--cyan);
    text-shadow: 
        0 0 10px var(--cyan),
        0 0 20px var(--cyan),
        0 0 30px var(--violet);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.nav-menu a:hover::after {
    width: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--cyan));
    box-shadow: 0 0 10px var(--cyan);
}

/* === HERO SECTION AVEC FOND NOIR UNIFIÉ === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: var(--noir);
    position: relative;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

/* LOGO 2X PLUS GRAND AVEC OPTIMISATION IMAGE */
.main-logo {
    max-width: 700px !important;
    width: 90%;
    height: auto;
    margin-bottom: 3rem;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* === ADAGE NEON AMÉLIORÉ === */
.slogan {
    font-size: 2.2rem !important;
    margin-bottom: 4rem;
    color: var(--blanc);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 10px var(--cyan),
        0 0 20px var(--cyan),
        0 0 30px var(--violet),
        0 0 40px var(--violet);
    animation: neon-pulse 2s ease-in-out infinite alternate;
    line-height: 1.3;
}

@keyframes neon-pulse {
    from {
        text-shadow: 
            0 0 10px var(--cyan),
            0 0 20px var(--cyan),
            0 0 30px var(--violet);
    }
    to {
        text-shadow: 
            0 0 15px var(--cyan),
            0 0 25px var(--cyan),
            0 0 40px var(--violet),
            0 0 50px var(--violet);
    }
}

.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--violet), var(--bleu));
    color: var(--blanc);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.phone-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.8),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

/* === SECTIONS GÉNÉRALES === */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--bleu));
}

/* === APPROCHE PÉDAGOGIQUE FUTURISTE === */
.approche {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,212,255,0.03) 100%);
}

/* GRILLE APPROCHE CENTRÉE - 2x2 */
.cartes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.carte {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,212,255,0.02) 100%);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0,212,255,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.carte::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.1), transparent);
    transition: left 0.6s ease;
}

.carte:hover::before {
    left: 100%;
}

.carte:hover {
    transform: translateY(-8px);
    border-color: var(--cyan);
    box-shadow: 
        0 15px 40px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.carte i {
    font-size: 3.5rem;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--cyan);
}

/* === TITRES DES CARTES APPROCHE === */
.carte-title {
    color: var(--blanc);
    margin-bottom: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carte p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* === SERVICES CYBER === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(139,92,246,0.05) 100%);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(139,92,246,0.1);
    transition: all 0.4s ease;
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--violet), var(--bleu));
    transition: width 0.4s ease;
}

.service-card:hover::after {
    width: 80%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--violet);
    box-shadow: 
        0 15px 40px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--violet);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.service-card h3 {
    color: var(--blanc);
    margin-bottom: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
}

.service-card p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* === NOUVELLE SECTION TRAVAUX RÉALISÉS === */
.travaux {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(139,92,246,0.05) 100%);
}

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

.travaux-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 2px solid rgba(0,212,255,0.2);
    transition: all 0.4s ease;
    background: rgba(255,255,255,0.05);
}

.travaux-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.travaux-item:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 
        0 20px 40px rgba(0, 212, 255, 0.3),
        0 0 30px rgba(139, 92, 246, 0.2);
}

.travaux-item:hover img {
    transform: scale(1.1);
}

.travaux-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,212,255,0.1), rgba(139,92,246,0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.travaux-item:hover::before {
    opacity: 1;
}

/* === ZONE D'INTERVENTION === */
.zone {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(139,92,246,0.03) 100%);
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.villes h3 {
    color: var(--cyan);
    margin-bottom: 2.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
}

.villes ul {
    list-style: none;
}

.villes li {
    padding: 1rem 0;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    padding-left: 2rem;
}

.villes li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--violet);
    font-weight: bold;
}

/* === CARTE INTERACTIVE OPENSTREETMAP === */
.map-interactive-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,212,255,0.02) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0,212,255,0.2);
}

.interactive-map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(0,212,255,0.3);
}

/* Style personnalisé pour Leaflet */
.leaflet-container {
    background: #000 !important;
    font-family: 'Rajdhani', sans-serif;
}

.leaflet-popup-content {
    color: #000;
    font-family: 'Rajdhani', sans-serif;
}

.leaflet-control-zoom a {
    background: rgba(0,0,0,0.8) !important;
    color: var(--cyan) !important;
    border: 1px solid var(--cyan) !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(0,212,255,0.2) !important;
}

.map-note {
    text-align: center;
    margin-top: 1rem;
    color: var(--cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

/* === SECTION MENTIONS LÉGALES === */
.mentions {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.95) 100%);
    border-top: 1px solid rgba(0,212,255,0.2);
}

.mentions-content {
    max-width: 800px;
    margin: 0 auto;
}

.mention-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.mention-section h3 {
    color: var(--cyan);
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
}

.mention-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

.mention-section a {
    color: var(--cyan);
    text-decoration: none;
}

.mention-section a:hover {
    text-decoration: underline;
}

/* === CONTACT FUTURISTE === */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.3rem;
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--cyan);
    transform: translateY(-3px);
}

.contact-item i {
    color: var(--cyan);
    font-size: 1.8rem;
    text-shadow: 0 0 10px var(--cyan);
}

.contact-item a {
    color: var(--blanc);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--cyan);
}

/* === FOOTER === */
.footer {
    text-align: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(0,212,255,0.2);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.footer p {
    margin: 0.5rem 0;
    color: rgba(255,255,255,0.7);
}

.footer a {
    color: var(--cyan);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* =============================== */
/* === RESPONSIVE AMÉLIORÉ === */
/* =============================== */

/* 📱 SMARTPHONES (≤ 768px) */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--violet);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }
    
    .main-logo {
        max-width: 400px !important;
        width: 95%;
    }
    
    .logo-img {
        height: 50px !important;
    }
    
    .slogan {
        font-size: 1.4rem !important;
        letter-spacing: 2px;
        line-height: 1.4;
    }
    
    .phone-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    section {
        padding: 4rem 1rem;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .map-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    /* GRILLE APPROCHE MOBILE */
    .cartes-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .services-grid,
    .travaux-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .carte,
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .carte i,
    .service-card i {
        font-size: 2.5rem;
    }
    
    .mention-section {
        padding: 1.5rem;
    }
    
    .map-cyber-content {
        height: 300px;
    }
}

/* 📟 TABLETTES (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .main-logo {
        max-width: 550px !important;
    }
    
    .slogan {
        font-size: 1.8rem !important;
    }
    
    section {
        padding: 5rem 1.5rem;
    }
    
    h2 {
        font-size: 2.4rem;
    }
    
    /* GRILLE APPROCHE TABLETTE */
    .cartes-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 800px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .travaux-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .map-container {
        gap: 3rem;
    }
    
    .contact-info {
        gap: 2rem;
    }
}

/* 🖥️ GRANDES TABLETTES (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    .main-logo {
        max-width: 600px !important;
    }
    
    section {
        padding: 5rem 2rem;
    }
    
    /* GRILLE APPROCHE DESKTOP */
    .cartes-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        max-width: 800px;
    }
    
    .travaux-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 🖥️ TRÈS GRANDS ÉCRANS (≥ 1201px) */
@media (min-width: 1201px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    .main-logo {
        max-width: 700px !important;
    }
    
    /* GRILLE APPROCHE DESKTOP */
    .cartes-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        max-width: 800px;
    }
    
    .travaux-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}