/* Éléments à la une - Frontend Styles */

.elements-a-la-une {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 350px));
    gap: 30px;
    margin: 40px auto;
    justify-content: center;
}

.element-une {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.element-une:hover {
    transform: translateY(-8px);
    /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);*/
}

.element-une-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* Image de fond */
.element-image {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.element-une:hover .element-image {
    /*transform: scale(1.05);*/
}

/* Bandeau avec le texte */
.element-bandeau {
    position: relative;
    width: 100%;
    padding: 20px 25px;
    transition: all 0.3s ease;
}

/*.element-une:hover .element-bandeau {*/
/*    padding: 25px 30px;*/
/*}*/

/* Texte dans le bandeau */
.element-wording {
    font-family: 'Brandon_bold', sans-serif;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Icônes dans le wording */
.element-wording i {
    font-size: 20px;
    color: inherit;
    margin-left: 10px;
    display: inline-block;
}

/* Curseur pointer si c'est un lien */
a.element-une {
    cursor: pointer;
}

div.element-une {
    cursor: default;
}

/* Animation au chargement */
.element-une {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.element-une:nth-child(1) {
    animation-delay: 0.1s;
    border-bottom-left-radius: 80px;
}

.element-une:nth-child(2) {
    animation-delay: 0.2s;
    border-top-right-radius: 80px;
}

/* Bandeau en haut pour la 2ème card */
.element-une:nth-child(2) .element-une-inner {
    flex-direction: column-reverse;
}

.element-une:nth-child(3) {
    animation-delay: 0.3s;
    border-bottom-left-radius: 80px;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .elements-a-la-une {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .element-wording {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .elements-a-la-une {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .element-bandeau {
        padding: 15px 20px;
    }

    .element-wording {
        font-size: 16px;
    }

    .element-une:hover {
        transform: translateY(-5px);
    }
}

/* Variant : Affichage en ligne (optionnel) */
.elements-a-la-une.inline {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Variant : Grandes cards */
.elements-a-la-une.large .element-une {
    aspect-ratio: 16/9;
}

.elements-a-la-une.large .element-wording {
    font-size: 24px;
}
