/**
 * Formations Pro Module — CSS (mars 2026)
 * Univ-Droit
 */

.formations-pro-module {
    padding: 20px 0;
}

/* Header */
.formations-pro__header {
    text-align: center;
    margin-bottom: 24px;
}

.formations-pro__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.formations-pro__subtitle {
    font-size: 0.88rem;
    color: #888;
    margin: 0;
}

/* Card */
.fpro-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s, transform 0.3s;
    text-decoration: none;
    color: inherit;
}

.fpro-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

/* Cover */
.fpro-card__cover {
    background: #f0ede8;
    overflow: hidden;
    position: relative;
}

/* Mode cover : illustration pleine (photo de la faculte) */
.fpro-card__cover--cover {
    height: 130px;
}

.fpro-card__cover--cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.fpro-card:hover .fpro-card__cover--cover img {
    transform: scale(1.05);
}

/* Mode contain : logo centre (formation ou composante) */
.fpro-card__cover--contain {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 16px;
}

.fpro-card__cover--contain img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.fpro-card__cover-placeholder {
    color: #ddd;
    font-size: 2.5rem;
}

/* Body */
.fpro-card__body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fpro-card__type {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #c8102e;
    margin-bottom: 4px;
}

.fpro-card__title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.fpro-card:hover .fpro-card__title {
    color: #c8102e;
}

.fpro-card__univ {
    font-size: 0.72rem;
    color: #888;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fpro-card__modalite {
    font-size: 0.68rem;
    color: #aaa;
    margin: 0;
    margin-top: auto;
}

/* CTA */
.formations-pro__cta {
    text-align: center;
    margin-top: 24px;
}

.formations-pro__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #c8102e;
    color: #fff;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.formations-pro__cta-btn:hover {
    background: #a00d24;
    color: #fff;
}

/* Responsive */
@media (max-width: 639px) {
    .fpro-card__title { font-size: 0.82rem; }
    .formations-pro__cta-btn { font-size: 0.82rem; padding: 8px 18px; }
}
