/* ==========================================================
   Connected Care - Hero Widget
   ========================================================== */

.ccw-hero {
	position: relative;
	width: 100%;
	min-height: 520px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Overlay de couleur au-dessus de l'image de fond */
.ccw-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

/* Visuels SVG décoratifs positionnés librement (wrapper = position/taille/opacité, JS gère le parallax) */
.ccw-svg {
	position: absolute;
	max-width: none;
	pointer-events: none;
	user-select: none;
	opacity: 0;
	transition: opacity 1.2s cubic-bezier(0.16, 0.8, 0.24, 1);
	will-change: transform, opacity;
}

.ccw-svg.ccw-in-view {
	opacity: var(--ccw-opacity, 1);
}

/* L'image interne gère l'animation d'entrée (glissement + zoom) */
.ccw-svg-img {
	display: block;
	width: 100%;
	height: auto;
	transform: translateX(0) scale(0.85);
	transition: transform 1.3s cubic-bezier(0.16, 0.8, 0.24, 1);
	will-change: transform;
}

.ccw-svg[data-direction="left"] .ccw-svg-img {
	transform: translateX(-90px) scale(0.85);
}

.ccw-svg[data-direction="right"] .ccw-svg-img {
	transform: translateX(90px) scale(0.85);
}

.ccw-svg.ccw-in-view .ccw-svg-img {
	transform: translateX(0) scale(1);
}

/* Respect de la préférence "mouvement réduit" */
@media (prefers-reduced-motion: reduce) {
	.ccw-svg,
	.ccw-svg-img {
		transition: none !important;
		transform: none !important;
	}

	.ccw-svg {
		opacity: var(--ccw-opacity, 1) !important;
	}
}

/* Contenu central (texte + boutons) */
.ccw-content {
	position: relative;
	z-index: 5;
	max-width: 720px;
	width: 100%;
	padding: 0 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ccw-title {
	margin: 0 0 20px;
	line-height: 1.2;
	font-weight: 600;
}

.ccw-title-line {
	display: block;
	width: 406px;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.ccw-title-line p {
	margin: 0;
}

/* Disposition : sur deux lignes (par défaut) */
.ccw-title--two-lines .ccw-title-line {
	display: block;
}

/* Disposition : sur une ligne */
.ccw-title--one-line {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	width: auto;
	max-width: 100%;
	gap: 10px; /* valeur par défaut, remplacée par le contrôle "Espacement entre les 2 titres" */
}

.ccw-title--one-line .ccw-title-line {
	display: inline-block !important;
	width: auto !important;
	margin: 0 !important;
}

.ccw-description {
	margin: 0 0 32px;
	line-height: 1.6;
	width: 666px;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.ccw-description p {
	margin: 0;
}

.ccw-description p + p {
	margin-top: 1em;
}

.ccw-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

.ccw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.25s ease;
	cursor: pointer;
}

.ccw-btn-1 {
	background-color: #ffffff;
	color: #0b3d6e;
}

.ccw-btn-2 {
	background-color: transparent;
	color: #ffffff;
	border: 2px solid #ffffff;
}

@media (max-width: 767px) {
	.ccw-content {
		padding: 0 16px;
	}

	.ccw-buttons {
		flex-direction: column;
		width: 100%;
	}

	.ccw-btn {
		width: 100%;
	}
}
