/* ========================================
   SERVICES PAGE - TOPCENTER (VERSION OPTIMISÉE)
   Charte: #0D4FD8 (bleu) & #FF772A (orange)
   ======================================== */

/* Variables CSS */
:root {
    --topcenter-blue: #0D4FD8;
    --topcenter-orange: #FF772A;
    --topcenter-blue-light: rgba(13, 79, 216, 0.1);
    --topcenter-orange-light: rgba(255, 119, 42, 0.1);
    --topcenter-blue-dark: #0a3db0;
    --topcenter-orange-dark: #e6671f;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-services {
    background: linear-gradient(135deg, var(--topcenter-blue) 0%, var(--topcenter-orange) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-services::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-services .display-4 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-services .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-services .fs-5 {
    opacity: 0.9;
    font-weight: 300;
}

/* ========================================
   NAVIGATION TABS SERVICES
   ======================================== */
#services-nav .nav-link {
    color: #6c757d;
    border-radius: 25px;
    border: 2px solid transparent;
    font-weight: 600;
    padding: 0.875rem 1.25rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
    min-width: 120px;
}

#services-nav .nav-link i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

#services-nav .nav-link:hover {
    color: var(--topcenter-blue);
    border-color: var(--topcenter-blue-light);
    background-color: var(--topcenter-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 79, 216, 0.15);
}

#services-nav .nav-link.active {
    color: white;
    background: linear-gradient(135deg, var(--topcenter-blue), var(--topcenter-orange));
    border-color: var(--topcenter-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 79, 216, 0.3);
}

#services-nav .nav-link.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 79, 216, 0.4);
}

/* Navigation responsive */
@media (max-width: 768px) {
    #services-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #services-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
        min-width: auto;
        border-radius: 12px;
    }
    
    #services-nav .nav-link.active {
        background: linear-gradient(135deg, var(--topcenter-blue), var(--topcenter-orange));
        border-color: transparent;
    }
}

/* ========================================
   SERVICE ICONS
   ======================================== */
.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--topcenter-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.service-icon i {
    color: var(--topcenter-blue);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

/* Icones orange pour alternance */
.bg-topcenter-orange-light .service-icon {
    background: var(--topcenter-orange-light);
}

.bg-topcenter-orange-light .service-icon i {
    color: var(--topcenter-orange);
}

/* Hover effect sur les cartes avec icônes */
.card:hover .service-icon {
    background: var(--topcenter-blue);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(13, 79, 216, 0.2);
}

.card:hover .service-icon i {
    color: white;
}

.bg-topcenter-orange-light:hover .service-icon {
    background: var(--topcenter-orange);
    box-shadow: 0 6px 16px rgba(255, 119, 42, 0.3);
}

/* ========================================
   CARDS PRINCIPALES
   ======================================== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 1.75rem;
}

/* Cartes avec fond orange */
.bg-topcenter-orange-light {
    background: var(--topcenter-orange-light);
    border-left: 4px solid var(--topcenter-orange);
}

/* ========================================
   TITRES ET TEXTES
   ======================================== */
.text-topcenter-blue {
    color: var(--topcenter-blue) !important;
}

.text-topcenter-orange {
    color: var(--topcenter-orange) !important;
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-text {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.card-text.text-muted {
    font-size: 0.95rem;
}

/* ========================================
   BOUTONS
   ======================================== */
/* Boutons primaires (bleu) */
.btn-primary {
    background: linear-gradient(135deg, var(--topcenter-blue), var(--topcenter-orange));
    border: none;
    border-radius: 25px;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(13, 79, 216, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--topcenter-blue-dark), var(--topcenter-orange-dark));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 79, 216, 0.3);
}

/* Boutons outline primaires (bleu) */
.btn-outline-primary {
    color: var(--topcenter-blue);
    border: 2px solid var(--topcenter-blue);
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--topcenter-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 79, 216, 0.2);
}

/* Boutons outline warning (orange) */
.btn-outline-warning {
    color: var(--topcenter-orange);
    border: 2px solid var(--topcenter-orange);
    border-radius: 25px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background: var(--topcenter-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 119, 42, 0.3);
}

/* Boutons CTA */
.btn-lg {
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    border-radius: 30px;
}

/* ========================================
   LISTES ET ÉLÉMENTS
   ======================================== */
.list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.list-unstyled li:hover {
    background: var(--topcenter-blue-light);
    padding-left: 0.75rem;
    border-left: 3px solid var(--topcenter-blue);
    transform: translateX(4px);
}

.list-unstyled li:last-child {
    border-bottom: none;
}

.bi-check-circle {
    color: var(--topcenter-blue);
    font-size: 1.1rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   TABS CONTENT
   ======================================== */
.tab-pane {
    animation: fadeInUp 0.5s ease-out;
}

.tab-pane .row > * {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.tab-pane .row > *:nth-child(1) { animation-delay: 0.1s; }
.tab-pane .row > *:nth-child(2) { animation-delay: 0.15s; }
.tab-pane .row > *:nth-child(3) { animation-delay: 0.2s; }
.tab-pane .row > *:nth-child(4) { animation-delay: 0.25s; }
.tab-pane .row > *:nth-child(5) { animation-delay: 0.3s; }
.tab-pane .row > *:nth-child(6) { animation-delay: 0.35s; }
.tab-pane .row > *:nth-child(7) { animation-delay: 0.4s; }
.tab-pane .row > *:nth-child(8) { animation-delay: 0.45s; }
.tab-pane .row > *:nth-child(9) { animation-delay: 0.5s; }

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: var(--topcenter-blue);
    color: white;
    padding: 4rem 0;
    margin: 10%;
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* Ajoute des bords arrondis de 10px à tous les coins */
}

.cta-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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.2;
}

.cta-section .display-5 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.cta-section .lead {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Boutons CTA */
.cta-section .btn-light {
    background: white;
    color: var(--topcenter-blue);
    border: 2px solid white;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cta-section .btn-light:hover {
    background: var(--topcenter-blue);
    color: white;
    border-color: var(--topcenter-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 79, 216, 0.3);
}

.cta-section .btn-outline-light {
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.cta-section .btn-outline-light:hover {
    background: white;
    color: var(--topcenter-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE SPECIFIQUE
   ======================================== */
@media (max-width: 992px) {
    .hero-services {
        padding: 4rem 0;
    }
    
    .hero-services .display-4 {
        font-size: 2.25rem;
    }
    
    .hero-services .lead {
        font-size: 1.125rem;
    }
    
    #services-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .hero-services {
        padding: 3rem 0;
    }
    
    .hero-services .display-4 {
        font-size: 2rem;
    }
    
    .hero-services .fs-5 {
        font-size: 1rem;
    }
    
    .services-section {
        padding: 3rem 0 !important;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 1.25rem;
    }
    
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-section .display-5 {
        font-size: 1.75rem;
    }
    
    .cta-section .btn-lg {
        width: 100%;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 576px) {
    .hero-services .display-4 {
        font-size: 1.75rem;
    }
    
    #services-nav .nav-link {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    .col-lg-4.col-md-6,
    .col-lg-3.col-md-6,
    .col-lg-6.col-md-6 {
        margin-bottom: 1.25rem;
    }
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */
.nav-link:focus,
.card:focus-within,
.btn:focus {
    outline: 2px solid var(--topcenter-blue);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .nav-link.active {
        border-bottom-width: 4px !important;
    }
    
    .card {
        border: 2px solid #dee2e6;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .card:hover,
    .nav-link:hover,
    .service-icon:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .hero-services,
    .cta-section {
        background: white !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .nav-link.active {
        border-bottom: 2px solid var(--topcenter-orange) !important;
    }
    
    #services-nav {
        display: none;
    }
}

/* ========================================
   UTILITÉS
   ======================================== */
.text-shadow-soft {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.card-equal-height {
    display: flex;
    flex-direction: column;
}

.card-equal-height .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Fin du fichier services.css */