/* Styles pour la section "Les avantages de Fos-sur-Mer" */
.advantages {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background-image: url('../images/pattern-dots.png');
    background-repeat: repeat;
    opacity: 0.05;
    z-index: 1;
}

.advantages .container {
    position: relative;
    z-index: 2;
}

.advantages h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2563eb;
    position: relative;
    padding-bottom: 1rem;
}

.advantages h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.advantage-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #2563eb;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    background-color: rgba(37, 99, 235, 0.2);
    transform: scale(1.1);
}

.advantage-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.advantage-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.advantage-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 0;
}

.learn-more {
    text-align: center;
    margin-top: 2rem;
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(90deg, #1e40af, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Styles responsives */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .advantages {
        padding: 4rem 0;
    }
    
    .advantages h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .advantage-card {
        padding: 1.5rem;
    }
    
    .advantage-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.2rem;
    }
    
    .advantage-icon img {
        width: 35px;
        height: 35px;
    }
    
    .advantage-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .advantages h2 {
        font-size: 1.8rem;
    }
    
    .advantage-card {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .advantages {
        padding: 3rem 0;
    }
    
    .advantages h2 {
        font-size: 1.6rem;
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
    }
    
    .advantage-icon img {
        width: 30px;
        height: 30px;
    }
    
    .advantage-card h3 {
        font-size: 1.2rem;
    }
    
    .advantage-card p {
        font-size: 0.95rem;
    }
    
    .btn-secondary {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
}
