/* services.css */

.services-main {
    background-color: #f8f9fa;
}

.hero-services {
    position: relative;
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
}

.hero-services::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    padding-bottom: 150%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 45% 55% 70% 30% / 30% 60% 40% 70%;
    transform: translate(-50%, -50%);
    animation: morph 12s ease-in-out infinite;
    z-index: 1;
}

@keyframes morph {
    0% { border-radius: 45% 55% 70% 30% / 30% 60% 40% 70%; transform: translate(-50%, -50%) rotate(0deg); }
    50% { border-radius: 30% 70% 40% 60% / 60% 30% 70% 40%; transform: translate(-50%, -50%) rotate(10deg); }
    100% { border-radius: 45% 55% 70% 30% / 30% 60% 40% 70%; transform: translate(-50%, -50%) rotate(0deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-services h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: white;
}
.hero-services p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto 0;
    opacity: 0.9;
}

.services-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: flex-start;
}

.services-nav-container {
    flex: 0 0 250px;
    position: sticky;
    top: 120px;
}
.services-nav {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}
.services-nav h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.services-nav ul { list-style: none; padding: 0; margin: 0; }
.services-nav .nav-link { display: block; padding: 12px 15px; text-decoration: none; color: #5a647e; font-weight: 500; border-radius: 8px; transition: all 0.3s ease; }
.services-nav .nav-link:hover { background-color: #f0f5fa; color: #007bff; }
.services-nav .nav-link.active { background-color: #e3f2fd; color: #007bff; font-weight: 600; }

.services-content {
    flex: 1;
}
.service-section {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.service-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    margin-bottom: 30px;
    display: inline-block;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.cards-grid.grid-col-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 0.5fr));
    justify-content: center;
}

.service-pricing-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.service-pricing-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.service-pricing-card p {
    color: #5a647e;
    line-height: 1.7;
    flex-grow: 1; /* Aligne les boutons en bas */
    font-size: 0.95rem;
}
.service-pricing-card .desc {
    font-style: italic;
    margin-bottom: 10px;
}
.service-pricing-card .btn {
    margin-top: 20px;
    width: 100%;
}