/* ========================================
   SUD DEVELOP - STYLES DU SITE WEB
   Architecture CSS propre et optimisée
   ======================================== */

/* ========================
   STYLES DU SYSTÈME DE PANIER
   ======================== */

/* Bouton de panier dans la navigation */
.cart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* État de survol du bouton de panier */
.cart-button:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.3);
    text-decoration: none;
}

/* Icône du bouton de panier */
.cart-button i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Compteur et badge du panier */
.cart-counter,
.cart-badge {
    position: absolute;
    /* Remonter légèrement pour rester visible sur barres de navigation compactes */
    /* top: -6px; */
    /* right: -6px; */
    background: #ff3b30; /* couleur plus vive */
    color: #ffffff;
    border-radius: 999px; /* rendre parfaitement rond */
    min-width: 22px; /* largeur minimale pour deux chiffres */
    height: 22px;
    padding: 0 6px; /* laisse de l'espace pour 2+ chiffres */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    border: 2px solid rgba(255,255,255,0.95); /* contour blanc pour le contraste */
    transform: translateZ(0); /* activer GPU compositing pour rendu plus net */
    z-index: 1055; /* au-dessus de la nav */
    animation: pulse 2s infinite;
}

/* Animation courte lorsque le nombre change */
.pulse-change {
    animation: pulse-change 0.5s ease both;
}

@keyframes pulse-change {
    0% { transform: scale(1); }
    30% { transform: scale(1.25); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Ajustement dynamique de la largeur selon le nombre de chiffres via l'attribut data-size */
.cart-counter[data-size="1"],
.cart-badge[data-size="1"] {
    min-width: 20px;
    padding: 0 6px;
}
.cart-counter[data-size="2"],
.cart-badge[data-size="2"] {
    min-width: 28px;
    padding: 0 8px;
}
.cart-counter[data-size="3"],
.cart-badge[data-size="3"] {
    min-width: 36px;
    padding: 0 8px;
}

/* Forcer 3+ caractères (ex: '99+') à utiliser la taille de 3 */
.cart-counter[data-size^="3"],
.cart-badge[data-size^="3"] {
    min-width: 36px;
}

/* Masquage des compteurs vides */
.cart-counter:empty,
.cart-badge:empty {
    display: none;
}

/* Styles de la modale du panier */
#cartModal .modal-content {
    border: none;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); */
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
}

/* En-tête de la modale du panier */
#cartModal .modal-header {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

/* Bouton de fermeture de la modale */
#cartModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

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

/* Corps de la modale du panier */
#cartModal .modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    background-color: #ffffff;
    color: #212529;
}

/* Pied de page de la modale du panier */
#cartModal .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    gap: 0.5rem;
}

/* Styles du résumé du panier */
.cart-summary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    color: #212529;
}

.cart-summary .badge {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
}

/* Styles des articles du panier */
.cart-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    color: #212529;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Effet de survol des articles du panier */
.cart-item:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 0 -0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Images des articles du panier */
.cart-item img {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.cart-item:hover img {
    transform: scale(1.05);
}

.cart-item h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item .text-muted {
    font-size: 0.85rem;
    color: #6c757d !important;
}

/* Contrôles de quantité du panier */
.cart-item .input-group {
    max-width: 120px;
}

.cart-item .input-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.2;
    border-color: #ced4da;
}

.cart-item .input-group .form-control {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-color: #ced4da;
    text-align: center;
    min-width: 50px;
}

.cart-item .input-group .form-control:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* Bouton de suppression */
.cart-item .btn-outline-danger {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cart-item .btn-outline-danger:hover {
    transform: scale(1.05);
}

/* État de panier vide */
.cart-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.cart-empty-state i {
    color: #6c757d;
    margin-bottom: 1rem;
}

.cart-empty-state h6 {
    color: #6c757d;
    font-weight: 600;
}

.cart-empty-state p {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Styles du bouton d'ajout au panier */
.btn-add-to-cart {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 44px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.btn-add-to-cart i {
    margin-right: 0.5rem;
}

/* Style des entrées de quantité */
.quantity-input {
    font-size: 0.875rem;
    text-align: center;
    border-radius: 0;
}

.quantity-input:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Section de quantité des cartes de produit */
.card .input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
}

/* Contrôles de quantité de la modale */
#modalQuantityInput {
    max-width: 80px;
}

#decreaseQty, #increaseQty {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
}

#decreaseQty:hover, #increaseQty:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Notifications du panier */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.cart-notification .alert {
    margin-bottom: 0;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-notification .alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

/* ========================
   STYLES RESPONSIFS POUR LES CARTES D'ACTUALITÉS
   ======================== */

@media (max-width: 768px) {
    .news-card .card-img-top {
        height: 180px;
    }
    
    .news-card .card-body {
        padding: 1.5rem;
    }
    
    .news-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .news-card .card-img-top {
        height: 150px;
    }
    
    .news-card .card-body {
        padding: 1rem;
    }
    
    .news-card h3 {
        font-size: 1rem;
    }
    
    .news-card p {
        font-size: 0.9rem;
    }
    
    .badge {
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* ========================
   SECTION TÉMOIGNAGES AMÉLIORÉE
   ======================== */
/* Responsive mobile */
@media (max-width: 768px) {
    .cart-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .cart-button i {
        margin-right: 0.3rem;
        font-size: 1rem;
    }
    
    .cart-counter,
    .cart-badge {
        /* top: -4px; */
        /* right: -4px; */
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        font-size: 0.7rem;
        border-width: 1.5px;
    }
    
    #cartModal .modal-dialog {
        margin: 0.5rem;
    }
    
    #cartModal .modal-body {
        padding: 1rem;
        max-height: 50vh;
    }
    
    #cartModal .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #cartModal .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
    
    .cart-item {
        padding: 0.75rem 0;
    }
    
    .cart-item .col-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .cart-item .col-6 {
        flex: 0 0 45%;
        max-width: 45%;
    }
    
    .cart-item .col-2:last-child {
        flex: 0 0 15%;
        max-width: 15%;
    }
    
    .cart-item h6 {
        font-size: 0.9rem;
    }
    
    .cart-item .text-muted {
        font-size: 0.8rem;
    }
    
    .cart-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    /* Mobile-specific quantity input styling */
    .quantity-input {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .card .input-group-text {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .btn-add-to-cart {
        min-width: 40px;
        height: 32px;
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .btn-add-to-cart i {
        margin-right: 0;
        font-size: 0.875rem;
    }
}

/* Prise en charge du mode sombre pour le panier */
@media (prefers-color-scheme: dark) {
    /* Styles du bouton panier en mode sombre */
    .cart-button {
        background: linear-gradient(135deg, #1976d2, #1565c0);
    }
    
    /* Effet de survol du bouton panier en mode sombre */
    .cart-button:hover {
        background: linear-gradient(135deg, #1565c0, #0d47a1);
    }
    
    /* Forcer le thème blanc pour la modale du panier même en mode sombre */
    #cartModal .modal-content {
        background-color: #ffffff !important;
        color: #212529 !important;
    }
    
    /* Corps de la modale du panier en mode clair forcé */
    #cartModal .modal-body {
        background-color: #ffffff !important;
        color: #212529 !important;
    }
    
    /* Pied de page de la modale du panier en mode clair forcé */
    #cartModal .modal-footer {
        background-color: #f8f9fa !important;
        border-top-color: #dee2e6 !important;
    }
    
    /* Résumé du panier en mode clair forcé */
    .cart-summary {
        background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
        color: #212529 !important;
    }
    
    /* Éléments du panier en mode clair forcé */
    .cart-item {
        border-bottom-color: #e9ecef !important;
        color: #212529 !important;
    }
    
    /* Effet de survol des éléments du panier */
    .cart-item:hover {
        background-color: #f8f9fa !important;
    }
    
    /* Titres des éléments du panier */
    .cart-item h6 {
        color: #2c3e50 !important;
    }
    
    /* Texte atténué des éléments du panier */
    .cart-item .text-muted {
        color: #6c757d !important;
    }
}

/* ========================
   MODALE DÉTAILS PRODUIT
   ======================== */

/* Contenu principal de la modale détails produit */
#prodDetailModal .modal-content {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

/* En-tête de la modale avec dégradé bleu */
#prodDetailModal .modal-header {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

/* Bouton de fermeture de la modale en blanc */
#prodDetailModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* Effet de survol du bouton de fermeture */
#prodDetailModal .modal-header .btn-close:hover {
    opacity: 1;
}

/* Corps de la modale avec fond blanc */
#prodDetailModal .modal-body {
    padding: 2rem;
    background: #fff;
}

/* Pied de page de la modale avec fond gris clair */
#prodDetailModal .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 2rem;
}

/* Texte primaire personnalisé pour la modale */
#prodDetailModal .text-primary-custom {
    color: #2196f3 !important;
}

/* Style de police monospace pour les codes */
#prodDetailModal .font-monospace {
    font-family: 'Courier New', Courier, monospace;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Images dans la modale avec bordure et transition */
#prodDetailModal img {
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

/* Effet de zoom léger au survol des images */
#prodDetailModal img:hover {
    transform: scale(1.02);
}

/* Boutons de la modale avec transitions fluides */
#prodDetailModal .btn {
    transition: all 0.3s ease;
}

/* Effet d'élévation des boutons au survol */
#prodDetailModal .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Amélioration des cartes de produit */
.card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Effet d'élévation au survol des cartes */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Bouton de détails avec dégradé bleu */
.btn-detail {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

/* Effet de survol du bouton de détails */
.btn-detail:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    transform: translateY(-1px);
}

/* ========================
   ANIMATIONS PRINCIPALES
   ======================== */

/* Animation de fondu vers le haut */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de fondu simple */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation de glissement depuis la gauche */
@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animation de glissement depuis la droite */
@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Animation de flottement */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Animation d'effet de ripple pour les boutons */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animation de décalage de dégradé */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animations spécifiques pour mobile */
@keyframes mobileHeroEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animation de glissement vers le haut du titre mobile */
@keyframes mobileHeroTitleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de fondu du texte mobile */
@keyframes mobileHeroTextFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de rebond du bouton mobile */
@keyframes mobileHeroBtnBounce {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animation de lueur */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(33, 150, 243, 0.3); }
    50% { box-shadow: 0 0 30px rgba(33, 150, 243, 0.6); }
}

/* ========================
   ANIMATIONS HÉRO & PARTICULES
   ======================== */

/* Conteneur des animations du héro */
.hero-animations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Particules flottantes animées */
.floating-particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.4), rgba(100, 181, 246, 0.6));
    animation: floatParticle 8s ease-in-out infinite;
}

/* Variations de particules avec positions et timings différents */
.particle-1 { width: 8px; height: 8px; top: 20%; left: 10%; animation-delay: 0s; animation-duration: 6s; }
.particle-2 { width: 12px; height: 12px; top: 60%; right: 15%; animation-delay: 1s; animation-duration: 8s; }
.particle-3 { width: 6px; height: 6px; top: 80%; left: 20%; animation-delay: 2s; animation-duration: 7s; }
.particle-4 { width: 10px; height: 10px; top: 30%; right: 25%; animation-delay: 3s; animation-duration: 9s; }
.particle-5 { width: 5px; height: 5px; top: 50%; left: 5%; animation-delay: 4s; animation-duration: 6.5s; }
.particle-6 { width: 14px; height: 14px; top: 10%; right: 5%; animation-delay: 1.5s; animation-duration: 8.5s; }

/* Animation de flottement des particules */
@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-30px) translateX(-5px) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-15px) translateX(15px) scale(1.1);
        opacity: 0.9;
    }
}

/* Orbes à dégradé avec effet de flou */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.3) 0%, rgba(255, 165, 0, 0.2) 100%);
    animation: orbFloat 12s ease-in-out infinite;
    filter: blur(2px);
}

/* Positionnement des différents orbes */
.orb-1 { width: 60px; height: 60px; top: 15%; left: -10%; animation-delay: 0s; }
.orb-2 { width: 80px; height: 80px; top: 70%; right: -15%; animation-delay: 4s; }
.orb-3 { width: 40px; height: 40px; top: 45%; left: -5%; animation-delay: 8s; }

/* Animation de flottement des orbes */
@keyframes orbFloat {
    0%, 100% {
        transform: translateX(0px) translateY(0px) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translateX(30px) translateY(-20px) scale(1.3);
        opacity: 0.7;
    }
    66% {
        transform: translateX(-10px) translateY(-40px) scale(0.8);
        opacity: 0.5;
    }
}

/* Anneaux pulsants animés */
.pulse-ring {
    position: absolute;
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-radius: 50%;
    animation: pulseRing 4s ease-in-out infinite;
}

/* Positionnement des anneaux pulsants */
.ring-1 { width: 100px; height: 100px; top: 25%; right: 10%; animation-delay: 0s; }
.ring-2 { width: 150px; height: 150px; bottom: 20%; left: 5%; animation-delay: 2s; }

/* Animation de pulsation des anneaux */
@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
        border-width: 2px;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.4;
        border-width: 1px;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.8;
        border-width: 2px;
    }
}

/* Icônes médicales flottantes */
.floating-icon {
    position: absolute;
    color: rgba(33, 150, 243, 0.6);
    font-size: 1.5rem;
    animation: iconFloat 10s ease-in-out infinite;
}

/* Positionnement des icônes flottantes */
.icon-1 { top: 35%; left: 8%; animation-delay: 1s; }
.icon-2 { top: 65%; right: 12%; animation-delay: 3s; }
.icon-3 { top: 15%; right: 20%; animation-delay: 5s; }
.icon-4 { bottom: 25%; left: 15%; animation-delay: 7s; }

/* Animation de flottement des icônes */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-15px) rotate(5deg) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-25px) rotate(-3deg) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-10px) rotate(2deg) scale(1.05);
        opacity: 0.7;
    }
}

/* Lignes animées */
.animated-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(33, 150, 243, 0.8) 50%, transparent 100%);
    animation: lineMove 8s ease-in-out infinite;
}

/* Positionnement des lignes animées */
.line-1 { width: 60px; top: 40%; right: 5%; animation-delay: 0s; }
.line-2 { width: 80px; top: 60%; left: 3%; animation-delay: 2.5s; }
.line-3 { width: 45px; top: 20%; left: 10%; animation-delay: 5s; }

/* Animation de mouvement des lignes */
@keyframes lineMove {
    0%, 100% {
        transform: translateX(0px) scaleX(1);
        opacity: 0.3;
    }
    50% {
        transform: translateX(20px) scaleX(1.5);
        opacity: 0.8;
    }
}

/* ========================
   ANIMATIONS D'ARRIÈRE-PLAN
   ======================== */

/* Animation de pulsation d'arrière-plan */
@keyframes pulseBackground {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

/* Animation de décalage d'arrière-plan mobile */
@keyframes backgroundShift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    33% {
        transform: scale(1.05) rotate(1deg);
        opacity: 0.8;
    }
    66% {
        transform: scale(0.98) rotate(-0.5deg);
        opacity: 0.4;
    }
}

/* Animation de décalage d'arrière-plan bureau */
@keyframes desktopBackgroundShift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    25% {
        transform: scale(1.02) rotate(0.5deg);
        opacity: 0.7;
    }
    50% {
        transform: scale(0.98) rotate(-0.3deg);
        opacity: 0.3;
    }
    75% {
        transform: scale(1.01) rotate(0.2deg);
        opacity: 0.6;
    }
}

/* ========================
   EFFETS DE TRAINÉE DE PARTICULES
   ======================== */

/* Conteneur de trainée de particules */
.particle-trail {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Particules de trainée animées */
.trail-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.8), transparent);
    border-radius: 50%;
    animation: trailMove 15s linear infinite;
}

/* Positionnement des particules de trainée */
.trail-1 { top: 10%; left: 0%; animation-delay: 0s; }
.trail-2 { top: 30%; left: -5%; animation-delay: 3s; }
.trail-3 { top: 50%; left: -3%; animation-delay: 6s; }
.trail-4 { top: 70%; left: -2%; animation-delay: 9s; }
.trail-5 { top: 90%; left: -4%; animation-delay: 12s; }

/* Animation de mouvement de trainée */
@keyframes trailMove {
    0% {
        transform: translateX(0px) translateY(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(-50px);
        opacity: 0;
    }
}

/* ========================
   FORMES GÉOMÉTRIQUES
   ======================== */

/* Forme géométrique de base avec animation */
.geometric-shape {
    position: absolute;
    border: 1px solid rgba(33, 150, 243, 0.3);
    animation: geometricFloat 20s ease-in-out infinite;
}

/* Triangle géométrique */
.shape-triangle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid rgba(33, 150, 243, 0.2);
    top: 25%;
    left: 5%;
    animation-delay: 2s;
}

/* Carré géométrique */
.shape-square {
    width: 20px;
    height: 20px;
    background: rgba(255, 165, 0, 0.2);
    top: 55%;
    right: 8%;
    animation-delay: 6s;
    transform: rotate(45deg);
}

/* Hexagone géométrique */
.shape-hexagon {
    width: 20px;
    height: 20px;
    background: rgba(100, 181, 246, 0.2);
    top: 80%;
    left: 12%;
    animation-delay: 10s;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Animation de flottement géométrique */
@keyframes geometricFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.2);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-40px) rotate(270deg) scale(1.1);
        opacity: 0.6;
    }
}

/* Éléments animés spécifiques au bureau */
@media (min-width: 768px) {
    /* Particules flottantes améliorées pour le bureau */
    .particle-7 {
        width: 16px;
        height: 16px;
        top: 15%;
        left: 15%;
        animation-delay: 0.5s;
        animation-duration: 10s;
    }
    
    /* Particule supplémentaire pour bureau */
    .particle-8 {
        width: 20px;
        height: 20px;
        top: 75%;
        right: 20%;
        animation-delay: 2.5s;
        animation-duration: 12s;
    }
    
    /* Autre particule pour bureau */
    .particle-9 {
        width: 12px;
        height: 12px;
        top: 40%;
        left: 8%;
        animation-delay: 4.5s;
        animation-duration: 9s;
    }
    
    /* Particule finale pour bureau */
    .particle-10 {
        width: 18px;
        height: 18px;
        top: 65%;
        left: 25%;
        animation-delay: 6s;
        animation-duration: 11s;
    }
    
    /* Orbes à dégradé plus grandes pour le bureau */
    .orb-4 {
        width: 120px;
        height: 120px;
        top: 10%;
        right: 5%;
        animation-delay: 2s;
        opacity: 0.3;
    }
    
    /* Orbe supplémentaire pour bureau */
    .orb-5 {
        width: 100px;
        height: 100px;
        bottom: 15%;
        left: 10%;
        animation-delay: 6s;
        opacity: 0.25;
    }
    
    /* Icônes médicales supplémentaires pour le bureau */
    .icon-5 {
        top: 20%;
        right: 15%;
        animation-delay: 2s;
        font-size: 1.8rem;
    }
    
    /* Icône médicale bureau */
    .icon-6 {
        bottom: 30%;
        right: 25%;
        animation-delay: 4s;
        font-size: 1.6rem;
    }
    
    /* Dernière icône médicale bureau */
    .icon-7 {
        top: 70%;
        left: 8%;
        animation-delay: 8s;
        font-size: 1.7rem;
    }
    
    /* Anneaux de pulsation pour bureau */
    .ring-3 {
        width: 200px;
        height: 200px;
        top: 35%;
        left: 15%;
        animation-delay: 1s;
        opacity: 0.2;
    }
    
    /* Anneau de pulsation supplémentaire */
    .ring-4 {
        width: 180px;
        height: 180px;
        bottom: 25%;
        right: 12%;
        animation-delay: 3s;
        opacity: 0.25;
    }
    
    /* Formes géométriques pour bureau */
    .shape-circle {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(23, 162, 184, 0.3);
        top: 55%;
        left: 5%;
        animation-delay: 3s;
    }
    
    /* Diamant géométrique pour bureau */
    .shape-diamond {
        width: 25px;
        height: 25px;
        background: rgba(255, 193, 7, 0.3);
        top: 30%;
        right: 8%;
        animation-delay: 7s;
        transform: rotate(45deg);
    }
    
    /* Scale up elements for larger screens */
    .floating-particle {
        transform-origin: center;
    }
    
    .gradient-orb {
        filter: blur(3px);
    }
    
    .pulse-ring {
        border-width: 3px;
    }
    
    /* Enhanced animations for desktop */
    .hero-section::before {
        animation: gradientShift 15s ease infinite, pulseBackground 10s ease-in-out infinite;
    }
    
    /* Desktop hero content enhancements */
    .hero-section h1 {
        position: relative;
        z-index: 3;
    }
    
    .hero-section .lead {
        position: relative;
        z-index: 3;
    }
    
    .hero-section .btn {
        position: relative;
        z-index: 3;
        transition: all 0.3s ease;
    }
    
    .hero-section .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
    }
    
    /* Desktop particle trail enhancements */
    .particle-trail .trail-particle {
        animation-duration: 20s;
    }
    
    /* Desktop geometric shape variations */
    .geometric-shape {
        animation-duration: 25s;
    }
    
    /* Desktop floating icon enhancements */
    .floating-icon {
        animation-duration: 15s;
    }
    
    /* Desktop animated line enhancements */
    .animated-line {
        animation-duration: 12s;
    }
    
    .line-1 {
        width: 100px;
        right: 8%;
    }
    
    .line-2 {
        width: 120px;
        left: 5%;
    }
    
    .line-3 {
        width: 80px;
        left: 12%;
    }
    
    /* Desktop interactive enhancements */
    .hero-section:hover .floating-particle {
        animation-play-state: paused;
    }
    
    .hero-section:hover .gradient-orb {
        transform: scale(1.1);
        transition: transform 0.3s ease;
    }
    
    .hero-section:hover .floating-icon {
        color: rgba(33, 150, 243, 0.9);
        transition: color 0.3s ease;
    }
    
    /* Desktop particle interaction */
    @media (hover: hover) {
        .hero-animations:hover .floating-particle {
            animation-duration: 3s;
        }
        
        .hero-animations:hover .pulse-ring {
            animation-duration: 2s;
        }
    }
}



/* ========================
   BOUTON RETOUR EN HAUT
   ======================== */

/* Bouton de retour en haut fixe */
.back-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    font-size: 20px;
    line-height: 50px;
    z-index: 1050;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Effet de survol du bouton retour en haut */
.back-to-top-btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* État visible du bouton retour en haut */
.back-to-top-btn.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* ========================
   ANIMATIONS DE DÉFILEMENT
   ======================== */

/* Configuration de base pour les animations au défilement */
.animate-on-scroll {
    opacity: 0;
    animation-duration: 0.6s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Forcer la visibilité pour les nombres de statistiques */
.stat-number.animate-on-scroll {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Classes d'animation de défilement */
.animate-fade-in-up { animation-name: fadeInUp; }
.animate-fade-in { animation-name: fadeIn; }
.animate-slide-in-left { animation-name: slideInLeft; }
.animate-slide-in-right { animation-name: slideInRight; }

/* Délais d'animation pour effets échelonnés */
.animate-delay-100 { animation-delay: 0.05s; }
.animate-delay-200 { animation-delay: 0.1s; }
.animate-delay-300 { animation-delay: 0.15s; }
.animate-delay-400 { animation-delay: 0.2s; }
.animate-delay-500 { animation-delay: 0.25s; }

/* ========================
   ANIMATION DE DÉFILEMENT DES PARTENAIRES
   ======================== */

/* Conteneur de défilement des partenaires */
.partners-scroll {
    display: block;
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* Animation de défilement horizontal */
@keyframes scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Conteneur interne avec animation continue */
.partners-scroll-inner {
    display: flex;
    align-items: center;
    width: max-content;
    --scroll-duration: 30s;
    animation: scroll var(--scroll-duration) linear infinite;
    will-change: transform;
    animation-play-state: running !important;
}

/* Pause de l'animation au survol */
.partners-scroll:hover .partners-scroll-inner,
.partners-scroll-inner.paused {
    animation-play-state: paused !important;
}

/* Styles de la barre de navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

/* Logo de la barre de navigation */
.navbar-brand .navbar-logo {
    max-height: 45px;
    width: auto;
}

/* Liens de navigation avec transitions */
.nav-link {
    font-weight: 500;
    color: var(--dark-blue-custom) !important;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    position: relative;
    padding-bottom: 8px; /* Espace pour le soulignement */
}

/* États de survol et actif des liens */
.nav-link:hover,
.nav-link.active {
    color: var(--primary-custom) !important;
}

/* Effet de soulignement animé */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-custom);
    transition: width 0.3s ease;
}

/* Activation du soulignement au survol */
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Bouton de basculement sans bordure */
.navbar-toggler {
    border: none;
}

/* Suppression du focus du bouton de basculement */
.navbar-toggler:focus {
    box-shadow: none;
}

/* Menu déroulant avec ombre */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

/* Éléments du menu déroulant */
.dropdown-item {
    font-weight: 500;
    color: var(--dark-blue-custom);
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* États de survol des éléments de menu déroulant */
.dropdown-item:hover,
.dropdown-item.active {
    background-color: var(--primary-light-custom);
    color: var(--primary-custom);
}

/* Icônes dans les éléments de menu déroulant */
.dropdown-item i {
    margin-right: 0.5rem;
    color: var(--primary-custom);
}

/* Groupe de boutons radio pour la langue */
.language-radio-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(33, 150, 243, 0.2);
    transition: all 0.3s ease;
}

/* Effet de survol du groupe de sélection de langue */
.language-radio-group:hover {
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.3);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

/* Masquer les vrais boutons radio */
.language-radio-group input[type="radio"] {
    display: none;
}

/* Styliser les étiquettes comme des boutons radio */
.language-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    border: 2px solid transparent;
}

/* Effet de survol des étiquettes de langue */
.language-radio-label:hover {
    background: rgba(33, 150, 243, 0.1);
    transform: scale(1.05);
}

/* État sélectionné */
input[type="radio"]:checked + .language-radio-label {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light-custom));
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    transform: scale(1.1);
}

/* Images de drapeaux dans les boutons radio */
.language-radio-label .flag-image {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    transition: all 0.3s ease;
    filter: brightness(0.9);
    object-fit: cover;
    display: block;
}

/* Style du drapeau sélectionné */
input[type="radio"]:checked + .language-radio-label .flag-image {
    filter: brightness(1.1) contrast(1.1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* États actif/focus */
.language-radio-label:active {
    transform: scale(0.95);
}

/* Focus du bouton radio */
input[type="radio"]:focus + .language-radio-label {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Navigation au clavier */
input[type="radio"]:focus-visible + .language-radio-label {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 15px;
}

/* Position relative pour les info-bulles */
.language-radio-label {
    position: relative;
}

/* Info-bulles des étiquettes de langue */
.language-radio-label::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

/* Affichage des info-bulles au survol */
.language-radio-label:hover::after {
    opacity: 1;
}

/* Ajustements responsive pour mobile */
@media (max-width: 991.98px) {
    /* Groupe de sélection de langue centré sur mobile */
    .language-radio-group {
        margin: 8px 0;
        justify-content: center;
        width: fit-content;
    }
    
    /* Étiquettes de langue plus grandes sur mobile */
    .language-radio-label {
        width: 36px;
        height: 28px;
    }
    
    /* Images de drapeaux agrandies sur mobile */
    .language-radio-label .flag-image {
        width: 22px;
        height: 16px;
    }
}

/* Animation pour les transitions fluides */
@keyframes radioSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Application de l'animation lors de la sélection */
input[type="radio"]:checked + .language-radio-label {
    animation: radioSelect 0.3s ease;
}

/* Icon-only navbar for desktop */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-width: 48px;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link .nav-text {
        opacity: 0;
        max-width: 0;
        margin-left: 0;
        white-space: nowrap;
        font-size: 0.95rem;
        font-weight: 500;
        transition: all 0.3s ease;
        overflow: hidden;
    }
    
    .navbar-nav .nav-link:hover {
        min-width: auto;
    }
    
    .navbar-nav .nav-link:hover .nav-text {
        opacity: 1;
        max-width: 150px;
        margin-left: 8px;
    }
    
    .navbar-nav .nav-link i {
        margin-right: 0 !important;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    /* Hide original text content on desktop */
    .navbar-nav .nav-link:not(.cart-toggle) {
        font-size: 0;
    }
    
    /* Dropdown specific adjustments */
    .navbar-nav .dropdown-toggle {
        font-size: 0;
    }
    
    .navbar-nav .dropdown-toggle::after {
        margin-left: 8px;
        margin-top: 0;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .dropdown-toggle:hover::after {
        opacity: 1;
    }
    
    /* Cart counter specific styling */
    .navbar-nav .cart-toggle {
        font-size: 0;
        position: relative;
    }
    
    .navbar-nav .cart-toggle .cart-counter {
        position: absolute;
        top: -5px;
        right: -5px;
        background: var(--primary-color);
        color: white;
        font-size: 0.7rem;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 10px;
        min-width: 18px;
        text-align: center;
        line-height: 1;
        z-index: 10;
    }
    
    /* CTA button adjustments - text always visible */
    .navbar-cta .btn {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem;
        min-width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
    
    .navbar-cta .btn i {
        font-size: 1.1rem;
        margin-right: 8px !important;
        flex-shrink: 0;
    }
    
    .navbar-cta .btn .nav-text {
        opacity: 1;
        max-width: none;
        margin-left: 0;
        font-size: 0.9rem;
        font-weight: 500;
    }
}

/* Ajustements pour les petits écrans */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .nav-link {
        padding-left: 0;
    }

    .nav-link::after {
        display: none;
    }

    .navbar-cta {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .navbar-cta .btn {
        width: 100%;
    }
    
    /* Ensure text is visible on mobile */
    .navbar-nav .nav-link {
        font-size: 0.95rem !important;
    }
    
    .navbar-nav .nav-link i {
        margin-right: 0.5rem !important;
    }
    
    .navbar-cta .btn {
        font-size: 0.9rem !important;
    }
    
    .navbar-cta .btn i {
        margin-right: 0.5rem !important;
    }
}


/* Partner Logo Styles */
.partners-scroll-inner img,
.partners-scroll-inner .partner-logo {
    display: inline-block;
    width: 120px !important;
    height: 80px !important;
    object-fit: contain !important;
    margin: 0 20px;
}

.partner-logo,
.partner-grid-logo {
    width: 120px;
    height: 80px;
    object-fit: contain;
    margin: 0 20px;
    filter: none;
    transition: transform 0.3s ease;
}

.partner-logo:hover,
.partner-grid-logo:hover {
    transform: scale(1.1);
}

/* Ensure ALL partner logos have consistent fixed size */
#partners img,
#partners .partner-logo,
#partners .partner-grid-logo {
    width: 120px !important;
    height: 80px !important;
    object-fit: contain !important;
    transition: transform 0.3s ease;
}

#partners img:hover,
#partners .partner-logo:hover,
#partners .partner-grid-logo:hover {
    transform: scale(1.1);
}

/* Partners grid styles */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
}

/* Strong overrides for consistency */
.partners-scroll, 
.partners-scroll-inner, 
.partner-logo, 
.partners-scroll img {
    filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
}

/* ========================
   RESPONSIVE PARTNER LOGOS
   ======================== */
@media (max-width: 768px) {
    #partners img,
    #partners .partner-logo,
    #partners .partner-grid-logo,
    .partners-scroll-inner img,
    .partners-scroll-inner .partner-logo {
        width: 100px !important;
        height: 65px !important;
        margin: 0 15px;
    }
}

@media (max-width: 480px) {
    #partners img,
    #partners .partner-logo,
    #partners .partner-grid-logo,
    .partners-scroll-inner img,
    .partners-scroll-inner .partner-logo {
        width: 80px !important;
        height: 50px !important;
        margin: 0 10px;
    }
}

/* ========================
   CSS CUSTOM PROPERTIES
   ======================== */

:root {
    /* Primary Colors */
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #64B5F6;
    
    /* Secondary Colors */
    --secondary-color: #FFA500;
    --secondary-dark: #FF8C00;
    --secondary-light: #FFB74D;
    
    /* Neutral Colors */
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    
    /* Gray Scale */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Status Colors */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(33, 150, 243, 0.9) 0%, rgba(100, 181, 246, 0.8) 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.1s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================
   BASE STYLES
   ======================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
}

/* Provide fallback values for older browsers */
body { 
    color: #343a40; 
    background-color: #ffffff; 
}

.text-primary-custom { 
    color: var(--primary-color); 
}

.btn-primary-custom { 
    background: var(--primary-dark); 
    color: var(--white); 
}

/* Modern flexbox for cards */
.card-equal { 
    display: flex; 
    flex-direction: column; 
}

.card-equal .card-body { 
    flex: 1 1 auto; 
}

/* Responsive images */
img { 
    max-width: 100%; 
    height: auto; 
}

/* ========================
   CARD LAYOUTS
   ======================== */

/* Equal height cards for consistent layouts */
.card-equal {
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

.card-equal .card-img-top {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.card-equal .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.card-equal .card-text {
    flex: 1 1 auto;
}

.card-equal .stretched-link {
    margin-top: auto;
}



/* ========================
   TYPOGRAPHY
   ======================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.display-5 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
}

/* ========================
   CLASSES UTILITAIRES
   ======================== */

/* Arrière-plan primaire personnalisé */
.bg-primary-custom {
    background: var(--gradient-primary) !important;
}

/* Arrière-plan secondaire personnalisé */
.bg-secondary-custom {
    background: var(--gradient-secondary) !important;
}

/* Texte primaire personnalisé */
.text-primary-custom {
    color: var(--primary-color) !important;
}

/* Texte secondaire personnalisé */
.text-secondary-custom {
    color: var(--secondary-color) !important;
}

/* Badges par catégorie */
.badge-nouveaute {
    background: var(--primary-dark);
    color: var(--white);
}

/* Badge pour les événements */
.badge-evenement {
    background: var(--secondary-color);
    color: var(--dark-color);
}

/* Badge pour les formations */
.badge-formation {
    background: var(--success-color);
    color: var(--white);
}

/* Badge par défaut */
.badge-default {
    background: var(--gray-200);
    color: var(--dark-color);
}

/* Utilitaire de troncature de texte */
.text-truncate-140 {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================
   STYLES DE BOUTONS
   ======================== */

/* Configuration de base des boutons */
.btn {
    font-weight: 600;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
}

/* Effet de ripple pour les boutons */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 1;
}

/* Activation de l'effet de ripple au survol */
.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Variantes de boutons */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* Effet de survol du bouton primaire */
.btn-primary-custom:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Bouton secondaire personnalisé */
.btn-secondary-custom {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* Effet de survol du bouton secondaire */
.btn-secondary-custom:hover {
    background: var(--gradient-secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Bouton contour primaire */
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* Effet de survol du bouton contour */
.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Tailles de boutons */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Bouton petit */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========================
   SECTION HÉRO AMÉLIORÉE
   ======================== */

/* Section héro avec dégradé et image de fond */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%), 
                url('../images/1734520968213.webp') center/cover no-repeat;
    min-height: 71vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Superposition avec dégradé animé */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(33, 150, 243, 0.1) 0%, 
        rgba(100, 181, 246, 0.1) 50%, 
        rgba(255, 165, 0, 0.1) 100%);
    animation: gradientShift 8s ease infinite;
    z-index: 0;
}

/* Motif d'arrière-plan spécifique au bureau */
@media (min-width: 768px) {
    .hero-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 15% 25%, rgba(33, 150, 243, 0.08) 0%, transparent 35%),
            radial-gradient(circle at 85% 75%, rgba(255, 165, 0, 0.06) 0%, transparent 35%),
            radial-gradient(circle at 50% 10%, rgba(100, 181, 246, 0.04) 0%, transparent 40%),
            radial-gradient(circle at 20% 80%, rgba(23, 162, 184, 0.05) 0%, transparent 30%);
        animation: desktopBackgroundShift 20s ease-in-out infinite;
        z-index: 0;
    }
}

/* Conteneur principal de la section héro */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Titre principal de la section héro */
.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

/* Texte principal de la section héro */
.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Bouton de la section héro */
.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Image de la section héro */
.hero-section img {
    animation: float 6s ease-in-out infinite;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    position: relative;
    z-index: 2;
}

/* Container de l'image hero */
.hero-image-container {
    position: relative;
    overflow: visible;
}

/* Barre d'accent verticale améliorée */
.hero-accent-bar {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 8px;
    height: calc(100% + 40px);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    z-index: 1;
    animation: slideInRight 1.5s ease-out 0.5s both;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.4);
}

.hero-accent-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

.hero-accent-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.6);
    animation: pulse 2s ease-in-out infinite 1s;
}

/* Overlay avec gradient */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.1) 0%, 
        rgba(100, 181, 246, 0.05) 50%, 
        rgba(255, 165, 0, 0.1) 100%);
    border-radius: var(--radius-xl);
    z-index: 1;
    animation: fadeIn 1s ease-out 0.8s both;
}

/* Éléments décoratifs */
.hero-decoration {
    position: absolute;
    z-index: 3;
    animation: fadeInUp 1s ease-out 1s both;
}

.hero-dot-1 {
    top: 20%;
    left: -15px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
    animation: float 3s ease-in-out infinite;
}

.hero-dot-2 {
    top: 60%;
    right: -10px;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.5);
    animation: float 4s ease-in-out infinite 0.5s;
}

.hero-dot-3 {
    bottom: 30%;
    left: -8px;
    width: 6px;
    height: 6px;
    background: var(--info-color);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(23, 162, 184, 0.5);
    animation: float 3.5s ease-in-out infinite 1s;
}

.hero-line {
    top: 50%;
    left: -25px;
    width: 20px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transform: translateY(-50%);
    animation: slideInLeft 1s ease-out 1.2s both;
}

.hero-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: pulse 2s ease-in-out infinite;
}

/* Navigation améliorée */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(33, 150, 243, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

/* Logo */
.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.navbar-logo {
    transition: all var(--transition-normal);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Bouton hamburger */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 150, 243, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: transform 0.3s ease-in-out, background-image 0.3s ease-in-out;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba%2833, 150, 243, 1%29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e");
    transform: rotate(90deg);
}

/* Liens de navigation */
.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-item {
    margin: 0 0.25rem;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--gray-700) !important;
    padding: 0.75rem 1rem !important;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.navbar-nav .nav-link i {
    font-size: 0.9rem;
    transition: transform var(--transition-normal);
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.1);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(33, 150, 243, 0.08);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(33, 150, 243, 0.1);
}

.navbar-nav .nav-link.active::before {
    width: 80%;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(33, 150, 243, 0.1);
    min-width: 220px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all var(--transition-normal);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.dropdown-item i {
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
}

.dropdown-item:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.dropdown-item.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.dropdown-item.active i {
    color: var(--white);
}

/* Bouton CTA */
.navbar-cta {
    margin-left: 1rem;
}

.navbar-cta .btn {
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    transition: all var(--transition-normal);
}

.navbar-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(33, 150, 243, 0.1);
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem !important;
        border-radius: var(--radius-lg);
        margin: 0.25rem 0;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: rgba(33, 150, 243, 0.05);
        margin-top: 0;
        border-radius: var(--radius-lg);
    }
    
    .dropdown-item {
        padding: 0.75rem 2rem;
    }
    
    .navbar-cta {
        margin: 1rem 0 0 0;
        text-align: center;
    }
    
    .navbar-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dropdown: ouverture au survol (desktop) */
@media (min-width: 992px) {
  .navbar .dropdown .dropdown-menu {
    display: block; /* nécessaire pour permettre l’animation d’opacité/visibilité */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
    margin-top: 0;
  }
  .navbar .dropdown:hover > .dropdown-menu,
  .navbar .dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  /* Caret animé sur le toggle */
  .navbar .dropdown-toggle::after {
    transition: transform var(--transition-normal);
  }
  .navbar .dropdown:hover > .dropdown-toggle::after,
  .navbar .dropdown:focus-within > .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

/* Show class for dropdown menus on mobile */
.dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Cards améliorées */
.card-custom {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    height: 100%;
    background: var(--gradient-card);
    position: relative;
}

.card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    z-index: 2;
}

.card-custom .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card-custom:hover .card-img-top {
    transform: scale(1.2);
}

.card-custom .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-custom .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.card-custom .card-text {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Section spécialisée améliorée */
.specialized-card {
    border: none;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    height: 100%;
    background: var(--white);
    position: relative;
}

.specialized-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.specialized-card:hover::before {
    opacity: 0.05;
}

.specialized-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-2xl);
}

.specialized-card .card-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
}

.specialized-card .card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.specialized-card .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.specialized-card:hover .card-title::after {
    width: 100%;
}

.specialized-card .card-text {
    color: var(--gray-600);
    line-height: 1.8;
    margin: 1.5rem 0;
    font-size: 1.1rem;
    flex-grow: 1;
}

.specialized-card .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.specialized-card .btn:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.specialized-card .btn i {
    margin-left: 0.5rem;
    transition: transform var(--transition-normal);
}

.specialized-card .btn:hover i {
    transform: translateX(5px);
}

/* ========================
   SECTION À PROPOS AMÉLIORÉE
   ======================== */

/* Section à propos avec dégradé d'arrière-plan */
#about {
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

/* Texture d'arrière-plan en SVG pour la section à propos */
#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e3f2fd" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23e3f2fd" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23e3f2fd" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

/* Conteneur principal de la section à propos */
#about .container {
    position: relative;
    z-index: 2;
}

/* Titre principal de la section à propos */
#about h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
}

/* Conteneur d'image de la section à propos */
#about .img-container {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

/* Image de la section à propos */
#about img {
    max-height: 450px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-normal);
}

/* Effet de survol de l'image */
#about .img-container:hover img {
    transform: scale(1.05);
}

/* Texte de la section à propos */
#about .about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0;
}

/* Sous-titre de la section à propos */
#about h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.75rem;
}

/* Paragraphes et listes de la section à propos */
#about p, #about li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--gray-700);
}

/* Liste non ordonnée de la section à propos */
#about ul {
    padding-left: 0;
}

/* Éléments de liste de la section à propos */
#about li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.5rem;
    list-style: none;
}

/* Icônes dans les éléments de liste */
#about li i {
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================
   SECTION IMPACT AMÉLIORÉE
   ======================== */

/* Section impact avec dégradé primaire */
#impact {
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Texture d'arrière-plan en SVG pour la section impact */
#impact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

/* Conteneur principal de la section impact */
#impact .container {
    position: relative;
    z-index: 2;
}

/* Titre principal de la section impact */
#impact h2 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

/* Nombres de statistiques de la section impact */
#impact .stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white) !important; /* Forcer le blanc même si une classe utilitaire est présente */
    line-height: 1.2;
    margin-bottom: 1rem;
    display: block;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 1px rgba(255, 255, 255, 0.25);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.08);
    animation: glow 2s ease-in-out infinite alternate;
    position: relative;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    /* Force visibility for counter numbers */
    opacity: 1 !important;
    visibility: visible !important;
}

/* Texte des statistiques de la section impact */
#impact p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ========================
   SECTION ACTUALITÉS AMÉLIORÉE
   ======================== */

/* Carte d'actualité avec transitions */
.news-card {
    transition: all var(--transition-normal);
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 100%;
    position: relative;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

/* Configuration de base de la carte d'actualité */
.news-card .card {
    height: 100%;
    border: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    background: var(--gradient-card);
}

/* Effet de survol de la carte d'actualité */
.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

/* Effet de survol de la carte */
.news-card:hover .card {
    box-shadow: var(--shadow-2xl);
}

/* Image de la carte d'actualité */
.news-card .card-img-top {
    transition: transform var(--transition-slow);
    object-fit: cover;
    height: 220px;
    width: 100%;
}

/* Effet de zoom de l'image au survol */
.news-card:hover .card-img-top {
    transform: scale(1.1);
}

/* Corps de la carte d'actualité */
.news-card .card-body {
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 2rem;
}

.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.badge.bg-primary-custom { background: var(--gradient-primary); }
.badge.bg-success { background: var(--success-color); }
.badge.bg-info { background: var(--info-color); }

/* Badges personnalisés pour les catégories d'actualités */
.badge-nouveaute {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.badge-evenement {
    background: linear-gradient(135deg, #007bff, #6f42c1);
    color: white;
}

.badge-formation {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.badge-default {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

/* ========================
   SECTION TÉMOIGNAGES AMÉLIORÉE
   ======================== */

/* Carte de témoignage avec ombre */
.testimonial-card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-card);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Barre de décoration de la carte de témoignage */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

/* Effet de survol de la barre de décoration */
.testimonial-card:hover::before {
    transform: scaleX(1);
}

/* Effet de survol de la carte de témoignage */
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

/* Corps de la carte de témoignage */
.testimonial-card .card-body {
    padding: 2.5rem;
}

/* Titre de la carte de témoignage */
.testimonial-card .card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Texte atténué de la carte de témoignage */
.testimonial-card .text-muted {
    color: var(--gray-600) !important;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Texte principal de la carte de témoignage */
.testimonial-card .card-text {
    color: var(--gray-700);
    line-height: 1.8;
    font-style: italic;
    font-size: 1.05rem;
}

/* Avatar pour les témoignages */
.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* ========================
   STYLES POUR LES BADGES AMÉLIORÉS
   ======================== */

/* Badge personnalisé avec dégradé primaire */
.badge.bg-primary-custom { background: var(--gradient-primary); }

/* Badge de succès */
.badge.bg-success { background: var(--success-color); }

/* Badge d'information */
.badge.bg-info { background: var(--info-color); }

/* Badge d'avertissement */
.badge.bg-warning { background: var(--warning-color); }

/* ========================
   STYLES POUR LES BLOCKQUOTES
   ======================== */

/* Configuration de base des blockquotes */
blockquote {
    position: relative;
    padding: 1rem 0;
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.8;
}

/* Icônes de citation dans les blockquotes */
blockquote .fas.fa-quote-left,
blockquote .fas.fa-quote-right {
    opacity: 0.3;
    font-size: 0.8em;
}

/* ========================
   DIVIDER AMÉLIORÉ
   ======================== */

/* Ligne de séparation avec dégradé */
.divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 1.5rem auto;
}

/* ========================
   SECTION CONTACT AMÉLIORÉE
   ======================== */

/* Section contact avec dégradé d'arrière-plan */
#contact {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    position: relative;
}

/* Contrôles de formulaire de la section contact */
#contact .form-control,
#contact .form-select {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 1rem;
    font-size: 1rem;
    transition: all var(--transition-normal);
    background: var(--white);
}

/* Effet de focus des contrôles de formulaire */
#contact .form-control:focus,
#contact .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
    outline: none;
}

/* Étiquettes de formulaire de la section contact */
#contact .form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Informations de contact */
.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

/* Titres des informations de contact */
.contact-info h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Icônes des informations de contact */
.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Texte des informations de contact */
.contact-info p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* Conteneur de carte */
.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ========================
   PIED DE PAGE AMÉLIORÉ
   ======================== */

/* Configuration de base du pied de page */
footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--dark-color) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Texture d'arrière-plan en SVG pour le pied de page */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-dots)"/></svg>');
}

/* Conteneur principal du pied de page */
footer .container {
    position: relative;
    z-index: 2;
}

/* Section supérieure du pied de page */
.footer-top {
    background: transparent;
    padding: 3rem 0;
}

/* Icônes sociales */
.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    transition: all var(--transition-normal);
    color: var(--white);
    text-decoration: none;
}

/* Effet de survol des icônes sociales */
.social-icon:hover {
    background: var(--gradient-secondary);
    color: var(--white);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Titres du pied de page */
footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Éléments de liste du pied de page */
footer ul li {
    margin-bottom: 0.75rem;
}

/* Liens du pied de page */
footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-weight: 500;
}

footer ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

/* Styles pour le formulaire de contact */
.contact-form .form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 1rem;
    font-size: 1rem;
    transition: all var(--transition-normal);
    background: var(--white);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
    outline: none;
    transform: translateY(-2px);
}

.contact-form .form-control::placeholder {
    color: var(--gray-500);
    font-style: italic;
}

/* Effets de hover supplémentaires */
.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-glow:hover {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Focus styles pour l'accessibilité */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* États de chargement */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Indicateur de chargement animé */
.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


/* ========================
   SECTION CLIENTS AMÉLIORÉE
   ======================== */

/* Section clients avec dégradé d'arrière-plan */
#clients {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

/* Texture d'arrière-plan en SVG pour la section clients */
#clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="clients-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%23e3f2fd" opacity="0.1"/><circle cx="0" cy="0" r="1" fill="%23e3f2fd" opacity="0.1"/><circle cx="50" cy="50" r="1" fill="%23e3f2fd" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23clients-pattern)"/></svg>');
    opacity: 0.3;
}

/* Conteneur principal de la section clients */
#clients .container {
    position: relative;
    z-index: 2;
}

/* Titre principal de la section clients */
#clients h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

/* Cartes clients améliorées */
.client-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    height: 100%;
    position: relative;
    border: 1px solid rgba(33, 150, 243, 0.08);
}

/* Barre de décoration de la carte client */
.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
    z-index: 1;
}

/* Effet de survol de la barre de décoration */
.client-card:hover::before {
    transform: scaleX(1);
}

/* Effet de survol de la carte client */
.client-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(33, 150, 243, 0.2);
}

/* Lien de la carte client */
.client-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
}

/* Effet de survol du lien de la carte client */
.client-link:hover {
    color: inherit;
    text-decoration: none;
}

/* Conteneur du logo client */
.client-logo-container {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    background: rgba(33, 150, 243, 0.03);
    transition: all var(--transition-normal);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

/* Effet de survol du conteneur du logo client */
.client-card:hover .client-logo-container {
    background: rgba(33, 150, 243, 0.08);
    transform: scale(1.05);
}

/* Logo client */
.client-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all var(--transition-normal);
    filter: grayscale(20%) brightness(0.9);
}

/* Effet de survol du logo client */
.client-card:hover .client-logo {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* Informations du client */
.client-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Nom du client */
.client-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.3;
    text-align: center;
    transition: color var(--transition-normal);
}

/* Effet de survol du nom du client */
.client-card:hover .client-name {
    color: var(--primary-color);
}

/* Indicateur de lien du client */
.client-link-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(10px);
}

/* Effet de survol de l'indicateur de lien du client */
.client-card:hover .client-link-indicator {
    opacity: 1;
    transform: translateY(0);
    color: var(--primary-color);
}

/* Icône de l'indicateur de lien du client */
.client-link-indicator i {
    font-size: 0.8rem;
}

/* Conteneur d'appel à l'action client */
.client-cta-container {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(33, 150, 243, 0.1);
    position: relative;
    overflow: hidden;
}

/* Superposition du conteneur d'appel à l'action client */
.client-cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.02;
}

/* Bouton du conteneur d'appel à l'action client */
.client-cta-container .btn {
    position: relative;
    z-index: 2;
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.client-cta-container .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(33, 150, 243, 0.4);
}

/* Responsive pour la section clients */
@media (max-width: 991.98px) {
    #clients h2 {
        font-size: 2.5rem;
    }
    
    .client-card {
        margin-bottom: 2rem;
    }
    
    .client-link {
        padding: 1.5rem;
    }
    
    .client-logo-container {
        width: 100px;
        height: 100px;
    }
    
    .client-name {
        font-size: 1rem;
    }
    
    .client-cta-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    #clients h2 {
        font-size: 2rem;
    }
    
    .client-link {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .client-logo-container {
        width: 80px;
        height: 80px;
    }
    
    .client-name {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .client-cta-container {
        padding: 1.5rem 1rem;
    }
    
    .client-cta-container .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    #clients h2 {
        font-size: 1.75rem;
    }
    
    .client-link {
        padding: 1rem;
    }
    
    .client-logo-container {
        width: 70px;
        height: 70px;
    }
    
    .client-name {
        font-size: 0.9rem;
    }
    
    .client-cta-container {
        padding: 1.25rem 0.75rem;
    }
    
    .client-link-indicator {
        font-size: 0.8rem;
    }
}

/* Responsive pour la section clients */
@media (max-width: 991.98px) {
    #clients h2 {
        font-size: 2.5rem;
    }
    
    .client-card {
        padding: 2rem;
    }
    
    .client-logo {
        width: 100px;
        height: 100px;
    }
    
    .client-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 767.98px) {
    #clients h2 {
        font-size: 2rem;
    }
    
    .client-card {
        padding: 1.5rem;
    }
    
    .client-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }
    
    .client-name {
        font-size: 1.2rem;
    }
    
    .client-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    #clients h2 {
        font-size: 1.75rem;
    }
    
    .client-card {
        padding: 1.25rem;
    }
    
    .client-logo {
        width: 70px;
        height: 70px;
    }
    
    .client-name {
        font-size: 1.1rem;
    }
    
    .client-testimonial {
        padding: 1rem;
    }
    
    .client-testimonial p {
        padding-left: 1.5rem;
    }
}

/* Responsive Design amélioré */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .display-5 {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem !important;
        border-radius: var(--radius-md);
        margin: 0.25rem 0;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: var(--shadow-lg);
        margin-top: 0.5rem;
    }
    
    .specialized-card .card-body {
        padding: 2rem;
    }
    
    #about h2 {
        font-size: 2.5rem;
    }
    
    #impact .stat-number {
        font-size: 2.5rem;
        padding: 0.5rem 1rem;
    }
    

}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 67vh; /* Increased by 20% from 56vh */
        text-align: center;
        animation: mobileHeroEntrance 1.2s ease-out;
        position: relative;
        overflow: hidden;
    }
    
    /* Enhanced mobile hero background animation */
    .hero-section::before {
        animation: gradientShift 12s ease infinite, pulseBackground 8s ease-in-out infinite;
    }
    
    /* Add a subtle animated background pattern for mobile */
    .hero-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 30%, rgba(33, 150, 243, 0.1) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(255, 165, 0, 0.08) 0%, transparent 40%),
            radial-gradient(circle at 50% 50%, rgba(100, 181, 246, 0.06) 0%, transparent 50%);
        animation: backgroundShift 15s ease-in-out infinite;
        z-index: 0;
    }
    
    /* Ensure content is above animated background */
    .hero-section .container {
        position: relative;
        z-index: 2;
    }
    
    /* Make the hero title a bit larger on mobile for better visual impact */
    .hero-section h1 {
        font-size: 2.8rem;
        line-height: 1.08;
        margin-bottom: 1rem;
        animation: mobileHeroTitleSlideUp 1s ease-out 0.3s both;
        position: relative;
        z-index: 3;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        animation: mobileHeroTextFadeIn 1s ease-out 0.6s both;
        position: relative;
        z-index: 3;
    }
    
    .hero-section .btn {
        animation: mobileHeroBtnBounce 1s ease-out 0.9s both;
        position: relative;
        z-index: 3;
        transition: all 0.3s ease;
    }
    
    /* Enhanced button hover effects on mobile */
    .hero-section .btn:active {
        transform: scale(0.95);
    }
    
    .hero-section .btn-primary-custom:active {
        box-shadow: 0 0 20px rgba(33, 150, 243, 0.6);
    }
    
    /* Adjustments for decorative elements on mobile */
    .hero-accent-bar {
        width: 6px;
        right: -15px;
        top: -15px;
        height: calc(100% + 30px);
    }
    
    .hero-accent-bar::before,
    .hero-accent-bar::after {
        width: 16px;
        height: 16px;
    }
    
    .hero-dot-1 {
        width: 10px;
        height: 10px;
        left: -10px;
    }
    
    .hero-dot-2 {
        width: 6px;
        height: 6px;
        right: -8px;
    }
    
    .hero-dot-3 {
        width: 5px;
        height: 5px;
        left: -6px;
    }
    
    .hero-line {
        width: 15px;
        left: -20px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .card-custom .card-body {
        padding: 1.5rem;
    }
    
    .specialized-card .card-body {
        padding: 1.5rem;
    }
    
    .specialized-card .card-title {
        font-size: 1.5rem;
    }

    /* Make hero image more prominent on mobile: allow larger max-height and full width */
    .hero-image-container {
        display: none; /* Hide hero image on mobile */
    }

    .hero-image-container img {
        display: none; /* Hide hero image on mobile */
    }

    /* Adjust hero section layout without image */
    .hero-section .row {
        justify-content: center;
    }
    
    .hero-section .col-lg-6:first-child {
        max-width: 100%;
        text-align: center;
    }

    /* Remove forced tall blocks on small screens (overrides inline style height:600px) */
    .specialized-card {
        height: auto !important;
        overflow: visible !important;
    }

    /* Stack the internal columns for better flow on narrow viewports */
    .specialized-card .row {
        flex-direction: column;
    }

    .specialized-card .col-md-6 {
        max-height: none;
        width: 100%;
    }
    
    /* Fixed image size for specialized equipment (desktop) */
    #specialized-equipment .specialized-card .col-md-6 img {
        width: 360px;
        height: 360px;
        max-width: none;
        object-fit: contain;
        display: block;
    }

    /* Ensure image column centers fixed-size image */
    #specialized-equipment .specialized-card .col-md-6 {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile override: images become fluid and limited in height */
    @media (max-width: 767.98px) {
        #specialized-equipment .specialized-card .col-md-6 img {
            width: 100% !important;
            height: auto !important;
            max-height: 120px;
        }
    }
    
    #about .about-text {
        padding: 2rem 0;
    }
    
    #about h2 {
        font-size: 2rem;
    }
    
    #impact .stat-number {
        font-size: 2.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-custom .card-title {
        font-size: 1.25rem;
    }
    
    .specialized-card .card-title {
        font-size: 1.3rem;
    }
    
    #about h2 {
        font-size: 1.75rem;
    }
    
    #impact .stat-number {
        font-size: 2rem;
        padding: 0.5rem 0.75rem;
    }
    

}

/* Animations pour les éléments au scroll */
.animate-on-scroll.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Effets de hover supplémentaires */
.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-glow:hover {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Focus styles pour l'accessibilité */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Styles de la lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1060; /* Index z élevé */
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

/* Contenu de la lightbox */
.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Légende de la lightbox */
#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Contenu et légende de la lightbox */
.lightbox-content, #lightbox-caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* Animation de zoom */
@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* Bouton de fermeture de la lightbox */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

/* Effet de survol du bouton de fermeture */
.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Déclencheur de la lightbox */
.lightbox-trigger {
    cursor: pointer;
}

/* =======================
   STYLES DE RECHERCHE GLOBALE
   ======================= */

/* Améliorations de la modale de recherche */
#searchModal .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* En-tête de la modale de recherche */
#searchModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 20px 20px 0 0;
}

/* Titre de la modale de recherche */
#searchModal .modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

/* Bouton de fermeture de la modale */
#searchModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* Effet de survol du bouton de fermeture */
#searchModal .btn-close:hover {
    opacity: 1;
}

/* Correction des problèmes de fond de modale */
#searchModal {
    z-index: 1055;
}

/* Fond de modale */
#searchModal .modal-backdrop {
    z-index: 1054;
}

/* Nettoyage approprié */
body.modal-cleanup {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* Suppression des artefacts de fond persistants */
.modal-backdrop.fade:not(.show) {
    opacity: 0;
    pointer-events: none;
}

/* Search Input Styling */
.search-container .input-group {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-container .input-group-text {
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 15px 20px;
}

.search-container .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    background: rgba(248, 249, 250, 0.8);
    transition: all 0.3s ease;
}

.search-container .form-control:focus {
    background: white;
    box-shadow: none;
    transform: translateY(-1px);
}

/* Style des boutons de filtre de recherche */
.search-filters .filter-btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

/* Boutons de filtre inactifs */
.search-filters .filter-btn:not(.active) {
    background: transparent;
    color: var(--primary-color);
}

/* Boutons de filtre actifs */
.search-filters .filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* Effet de survol des boutons de filtre */
.search-filters .filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

/* Zone de résultats de recherche */
.search-results {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Barre de défilement des résultats de recherche */
.search-results::-webkit-scrollbar {
    width: 6px;
}

/* Piste de la barre de défilement */
.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

/* Poignée de la barre de défilement */
.search-results::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Effet de survol de la poignée */
.search-results::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Cartes de résultats de recherche */
.search-result-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

/* Effet de survol des cartes de résultats */
.search-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Titre des cartes de résultats */
.search-result-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Texte des cartes de résultats */
.search-result-card .card-text {
    color: var(--text-muted);
    line-height: 1.4;
}

/* En-têtes de section de recherche */
.search-section h6 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.1);
}

/* Badges de section de recherche */
.search-section .badge {
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Messages d'état de recherche */
#search-welcome,
#search-loading,
#search-no-results {
    padding: 40px 20px;
    text-align: center;
}

/* Icônes des messages de bienvenue et d'absence de résultats */
#search-welcome i,
#search-no-results i {
    color: var(--primary-color);
    opacity: 0.7;
}

/* Indicateur de chargement */
#search-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Ajustements responsive de recherche */
@media (max-width: 768px) {
    /* Dialogue de modale sur mobile */
    #searchModal .modal-dialog {
        margin: 10px;
    }
    
    /* Texte et icône du groupe de saisie sur mobile */
    .search-container .input-group-text,
    .search-container .form-control {
        padding: 12px 15px;
    }
    
    /* Filtres de recherche sur mobile */
    .search-filters {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    /* Conteneur flexible des filtres */
    .search-filters .d-flex {
        flex-wrap: nowrap;
    }
    
    /* Boutons de filtre sur mobile */
    .search-filters .filter-btn {
        white-space: nowrap;
        margin-right: 8px;
    }
    
    /* Résultats de recherche sur mobile */
    .search-results {
        max-height: 50vh;
    }
}

/* Indicateur de raccourci clavier de recherche */
.search-shortcut-hint {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 1060;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* État affiché de l'indicateur de raccourci */
.search-shortcut-hint.show {
    opacity: 1;
    transform: translateY(0);
}

/* Amélioration de l'icône de recherche */
#search-toggle {
    position: relative;
    transition: all 0.3s ease;
}

/* Effet de survol de l'icône de recherche */
#search-toggle:hover {
    transform: translateY(-1px);
}

/* Pseudo-élément après l'icône de recherche */
#search-toggle::after {
    content: 'Ctrl+K';
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--primary-color);
    color: white;
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-weight: 500;
}

/* Effet de survol du pseudo-élément */
#search-toggle:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    /* Masquage du pseudo-élément sur mobile */
    #search-toggle::after {
        display: none;
    }
}

/* Mise en évidence des résultats de recherche */
.search-highlight {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(255, 165, 0, 0.2));
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}