/* Styles modernes pour INIMEX */

/* Animations de base */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Améliorations générales */
body {
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Amélioration de la vidéo d'arrière-plan */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    text-align: center;
    color: #fff;
    z-index: 2;
    padding: 20px;
}

.video-overlay p {
    font-size: 2.5rem;
    line-height: 1.4;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

@media (max-width: 1200px) {
    .video-overlay p {
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .video-overlay p {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .video-overlay {
        width: 95%;
        padding: 15px;
    }
    
    .video-overlay p {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .video-overlay {
        width: 100%;
        padding: 10px;
    }
    
    .video-overlay p {
        font-size: 1.2rem;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: break-word;
    }
}

/* Amélioration des cartes de services */
.blog-singe {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-singe:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-img-tab img {
    transition: transform 0.5s ease;
}

.blog-singe:hover .blog-img-tab img {
    transform: scale(1.05);
}

/* Amélioration des titres */
.section-title h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #005882;
    border-radius: 2px;
}

/* Amélioration de la description */
.home_description {
    animation: slideIn 0.8s ease-out;
    line-height: 1.8;
}

/* Amélioration des images */
.banner-img img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.banner-img img:hover {
    transform: scale(1.02);
}

/* Media Queries pour la responsivité */
@media (max-width: 768px) {
    .video-container {
        height: 60vh;
    }
    
    .blog-singe {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* Amélioration du chargement des images */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

.feature-box {
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.text-primary {
    color: #007bff !important;
}

.feature-box h3 {
    color: #333;
    font-weight: 600;
}

.feature-box p {
    color: #666;
    line-height: 1.6;
}
