/* Améliorations modernes pour COSFAC */

/* Espacement entre le menu et les sections */
.header + main .hero-section,
.header + main section:first-child {
    margin-top: 20px;
    padding-top: 100px;
}

/* Espacement spécifique pour les sections hero */
.offres-hero,
.formation-hero,
.certificate-hero,
.about-hero,
.services-hero,
.team-hero,
.portfolio-hero {
    margin-top: 20px;
    padding-top: 100px;
}

/* Animations fluides */
* {
    transition: all 0.3s ease;
}

/* Amélioration du slider */
.swiper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.swiper-slide img {
    transition: transform 0.5s ease;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

/* Amélioration des boutons */
.btn-get-started {
    background: linear-gradient(135deg, #00156f, #0033a0);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 21, 111, 0.3);
}

.btn-get-started:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 21, 111, 0.4);
    color: white;
}

/* Amélioration des sections */
.section {
    position: relative;
    overflow: hidden;
}

.section::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="%2300156f" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

/* Amélioration des cartes de services */
.services-item {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 21, 111, 0.1);
}

.services-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 21, 111, 0.15);
}

.services-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00156f, #0033a0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.services-item:hover .services-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 21, 111, 0.3);
}

.services-icon i {
    font-size: 24px;
    color: white;
}

/* Amélioration des cartes de blog */
.post-entry {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 21, 111, 0.1);
}

.post-entry:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 21, 111, 0.15);
}

.post-entry .thumb img {
    transition: transform 0.5s ease;
}

.post-entry:hover .thumb img {
    transform: scale(1.1);
}

.post-content {
    padding: 25px;
}

.post-content h3 a {
    color: #2d465e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: #00156f;
}

/* Amélioration des onglets flash info */
.service-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 21, 111, 0.1);
    margin-bottom: 15px;
}

.service-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 21, 111, 0.15);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00156f, #0033a0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.service-icon i {
    color: white;
    font-size: 20px;
}

/* Amélioration des statistiques */
.stats-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 21, 111, 0.1);
}

.stats-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 21, 111, 0.15);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: #00156f;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00156f, #0033a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Amélioration des formulaires */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #00156f;
    box-shadow: 0 0 0 0.2rem rgba(0, 21, 111, 0.25);
}

/* Amélioration des liens */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Amélioration des titres */
h1, h2, h3, h4, h5, h6 {
    transition: all 0.3s ease;
}

/* Responsive améliorations */
@media (max-width: 768px) {
    .services-item,
    .post-entry,
    .service-item,
    .stats-item {
        margin-bottom: 20px;
    }
    
    .btn-get-started {
        width: 100%;
        justify-content: center;
    }
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Effet de parallaxe léger */
.parallax-element {
    transform: translateZ(0);
    will-change: transform;
}

/* Amélioration des scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00156f, #0033a0);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0033a0, #00156f);
}

