/* ========================================
   NOTRE VALEUR AJOUTÉE - TOPCENTER
   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;
}

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

.hero-valeurs::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;
}

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

.hero-valeurs .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* Section Valeurs */
.valeurs-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.valeurs-title {
    text-align: center;
    margin-bottom: 4rem;
}

.valeurs-title h2 {
    color: var(--topcenter-blue);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.valeurs-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--topcenter-blue), var(--topcenter-orange));
    border-radius: 2px;
}

.valeurs-title .subtitle {
    color: #6c757d;
    font-size: 1.125rem;
    font-weight: 400;
}

/* Cards Valeurs */
.valeur-card {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.valeur-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--topcenter-blue), var(--topcenter-orange));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.valeur-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.valeur-card:hover::before {
    transform: scaleX(1);
}

/* Icones des valeurs */
.valeur-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--topcenter-blue-light), var(--topcenter-orange-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.valeur-card:hover .valeur-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(13, 79, 216, 0.2);
}

.valeur-icon i {
    font-size: 2rem;
    color: var(--topcenter-blue);
    z-index: 2;
    transition: all 0.3s ease;
}

.valeur-card:nth-child(1) .valeur-icon i { color: var(--topcenter-blue); }
.valeur-card:nth-child(2) .valeur-icon i { color: var(--topcenter-orange); }
.valeur-card:nth-child(3) .valeur-icon i { color: var(--topcenter-blue); }
.valeur-card:nth-child(4) .valeur-icon i { color: var(--topcenter-orange); }
.valeur-card:nth-child(5) .valeur-icon i { color: var(--topcenter-blue); }
.valeur-card:nth-child(6) .valeur-icon i { color: var(--topcenter-orange); }

.valeur-card:hover .valeur-icon i {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Contenu des cartes */
.valeur-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--topcenter-blue);
    margin-bottom: 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.valeur-card:nth-child(2) .card-title,
.valeur-card:nth-child(4) .card-title,
.valeur-card:nth-child(6) .card-title {
    color: var(--topcenter-orange);
}

.valeur-card .card-text {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Section Accompagnement Personnalisé */
.accompagnement-section {
    padding: 4rem 0;
    background: white;
}

.accompagnement-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.accompagnement-content h3 {
    color: var(--topcenter-blue);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.accompagnement-content .lead {
    color: #6c757d;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.accompagnement-features {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--topcenter-blue-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:nth-child(even) {
    background: var(--topcenter-orange-light);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--topcenter-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    color: white;
    font-size: 1.1rem;
}

.feature-item:nth-child(even) .feature-icon {
    background: var(--topcenter-orange);
}

.feature-text h6 {
    color: var(--topcenter-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.feature-item:nth-child(even) .feature-text h6 {
    color: var(--topcenter-orange);
}

.feature-text p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CTA Section */
.cta-valeurs {
    background: linear-gradient(135deg, var(--topcenter-blue) 0%, var(--topcenter-orange) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-valeurs h2 {
    font-weight: 700;
    font-size: 2.25rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-valeurs .lead {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* Boutons */
.btn-valeurs-primary {
    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;
    text-decoration: none;
    display: inline-block;
    margin: 0 0.5rem;
}

.btn-valeurs-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-valeurs-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 0.5rem;
}

.btn-valeurs-secondary:hover {
    background: white;
    color: var(--topcenter-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

.valeur-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.valeur-card:nth-child(1) { animation-delay: 0.1s; }
.valeur-card:nth-child(2) { animation-delay: 0.2s; }
.valeur-card:nth-child(3) { animation-delay: 0.3s; }
.valeur-card:nth-child(4) { animation-delay: 0.4s; }
.valeur-card:nth-child(5) { animation-delay: 0.5s; }
.valeur-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 992px) {
    .valeurs-title h2 {
        font-size: 2rem;
    }
    
    .valeur-card {
        margin-bottom: 2rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-valeurs {
        padding: 3rem 0 2.5rem;
    }
    
    .hero-valeurs .display-4 {
        font-size: 2rem;
    }
    
    .valeurs-section,
    .accompagnement-section,
    .cta-valeurs {
        padding: 3rem 0;
    }
    
    .valeurs-title h2 {
        font-size: 1.75rem;
    }
    
    .valeur-card {
        padding: 2rem 1.5rem;
    }
    
    .valeur-icon {
        width: 60px;
        height: 60px;
    }
    
    .valeur-icon i {
        font-size: 1.5rem;
    }
    
    .btn-valeurs-primary,
    .btn-valeurs-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.flex-md-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
}

@media (max-width: 576px) {
    .hero-valeurs .display-4 {
        font-size: 1.75rem;
    }
    
    .hero-valeurs .lead {
        font-size: 1.125rem;
    }
    
    .valeur-card .card-title {
        font-size: 1.125rem;
        min-height: auto;
    }
    
    .accompagnement-content h3 {
        font-size: 1.5rem;
    }
}

/* Accessibilité */
.valeur-card:focus-within,
.feature-item:focus-within {
    outline: 2px solid var(--topcenter-blue);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .valeur-card,
    .feature-item,
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .valeur-card:hover,
    .feature-item:hover {
        transform: none;
    }
}

/* Print */
@media print {
    .hero-valeurs,
    .cta-valeurs {
        background: white !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
    }
    
    .valeur-card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}