/* Section "Nos valeurs au quotidien" - Vendoprone */

.vendoprone-valeurs-modern {
    position: relative;
    padding: 120px 0;
    background: #1a1a1a;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* Background Pattern */
.valeurs-modern-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(211, 84, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(211, 84, 0, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.3;
    z-index: 0;
}

/* Gradient Orbs */
.valeurs-modern-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 1;
    animation: floatOrbValeurs 25s ease-in-out infinite;
}

.valeurs-modern-gradient-orb.orb-1 {
    width: 500px;
    height: 500px;
    top: -10%;
    right: -5%;
    background: radial-gradient(circle, rgba(211, 84, 0, 0.15) 0%, transparent 70%);
    animation-duration: 30s;
}

.valeurs-modern-gradient-orb.orb-2 {
    width: 450px;
    height: 450px;
    bottom: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.12) 0%, transparent 70%);
    animation-duration: 35s;
    animation-direction: reverse;
}

@keyframes floatOrbValeurs {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, -40px) scale(1.1);
    }
}

/* Container */
.vendoprone-valeurs-modern .container {
    position: relative;
    z-index: 2;
}

/* Header */
.valeurs-modern-header {
    text-align: center;
    margin-bottom: 60px;
}

.valeurs-modern-header h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

/* Values Accordion - Horizontal Buttons Layout */
.valeurs-modern-accordion {
    max-width: 1000px;
    margin: 0 auto;
}

.valeurs-modern-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.valeur-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.valeur-header {
    padding: 18px 32px;
    background: #2a2a2a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    display: block;
    white-space: nowrap;
}

.valeur-item:not(.active) .valeur-header:hover {
    background: #333333;
    border-color: rgba(255, 255, 255, 0.3);
}

.valeur-item.active .valeur-header {
    background: #ffffff;
    color: #1a1a1a;
    border-color: #ffffff;
}

/* Description Text - Below buttons */
.valeurs-modern-description {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
    opacity: 0;
}

.valeurs-modern-description.active {
    max-height: 800px;
    padding: 0;
    opacity: 1;
    margin-top: 0;
}

.valeurs-modern-description p {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    font-weight: 400;
}

.valeurs-modern-description p:last-child {
    margin-bottom: 0;
}

.valeurs-modern-description strong {
    color: #ffffff;
    font-weight: 600;
}

/* Mobile Accordion Style - Hidden on Desktop */
.valeur-header::after {
    display: none;
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid currentColor;
    transition: transform 0.3s ease;
    margin-left: 12px;
}

.valeur-item.active .valeur-header::after {
    transform: rotate(180deg);
}

/* Desktop: Hide descriptions inside items */
.valeur-item .valeurs-modern-description {
    display: none;
}

/* Responsive Design */
@media (max-width: 991px) {
    .vendoprone-valeurs-modern {
        padding: 80px 0;
    }
    
    .valeurs-modern-header {
        margin-bottom: 50px;
    }
    
    .valeurs-modern-buttons-wrapper {
        gap: 12px;
    }
    
    .valeur-header {
        padding: 16px 24px;
        font-size: 13px;
    }
}

/* Mobile Accordion Items - Hidden on Desktop */
.valeur-item-mobile {
    display: none;
}

/* Mobile Accordion Layout */
@media (max-width: 767px) {
    .vendoprone-valeurs-modern {
        padding: 60px 0;
    }
    
    .valeurs-modern-header {
        margin-bottom: 40px;
    }
    
    .valeurs-modern-header h2 {
        font-size: 28px;
    }
    
    /* Hide desktop buttons wrapper and descriptions */
    .valeurs-modern-buttons-wrapper {
        display: none;
    }
    
    .valeurs-modern-accordion > .valeurs-modern-description {
        display: none !important;
    }
    
    /* Show mobile accordion items */
    .valeur-item-mobile {
        display: block;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .valeur-item-mobile:last-child {
        border-bottom: none;
    }
    
    .valeur-item-mobile .valeur-header {
        width: 100%;
        padding: 20px 24px;
        font-size: 16px;
        background: transparent;
        border: none;
        border-radius: 0;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #ffffff;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        white-space: normal;
    }
    
    .valeur-item-mobile .valeur-header::after {
        display: block;
        flex-shrink: 0;
    }
    
    .valeur-item-mobile.active .valeur-header {
        background: transparent;
        color: #ffffff;
    }
    
    /* Show description inside item on mobile */
    .valeur-item-mobile .valeurs-modern-description {
        display: block;
        max-height: 0;
        overflow: hidden;
        padding: 0 24px;
        margin: 0;
        opacity: 0;
        transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
        background: transparent;
    }
    
    .valeur-item-mobile.active .valeurs-modern-description {
        max-height: 2000px;
        padding: 0 24px 24px 24px;
        opacity: 1;
    }
    
    .valeur-item-mobile .valeurs-modern-description p {
        font-size: 15px;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.9);
        margin: 0 0 16px 0;
    }
    
    .valeur-item-mobile .valeurs-modern-description p:first-child {
        font-weight: 700;
        margin-bottom: 12px;
        color: #ffffff;
    }
    
    .valeur-item-mobile .valeurs-modern-description p:last-child {
        margin-bottom: 0;
    }
}

/* Animation on Scroll */
.valeurs-modern-header,
.valeurs-modern-buttons,
.valeurs-modern-description {
    opacity: 0;
    animation: fadeInUpValeurs 0.8s ease forwards;
}

.valeurs-modern-buttons {
    animation-delay: 0.2s;
}

.valeurs-modern-description {
    animation-delay: 0.4s;
}

@keyframes fadeInUpValeurs {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

