/* ==========================================================
   CYBERIAL — Widget Service Cards
   Layout 2 colonnes avec bordures, icône + mini vidéo,
   titre Libre Baskerville, CTA outline avec flèche.
   ========================================================== */

/* --- Section & Grille --- */
.cy-val-section {
	font-family: 'Inter', -apple-system, system-ui, sans-serif;
	padding: 20px 20px;
	max-width: 1240px;
	margin: 0 auto;
	background-color: transparent;
}

.cy-val-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	border-top: 1px solid #e0e0e0;
}

/* --- Carte --- */
.cy-val-card {
	flex: 0 0 50%;
	max-width: 50%;
	padding: 40px 30px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	border-right: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
	position: relative;
	background: #fff;
	min-height: 400px;
	transition: background 0.2s ease;
}

.cy-val-card:hover {
	background: #fafafa;
}

/* Bordures : 2 colonnes → pas de border-right sur la 2e colonne */
@media (min-width: 769px) {
	.cy-val-card:nth-child(2n) {
		border-right: none;
	}
	.cy-val-card:nth-last-child(-n+2) {
		border-bottom: none;
	}
}

/* --- Icônes & Vidéos (top row) --- */
.cy-top-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	width: 100%;
}

.cy-val-icon-box {
	color: #1d1c1a;
}

.cy-val-icon-box svg {
	width: 44px;
	height: 44px;
	stroke-width: 1.2;
}

.cy-mini-video {
	width: 140px;
	aspect-ratio: 16 / 9;
	border-radius: 5px;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	background-color: #000;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease;
}

.cy-mini-video:hover {
	transform: scale(1.05);
}

.cy-vid-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.9;
}

.cy-mini-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 30px;
	height: 30px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #191919;
}

/* --- Textes --- */
.cy-val-title {
	font-family: 'Libre Baskerville', serif;
	font-size: 24px;
	font-weight: 700;
	color: #1d1c1a;
	margin: 0 0 6px 0;
	line-height: 1.2;
}

.cy-val-subtitle {
	display: block;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
	color: #888;
	margin-bottom: 20px;
}

.cy-val-desc {
	font-size: 15px;
	line-height: 1.6;
	color: #4a4a4a;
	margin-bottom: 24px;
}

.cy-more-text {
	display: none;
}

.cy-read-more-btn {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #191919;
	cursor: pointer;
	text-decoration: underline;
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
}

.cy-read-more-btn:hover,
button.cy-read-more-btn:hover {
	color: #191919;
	background-color: transparent;
	opacity: 0.7;
}

/* --- Bouton CTA (outline avec flèche) --- */
.cy-val-bottom {
	margin-top: auto;
}

.cy-val-cta {
	text-decoration: none;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s ease;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-color: transparent;
	color: #1d1c1a;
	border: 1px solid #d0d0d0;
	font-family: inherit;
}

.cy-cta-arrow {
	transition: transform 0.2s ease;
}

.cy-val-cta:hover {
	background-color: #191919;
	color: #ffffff;
	border-color: #191919;
	transform: translateY(-2px);
}

.cy-val-cta:hover .cy-cta-arrow {
	transform: translateX(4px);
}

/* --- Modal vidéo --- */
.cy-modal-overlay {
	display: none;
	position: fixed;
	z-index: 99999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.cy-modal-overlay.open {
	display: flex;
	opacity: 1;
}

.cy-modal-content {
	position: relative;
	width: 90%;
	max-width: 900px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
}

.cy-close-modal {
	position: absolute;
	top: -40px;
	right: 0;
	color: white;
	font-size: 30px;
	cursor: pointer;
	background: none;
	border: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
	.cy-val-card {
		flex: 0 0 100%;
		max-width: 100%;
		border-right: none;
		padding: 20px;
		min-height: auto;
	}

	.cy-val-card:last-child {
		border-bottom: none;
	}

	.cy-mini-video {
		width: 110px;
	}

	.cy-val-title {
		font-size: 20px;
	}
}
