/* ==================== Flip Card 3D ==================== */
.flip-container {
    perspective: 1000px;
    width: 300px;
    height: 382px;
    cursor: pointer;
    display: inline-block;
    margin: 1rem;
}

.flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.flip-image {
    width: 100%;
    height: 382px;
    border-radius: 12px;
}

.flip-container:hover .flip-card {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 61, 165, 0.2);
}

.flip-front {
    background-color: var(--pantone-3125);
    font-size: 1.2em;
    color: rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flip-front h3 {
    margin-top: -6vh;
}

.flip-back {
    background: var(--pantone-3125);
    color: rgb(0, 0, 0);
    transform: rotateY(180deg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flip-back p {
    font-size: 1rem;
    text-align: center;
}

/*Présentation des programmes*/
/* Container principal */
.programs-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Layout 65/35 pour les programmes */
.program-item.layout-65-35 {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Alternance gauche/droite */
.program-item.layout-65-35:nth-child(even) {
    direction: rtl;
}

.program-item.layout-65-35:nth-child(even) > * {
    direction: ltr;
}

/* Style du contenu programme (65%) */
.program-content {
    padding: 2.5rem;
    border-radius: 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.program-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.program-content h3 {
    color: var(--pantone-293);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--pantone-3125);
}

.program-content p {
    line-height: 1.8;
    font-size: 0.95rem;
    text-align: justify;
}

/* Responsive */
@media (max-width: 968px) {
    .program-item.layout-65-35 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .program-item.layout-65-35:nth-child(even) {
        direction: ltr;
    }
    
    .program-content,
    .info-box {
        padding: 1.5rem;
    }
    
    .program-content h3 {
        font-size: 1.3rem;
    }
}