/* Custom Animations for Solaris Technologies */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-solar {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-energy {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-eco {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Header Fixes - Reduce height and adjust navigation position */
header {
    height: 70px !important;
}

header.menu-two {
    height: 70px !important;
}

.navbar .navbar-nav {
    margin: 15px 0 10px !important;
    padding-right: 20px;
}

.bluebar {
    height: 70px !important;
}

.navbar-brand {
    height: 70px !important;
    margin: 0 !important;
    width: 220px !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Adjust dropdown position */
.navbar .navbar-nav > li > ul.drop-down {
    padding-top: 25px !important;
}

header.active .navbar .navbar-nav > li > ul.drop-down {
    padding-top: 15px !important;
}

/* Dropdown menu styling - remove black background */
ul.drop-down li {
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

ul.drop-down li a {
    color: #333 !important;
}

ul.drop-down li:hover > a, ul.drop-down li.active > a {
    color: #667eea !important;
}

.dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}

.dropdown-menu a {
    color: #333 !important;
}

.dropdown-menu a:hover {
    color: #667eea !important;
    background: #f8f9fa !important;
}

/* Animated service cards */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

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

.service-card h3 {
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #667eea;
}

.service-card img {
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-card:hover img {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

/* Icon animations */
.icon-float {
    animation: float 3s ease-in-out infinite;
}

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

.icon-pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Button animations */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-animated::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: left 0.5s ease;
}

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

.btn-animated:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Hero section animations */
.hero-title {
    animation: slideInDown 1s ease-out;
}

.hero-subtitle {
    animation: slideInUp 1s ease-out 0.3s backwards;
}

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

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

/* Glowing effect */
.glow-effect {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    }
    to {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.8), 0 0 60px rgba(118, 75, 162, 0.6);
    }
}

/* Particle effect background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Navigation animations */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
   background: linear-gradient(90deg, #0072ff, #00c6ff);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #667eea;
}

/* Fix navigation text visibility */
.navbar .navbar-nav > li > a {
    color: #000000 !important;
    font-weight: 600;
    text-shadow: none !important;
    transition: color 0.3s ease;
}

.navbar .navbar-nav > li > a:hover,
.navbar .navbar-nav > li > a:focus,
.navbar .navbar-nav > li > a.active {
    color: #0072ff !important;
}

/* Fix dropdown menu text visibility */
.navbar .navbar-nav > li > .dropdown-menu > li > a {
    color: #000000 !important;
    background: #ffffff !important;
    font-weight: 500;
}

.navbar .navbar-nav > li > .dropdown-menu > li > a:hover,
.navbar .navbar-nav > li > .dropdown-menu > li > a:focus {
    color: #0072ff !important;
    background: #f8f9fa !important;
}

/* Fix big_quote section text visibility */
#big_quote .well h2,
#big_quote .well h2 strong,
#big_quote .well p,
#big_quote .well .lead {
    color: #000000 !important;
    text-shadow: none !important;
}

#big_quote .well h2 strong {
    color: #0072ff !important;
}

/* Counter animation */
.counter {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
}

/* Progress bar animation */
.progress-bar-animated {
    height: 10px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.progress-bar-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Testimonial cards */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.2);
}

/* Image hover effects */
.img-zoom-container {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.img-zoom-container img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.img-zoom-container:hover img {
    transform: scale(1.15);
}

.img-zoom-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.img-zoom-container:hover::after {
    opacity: 1;
}

/* Loading animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Text gradient animation */
.text-gradient-animated {
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 5s ease infinite;
}

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

/* Morphing shapes */
.morph-shape {
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card:hover {
        transform: translateY(-10px) scale(1.01);
    }
    
    .hero-title {
        font-size: 2rem;
    }
}
/* ============================================================
   FORMULAIRE DE CONTACT - CORRECTION DES CHAMPS
   ============================================================ */

/* Correction des champs de formulaire - rend le texte visible */
.contact-form .form-control,
form.contact-form .form-control,
.solaris-form .form-control,
#contact-form .form-control {
    background-color: #ffffff !important;
    color: #333333 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    height: auto !important;
}

/* Placeholder - texte d'exemple dans les champs */
.contact-form .form-control::placeholder,
form.contact-form .form-control::placeholder,
.solaris-form .form-control::placeholder,
#contact-form .form-control::placeholder {
    color: #999999 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

/* Placeholder pour Firefox */
.contact-form .form-control::-moz-placeholder,
form.contact-form .form-control::-moz-placeholder {
    color: #999999 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

/* Focus des champs */
.contact-form .form-control:focus,
form.contact-form .form-control:focus,
.solaris-form .form-control:focus,
#contact-form .form-control:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    outline: none !important;
}

/* Style du select */
.contact-form select.form-control,
form.contact-form select.form-control,
.solaris-form select.form-control,
#contact-form select.form-control {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 14px 45px 14px 18px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23667eea'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 40px !important;
    cursor: pointer !important;
    height: auto !important;
}

/* Options du select */
.contact-form select.form-control option,
form.contact-form select.form-control option,
.solaris-form select.form-control option,
#contact-form select.form-control option {
    background-color: #ffffff !important;
    color: #333333 !important;
    padding: 10px !important;
}

/* Labels */
.contact-form label,
form.contact-form label,
.solaris-form label,
#contact-form label {
    color: #333333 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: block !important;
    font-size: 14px !important;
}

/* Correction pour l'auto-complétion */
.contact-form input:-webkit-autofill,
form.contact-form input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #333333 !important;
}

/* Correction pour les champs input de type spécifique */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form textarea,
form.contact-form input[type="text"],
form.contact-form input[type="email"],
form.contact-form input[type="tel"],
form.contact-form input[type="number"],
form.contact-form textarea {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    width: 100% !important;
}

/* Textaera spécifique */
.contact-form textarea.form-control,
form.contact-form textarea.form-control {
    min-height: 150px !important;
    resize: vertical !important;
}

/* Bouton d'envoi */
.contact-form .btn,
form.contact-form .btn {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 40px !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    width: 100% !important;
}

.contact-form .btn:hover,
form.contact-form .btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4) !important;
    background: linear-gradient(135deg, #764ba2, #667eea) !important;
    color: #ffffff !important;
}

/* ============================================================
   CORRECTION POUR LES MEDIA QUERIES (Mobile)
   ============================================================ */

@media (max-width: 767px) {
    .contact-form .form-control,
    form.contact-form .form-control {
        font-size: 14px !important;
        padding: 12px 16px !important;
    }
    
    .contact-form .btn,
    form.contact-form .btn {
        padding: 12px 30px !important;
        font-size: 1rem !important;
    }
}
/* ============================================================
   MENU DÉROULANT - CORRECTION TOTALE
   ============================================================ */

/* FORCER l'affichage au survol - PRIORITÉ MAXIMALE */
.navbar .dropdown:hover .dropdown-menu,
.navbar .dropdown:hover > .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    
    -webkit-transform: translateY(0px) !important;
    -moz-transform: translateY(0px) !important;
    -ms-transform: translateY(0px) !important;
    -o-transform: translateY(0px) !important;
    transform: translateY(0px) !important;
    
    pointer-events: auto !important;
}

/* Style du menu déroulant */
.navbar .dropdown-menu {
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
    
    -webkit-transform: translateY(15px) !important;
    -moz-transform: translateY(15px) !important;
    -ms-transform: translateY(15px) !important;
    -o-transform: translateY(15px) !important;
    transform: translateY(15px) !important;
    
    -webkit-transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    -moz-transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    -o-transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    
    background: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 0 !important;
    min-width: 230px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
    border-top: 4px solid #667eea !important;
    margin-top: 5px !important;
    z-index: 99999 !important;
    
    /* Empêcher le clic quand caché */
    pointer-events: none !important;
}

/* Activer les clics quand visible */
.navbar .dropdown:hover .dropdown-menu,
.navbar .dropdown:hover > .dropdown-menu {
    pointer-events: auto !important;
}

/* Style des liens dans le dropdown */
.navbar .dropdown-menu li {
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar .dropdown-menu li:last-child {
    border-bottom: none !important;
}

.navbar .dropdown-menu li a {
    display: block !important;
    padding: 12px 28px !important;
    color: #333333 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    background: #ffffff !important;
    text-decoration: none !important;
    -webkit-transition: all 0.3s ease !important;
    -moz-transition: all 0.3s ease !important;
    -o-transition: all 0.3s ease !important;
    transition: all 0.3s ease !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Effet au survol des liens */
.navbar .dropdown-menu li a:hover {
    color: #667eea !important;
    background: #f8f9ff !important;
    padding-left: 35px !important;
}

/* Flèche animée du menu principal */
.navbar .dropdown > a .fa-angle-down {
    -webkit-transition: all 0.3s ease !important;
    -moz-transition: all 0.3s ease !important;
    -o-transition: all 0.3s ease !important;
    transition: all 0.3s ease !important;
}

.navbar .dropdown:hover > a .fa-angle-down {
    -webkit-transform: rotate(180deg) !important;
    -moz-transform: rotate(180deg) !important;
    -ms-transform: rotate(180deg) !important;
    -o-transform: rotate(180deg) !important;
    transform: rotate(180deg) !important;
    color: #667eea !important;
}

/* ============================================================
   MENU MOBILE
   ============================================================ */

@media (max-width: 767px) {
    /* Désactiver le hover sur mobile */
    .navbar .dropdown-menu {
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 0 0 20px !important;
        border-radius: 0 !important;
        border-top: none !important;
        position: relative !important;
        left: 0 !important;
        margin-top: 0 !important;
        pointer-events: auto !important;
    }
    
    .navbar .dropdown.open .dropdown-menu {
        display: block !important;
    }
    
    .navbar .dropdown:hover .dropdown-menu {
        display: none !important;
    }
    
    .navbar .dropdown.open:hover .dropdown-menu {
        display: block !important;
    }
    
    .navbar .dropdown-menu li {
        background: transparent !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
    
    .navbar .dropdown-menu li a {
        color: #ffffff !important;
        background: transparent !important;
        padding: 8px 16px !important;
    }
    
    .navbar .dropdown-menu li a:hover {
        color: #667eea !important;
        padding-left: 20px !important;
        background: rgba(255,255,255,0.05) !important;
    }
}
/* ============================================================
   ÉGALISER LES CARTES DE SERVICES (MÊME HAUTEUR)
   ============================================================ */

/* Conteneur des cartes - utiliser flexbox */
.container .row {
    display: flex;
    flex-wrap: wrap;
}

/* Chaque colonne de carte */
.container .col-md-4,
.container .col-sm-6 {
    display: flex;
    flex-direction: column;
}

/* La carte elle-même */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100% !important;
    flex: 1 1 auto;
}

/* Le contenu de la carte */
.service-card .BulletList {
    flex: 1 1 auto;
}

/* Le bouton reste en bas */
.service-card .btn-animated {
    margin-top: auto !important;
    align-self: center;
}

/* Image dans la carte */
.service-card .img-zoom-container {
    flex-shrink: 0;
}

/* ============================================================
   VARIANTE AVEC GRID (alternatif)
   ============================================================ */

/* Si flexbox ne fonctionne pas, utiliser cette méthode */
.equal-height-cards {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-cards .col-md-4 {
    display: flex;
    flex-direction: column;
}

.equal-height-cards .service-card {
    flex: 1;
}

/* ============================================================
   POUR LA PAGE PARTENAIRES AUSSI
   ============================================================ */

/* Cartes des partenaires - même hauteur */
.partner-card,
.service-card.partner {
    display: flex;
    flex-direction: column;
    height: 100% !important;
}

.partner-card .btn,
.service-card.partner .btn {
    margin-top: auto !important;
    align-self: center;
}
/* ============================================================
   ÉGALISER LES 3 CARTES DE SERVICES (ACCUEIL)
   ============================================================ */

/* Le conteneur des 3 cartes */
.container.pad60.bpad45 {
    display: flex;
    flex-wrap: wrap;
}

/* Chaque colonne des cartes */
.container.pad60.bpad45 .col-md-4 {
    display: flex;
    flex-direction: column;
}

/* La carte elle-même */
.container.pad60.bpad45 .service-card {
    display: flex;
    flex-direction: column;
    height: 100% !important;
    flex: 1 1 auto;
}

/* La liste des puces prend l'espace restant */
.BulletList {
    list-style: none !important;      /* Supprime les puces */
    padding-left: 0 !important;       /* Enlève le retrait gauche */
}

.BulletList li {
    margin-bottom: 12px;              /* Petit espace entre les lignes (optionnel) */
    display: flex;
    align-items: center;
    gap: 10px;                        /* Espace entre l'icône et le texte */
}

/* Le bouton "En savoir plus" reste en bas */
.container.pad60.bpad45 .service-card .btn-animated {
    margin-top: auto !important;
    align-self: center;
    margin-top: 40px !important;  
}

/* L'image dans la carte */
.container.pad60.bpad45 .service-card .img-zoom-container {
    flex-shrink: 0;
}

/* ============================================================
   POUR LES CARTES DE LA SECTION EN BAS (Forages + Biométrie)
   ============================================================ */

.container .container.pad60.bpad45 {
    display: flex;
    flex-wrap: wrap;
}

.container .container.pad60.bpad45 .col-md-6 {
    display: flex;
    flex-direction: column;
}

.container .container.pad60.bpad45 .service-card {
    display: flex;
    flex-direction: column;
    height: 100% !important;
    flex: 1 1 auto;
}

.container .container.pad60.bpad45 .service-card .btn-animated {
    margin-top: auto !important;
    align-self: center;
}

/* ============================================================
   LOGO ROND - SOLARIS TECHNOLOGIES
   ============================================================ */

/* Style principal du logo rond */
.navbar-brand {
    background-image: url("../img/logo_v1.png") !important;
    background-position: center center !important;
    background-size: 70% auto !important;  /* Ajustez selon votre logo */
    background-repeat: no-repeat !important;
    background-color: #ffffff !important;
    
    width: 110px !important;
    height: 110px !important;
    border-radius: 50% !important;
    
    margin: -20px 0 !important;
    display: inline-block !important;
    
    border: 3px solid #667eea !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Effet au survol */
.navbar-brand:hover {
    transform: scale(1.08) rotate(-3deg) !important;
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.5) !important;
    border-color: #764ba2 !important;
}

/* Version avec bordure orange (pour correspondre au thème) */
.navbar-brand.orange-border {
    border-color: #FC8507 !important;
    box-shadow: 0 4px 20px rgba(252, 133, 7, 0.3) !important;
}

.navbar-brand.orange-border:hover {
    border-color: #FC8507 !important;
    box-shadow: 0 8px 40px rgba(252, 133, 7, 0.5) !important;
}

/* ============================================================
   AJUSTEMENT POUR MOBILE
   ============================================================ */

@media (max-width: 767px) {
    .navbar-brand {
        width: 50px !important;
        height: 50px !important;
        background-size: 60% auto !important;  /* Réduit la taille du logo */
        margin: -10px 0 !important;
        border-width: 1px !important;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        width: 65px !important;
        height: 65px !important;
        background-size: 60% auto !important;  /* Réduit la taille du logo */
        margin: -8px 0 !important;
        border-width: 1px !important;
    }
}

/* ============================================================
   LOGO ROND - ADAPTÉ À LA NAVBAR
   ============================================================ */

/* Réduction du header */
header {
    height: 80px !important;
}

header.menu-two {
    height: 80px !important;
}

/* Logo plus petit */
.navbar-brand {
    background-image: url("../img/logo_v1.png") !important;
    background-position: center center !important;
    background-size: 75% auto !important;
    background-repeat: no-repeat !important;
    background-color: #ffffff !important;
    
    width: 65px !important;      /* Plus petit */
    height: 65px !important;     /* Plus petit */
    border-radius: 50% !important;
    
    margin: 8px 0 !important;    /* Centré verticalement */
    padding: 0 !important;
    display: inline-block !important;
    
    border: 2.5px solid #667eea !important;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.25) !important;
    transition: all 0.3s ease !important;
}

/* Effet au survol */
.navbar-brand:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4) !important;
}

/* Ajustement de la hauteur du header */
.navbar {
    min-height: 80px !important;
    padding: 0 !important;
}

.navbar .navbar-nav {
    margin: 22px 0 !important;
}

/* Ajustement du menu pour qu'il soit aligné */
.navbar .navbar-nav > li > a {
    padding: 8px 12px !important;
    font-size: 13px !important;
}

/* Ajustement du bouton toggle mobile */
.navbar-toggle {
    margin-top: 22px !important;
}

/* ============================================================
   VERSION MOBILE
   ============================================================ */

@media (max-width: 767px) {
    .navbar-brand {
        width: 50px !important;
        height: 50px !important;
        background-size: 70% auto !important;
        margin: 15px 0 15px 15px !important;
        border-width: 2px !important;
    }
    
    .navbar-toggle {
        margin-top: 18px !important;
    }
    
    .navbar .navbar-nav {
        margin: 10px 0 !important;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        width: 42px !important;
        height: 42px !important;
        background-size: 65% auto !important;
        margin: 18px 0 18px 10px !important;
        border-width: 1.5px !important;
    }
}

/* ============================================================
   TEAM CARDS - EFFETS INNOVANTS
   ============================================================ */

/* Effet de flottement des cartes */
.team-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.team-card:hover {
    transform: translateY(-20px) scale(1.02) !important;
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.25) !important;
    border-color: #667eea !important;
}

/* Effet 3D au survol */
.team-card:hover .team-card-inner {
    transform: rotateY(5deg) rotateX(5deg) !important;
}

/* Animation d'apparition des cartes */
.team-card {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUpCard 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.team-card.stagger-1 { animation-delay: 0.1s; }
.team-card.stagger-2 { animation-delay: 0.2s; }
.team-card.stagger-3 { animation-delay: 0.3s; }
.team-card.stagger-4 { animation-delay: 0.4s; }
.team-card.stagger-5 { animation-delay: 0.5s; }
.team-card.stagger-6 { animation-delay: 0.6s; }
.team-card.stagger-7 { animation-delay: 0.7s; }
.team-card.stagger-8 { animation-delay: 0.8s; }

@keyframes fadeInUpCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de brillance sur les images */
.team-card img {
    transition: all 0.6s ease !important;
}

.team-card:hover img {
    transform: scale(1.1) !important;
}

/* Effet de rotation de la bordure */
.team-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 26px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 400% 400%;
    opacity: 0;
    z-index: -1;
    transition: all 0.6s ease;
    animation: gradientBorder 3s ease infinite;
}

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

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

/* Effet glassmorphism pour les cartes */
.team-card.glass {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Effet de particules flottantes */
.particle-float {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #667eea;
    opacity: 0.3;
    animation: floatParticle 6s ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.8; }
}

/* Effet de shimmer sur les cartes */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255,255,255,0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shimmerMove 3s infinite;
}

@keyframes shimmerMove {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Effet de survol 3D */
.team-card-3d {
    perspective: 1000px;
}

.team-card-3d .team-card-inner {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.team-card-3d:hover .team-card-inner {
    transform: rotateY(10deg) rotateX(5deg) scale(1.02);
}

/* Effet de glow sur le texte */
.text-glow {
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    transition: all 0.5s ease;
}

.text-glow:hover {
    text-shadow: 0 0 40px rgba(102, 126, 234, 0.6), 0 0 80px rgba(102, 126, 234, 0.3);
}

/* ============================================================
   CORRECTION DES CHEVAUCHEMENTS
   ============================================================ */

/* Forcer l'affichage de toutes les cartes */
.team-card {
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

.team-card:hover {
    z-index: 10 !important;
}

/* Conteneurs sans débordement */
.container .row {
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Section internationale - ne cache pas le contenu précédent */
.container[style*="background: linear-gradient"] {
    position: relative !important;
    z-index: 0 !important;
    margin-top: 30px !important;
    clear: both !important;
}

/* Assurer que les colonnes sont visibles */
.container .col-md-4,
.container .col-sm-6,
.container .col-md-3 {
    position: relative !important;
    z-index: 1 !important;
}

/* Nettoyage des floats */
.clearfix {
    clear: both !important;
}

/* Espacement entre les sections */
.section-spacer {
    height: 30px;
    clear: both;
}
/* 🔥 Assurer la lisibilité du texte au survol */
.team-card {
    background: #ffffff !important;   /* Fond blanc opaque */
    color: #1e293b !important;        /* Texte sombre */
}

.team-card h4,
.team-card p,
.team-card a {
    color: inherit !important;        /* Hérite de la couleur de la carte */
}

.team-card:hover {
    background: #ffffff !important;   /* Garde le fond blanc même au survol */
    box-shadow: 0 16px 40px rgba(0,0,0,0.1) !important; /* Ombre légère */
    transform: translateY(-6px) !important; /* Légère élévation */
}

/* Optionnel : supprimer l'effet de bordure dégradée qui peut gêner */
.team-card::before {
    display: none !important;  /* Désactive l'effet de bordure animée */
}

/* Grille personnalisée 5 colonnes */
.row-cols-5 > .col-custom {
    flex: 0 0 20%;
    max-width: 20%;
}

/* Sur tablette : 2 colonnes */
@media (max-width: 992px) {
    .row-cols-5 > .col-custom {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Sur mobile : 1 colonne */
@media (max-width: 576px) {
    .row-cols-5 > .col-custom {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Assurer la même hauteur pour toutes les cartes */
.row-cols-5 .service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.row-cols-5 .service-card .partner-logo {
    flex-shrink: 0;
}

.row-cols-5 .service-card .btn-link {
    margin-top: auto;
}
/* ============================================================
   FORCER LES CARTES ÉQUIPES EN 1 COLONNE SUR PETITS MOBILES
   ============================================================ */
@media (max-width: 575.98px) {
    /* Toutes les colonnes avec col-sm-6 passent en 100% de largeur */
    .container .col-sm-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Réduire la taille des avatars pour mieux s'adapter */
    .team-avatar {
        max-width: 80px !important;
    }

    /* Ajuster les polices */
    .team-card h4 {
        font-size: 15px !important;
    }
    .team-card p {
        font-size: 0.7rem !important;
    }
}
/* FORCER les cartes équipes en 1 colonne sur mobile */
@media (max-width: 767px) {
    /* Cible toutes les colonnes qui contiennent des cartes équipes */
    .team-card-wrapper,
    .team-section .col-sm-6,
    .team-section [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        float: none !important;
        display: block !important;
    }
}

/* ============================================================
   RESPONSIVE UNIQUEMENT POUR LA SECTION NOS ÉQUIPES
   ============================================================ */

/* Empêche les débordements dans les cartes de l'équipe */
.team-card {
    width: 100%;
    min-width: 0;
}

/* Les textes et emails ne dépassent jamais des cartes */
.team-card h4,
.team-card p,
.team-card a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}
/* ============================================================
   RESPONSIVE - UNIQUEMENT SECTION NOS ÉQUIPES
   ============================================================ */

@media (max-width: 767px) {

    /* Les colonnes contenant les cartes d'équipe */
    .team-card-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        float: none !important;
    }

    /* Cartes équipe */
    .team-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 20px !important;
        padding: 20px 15px !important;
    }

    /* Avatar */
    .team-card .team-avatar {
        width: 80px !important;
        max-width: 80px !important;
        height: auto !important;
    }

    /* Nom */
    .team-card h4 {
        font-size: 16px !important;
        line-height: 1.4 !important;
        overflow-wrap: break-word !important;
    }

    /* Fonction et email */
    .team-card p,
    .team-card a {
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
}
.navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.img-zoom-container video.gallery-video {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
}
/* Rendre le texte de l'en-tête plus visible */
.service-card h3.bar {
    color: #1a202c !important; /* déjà présent */
}

.service-card p.text-gradient-animated {
    /* Le dégradé est déjà visible, mais on peut ajouter une ombre légère */
    text-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Si vous avez des titres de carte en blanc, corrigez-les */
.gallery-text h4 {
    color: #2d3748; /* déjà présent */
}

.gallery-text p {
    color: #4a5568; /* déjà présent */
}
.filter-btn {
    margin: 5px;
    border: none;
    padding: 12px 32px;
    font-size: 15px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #ffffff;
    color: #1a202c;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.2);
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .filter-btn {
        padding: 8px 18px;
        font-size: 12px;
    }
}
/* Boutons inactifs : texte bleu foncé */
.filter-btn {
    margin: 5px;
    border: none;
    padding: 12px 32px;
    font-size: 15px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #ffffff;
    color: #2b6cb0;               /* bleu foncé (au lieu de noir) */
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.2);
    background: #ebf4ff;
    border-color: #3182ce;
    color: #1a365d;              /* texte plus foncé au survol */
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #fbd38d !important;   /* texte orange clair */
    border-color: transparent !important;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

/* Alignement des représentants internationaux */
.representatives-row {
    display: flex;
    flex-wrap: wrap;
}

.representative-column {
    display: flex;
    margin-bottom: 30px;
}

.representative-card {
    width: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #edf2f7;
}

.representative-photo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #4a6cf7;
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.15);
    background-color: #f0f0f0;
}

.representative-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.representative-name {
    color: #1e293b;
    font-weight: 700;
    font-size: 16px;
    margin: 10px 0 4px;
    min-height: 38px;
}

.representative-role {
    color: #4a6cf7;
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 8px;
    min-height: 36px;
}

.representative-email {
    color: #64748b;
    font-size: 0.7rem;
    margin-bottom: 4px;
    min-height: 35px;
    word-break: break-word;
}

.representative-email a {
    color: #4a6cf7;
    text-decoration: none;
}

.representative-country {
    display: inline-block;
    margin-top: auto;
    padding: 3px 14px;
    background: #4a6cf7;
    color: #fff;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.representative-country img {
    width: 16px;
    height: 12px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Mobile */
@media (max-width: 767px) {
    .representative-card {
        min-height: 320px;
    }
}