/**
 * Services Cards - Styles partagés
 * Utilisé par: services.php, avt-plus.php
 */

/* Grille des services avec accroches */
.services-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	padding: 40px 0;
	max-width: 1200px;
	margin: 0 auto;
}

.service-card-accroche {
	background: #fff;
	border-radius: 16px;
	padding: 30px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: relative;
	border-top: 4px solid var(--service-color, #788395);
}

.service-card-accroche:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.service-card-header {
	display: flex;
	align-items: center;
	gap: 20px;
}

.service-icon-accroche {
	width: 70px;
	height: 70px;
	flex-shrink: 0;
	background:#EEE;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
}

.service-icon-accroche img {
	width: 100%;
	height: 100%;
	opacity: 0.6;
}

.service-card-title-accroche {
	flex: 1;
	text-align: left;
}

.service-card-title-accroche h3 {
	font-size: 20px !important;
	font-weight: 700 !important;
	color: #333 !important;
	margin: 0 0 5px 0 !important;
	line-height: 1.3 !important;
}

.service-card-description {
	color: #666;
	font-size: 15px;
	line-height: 1.6;
	flex: 1;
	margin: 0;
}

.service-card-footer {
	display: flex;
	justify-content: center;
	padding-top: 10px;
}

.service-btn-accroche {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	background: var(--service-color, #788395);
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.service-btn-accroche:hover {
	background: #333;
	transform: translateX(5px);
}

.service-btn-accroche svg {
	width: 18px;
	height: 18px;
}

/* Badge d'accès restreint */
.service-locked {
	opacity: 0.7;
	pointer-events: none;
}

.service-locked .service-btn-accroche {
	background: #ccc;
	cursor: not-allowed;
}

/* Badge "Accès exclusif" pour services restreints accessibles */
.service-badge-exclusive {
	position: absolute;
	top: -12px;
	right: 20px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media only screen and (max-width: 1024px) {
	.services-cards-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.service-card-header {
		gap: 15px;
	}

	.service-icon-accroche {
		width: 60px;
		height: 60px;
	}

	.service-card-title-accroche h3 {
		font-size: 18px !important;
	}

	.service-card-description {
		font-size: 14px;
	}
}

@media only screen and (max-width: 768px) {
	.services-cards-grid {
		grid-template-columns: 1fr;
		padding: 30px 15px;
	}

	.service-card-accroche {
		padding: 25px;
	}
}

@media only screen and (max-width: 480px) {
	.service-card-header {
		flex-direction: column;
		text-align: center;
	}

	.service-icon-accroche {
		width: 70px;
		height: 70px;
	}
}

/* Couleurs par service */
.service-card-accroche[data-category="support-logistique"] { --service-color: #F29005; }
.service-card-accroche[data-category="services-manages"] { --service-color: #a29696; }
.service-card-accroche[data-category="monetique"] { --service-color: #79acff; }
.service-card-accroche[data-category="sante"] { --service-color: #43e1a6; }

/* Contrainte dans le contexte AVT+ (colonne 73%) */
.avtPlusLeft .services-cards-grid {
	max-width: 100%;
	gap: 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.avtPlusLeft .service-card-accroche {
	padding: 20px;
	min-width: 0;
}

.avtPlusLeft .service-card-title-accroche {
	min-width: 0;
}

.avtPlusLeft .service-card-title-accroche h3 {
	overflow-wrap: break-word;
	word-break: break-word;
}

.avtPlusLeft .service-icon-accroche {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
}

/* Section titre pour AVT+ */
.services-section-title {
	font-family: 'Raleway', sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: #333;
	margin: 30px 0 10px 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.services-section-title svg {
	width: 28px;
	height: 28px;
	color: #667eea;
}

.services-section-intro {
	color: #666;
	font-size: 15px;
	margin-bottom: 20px;
	line-height: 1.6;
}
