/* Variables et réinitialisation */
:root {
    --primary-color: #1c4785; /* Bleu foncé du logo */
    --secondary-color: #6299cb; /* Bleu clair du logo */
    --third-color: #8AB2D8; /* Bleu très clair du logo */
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #1c4785;
    --text-color: #333;
    --bg-color: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

body.dark-mode {
    --primary-color: #6299cb;
    --secondary-color: #1c4785;
    --accent-color: #e74c3c;
    --light-color: #2c3e50;
    --dark-color: #1a252f;
    --text-color: #ecf0f1;
    --bg-color: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 30px;
}

.section-description {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bg-light {
    background-color: var(--light-color);
}

/* Boutons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Modifications de la navbar */
.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-center {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.nav-center a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    margin: 0 1.5rem;
    position: relative;
    transition: var(--transition);
}

.nav-center a:hover, .nav-center a.active {
    color: var(--primary-color);
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-center a:hover::after, .nav-center a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    padding-top: 100px;
    transition: var(--transition);
}

.mobile-menu a {
    display: block;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.mobile-menu a:hover, .mobile-menu a.active {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Section Accueil */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(28, 71, 133, 0.9), rgba(98, 153, 203, 0.85)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding-top: 80px;
}
.hero-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Style amélioré pour les mots du slogan */
.hero h2.slogan {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.hero h2.slogan .highlight {
    position: relative;
    display: inline-block;
    padding: 0 10px;
    transition: var(--transition);
}

.hero h2.slogan .highlight:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fff;
}

.hero h2.slogan .innovation {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero h2.slogan .intelligence {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero h2.slogan .impact {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* À propos */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.vision-box {
    background-color: var(--light-color);
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    margin-top: 30px;
}

.vision-box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.image-placeholder {
    background-color: #e9ecef;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.image-placeholder i {
    font-size: 5rem;
    color: var(--primary-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Projets */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-card {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.project-image {
    flex: 1;
    min-height: 250px;
}

.project-content {
    flex: 2;
    padding: 30px;
}

.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Blog */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.blog-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-excerpt {
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.read-more:hover {
    color: #2980b9;
}

/* Contact */
.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.contact-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Media Queries pour Responsive */
@media (max-width: 992px) {
    .nav-center {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2.slogan {
        font-size: 1.8rem;
    }
    
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 30px;
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-image {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        margin-left: auto;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero h2.slogan {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .logo-img {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2.slogan {
        font-size: 1.3rem;
    }
    
    .hero {
        padding-top: 70px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-container {
        grid-template-columns: 1fr;
    }
}

/* Styles pour les notifications et le chargement */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    max-width: 350px;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    border-left: 4px solid #2ecc71;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.notification-content p {
    margin: 0;
    padding-right: 15px;
}

.close-notification {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 16px;
}

/* Styles pour le bouton de mode sombre */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.dark-mode-toggle i {
    font-size: 1.2rem;
}

/* Style pour les champs de formulaire en erreur */
.form-group input.error, .form-group textarea.error {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}


/* Styles spécifiques pour la section contact */
.contact-section {
    display: flex;
    min-height: 90vh;
    background-color: #f5f5f5;
}

.contact-left {
    flex: 1;
    background-color: var(--primary-color);
    color: white;
    padding: 80px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-left h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.contact-left p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-info {
    margin-top: 40px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: white;
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-details li i {
    font-size: 1.5rem;
    margin-right: 15px;
}

.contact-right {
    flex: 1;
    background-color: white;
    padding: 80px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-container {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(28, 71, 133, 0.2);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn i {
    margin-left: 10px;
}

.submit-btn:hover {
    background-color: #14355e;
    transform: translateY(-2px);
}

/* Responsive pour la section contact */
@media (max-width: 992px) {
    .contact-section {
        flex-direction: column;
    }
    
    .contact-left, .contact-right {
        padding: 60px 30px;
    }
}

@media (max-width: 576px) {
    .contact-left h2 {
        font-size: 2.2rem;
    }
    
    .contact-left, .contact-right {
        padding: 40px 20px;
    }
    
    .form-control {
        padding: 12px;
    }
    
    .submit-btn {
        padding: 12px 20px;
    }
}