/* assets/css/style.css - VERSION COMPLÈTE ET CORRIGÉE AVEC EN-TÊTE VISIBLE */

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #34495e;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --dark-color: #1a252f;
    --light-color: #ecf0f1;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --text-color: #34495e;
    --transition: all 0.3s ease;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 80px;
    height: 80px;
    border: 5px solid #ecf0f1;
    border-top-color: #2c3e50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navigation - CORRIGÉE : Fond visible dès le départ */
#mainNav {
    background: #2c3e50 !important;  /* Fond bleu foncé permanent */
    transition: all 0.3s ease;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Au scroll, un peu plus compact */
#mainNav.navbar-scrolled {
    padding: 8px 0;
    background: #2c3e50 !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

/* Style de la marque */
.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: white !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand .brand-text {
    color: white;
    margin-left: 10px;
    font-weight: 700;
}

/* Liens de navigation */
.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #3498db !important;
    transform: translateY(-2px);
}

/* Menu mobile */
@media (max-width: 991px) {
    #mainNav {
        background: #2c3e50 !important;
        padding: 10px 0;
    }
    
    .navbar-collapse {
        background: #2c3e50;
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
    }
    
    .nav-link {
        padding: 10px 0;
        text-align: center;
    }
    
    .nav-link::after {
        bottom: 0;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px; /* Pour compenser l'en-tête fixe */
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: #3498db;
    transform: translateY(-50%) scale(1.1);
}

/* Sections */
section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
}

.title-divider {
    width: 80px;
    height: 3px;
    background: #3498db;
    margin: 20px auto 0;
    position: relative;
}

.title-divider::before,
.title-divider::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #3498db;
    border-radius: 50%;
    top: -3.5px;
}

.title-divider::before {
    left: -15px;
}

.title-divider::after {
    right: -15px;
}

/* CORRECTION POUR LE TIRET BLEU SUR MOBILE (PARTIE ÉQUIPE ET AUTRES) */
.title-divider-left {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Version responsive pour le title-divider */
@media (max-width: 768px) {
    /* Par défaut, centrer tous les title-divider */
    .section-header .title-divider {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Exception pour ceux qui doivent rester à gauche (comme dans team-intro) */
    .team-intro .section-header .title-divider,
    .title-divider-left {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}

/* Service Cards */
.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2c3e50, #3498db);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-icon i {
    font-size: 45px;
    color: white;
}

.service-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.service-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    color: #2c3e50;
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* About Section */
.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #3498db;
    color: white;
    padding: 20px 25px;
    border-radius: 15px;
    text-align: center;
    min-width: 130px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.experience-badge span {
    font-size: 42px;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.experience-badge p {
    margin: 5px 0 0;
    font-size: 14px;
    font-weight: 500;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.about-stats {
    margin-top: 30px;
}

.stat-box {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
}

.stat-box:hover {
    background: #3498db;
    color: white;
    transform: translateY(-5px);
}

.stat-box h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #2c3e50;
}

.stat-box:hover h3,
.stat-box:hover p {
    color: white;
}

.stat-box p {
    margin: 0;
    color: #666;
}

/* Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-links .btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: white;
    color: #2c3e50;
    transition: var(--transition);
}

.project-links .btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-3px) rotate(360deg);
}

.project-info {
    padding: 20px;
    background: white;
}

.project-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.project-info p {
    color: #3498db;
    margin: 0;
    font-weight: 500;
}

/* Counter Section */
.counter-section {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    position: relative;
    overflow: hidden;
}

.counter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

.counter-box {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.counter-box:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

.counter-box i {
    font-size: 55px;
    margin-bottom: 20px;
}

.counter-box h3 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.counter-box p {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    bottom: -15px;
    left: 20px;
    background: #3498db;
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.news-date .day {
    font-size: 24px;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.news-date .month {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: var(--transition);
}

.news-content h3 a:hover {
    color: #3498db;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: #2c3e50;
}

.read-more i {
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.testimonial-content {
    position: relative;
    margin-bottom: 25px;
}

.quote-icon {
    font-size: 55px;
    color: #3498db;
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: -10px;
}

.testimonial-content p {
    position: relative;
    z-index: 1;
    font-style: italic;
    margin: 0;
    line-height: 1.8;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.author-image {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 600;
}

.author-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.rating i {
    color: #f39c12;
    font-size: 14px;
    margin-right: 2px;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Buttons */
.btn {
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background: #2c3e50;
    border-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-light {
    background: white;
    color: #2c3e50;
    border: none;
}

.btn-light:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-outline-primary {
    color: #3498db;
    border-color: #3498db;
}

.btn-outline-primary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #1a252f;
    color: rgba(255,255,255,0.8);
    padding: 60px 0 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: #3498db;
    transform: translateY(-3px) rotate(360deg);
    color: white;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #3498db;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: #3498db;
    padding-left: 5px;
    transform: translateX(5px);
}

.footer-links i {
    margin-right: 10px;
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 991px) {
    #mainNav {
        background: #2c3e50 !important;
        padding: 10px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .counter-box h3 {
        font-size: 36px;
    }
    
    .hero-content {
        padding-top: 60px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .experience-badge {
        position: relative;
        margin-top: 20px;
        right: 0;
        display: inline-block;
    }
    
    .hero-content {
        padding: 0 20px;
        padding-top: 60px;
    }
}

/* Animations */
[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2c3e50;
    transform: translateY(-3px) scale(1.1);
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 120px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: #3498db;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: white;
}

/* Blocage du scroll horizontal pendant le chargement */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Classe pour bloquer le scroll pendant le preloader */
body.preloader-active {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Éviter les débordements sur tous les éléments */
.container, .container-fluid, .row, [class*="col-"] {
    overflow-x: hidden;
}

/* Correction pour le carrousel sur mobile */
.carousel,
.carousel-inner,
.carousel-item {
    overflow-x: hidden;
}