/* Variables de couleurs - Design Hi-Tech optimisé */
:root {
    --primary-color: #00a8ff;
    --secondary-color: #ff6b35;
    --accent-color: #9c27b0;
    --formation-color: #ba68c8;
    --dark-color: #1a1a2e;
    --light-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #00a8ff 0%, #0097e6 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #ee5a24 100%);
    --gradient-formation: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --tech-glow: 0 0 20px rgba(0, 168, 255, 0.3);
    --formation-glow: 0 0 20px rgba(156, 39, 176, 0.3);
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /* Montserrat pour les titres, Open Sans pour le texte : Combo très pro */
    font-family: 'Open Sans', sans-serif; 
    line-height: 1.6;
    color: var(--light-color);
    background: var(--gradient-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, .btn, nav a {
    font-family: 'Montserrat', sans-serif; /* Plus moderne et impactant */
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

/* Services Section - CORRECTION PRINCIPALE */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 280px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 168, 255, 0.3);
    border-color: rgba(0, 168, 255, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: inline-block;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

/* Carte Formations - STYLES SPÉCIFIQUES */
.formation-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.formation-card::before {
    background: var(--gradient-formation);
}

.formation-card .service-icon {
    color: var(--formation-color);
}

.formation-card:hover .service-icon {
    color: #e1bee7;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

.formation-card:hover {
    box-shadow: 0 15px 40px rgba(0, 168, 255, 0.3);
    border-color: rgba(0, 168, 255, 0.3);
}

.formation-card h3 {
    color: var(--light-color);
    margin: 15px 0;
    font-size: 1.4rem;
}

.formation-card p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

/* Titres de section */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gradient-secondary);
    margin: 15px auto;
    border-radius: 2px;
}

/* Header */
header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 168, 255, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 28px;
    margin-bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--primary-color);
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--light-color);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 3px;
}

nav ul li a:hover {
    color: var(--primary-color);
    background: rgba(0, 168, 255, 0.1);
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--light-color);
    background: none;
    border: none;
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--light-color);
    text-align: center;
    padding: 150px 0;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(26, 26, 46, 0.8) 0%,
        rgba(22, 33, 62, 0.7) 50%,
        rgba(0, 168, 255, 0.2) 100%
    );
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--light-color);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-secondary);
    color: var(--light-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--tech-glow);
}

.btn:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 168, 255, 0.5);
}

/* Clients Section */
.clients {
    background: var(--gradient-dark);
    position: relative;
}

.clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
}

.client-logo {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.3);
}

.client-logo h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.client-logo p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    padding-right: 20px;
}

.about-text h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.signature {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    background: var(--gradient-dark);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(0, 168, 255, 0.1);
    border-color: rgba(0, 168, 255, 0.3);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #ccc;
}

.form-group {
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: rgba(13, 13, 26, 0.95);
    color: var(--light-color);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(0, 168, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--light-color);
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    margin-top: 10px;
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.legal-info {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        border-top: 1px solid rgba(0, 168, 255, 0.2);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
        min-height: 250px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0;
        height: auto;
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .services-grid {
        gap: 15px;
    }
    
    .service-card {
        padding: 20px 15px;
        min-height: 220px;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}