﻿.ccrc-button {
    display: inline-block;
    text-decoration: none;
    padding: 5px 30px;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ccrc-button-text {
    position: relative;
    display: inline-block;
}

.ccrc-button-style-default:hover {
    background-color: #C28719 !important;
    color: white !important;
    text-decoration: none !important;
    filter: none !important;
}

/* Souligné au survol */
.ccrc-button-style-underline .ccrc-button-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 1px;
    opacity: 0.9;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.ccrc-button-style-underline:hover .ccrc-button-text::after {
    width: 100%;
}

/* Rempli + arrondi */
.ccrc-button-style-filled {
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.ccrc-button-style-filled:hover {
    background-color: #005bb5;
}

/* ---------- NOUVEAU : CARTE IMAGE + DESCRIPTION ---------- */
.ccrc-button-img-desc {
    display: block;
    margin: 15px;
}

.ccrc-button-card {
    display: block;
    background-color: #f2f2f2;
    color: #333;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ccrc-button-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ccrc-card-img {
    width: 60%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto 25px;
    display: block;
    transition: transform 0.3s ease;
}


.ccrc-button-card:hover .ccrc-card-img {
    transform: scale(1.03);
}

.ccrc-card-title {
    margin: 10px 0 20px;
    font-size: 18px;
    font-weight: 700;
    color: inherit;
}

.ccrc-card-desc {
    font-size: 16px;
    line-height: 1.5;
    color: inherit;
    opacity: 0.85;
    margin-bottom: 10px; /* ⇨ un peu d’air sous le texte */
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 1024px) {
    .ccrc-button {
        font-size: 15px;
        padding: 10px 20px;
    }

    .ccrc-button-img-desc {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .ccrc-button {
        font-size: 14px;
        padding: 9px 18px;
    }

    .ccrc-card-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ccrc-button {
        font-size: 13px;
        padding: 8px 16px;
    }

    .ccrc-button-img-desc {
        margin: 10px auto;
    }
}

.ccrc-divider {
    width: 50%;
    height: 1px;
    opacity: 0.5;
    margin: 10px auto 25px;
}

/* Par défaut, zoom + ombre au hover */
.ccrc-button-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Si hover style ligne, on désactive zoom + ombre */
.ccrc-button-card.hover-line_expand:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Effet ligne qui s'agrandit */
.ccrc-button-card.hover-line_expand .ccrc-divider {
    transition: all 0.3s ease;
}

.ccrc-button-card.hover-line_expand:hover .ccrc-divider {
    width: 70%;
    height: 1.5px;
    opacity: 1;
}

/* Empêche l'image de bouger au hover dans le style ligne animée */
.ccrc-button-card.hover-line_expand:hover .ccrc-card-img {
    transform: none !important;
}

/* Empêche les transitions involontaires sur titre et description */
.ccrc-button-card.hover-line_expand:hover .ccrc-card-title,
.ccrc-button-card.hover-line_expand:hover .ccrc-card-desc {
    transform: none !important;
    box-shadow: none !important;
}

.ccrc-card-img {
    max-height: 120px; /* hauteur fixe pour toutes les images */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px; /* force une hauteur commune */
    
}

.ccrc-card-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}



