/* Styles spécifiques à la page association */
/* Animations du rouleau */
@keyframes rotateCubeVerticalPause {
    0% { transform: rotateX(0deg); }
    12.5% { transform: rotateX(0deg); }
    25% { transform: rotateX(-90deg); }
    37.5% { transform: rotateX(-90deg); }
    50% { transform: rotateX(-180deg); }
    62.5% { transform: rotateX(-180deg); }
    75% { transform: rotateX(-270deg); }
    87.5% { transform: rotateX(-270deg); }
    100% { transform: rotateX(-360deg); }
}

/* Styles pour le texte 
.association-text {
    font-family: 'MaManuscrite', cursive;
    font-size: clamp(0.8rem, 1vw, 1.2rem);
    line-height: 1.6;
    text-align: left;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1), 2px 2px 4px rgba(0, 0, 0, 0.8);
}
*/
.association-text p {
    margin-bottom: 1.5rem;
}

.association-text p:last-child {
    margin-bottom: 0;
}

/* Cube 3D */
.cube-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    height: clamp(80px, 15vw, 200px);
    width: 100%;
}

.cube {
    position: relative;
    width: clamp(320px, 60vw, 800px);
    height: calc(clamp(320px, 60vw, 800px) / 4.83);
    transform-style: preserve-3d;
    animation: rotateCubeVerticalPause 16s infinite linear;
    transform-origin: center center;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.face img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Positionnement des faces */
.front { transform: rotateX(0deg) translateZ(calc(clamp(320px, 60vw, 800px) / 4.83 / 2)); }
.right { transform: rotateX(90deg) translateZ(calc(clamp(320px, 60vw, 800px) / 4.83 / 2)); }
.back { transform: rotateX(180deg) translateZ(calc(clamp(320px, 60vw, 800px) / 4.83 / 2)); }
.left { transform: rotateX(270deg) translateZ(calc(clamp(320px, 60vw, 800px) / 4.83 / 2)); }
