/* ── Modules CPT – Grille shortcode [modules_liste] ────────────────────── */

/* ── Grille ─────────────────────────────────────────────────────────────── */

.modules-liste {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(1, 1fr); /* mobile : 1 colonne */
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Colonnes dynamiques — générées pour cols 1 à 6 */
@media (min-width: 640px) {
	.modules-liste--cols-2,
	.modules-liste--cols-3,
	.modules-liste--cols-4,
	.modules-liste--cols-5,
	.modules-liste--cols-6 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.modules-liste--cols-3 { grid-template-columns: repeat(3, 1fr); }
	.modules-liste--cols-4 { grid-template-columns: repeat(4, 1fr); }
	.modules-liste--cols-5 { grid-template-columns: repeat(5, 1fr); }
	.modules-liste--cols-6 { grid-template-columns: repeat(6, 1fr); }
}

/* Message vide */
.modules-liste__empty {

}

/* ── Carte ───────────────────────────────────────────────────────────────── */

.modules-card {
padding: 15px 15px 0px 15px;
    border: 2px solid #4D2F93;
    border-radius: 0 0 30px 0;
    min-height: 250px;
	text-align:center;
}



/* ── Thumbnail ───────────────────────────────────────────────────────────── */

.modules-card__thumbnail {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f3f4f6;
}

.modules-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.modules-card:hover .modules-card__img {
	transform: scale(1.04);
}

/* ── Corps ───────────────────────────────────────────────────────────────── */

.modules-card__body {
	flex: 1;
	padding: 5px;
}

.modules-card__title {
	    text-align: center;
    min-height: 70px;
    font-size: 18px;
}

.modules-card__excerpt {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5; /* ajuste le nombre de lignes */
}

.modules-card__excerpt p {
	font-size: 14px;
    line-height: 1.5em;
	text-align: center;
}

.modules-card__excerpt p:last-child {
	margin-bottom: 0;
}

/* ── Footer / Bouton ─────────────────────────────────────────────────────── */

.modules-card__footer {
	padding: 16px 22px 20px;
	align-items: center;
}

/* Bouton principal SSO */
.modules-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 22px;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
	border: none;
	line-height: 1.4;
}

/* Bouton actif (SSO connecté) */
.modules-btn--primary {
	background: #e7630a;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(231, 99, 10, 0.3);
}

.modules-btn--primary:hover {
	background: #c9540a;
	box-shadow: 0 4px 14px rgba(231, 99, 10, 0.45);
	transform: translateY(-1px);
	color: #ffffff !important;
	text-decoration: none;
}

.modules-btn--primary:active {
	transform: translateY(0);
}

/* Bouton connexion requise */
.modules-btn--login {
	background: #2271b1;
	color: #ffffff !important;
	box-shadow: 0 2px 6px rgba(34, 113, 177, 0.25);
}

.modules-btn--login:hover {
	background: #135e96;
	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.4);
	transform: translateY(-1px);
	color: #ffffff !important;
	text-decoration: none;
}

/* Bouton désactivé */


/* ── Responsive fine-tuning ──────────────────────────────────────────────── */

@media (max-width: 480px) {
	.modules-card__body  { padding: 16px 16px 10px; }
	.modules-card__footer { padding: 12px 16px 16px; }
	.modules-btn { width: 100%; justify-content: center; }
}

/* ── [modules_liste] — Liste ─────────────────────────────────────────────── */

.modules-liste-ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/*.modules-liste-ul__item {
	border-bottom: 1px solid #e5e7eb;
}

.modules-liste-ul__item:first-child {
	border-top: 1px solid #e5e7eb;
}


.modules-liste-ul__item .lien-module {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 16px;
	color: #1d2327;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.modules-liste-ul__item .lien-module::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-right: 2px solid #e7630a;
	border-bottom: 2px solid #e7630a;
	transform: rotate(-45deg);
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.modules-liste-ul__item .lien-module:hover {
	background: #fff8f4;
	color: #e7630a;
	padding-left: 22px;
}

.modules-liste-ul__item .lien-module:hover::before {
	transform: rotate(-45deg) translate(2px, 2px);
}
	*/

/* Item verrouillé */
.modules-liste-ul__item--locked .btn-desactive,
.modules-liste-ul__item--locked .lien-desactive {
	display: flex;
	gap: 5px;
	font-size: 0.95rem;
	font-weight: 500;
}
.modules-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* ou une hauteur fixe */
}

.modules-card__content{
text-align:left;

}
.modules-card__content ul{
padding-bottom:10px;
}

.modules-card__footer {
    margin-top: auto;
}