/*
Pour changer la couleur de fond des sections, changer "background: #xxxxxx;" par la couleur voulue dans la section correspondante.
Pour changer la couleur du texte, changer "color : #xxxxx" dans la section correspondante.
*/

/*
The fixed navbar will overlay your other content, unless you add padding to the <body>. 
Try out your own values or use our snippet below. 
Tip: By default, the navbar is 50px high.
*/
body {
    overflow-x: hidden; /* Empêche le défilement horizontal */
    font-family: 'Poppins', sans-serif; /* Police moderne et lisible */
    line-height: 1.6;
    color: #333; /* Couleur de texte par défaut */
    background: #f8f9fa; /* Fond doux et clair */
    padding-top: 70px; /* Espace pour la barre de navigation fixe */
    position: relative; /* Pour les effets de superposition */
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease; /* Transition douce pour la couleur du lien */
}

a:hover {
    text-decoration: underline;
}
/* Style du bouton "En découvrir plus" */
a.btn.btn-discover {
    background-color: white;
    color: #3498db;
    border: none;
    padding: 10px 20px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 30px;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.7);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

a.btn.btn-discover:hover {
    background-color: #3498db;
    color: white;
    box-shadow: 0 0 20px #3498db, 0 0 40px #3498db;
    transform: scale(1.05);
}

/* ==========================================================================
   3. NAVIGATION (NAVIGATION)
   ========================================================================== */

.navbar {
    transition: all 0.3s ease; /* Transition douce pour la barre de navigation */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre légère */
    background-color: #fff;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50 !important; /* Utilisation de !important pour surcharger Bootstrap */
}

.navbar-nav > li > a {
    color: #2c3e50 !important;
    padding: 10px 15px !important;
    margin: 0 5px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
    color: #fff !important;
    background-color: #3498db !important;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3); /* Ombre plus prononcée au survol */
}

.navbar-toggle {
    border: none !important;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background-color: transparent !important;
}



/* NAVIGATION */
#brand {
    font-size: 1.5em;
}

#navbar {
    font-family: 'Poppins', sans-serif;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0 30px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


nav.navbar.navbar-default.navbar-fixed-top {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(245,245,245,0.98) 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: all 0.4s ease;
}

nav.navbar.navbar-default.navbar-fixed-top.scrolled {
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(245,245,245,0.98) 100%);
}

nav.navbar.navbar-default.navbar-fixed-top.link-clicked {
    background: transparent;
    box-shadow: none;
}

.navbar-default .navbar-nav > li > a {
    color: #2c3e50;
    padding: 12px 20px;
    margin: 0 5px;
    font-weight: 500;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    position: relative;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #3498db;
    transform: translateY(-2px);
    text-shadow: none;
    background: rgba(52, 152, 219, 0.1);
}

.navbar-default .navbar-nav > li.active > a {
    color: #fff !important;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%) !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

.navbar-default .navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #3498db;
    transition: all 0.3s ease;
}

.navbar-default .navbar-nav > li > a:hover::after {
    width: 60%;
}

.navbar-default .navbar-nav > li > a:focus::after,
.navbar-default .navbar-nav > li.active > a::after {
    display: none;
}



@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}



.navbar-default .navbar-toggle {
    border: none;
    background: transparent !important;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #2c3e50;
    width: 25px;
    height: 3px;
    transition: all 0.3s ease;
}
.navbar-default .navbar-toggle:hover .icon-bar {
    background-color: #3498db;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: transparent;
}

#brand {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Apply these styles specifically to the S3C text */
#brand span {
    font-family: 'Montserrat', sans-serif; /* A professional, clean font */
    font-weight: 700; /* Bold weight */
    font-size: 1.4em; /* Slightly larger for emphasis */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2); /* Refined shadow */
    letter-spacing: 1px; /* Adjusted letter spacing */
    color: #3498db; /* Your primary color */
    animation: none; /* Remove existing glow animation for cleaner look */
    display: inline-block;
    transform-origin: bottom center;
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth color transition */
}

#brand:hover span {
    transform: rotate(-3deg) scale(1.05); /* Subtle tilt and scale on hover */
    color: #2c3e50; /* Change color on hover for emphasis */
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #3498db, 0 0 10px #3498db;
    }
    to {
        text-shadow: 0 0 10px #3498db, 0 0 15px #3498db;
    }
}

#brand img {
    height: 40px;
    transition: all 0.3s ease;
}
#brand:hover img {
    animation: logoPulse 1.5s ease infinite;
}

/* Animation du bouton menu mobile */
.navbar-default .navbar-toggle .icon-bar:nth-child(2) {
    transform: translateY(-3px);
}

.navbar-default .navbar-toggle .icon-bar:nth-child(4) {
    transform: translateY(3px);
}

.navbar-default .navbar-toggle.collapsed .icon-bar:nth-child(2) {
    transform: translateY(0);
}

.navbar-default .navbar-toggle.collapsed .icon-bar:nth-child(4) {
    transform: translateY(0);
}
/* Menu déroulant mobile */
.navbar-collapse.collapse.in {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
    padding: 15px;
}
/* Effet de transition pour les éléments du menu */
.navbar-nav > li {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.navbar-nav > li.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animation séquentielle des éléments du menu */
.navbar-nav > li:nth-child(1) { transition-delay: 0.1s; }
.navbar-nav > li:nth-child(2) { transition-delay: 0.2s; }
.navbar-nav > li:nth-child(3) { transition-delay: 0.3s; }
.navbar-nav > li:nth-child(4) { transition-delay: 0.4s; }
.navbar-nav > li:nth-child(5) { transition-delay: 0.5s; }
.navbar-nav > li:nth-child(6) { transition-delay: 0.6s; }


/* SECTION */
section {
    min-height: 600px;
    padding-top: 50px;
    padding: 50px 0;
    
}

/* SECTION PRINCIPALE */
#mainsection {
    padding-top: 100px 0;
    min-height:700px;
    position: relative;
    color: black;
    background-color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#mainsection::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 0;
}
.intro-message {
    text-align: left;
    padding-right: 20px;
    transform: translateX(-30%);
    
    
}

.intro-message h1 {
    font-family: 'Cinzel', serif;
    font-size: 6rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: #2c3e50;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
    animation: pulseIn 2s ease forwards, glowLoop 3s ease-in-out infinite;
    opacity: 0;
}

.intro-message .slogan {
    font-family: 'Cinzel', serif; /* Match h1 for cohesive typography */
    font-size: 2.8rem; /* Slightly larger for emphasis */
    font-weight: 700; /* Bolder for impact */
    color: transparent; /* For gradient text effect */
    background: linear-gradient(90deg, #3498db, #2c3e50, #3498db); /* Dynamic gradient */
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Subtle shadow for depth */
    animation: gradient 4s linear infinite, pulseSlogan 2s ease-in-out infinite; /* Gradient and pulse animations */
    transition: all 0.3s ease; /* Smooth hover transition */
    padding: 10px 20px; /* Padding for better spacing */
    display: inline-block; /* Ensure proper animation behavior */
}

.intro-message .slogan:hover {
    transform: scale(1.05); /* Subtle scale on hover */
    text-shadow: 0 0 15px rgba(52, 152, 219, 0.7), 0 2px 4px rgba(0,0,0,0.3); /* Enhanced glow on hover */
}

/* Keyframes for slogan animations */
@keyframes gradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes pulseSlogan {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Responsive adjustments for slogan */
@media (max-width: 768px) {
    .intro-message .slogan {
        font-size: 2rem; /* Adjusted for smaller screens */
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .intro-message .slogan {
        font-size: 1.6rem; /* Further adjustment for very small screens */
    }
}

@keyframes fadeInZoom {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes glowLoop {
    0% {
        text-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
    }
    50% {
        text-shadow: 0 0 20px #2c3e50, 0 0 30px #2c3e50;
    }
    100% {
        text-shadow: 0 0 10px #3498db, 0 0 20px #3498db;
    }
}



.intro-message h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.8rem; /* plus grand et plus lisible */
    font-weight: 400;
    color: #2c3e50;
    line-height: 1.8;
    letter-spacing: 0.5px;
    margin-bottom: 3rem;
    text-align: justify;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    animation: fadeInUpText 2s ease;
}

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


.intro-message::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(0,0,0,0.8) 1px, transparent 1px),
        radial-gradient(circle, rgba(0,0,0,0.5) 1px, transparent 1px),
        radial-gradient(circle, rgba(0,0,0,0.3) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: particles 20s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

.social-icon li {
    display: inline-block;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.social-icon li:nth-child(1) { animation-delay: 0.8s; }
.social-icon li:nth-child(2) { animation-delay: 1s; }
.social-icon li:nth-child(3) { animation-delay: 1.2s; }

.social-icon a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-icon a:hover {
    transform: translateY(-5px) scale(1.1);
    color: #3498db !important;
    text-shadow: 0 0 15px rgba(52, 152, 219, 0.7);
}

.intro-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, transparent, #3498db, transparent);
    margin: 2rem auto;
    width: 50%;
    position: relative;
    overflow: visible;
    animation: expand 1.5s ease;
}

.intro-divider::before,
.intro-divider::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 10px;
    height: 10px;
    background: #3498db;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.intro-divider::before {
    left: 0;
}

.intro-divider::after {
    right: 0;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #3498db, 0 0 20px #3498db, 0 0 30px #3498db, 0 0 40px #3498db;
    }
    to {
        text-shadow: 0 0 20px #3498db, 0 0 30px #3498db, 0 0 40px #3498db, 0 0 50px #3498db;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes particles {
    from {
        background-position: 0 0, 100px 100px, 200px 200px;
    }
    to {
        background-position: 100px 100px, 200px 200px, 300px 300px;
    }
}

@keyframes expand {
    from {
        width: 0;
    }
    to {
        width: 50%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

/* SECTION SERVICES */
#section1 {
    position: relative;
    color: black;
    background-color: white;
}

#section1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
}

.services-block {
    width: 100%;
    border: solid 2px rgba(33, 32, 32, 0.08);
    border-radius: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
    margin-right: 60px;
}

.icon-services {
    padding-top: 30px;
    color: #2c3e50;
}

/* SECTION CONTACT */
#contact {
    position: relative;
    color: white;
    background-color: black;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.contact-info {
    text-align: center;
    padding: 60px 0;
}

.contact-info address {
    margin: 20px 0;
    font-style: normal;
    line-height: 1.8;
}

.contact-info address strong {
    font-size: 1.2em;
    color: #3498db;
}

/* BAS DE PAGE : FOOTER */
#footer {
    margin-top: 20px;
    font-size: 1.3em;
    background: transparent;
    border-color: transparent;
}

/* Styles pour la section Missions */
.missions-section {
    position: relative;
    z-index: 1;
}

.missions-section .mission-item {
    width: 22%;
    margin: 1.5%;
    padding: 0;
    float: left;
    box-sizing: border-box;
}

.missions-section .mission-item:nth-child(4n+1) {
    clear: left;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: black;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 18px;
    color: #333;
    margin-bottom: 40px;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

.divider-line {
    width: 80px;
    height: 2px;
    background-color: #3498db;
    margin: 0 15px;
}

.divider-icon {
    color: #3498db;
    font-size: 20px;
}

/* Enhanced Styles for mission-card in Présentation Section */
.mission-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    width: 250px;
    height: 350px;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    color: black;
    overflow: hidden;
    position: relative;
    animation: cardFadeIn 1s ease forwards;
    opacity: 0;
}

.mission-card:nth-child(1) { animation-delay: 0.2s; }
.mission-card:nth-child(2) { animation-delay: 0.4s; }
.mission-card:nth-child(3) { animation-delay: 0.6s; }

.mission-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, rgba(52, 152, 219, 0.1), rgba(255, 255, 255, 0.9));
    border: 2px solid #3498db;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(52, 152, 219, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.mission-card:hover::before {
    opacity: 1;
}

.mission-icon {
    text-align: center;
    margin-bottom: 20px;
    color: #3498db;
    transition: all 0.3s ease;
}

.mission-card:hover .mission-icon {
    transform: scale(1.2) rotate(10deg);
    color: #2c3e50;
}

.mission-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: black;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.mission-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.mission-card:hover .mission-content h3::after {
    width: 80px;
    background: #2c3e50;
}

.mission-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.mission-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
    color: black;
    line-height: 1.4;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.mission-card:hover .mission-list li {
    transform: translateX(5px);
}

.mission-list .fa-check {
    color: #3498db;
    position: absolute;
    left: 0;
    top: 3px;
    animation: pulseCheck 1.5s ease-in-out infinite;
}

/* Animation for mission-card fade-in */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation for checkmark pulse */
@keyframes pulseCheck {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Styles pour la section Domaines d'activité */
#domaines {
    position: relative;
    color: black;
    background-color: white;
}

#domaines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
}

.domaines-section {
    position: relative;
    z-index: 1;
}

.domaine-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 300px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: black;
}

.domaine-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.2);
}

.domaine-icon {
    color: #3498db;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.domaine-card:hover .domaine-icon {
    transform: scale(1.1);
    color: #2c3e50;
}

.domaine-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: black;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.domaine-content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #3498db;
    transition: all 0.3s ease;
}

.domaine-card:hover .domaine-content h3:after {
    width: 80px;
    background: #2c3e50;
}

.domaine-content p {
    color: black;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.domaine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.9);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
    padding: 20px;
    border-radius: 10px;
}

.domaine-card:hover .domaine-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 20px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.overlay-content h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: black;
}

.overlay-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overlay-content ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    text-align: left;
}

.overlay-content ul li:before {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    top: 2px;
    color: black;
    font-size: 12px;
}

/* Styles pour la section Références */
/* Styles pour la section Références */
#references {
    position: relative;
    color: black;
    background-color: white;
}

#references::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
}

.references-section {
    position: relative;
    z-index: 1;
}

.references-filter {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.references-filter li {
    margin: 0 10px 10px;
}

.references-filter li a {
    background: rgba(255, 255, 255, 0.2);
    color: black;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.references-filter li.active a,
.references-filter li a:hover {
    background: #3498db;
    color: white;
}

.references-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 300px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: black;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.references-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.2);
}

.references-icon {
    color: #3498db;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.references-icon i {
    font-size: 2em !important; /* Plus petit que fa-3x */
    margin-bottom: 10px;
}


.references-card:hover .references-icon {
    transform: scale(1.1);
    color: #2c3e50;
}

.references-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: black;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.references-content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #3498db;
    transition: all 0.3s ease;
}

.references-card:hover .references-content h3:after {
    width: 80px;
    background: #2c3e50;
}

.references-content p {
    color: black;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.references-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.9);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
    padding: 20px;
    border-radius: 10px;
}

.references-card:hover .references-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Styles pour les images dans les cartes de références */
.references-card img {
    max-width: 80px; /* Ajustez cette valeur pour minimiser la taille de l'image */
    height: auto; /* Maintient le ratio de l'image */
    display: block; /* Permet d'appliquer les marges pour l'alignement */
    margin: 0 auto 0 0; /* Aligne l'image à gauche et centre verticalement */
    padding-bottom: 10px; /* Ajoute un petit espace en dessous de l'image si nécessaire */
}

/* Si vous avez des images directement dans les éléments de référence */
.reference-item img {
    max-width: 80px; /* Ajustez cette valeur pour minimiser la taille de l'image */
    height: auto; /* Maintient le ratio de l'image */
    display: block; /* Permet d'appliquer les marges pour l'alignement */
    margin: 0 auto 0 0; /* Aligne l'image à gauche et centre verticalement */
    padding-bottom: 10px;
}

/* Styles pour les conteneurs d'image dans la modale */
.reference-image-container {
    width: 80%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f2f2f2;
}

/* Styles pour les images spécifiques dans les références de la modale */
.reference-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Clearfix pour les conteneurs qui ont des éléments flottants */
.card-body::after {
    content: "";
    display: table;
    clear: both;
}



.overlay-content h4 {
    font-size: 20px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.overlay-content h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: black;
}

.overlay-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overlay-content ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    text-align: left;
    font-size: 14px;
}

.overlay-content ul li:before {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    top: 2px;
    color: black;
    font-size: 12px;
}

.references-item {
    animation: fadeIn 0.5s ease both;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .references-card {
        width: 100%;
        height: auto;
        flex: 0 1 100%;
        max-width: 400px;
        margin: 10px auto;
        transform: perspective(1000px) rotateY(0deg);
    }

    .references-card:hover {
        transform: perspective(1000px) rotateY(0deg) translateY(-5px) scale(1.02);
    }

    .references-filter li {
        margin: 0 5px 5px;
    }

    .references-filter a {
        padding: 6px 15px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .references-card {
        max-width: 100%;
        padding: 15px;
    }

    .references-content p {
        font-size: 12px;
    }

    .references-filter a {
        padding: 5px 10px;
        font-size: 11px;
    }

    .overlay-content ul li {
        font-size: 12px;
    }
}

.reference-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.reference-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #3498db;
}

.reference-item p {
    margin-bottom: 5px;
}



/* Styles pour la modale des références */
.modal-content {
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body strong {
    color: #3498db;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 15px 30px;
}



.rating {
    margin-top: 20px;
    color: #f1c40f;
    font-size: 18px;
}

/* Animation d'ouverture de la modale */
.modal.fade .modal-dialog {
    transform: translateY(50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.rating {
    color: #3498db;
    font-size: 14px;
}

.references-content {
    padding: 10px;
    color: black;
    flex-grow: 1;
    overflow-y: auto;
}

.references-content p {
    margin-bottom: 5px;
    font-size: 12px;
}

.references-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.9);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
    padding: 20px;
    border-radius: 10px;
}

.references-card:hover .references-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 16px;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 5px;
    text-align: center;
}

.overlay-content h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: white;
}

.overlay-content p {
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
}

.references-item {
    animation: fadeIn 0.5s ease both;
}

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

.mission-item {
    width: 50%;
    padding-left: 15px;
    padding-right: 15px;
    float: left;
    box-sizing: border-box;
}

.references-item {
    display: none;
}

.references-container {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.references-container.filtering {
    opacity: 0.5;
}

#image-slider {
    position: relative;
    width: 100%;
    max-height: 600px;
    margin: 0 auto;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    perspective: 1000px;
}

#image-slider .carousel-inner {
    width: 100%;
    height: 100%;
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 1s ease;
    backface-visibility: hidden;
}

#image-slider .item {
    height: 600px;
    text-align: center;
    overflow: hidden; 
    position: relative;
}

#image-slider img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: inline-block;
    transition: transform 1s ease;
    width: 100%;  /* Expand images to container */
    height: 100%; /* Expand images to container */
}


.carousel-caption {
    bottom: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.carousel-caption h3 {
    font-size: 1.5em;
    margin: 0;
    font-weight: 500;
    color: white;
}

@media (max-width: 768px) {
    .carousel-caption h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 576px) {
    .carousel-caption h3 {
        font-size: 1em;
    }
}



/* Animation 3D pour la transition */
#image-slider .item.next,
#image-slider .item.prev {
    position: absolute;
    top: 0;
    width: 100%;
}

#image-slider .item.next {
    left: 100%;
}

#image-slider .item.prev {
    left: -100%;
}

#image-slider .item.next.left,
#image-slider .item.prev.right,
#image-slider .item.active {
    left: 0;
}

/* Animation personnalisée */
#image-slider .item.active.left {
    transform: translateX(-100%) rotateY(10deg);
    opacity: 0.5;
}

#image-slider .item.active.right {
    transform: translateX(100%) rotateY(-10deg);
    opacity: 0.5;
}

#image-slider .item.next.left,
#image-slider .item.prev.right {
    transform: translateX(0) rotateY(0);
    opacity: 1;
}

/* Effet de lumière sur les images */
#image-slider .item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}




/* Modified transition effects */
#image-slider .item.active img {
    transform: scale(1.03); /* Reset scaling */
}
/* Fade effect (simple but effective) */
.carousel.fade .carousel-inner .item {
  opacity: 0;
  transition-property: opacity;
}

.carousel.fade .carousel-inner .item.active {
  opacity: 1;
}

.carousel.fade .carousel-inner .item.active.left,
.carousel.fade .carousel-inner .item.active.right {
  opacity: 0;
}

.carousel.fade .carousel-inner .item.next.left,
.carousel.fade .carousel-inner .item.prev.right {
  opacity: 1;
}

.carousel.fade .carousel-control {
  z-index: 2; /* Ensure controls are above fading content */
}

/* Specific animations (add more variations if needed) */
#image-slider .item.next.left {
    transform: translateX(100%);  /* Slides in from right */
    opacity: 0;
}


#image-slider .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(52, 152, 219, 0.8);
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
#image-slider:hover .carousel-control {
    opacity: 1;
}

#image-slider .carousel-control.left {
    left: 30px;
}

#image-slider .carousel-control.right {
    right: 30px;
}

#image-slider .carousel-control:hover {
    background: rgba(41, 128, 185, 0.9);
    transform: translateY(-50%) scale(1.1);
}

#image-slider .left {
    left: 10px;
}

#image-slider .right {
    right: 10px;
}

#image-slider .carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 15;
}


#image-slider .carousel-indicators li {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}


#image-slider .carousel-indicators li.active {
    background-color: white;
    transform: scale(1.2);
    border-color: #3498db;
}

/* Animation de transition alternative */
.carousel-fade .carousel-inner .item {
    opacity: 0;
    transition-property: opacity;
}

.carousel-fade .carousel-inner .item.active {
    opacity: 1;
}

.carousel-fade .carousel-inner .item.active.left,
.carousel-fade .carousel-inner .item.active.right {
    opacity: 0;
}

.carousel-fade .carousel-inner .item.next.left,
.carousel-fade .carousel-inner .item.prev.right {
    opacity: 1;
}

#mainsection {
    background-color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    list-style: none;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

.pagination .page-item {
    margin: 0 8px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

.pagination .page-link {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    padding: 0;
    color: #2c3e50;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.pagination .page-link:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #b0b0b0;
    border-color: #e0e0e0;
    background-color: #f5f5f5;
    cursor: not-allowed;
    box-shadow: none;
    transform: scale(1);
}

.pagination .page-item:not(.disabled) .page-link:hover i {
    transform: scale(1.2);
}

.references-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.references-filter li {
    margin: 0 15px;
}

.references-filter a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.references-filter li.active a {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.references-filter a:hover {
    color: #007bff;
}
/* Media Queries for Responsiveness */

@media (max-width: 768px) {

    #presentation .row:nth-child(2) {
      transform: translateX(0); /* Reset on mobile */
      
    }

    #mainsection {
    min-height: 700px; /* Augmentation de la hauteur */
    padding: 100px 0; /* Plus d'espace en haut et en bas */
}

    .intro-message {
        text-align: center;
        padding-right: 0;
        transform: translateX(0);
    }

    .intro-message h1 {
    font-size: 6rem; /* Augmentation de la taille du titre */
    margin-bottom: 3rem;
    line-height: 1.1;
}

    .intro-message h3 {
    font-size: 2.8rem; /* Augmentation de la taille du texte */
    line-height: 1.4;
}

    a.btn.btn-discover {
        font-size: 1.2em;
        padding: 8px 16px;
    }

    #image-slider {
        max-height: 800px;
    }

    #image-slider .item {
        height: 400px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .section-divider {
        margin-bottom: 40px;
    }

    .missions-section .mission-item {
        width: 100%;
        margin: 0;
        margin-bottom: 30px;
    }

    .domaine-card {
        height: auto;
    }

    .references-card {
        width: 100%;
        height: auto;
    }

    .references-filter {
        margin-bottom: 20px;
    }

    .references-filter li {
        margin: 0 5px 5px;
    }

    #contact .footer-col {
        margin-bottom: 30px;
    }

    #footer {
        font-size: 1em;
    }

    /* Adjust mission card size */
    .mission-card {
        width: 100%; /* Full width on mobile */
        height: auto; /* Adjust height */
        margin-left: 0;
        margin-right: 0;
    }
}

/* Additional Small Screen Adjustments (e.g., for very small phones) */
@media (max-width: 576px) {
    .intro-message h1 {
        font-size: 2.5rem;
    }

    .intro-message h3 {
        font-size: 1.7rem;
    }

    #image-slider {
        max-height: 300px;
    }

    #image-slider .item {
        height: 300px;
    }
}

/* Ajoutez ces styles à la fin du fichier */

/* Effets de vague animée pour les sections */
.section-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%233498db" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%233498db" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%233498db"/></svg>');
    background-size: cover;
    animation: waveAnimation 10s linear infinite;
    z-index: 2;
}

@keyframes waveAnimation {
    0% { background-position-x: 0; }
    100% { background-position-x: 1000px; }
}

/* Effet de parallaxe pour les sections */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
    opacity: 0.15;
}

/* Animation de flottement améliorée */
@keyframes floatEnhanced {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}



/* Effet de particules amélioré */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}



@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

/* Effet de hover sur les cartes amélioré */
.mission-card:hover, .domaine-card:hover, .references-card:hover {
    transform: translateY(-10px) scale(1.03) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

/* Animation d'entrée des sections */
.section-entrance {
    animation: sectionEntrance 1s ease-out both;
}

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

/* Effet de gradient animé pour les titres */
.gradient-text {
    background: linear-gradient(90deg, #3498db, #2c3e50, #3498db);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s linear infinite;
    
}



@keyframes gradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Effet de bordure animée */
.animated-border {
    position: relative;
}

.animated-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease-in-out;
}

.animated-border:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Effet de flou au scroll */
.blur-effect {
    transition: all 0.5s ease;
}

.blur-effect.blur {
    filter: blur(3px);
    opacity: 0.8;
}

/* Animation de rotation 3D */
@keyframes rotate3D {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg);
    }
}

.rotate-3d {
    animation: rotate3D 10s linear infinite;
}

/* Nouveaux styles pour le bouton "En découvrir plus" */
a.btn.btn-discover {
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

a.btn.btn-discover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
    z-index: -1;
}

a.btn.btn-discover:hover::before {
    left: 100%;
}

/* Animation de chargement */
.loading-animation {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading-animation div {
    position: absolute;
    border: 4px solid #3498db;
    opacity: 1;
    border-radius: 50%;
    animation: loading-animation 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.loading-animation div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes loading-animation {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

/* Effet de mosaïque animée */
.tile-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: repeat(20, 1fr);
    z-index: -1;
    opacity: 0.1;
}

.tile {
    background: #3498db;
    animation: tilePulse 4s ease infinite;
}

@keyframes tilePulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}

/* Style du bouton Consulter */
.btn-consulter {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-consulter:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
    color: white;
}

.btn-consulter:active {
    transform: translateY(1px);
}



/* Animation de pulsation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-consulter {
    animation: pulse 2s infinite;
}

/* Modifications existantes conservées, ajouts ci-dessous */

/* Particules animées */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}



@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}



/* Animation d'entrée des sections */
.section-entrance {
    opacity: 0;
    transform: translateY(50px);
    animation: sectionEntrance 1s ease-out forwards;
}

.section-entrance:nth-child(1) { animation-delay: 0.2s; }
.section-entrance:nth-child(2) { animation-delay: 0.4s; }
.section-entrance:nth-child(3) { animation-delay: 0.6s; }
.section-entrance:nth-child(4) { animation-delay: 0.8s; }
.section-entrance:nth-child(5) { animation-delay: 1s; }

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

/* Amélioration des cartes avec effet 3D */
.mission-card, .domaine-card, .references-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mission-card:hover, .domaine-card:hover, .references-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.03);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
}
.card-inner {
    transform: translateZ(30px);
}

/* Bouton Retour en haut */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 1000;
    padding: 15px;
}

.scroll-top.show {
    display: block;
}

/* Carrousel d'images */
#image-slider .carousel-inner .item {
    transition: opacity 0.6s ease-in-out;
}

#image-slider .carousel-inner .item.active {
    opacity: 1;
}

#image-slider .carousel-inner .item {
    opacity: 0;
}

/* Media Queries pour réactivité */
@media (max-width: 768px) {
    .mission-card, .domaine-card, .references-card {
        width: 100%;
        height: auto;
        transform: perspective(1000px) rotateY(0deg);
    }

    .mission-card:hover, .domaine-card:hover, .references-card:hover {
        transform: perspective(1000px) rotateY(0deg) translateY(-5px) scale(1.02);
    }

    #image-slider {
        max-height: 400px;
    }

    #image-slider .item {
        height: 400px;
    }
}

@media (max-width: 576px) {
    #image-slider {
        max-height: 300px;
    }

    #image-slider .item {
        height: 300px;
    }
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 2s ease, visibility 2s ease;
}

.preloader-inner {
    position: relative;
    width: 150px;
    height: 150px;
}

.preloader-circle {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: rotate 2s linear infinite;
}

.preloader-circle-1 {
    width: 100%;
    height: 100%;
    border-top-color: #3498db;
    border-bottom-color: #3498db;
}

.preloader-circle-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #2c3e50;
    border-bottom-color: #2c3e50;
    animation-delay: 0.2s;
}

.preloader-circle-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #3498db;
    border-bottom-color: #3498db;
    animation-delay: 0.4s;
}

.preloader-circle-4 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: #2c3e50;
    border-bottom-color: #2c3e50;
    animation-delay: 0.6s;
}

.preloader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    animation: pulse 1.5s ease infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(52, 152, 219, 0.1);
    z-index: 1000;
}

.scroll-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}


.animated-gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2c3e50, #3498db);
    background-size: 300% 300%;
    animation: gradientBG 15s ease infinite;
    z-index: -1;
    opacity: 0.1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.reveal-on-scroll:nth-child(5) { transition-delay: 0.5s; }

.glitch-effect {
    position: relative;
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-effect::before {
    color: #0ff;
    z-index: -1;
    animation: glitch 3s infinite;
}

.glitch-effect::after {
    color: #f0f;
    z-index: -2;
    animation: glitch 2s infinite reverse;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

.section-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3498db;
    z-index: 9998;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.section-transition.active {
    transform: scaleY(1);
    transform-origin: top;
}

.perspective-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.perspective-item {
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    transform: translateZ(0);
}

.perspective-item:hover {
    transform: rotateX(5deg) rotateY(5deg) translateZ(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}



.ambient-light {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.2) 0%, rgba(52, 152, 219, 0) 70%);
    filter: blur(30px);
    z-index: -1;
    animation: ambientMove 15s infinite alternate;
}

@keyframes ambientMove {
    0% { transform: translate(-20%, -20%); }
    25% { transform: translate(20%, -20%); }
    50% { transform: translate(20%, 20%); }
    75% { transform: translate(-20%, 20%); }
    100% { transform: translate(-20%, -20%); }
}

.color-transition {
    background: linear-gradient(270deg, #3498db, #2c3e50, #3498db);
    background-size: 600% 600%;
    animation: gradientTransition 15s ease infinite;
}

@keyframes gradientTransition {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Styles pour le sélecteur de langue */
.language-switcher {
    display: inline-block;
    margin-left: 20px;
}

.language-link {
    display: block;
    padding: 15px 5px !important;
    transition: all 0.3s ease;
}

.language-link img {
    width: 20px;
    height: auto;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.language-link:hover img {
    transform: scale(1.1);
}

.language-link.active {
    position: relative;
}

.language-link.active::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #3498db;
}

.navbar-default .navbar-nav > .language-switcher > a {
    color: #2c3e50;
    padding: 15px 5px;
}

.navbar-default .navbar-nav > .language-switcher > a:hover {
    background: transparent !important;
    color: #3498db;
}

/* Styles pour la nouvelle section Présentation */
.presentation-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background-color: #f9f9f9;
    z-index: 1;
}

.presentation-paragraph {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.presentation-paragraph::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #3498db, #2c3e50);
    transition: all 0.5s ease;
}

.presentation-paragraph:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.presentation-paragraph:hover::before {
    width: 10px;
}

.animated-text {
    font-size: 1.3em;
    line-height: 1.8;
    color: #333;
    position: relative;
    animation: textFocusIn 1s ease both;
}

@keyframes textFocusIn {
    0% {
        filter: blur(5px);
        opacity: 0;
    }
    100% {
        filter: blur(0);
        opacity: 1;
    }
}

.engagements-container {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.3);
    color: white;
    transform: perspective(1000px);
    transition: all 0.5s ease;
}

.engagements-container:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-10px);
    box-shadow: 0 25px 50px rgba(52, 152, 219, 0.4);
}

.engagements-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    display: inline-block;
}

.engagements-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

.engagements-container:hover .engagements-title::after {
    width: 100px;
}

.engagements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.engagement-item {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

.engagement-item:nth-child(1) { animation-delay: 0.4s; }
.engagement-item:nth-child(2) { animation-delay: 0.6s; }
.engagement-item:nth-child(3) { animation-delay: 0.8s; }
.engagement-item:nth-child(4) { animation-delay: 1s; }

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.engagement-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px) !important;
}

.engagement-icon {
    margin-right: 15px;
    font-size: 1.5em;
    color: #f1c40f;
    transition: all 0.3s ease;
}

.engagement-item:hover .engagement-icon {
    transform: scale(1.2) rotate(10deg);
    color: #fff;
}

/* Effets visuels */
.presentation-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.presentation-particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, #3498db 1px, transparent 1px),
        radial-gradient(circle, #2c3e50 1px, transparent 1px);
    background-size: 50px 50px, 70px 70px;
    animation: particlesMove 20s linear infinite;
}

@keyframes particlesMove {
    from { background-position: 0 0, 0 0; }
    to { background-position: 100px 100px, 150px 150px; }
}

.presentation-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.1);
    filter: blur(30px);
    animation: floatShape 15s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50px, 50px);
    }
    50% {
        transform: translate(0, 100px);
    }
    75% {
        transform: translate(-50px, 50px);
    }
}

/* Style pour la modale des références */
#referencesModal .modal-content {
    border-radius: 10px;
    overflow: hidden;
}

#referencesModal .modal-header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border-bottom: none;
}

#referencesModal .modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.references-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reference-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.reference-item h4 {
    color: #3498db;
    margin-top: 0;
    margin-bottom: 15px;
}

.reference-details p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.reference-details strong {
    color: #2c3e50;
    min-width: 100px;
    display: inline-block;
}

.btn-consulter {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-consulter:hover {
    background: #2980b9;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}


a:focus, a:active,
button:focus, button:active,
.btn:focus, .btn:active {
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    animation: none !important;
}



