/* ===== ANIMATIONS POUR LA SECTION ISO CERTIFICATIONS ===== */

/* Animation du conteneur principal */
.iso-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 123, 255, 0.1);
}

/* .iso-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745, #0056b3, #007bff);
    background-size: 300% 100%;
    animation: gradient-flow 8s linear infinite;
    z-index: 5;
} */

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

/* Éléments décoratifs flottants */
.iso-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.05) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    z-index: 1;
    animation: float-bubble 15s ease-in-out infinite alternate;
}

@keyframes float-bubble {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(-50px, -50px) scale(1.2); opacity: 0.8; }
}

/* Animation du titre */
.iso-section .text-center h1 {
    position: relative;
    display: inline-block;
}

.iso-section .text-center h1.text-primary {
    background: linear-gradient(90deg, #007bff, #0056b3);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: text-shimmer 3s infinite;
}

@keyframes text-shimmer {
    0% { background-position: -100% 50%; }
    100% { background-position: 200% 50%; }
}

.iso-section .text-center .display-5 {
    position: relative;
}

.iso-section .text-center .display-5::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 3px;
    animation: width-pulse 3s ease-in-out infinite;
}

@keyframes width-pulse {
    0% { width: 80px; opacity: 0.7; }
    50% { width: 120px; opacity: 1; }
    100% { width: 80px; opacity: 0.7; }
}

/* Animation de l'image */
.iso-section .position-relative img {
    transition: all 0.8s ease;
    filter: saturate(1.1) contrast(1.05);
}

.iso-section .position-relative:hover img {
    transform: scale(1.03);
    filter: saturate(1.2) contrast(1.1);
}

/* Badge ISO amélioré */


.iso-certificate-badge:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.iso-certificate-badge::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.3) 0%, rgba(40, 167, 69, 0.3) 100%);
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    animation: badge-pulse 3s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

.iso-certificate-content {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
    overflow: hidden;
    position: relative;
}

.iso-certificate-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    /* Rendre l'élément visible par défaut */
    opacity: 1;
    transform: scale(1);
}

.iso-certificate-badge:hover .iso-certificate-content::before {
    opacity: 1;
    transform: scale(1);
}

.iso-certificate-content h1,
.iso-certificate-content h2,
.iso-certificate-content h5 {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.iso-certificate-badge:hover .iso-certificate-content h1 {
    transform: translateY(-3px);
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.iso-certificate-badge:hover .iso-certificate-content h2 {
    transform: scale(1.05);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.iso-certificate-badge:hover .iso-certificate-content h5 {
    transform: translateY(3px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Éléments décoratifs */
.iso-decorative-square {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    top: 20px;
    right: 20px;
    z-index: 1;
    animation: rotate-square 12s linear infinite;
    opacity: 0.5;
}

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

.iso-decorative-circle {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    bottom: 20px;
    left: 20px;
    z-index: 1;
    animation: pulse-circle 4s ease-in-out infinite alternate;
}

@keyframes pulse-circle {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.5); opacity: 0.2; }
}

/* Animation de la bordure du titre */
.iso-title-border {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.iso-title-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #007bff 0%, #0056b3 100%);
    animation: border-pulse 3s infinite;
}

@keyframes border-pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.iso-title-border:hover {
    transform: translateX(5px);
    padding-left: calc(1.5rem - 5px);
}

/* Animation des éléments de la liste */
.iso-feature-item {
    transition: all 0.4s ease;
    transform: translateX(0);
    position: relative;
    overflow: hidden;
}

.iso-feature-item:hover {
    transform: translateX(10px);
}

.iso-feature-item .btn-square {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.iso-feature-item:hover .btn-square {
    transform: rotate(10deg) scale(1.1);
}

.iso-feature-item .btn-square::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s ease;
}

.iso-feature-item:hover .btn-square::after {
    opacity: 1;
    transform: scale(1);
}

.iso-feature-item h6 {
    transition: all 0.3s ease;
}

.iso-feature-item:hover h6 {
    color: #007bff;
    transform: translateX(5px);
}

.iso-feature-item span {
    display: block;
    transition: all 0.4s ease;
    opacity: 0.8;
    transform: translateY(0);
}

.iso-feature-item:hover span {
    opacity: 1;
    transform: translateY(-3px);
}

/* Animation pour le paragraphe */
.iso-section p.mb-4 {
    position: relative;
    padding-left: 15px;
    border-left: 3px solid transparent;
    transition: all 0.4s ease;
}

.iso-section p.mb-4:hover {
    border-left-color: #007bff;
    padding-left: 20px;
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 0 5px 5px 0;
}

/* Animation pour les icônes */
.iso-feature-item .fa {
    transition: all 0.4s ease;
}

.iso-feature-item:hover .fa {
    transform: scale(1.2) rotate(360deg);
}

/* Effet de surbrillance au survol de la section */
.iso-section:hover::before {
    animation-duration: 4s;
    height: 5px;
}