/* Custom Card Grid for Elementor — styles structurels de base.
   Les couleurs, typographies, espacements avancés etc. sont générés
   dynamiquement par Elementor à partir des contrôles du widget. */

.ccg-grid {
	--ccg-cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--ccg-cols), minmax(0, 1fr));
	row-gap: 24px;
	column-gap: 24px;
	align-items: stretch;
	width: 100%;
}

.ccg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	overflow: hidden;
	transition-property: transform, box-shadow, background-color, border-color;
	transition-duration: 0.3s;
	transition-timing-function: ease;
	height: 100%;
}

.ccg-card__overlay-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	text-indent: -9999px;
}

.ccg-card__image-wrap {
	position: relative;
	overflow: hidden;
	height: 220px;
	width: 100%;
	flex-shrink: 0;
	background-color: #e5e7eb;
}

.ccg-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ccg-card__badge {
	z-index: 2;
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	line-height: 1.4;
	font-weight: 600;
	color: #ffffff;
	background-color: #2563eb;
	border-radius: 4px;
	white-space: nowrap;
}

.ccg-card__badge--floating {
	position: absolute;
	top: 12px;
	left: 12px;
}

.ccg-card__badge--inline {
	position: static;
	margin: 16px 16px 0;
	align-self: flex-start;
}

.ccg-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 20px;
}

.ccg-card__meta {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 8px;
	display: flex;
	gap: 6px;
	align-items: center;
}

.ccg-card__title {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 600;
	color: #111827;
}

.ccg-card__title a {
	color: inherit;
	text-decoration: none;
}

.ccg-card__excerpt {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.6;
	color: #4b5563;
	flex-grow: 1;
}

.ccg-card__footer {
	margin-top: auto;
	display: flex;
}

.ccg-card__button {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	background-color: #111827;
	border: 1px solid transparent;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.ccg-empty-notice {
	padding: 20px;
	background: #fff3cd;
	border: 1px solid #ffe69c;
	color: #664d03;
	border-radius: 6px;
	font-size: 14px;
}

/* Le nombre de colonnes par appareil (tablette/mobile) est géré par le
   contrôle responsive "Colonnes" du widget dans Elementor, qui génère
   automatiquement les media queries correspondant aux points de rupture
   configurés dans Elementor (Réglages > Style > Réactivité). */
