/* Styles spécifiques à la page Nos Prestations */

.prestations-header {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3&auto=format&fit=crop&w=1400&q=80');
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

/* Navigation principale FIXÉE */
.prestations-nav {
    margin-top: 40px;
    position: sticky;
    top: 100px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
}

.nav-buttons {
    display: flex;
    gap: 5px;
    position: relative;
    z-index: 2;
}

.nav-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    position: relative;
    z-index: 3;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn.active {
    color: var(--primary-color);
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.nav-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    z-index: 1;
}

.indicator-bar {
    position: absolute;
    height: calc(100% - 10px);
    width: 160px;
    background: white;
    border-radius: 40px;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Sections */
.prestation-section {
    display: none;
    animation: fadeIn 0.5s ease;
    position: relative;
    z-index: 2;
}

.prestation-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cartes de service améliorées */
.service-detailed {
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.service-detailed .card-body {
    padding: 30px;
}

.service-detailed:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(46, 139, 87, 0.15);
}

.service-detailed .service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.1), rgba(212, 175, 55, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.service-detailed:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.service-detailed:hover .service-icon i {
    color: white;
}

/* Cartes de secteur - IDENTIQUES À secteurs.html */
.sector-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px 15px 0 0;
}

.sector-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.sector-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s;
    display: inline-block;
}

.sector-card:hover .sector-icon {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.sector-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.sector-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sector-stats {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sector-stats .badge {
    font-size: 0.8rem;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.sector-stats .badge.bg-primary {
    background: var(--primary-color) !important;
}

.sector-stats .badge.bg-success {
    background: var(--secondary-color) !important;
    color: var(--dark-color);
}

.sector-card .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s;
}

.sector-card .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Navigation sticky - AMÉLIORÉE */
.prestations-sticky-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    animation: slideUp 0.3s ease;
    border: 2px solid var(--light-color);
}

@keyframes slideUp {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.sticky-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-info {
    background: var(--light-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.sticky-nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sticky-nav-btn {
    background: var(--light-color);
    border: 2px solid transparent;
    color: #666;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.sticky-nav-btn:hover {
    background: rgba(46, 139, 87, 0.1);
    color: var(--primary-color);
}

.sticky-nav-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Process section améliorée */
.process-section {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.05), rgba(212, 175, 55, 0.05));
    border: 2px solid rgba(46, 139, 87, 0.1);
    border-radius: 20px;
}

.process-step {
    position: relative;
    padding-top: 30px;
}

.process-step .step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
    position: relative;
    z-index: 1;
}

.process-step .step-number::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(46, 139, 87, 0.2);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

/* Cartes de programme - IDENTIQUES À secteurs.html */
.program-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.program-info h4 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.program-info .text-primary {
    color: var(--primary-color) !important;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.program-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.program-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.program-stats .stat {
    text-align: center;
    flex: 1;
}

.program-stats .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.program-stats .label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.program-card .btn-primary {
    margin-top: 20px;
    width: 100%;
}

/* MODALS - Styles pour les modals identiques à secteurs.html */
.modal-xl {
    max-width: 1100px;
}

.modal-header {
    border-radius: 15px 15px 0 0;
    padding: 25px 30px;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-body {
    padding: 30px;
}

.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 25px;
}

.nav-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 10px 10px 0 0;
    margin-right: 5px;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(46, 139, 87, 0.05);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: white;
    border-bottom: 3px solid var(--primary-color);
}

.tab-content {
    padding: 20px 0;
}

.sidebar-info {
    position: sticky;
    top: 20px;
}

.info-card {
    background: var(--light-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.05);
}

.info-card h5 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-list li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    color: #555;
}

.expertise-list li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 992px) {
    .prestations-nav {
        width: 90%;
        position: relative;
        top: auto;
        margin: 30px auto;
    }
    
    .nav-btn {
        min-width: 140px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .indicator-bar {
        width: 140px;
    }
    
    .prestations-sticky-nav {
        width: 95%;
        padding: 12px 15px;
    }
    
    .sticky-nav-btn span {
        display: none;
    }
    
    .sticky-nav-btn {
        padding: 10px 15px;
    }
    
    .sticky-nav-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-info {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .sticky-nav-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .prestations-header {
        padding-bottom: 60px;
    }
    
    .prestations-nav {
        width: 100%;
        position: relative;
        top: auto;
    }
    
    .nav-btn {
        min-width: 120px;
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .indicator-bar {
        width: 120px;
    }
    
    .sticky-nav-btn span {
        display: inline;
    }
    
    .service-detailed,
    .sector-card {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .program-stats {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .nav-btn {
        min-width: 100px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .indicator-bar {
        width: 100px;
    }
    
    .nav-btn i {
        margin-right: 5px;
    }
    
    .sticky-nav-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .sticky-nav-btn i {
        margin-right: 5px;
    }
}