/* Conteneur principal avec police et mise en page */
.part-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 80vh;
    color: #ffffff;
    padding: 40px 20px;
    margin: -20px -20px 20px -20px; /* Pour déborder du conteneur Joomla */
    /* Le background a été déplacé vers .part-glass-container */
}

.part-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.part-content-section {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.part-content-section h2 {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.part-wrapper .part-content-section h3 {
    color: #4ecdc4;
    font-size: 1.4em;
    margin: 25px 0 15px 0;
    border-bottom: 2px solid rgba(78, 205, 196, 0.4);
    padding-bottom: 8px;
    position: relative;
}

.part-wrapper .part-content-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ff6b6b;
    border-radius: 1px;
}

.part-content-section p {
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 1.1em;
    text-align: justify;
    color: #e8e8e8;
}

.part-content-section ul {
    margin: 15px 0 25px 0;
    list-style-type: none;
    padding-left: 0;
}

.part-content-section li {
    margin-bottom: 12px;
    padding: 8px 0 8px 25px;
    position: relative;
    line-height: 1.6;
    color: #e8e8e8;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.part-content-section li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 8px;
    color: #4ecdc4;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.part-content-section li:hover {
    border-left-color: #4ecdc4;
    padding-left: 30px;
    background: rgba(78, 205, 196, 0.05);
}

.part-content-section li:hover::before {
    transform: translateX(3px);
    color: #ff6b6b;
}

.part-info-box {
    background: rgba(78, 205, 196, 0.15);
    border: 2px solid rgba(78, 205, 196, 0.4);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.2);
    position: relative;
}

.part-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ecdc4, #ff6b6b, #45b7d1);
    border-radius: 15px 15px 0 0;
}

.part-info-box a {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.part-info-box a:hover {
    color: #ff6b6b;
    border-bottom-color: #ff6b6b;
    text-decoration: none;
}

.part-image-section {
    flex: 0 0 400px;
    position: relative;
}

.part-glass-container {
    position: relative;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    backdrop-filter: blur(25px);
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    padding: 20px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(78, 205, 196, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

.part-glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.8s ease;
}

.part-glass-container:hover::before {
    left: 100%;
}

.part-glass-container:hover {
    transform: translateY(-15px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(78, 205, 196, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(255, 107, 107, 0.15));
	}
	/* Empêche le conteneur de texte de changer de fond au survol */
.part-content-section.part-glass-container:hover {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

.part-partner-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: all 0.4s ease;
    animation: part-float 6s ease-in-out infinite;
}

.part-glass-container:hover .part-partner-image {
    transform: scale(1.03);
    filter: brightness(1.1) saturate(1.1);
}

@keyframes part-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.part-glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(77, 183, 209, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.part-glass-container:hover .part-glow-effect {
    opacity: 1;
}

.part-decorative-corners {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-top: 3px solid rgba(78, 205, 196, 0.6);
    border-right: 3px solid rgba(78, 205, 196, 0.6);
    border-radius: 0 15px 0 0;
    transition: all 0.3s ease;
}

.part-decorative-corners::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 35px;
    height: 35px;
    border-bottom: 3px solid rgba(255, 107, 107, 0.6);
    border-left: 3px solid rgba(255, 107, 107, 0.6);
    border-radius: 0 0 0 15px;
    transition: all 0.3s ease;
}

.part-glass-container:hover .part-decorative-corners {
    border-color: rgba(78, 205, 196, 0.8);
}

.part-glass-container:hover .part-decorative-corners::before {
    border-color: rgba(255, 107, 107, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .part-wrapper {
        padding: 30px 15px;
        margin: -15px -15px 15px -15px;
    }
    
    .part-container {
        flex-direction: column;
        gap: 30px;
    }

    .part-image-section {
        flex: none;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .part-content-section h2 {
        font-size: 1.8em;
    }

    .part-content-section {
        padding: 25px;
    }

    .part-glass-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .part-wrapper {
        padding: 20px 10px;
        margin: -10px -10px 10px -10px;
    }
    
    .part-image-section {
        max-width: 300px;
    }

    .part-content-section h2 {
        font-size: 1.6em;
    }

    .part-content-section p {
        font-size: 1em;
    }
    
    .part-content-section {
        padding: 20px;
    }
}

/* Animations d'apparition */
.part-glass-container {
    animation: part-slideInRight 0.8s ease-out;
}

.part-content-section {
    animation: part-slideInLeft 0.8s ease-out;
}

@keyframes part-slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes part-slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}