/* ==========================================================================
   Chalet Eau Vive — page d'accueil
   Chargé uniquement sur la page utilisant le template "Accueil Chalet Eau Vive".
   ========================================================================== */

/* Neutralise le conteneur du thème : les sections gèrent leur propre largeur.
   Ce fichier n'est chargé que sur la page d'accueil, les sélecteurs globaux
   n'ont donc aucun effet ailleurs. */
.site-content > .ast-container {
	max-width: 100%;
	padding: 0;
	display: block;
}

#primary {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.ceav-home {
	--ceav-primary: #288f9f;
	--ceav-primary-dark: #1b6b78;
	--ceav-ink: #16272b;
	--ceav-body: #4d565b;
	--ceav-line: #e2eaec;
	--ceav-alt: #f4f8f9;
	--ceav-radius: 16px;
	--ceav-wrap: 1200px;
	--ceav-shadow: 0 1px 2px rgba(22, 39, 43, .05), 0 12px 32px -12px rgba(22, 39, 43, .18);
	--ceav-shadow-lg: 0 2px 4px rgba(22, 39, 43, .06), 0 28px 60px -24px rgba(22, 39, 43, .3);

	color: var(--ceav-body);
	overflow-x: clip;
	font-size: 16px;
	line-height: 1.65;
}

.ceav-home *,
.ceav-home *::before,
.ceav-home *::after {
	box-sizing: border-box;
}

.ceav-home h1,
.ceav-home h2,
.ceav-home h3,
.ceav-home h4 {
	color: var(--ceav-ink);
	line-height: 1.18;
	letter-spacing: -.02em;
	margin: 0;
	text-wrap: balance;
}

.ceav-home p {
	margin: 0;
}

.ceav-home a {
	text-decoration: none;
	color: inherit;
}

.ceav-home img {
	display: block;
	max-width: 100%;
	height: auto;
}

.ceav-wrap {
	width: 100%;
	max-width: var(--ceav-wrap);
	margin-inline: auto;
	padding-inline: 24px;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.ceav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: 14px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	letter-spacing: .01em;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
	white-space: nowrap;
}

.ceav-btn:hover {
	transform: translateY(-2px);
}

.ceav-btn--primary {
	background: var(--ceav-primary);
	color: #fff;
	box-shadow: 0 10px 24px -10px rgba(40, 143, 159, .8);
}

.ceav-btn--primary:hover {
	background: var(--ceav-primary-dark);
	color: #fff;
}

.ceav-btn--ghost {
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .55);
	color: #fff;
	backdrop-filter: blur(6px);
}

.ceav-btn--ghost:hover {
	background: #fff;
	color: var(--ceav-ink);
}

.ceav-btn--outline {
	border-color: var(--ceav-line);
	color: var(--ceav-ink);
	background: #fff;
}

.ceav-btn--outline:hover {
	border-color: var(--ceav-primary);
	color: var(--ceav-primary);
}

.ceav-btn--light {
	background: #fff;
	color: var(--ceav-ink);
}

.ceav-btn--light:hover {
	background: var(--ceav-alt);
}

.ceav-btn--lg {
	padding: 17px 34px;
	font-size: 16px;
}

.ceav-link {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	font-weight: 600;
	color: var(--ceav-primary);
	transition: gap .18s ease, color .18s ease;
}

.ceav-link::after {
	content: "→";
	transition: transform .18s ease;
}

.ceav-link:hover {
	color: var(--ceav-primary-dark);
}

.ceav-link:hover::after {
	transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.ceav-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(520px, 76vh, 760px);
	padding: 96px 0 72px;
	isolation: isolate;
	overflow: hidden;
}

.ceav-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image: url("hero-mobile.jpg");
	background-size: cover;
	background-position: 60% 62%;
	transform: scale(1.02);
}

@media (min-width: 900px) {
	.ceav-hero__bg {
		background-image: url("hero.jpg");
	}
}

.ceav-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, rgba(9, 28, 33, .94) 0%, rgba(9, 28, 33, .72) 34%, rgba(9, 28, 33, .28) 68%, rgba(9, 28, 33, .38) 100%),
		linear-gradient(to right, rgba(9, 28, 33, .78) 0%, rgba(9, 28, 33, .45) 38%, rgba(9, 28, 33, 0) 72%);
}

.ceav-hero__inner {
	position: relative;
	width: 100%;
	max-width: var(--ceav-wrap);
	margin-inline: auto;
	padding-inline: 24px;
	color: #fff;
}

.ceav-hero__eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #a9e2ea;
	margin-bottom: 18px !important;
	padding: 7px 15px;
	border: 1px solid rgba(169, 226, 234, .4);
	border-radius: 999px;
	background: rgba(9, 28, 33, .35);
	backdrop-filter: blur(4px);
}

.ceav-home .ceav-hero__title {
	color: #fff;
	font-size: clamp(2.6rem, 6.4vw, 4.6rem);
	font-weight: 800;
	letter-spacing: -.035em;
	margin-bottom: 20px;
	text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}

.ceav-hero__title span {
	color: #7fd3e0;
}

.ceav-hero__lead {
	max-width: 52ch;
	font-size: clamp(1rem, 1.6vw, 1.18rem);
	color: rgba(255, 255, 255, .9);
	margin-bottom: 32px !important;
	text-shadow: 0 1px 16px rgba(0, 0, 0, .4);
}

.ceav-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 34px;
}

.ceav-search {
	display: flex;
	gap: 8px;
	max-width: 560px;
	padding: 8px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	backdrop-filter: blur(10px);
}

.ceav-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: #fff;
	padding: 10px 18px;
	font-size: 15px;
	outline: none;
	box-shadow: none;
}

.ceav-search input[type="search"]::placeholder {
	color: rgba(255, 255, 255, .72);
}

.ceav-search input[type="search"]:focus {
	background: transparent;
	color: #fff;
	box-shadow: none;
}

.ceav-search button {
	flex: 0 0 auto;
	border: 0;
	border-radius: 999px;
	background: var(--ceav-primary);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	padding: 11px 26px;
	cursor: pointer;
	transition: background-color .18s ease;
}

.ceav-search button:hover {
	background: var(--ceav-primary-dark);
}

/* --------------------------------------------------------------------------
   Sections génériques
   -------------------------------------------------------------------------- */

.ceav-section {
	padding: clamp(56px, 8vw, 96px) 0;
	background: #fff;
}

.ceav-section--tight {
	padding-top: clamp(48px, 6vw, 72px);
}

.ceav-section--alt {
	background: var(--ceav-alt);
}

.ceav-section--dark {
	background: linear-gradient(160deg, #16272b 0%, #1b4d56 100%);
}

.ceav-head {
	margin-bottom: clamp(32px, 4vw, 48px);
}

.ceav-head h2 {
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	font-weight: 800;
	margin-bottom: 10px;
}

.ceav-head h2::after {
	content: "";
	display: block;
	width: 52px;
	height: 4px;
	margin-top: 16px;
	border-radius: 4px;
	background: var(--ceav-primary);
}

.ceav-head p {
	max-width: 60ch;
	font-size: 1.05rem;
	margin-top: 14px !important;
}

.ceav-head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.ceav-head--light h2 {
	color: #fff;
}

.ceav-head--light p {
	color: rgba(255, 255, 255, .78);
}

.ceav-center {
	text-align: center;
	margin-top: 40px !important;
}

/* --------------------------------------------------------------------------
   Univers (catégories)
   -------------------------------------------------------------------------- */

.ceav-univers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.ceav-univers__item {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 320px;
	padding: 26px;
	border-radius: var(--ceav-radius);
	overflow: hidden;
	isolation: isolate;
	box-shadow: var(--ceav-shadow);
	transition: transform .3s ease, box-shadow .3s ease;
}

.ceav-univers__item:hover {
	transform: translateY(-6px);
	box-shadow: var(--ceav-shadow-lg);
}

.ceav-univers__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .55s ease;
}

.ceav-univers__item:hover .ceav-univers__img {
	transform: scale(1.07);
}

.ceav-univers__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(9, 28, 33, .88) 0%, rgba(9, 28, 33, .62) 32%, rgba(9, 28, 33, .16) 68%, rgba(9, 28, 33, 0) 100%);
}

.ceav-univers__text {
	display: block;
	color: #fff;
	text-shadow: 0 1px 12px rgba(9, 28, 33, .5);
}

.ceav-univers__name {
	display: block;
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: -.02em;
	margin-bottom: 8px;
}

.ceav-univers__baseline {
	display: block;
	font-size: .93rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, .85);
	margin-bottom: 12px;
}

.ceav-univers__count {
	display: inline-block;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #a9e2ea;
}

/* --------------------------------------------------------------------------
   À la une
   -------------------------------------------------------------------------- */

.ceav-featured {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 28px;
	align-items: start;
}

@media (max-width: 900px) {
	.ceav-featured {
		grid-template-columns: 1fr;
	}
}

.ceav-lead {
	background: #fff;
	border-radius: var(--ceav-radius);
	overflow: hidden;
	box-shadow: var(--ceav-shadow);
	transition: transform .3s ease, box-shadow .3s ease;
}

.ceav-lead:hover {
	transform: translateY(-4px);
	box-shadow: var(--ceav-shadow-lg);
}

.ceav-lead__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--ceav-alt);
}

.ceav-lead__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .55s ease;
}

.ceav-lead:hover .ceav-lead__media img {
	transform: scale(1.05);
}

.ceav-lead__body {
	padding: 28px 30px 32px;
}

.ceav-lead__body h3 {
	font-size: clamp(1.3rem, 2.1vw, 1.7rem);
	font-weight: 800;
	margin: 14px 0 12px;
}

.ceav-lead__body h3 a:hover {
	color: var(--ceav-primary);
}

.ceav-lead__body p {
	margin-bottom: 18px !important;
}

.ceav-tag {
	display: inline-block;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ceav-primary);
	background: rgba(40, 143, 159, .1);
	padding: 6px 12px;
	border-radius: 999px;
	transition: background-color .18s ease, color .18s ease;
}

.ceav-tag:hover {
	background: var(--ceav-primary);
	color: #fff;
}

.ceav-tag--solid {
	background: var(--ceav-primary);
	color: #fff;
}

.ceav-tag--solid:hover {
	background: var(--ceav-primary-dark);
	color: #fff;
}

.ceav-side {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ceav-mini {
	display: grid;
	grid-template-columns: 108px 1fr;
	gap: 16px;
	align-items: center;
	background: #fff;
	border-radius: 12px;
	padding: 12px;
	box-shadow: 0 1px 2px rgba(22, 39, 43, .04), 0 8px 20px -14px rgba(22, 39, 43, .3);
	transition: transform .22s ease, box-shadow .22s ease;
}

.ceav-mini:hover {
	transform: translateX(4px);
	box-shadow: var(--ceav-shadow);
}

.ceav-mini__media {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
	background: var(--ceav-alt);
}

.ceav-mini__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ceav-mini__cat {
	display: block;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ceav-primary);
	margin-bottom: 5px;
}

.ceav-mini__body h4 {
	font-size: .98rem;
	font-weight: 700;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ceav-mini__body h4 a:hover {
	color: var(--ceav-primary);
}

/* --------------------------------------------------------------------------
   Grille d'articles
   -------------------------------------------------------------------------- */

.ceav-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
}

.ceav-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ceav-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--ceav-radius);
	overflow: hidden;
	box-shadow: var(--ceav-shadow);
	transition: transform .3s ease, box-shadow .3s ease;
}

.ceav-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--ceav-shadow-lg);
}

.ceav-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--ceav-alt);
}

.ceav-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .55s ease;
}

.ceav-card:hover .ceav-card__media img {
	transform: scale(1.06);
}

.ceav-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 22px 24px 24px;
}

.ceav-card__body .ceav-tag {
	align-self: flex-start;
}

.ceav-card__title {
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 14px 0 10px;
}

.ceav-card__title a:hover {
	color: var(--ceav-primary);
}

.ceav-card__excerpt {
	font-size: .94rem;
	color: var(--ceav-body);
	flex: 1 1 auto;
	margin-bottom: 16px !important;
}

.ceav-card__date {
	font-size: .8rem;
	color: #8a9599;
	letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */

.ceav-cta {
	background: var(--ceav-alt);
	border-top: 1px solid var(--ceav-line);
	padding: clamp(48px, 6vw, 76px) 0;
}

.ceav-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
}

.ceav-cta h2 {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-weight: 800;
	margin-bottom: 10px;
}

.ceav-cta p {
	max-width: 58ch;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
	.ceav-hero {
		min-height: 480px;
		padding: 64px 0 48px;
	}

	.ceav-search {
		flex-direction: column;
		border-radius: 22px;
		padding: 10px;
	}

	.ceav-search input[type="search"] {
		text-align: center;
	}

	.ceav-search button {
		width: 100%;
	}

	.ceav-univers__item {
		min-height: 220px;
	}

	.ceav-mini {
		grid-template-columns: 88px 1fr;
	}

	.ceav-head--row {
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ceav-home *,
	.ceav-home *::before,
	.ceav-home *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}

/* --------------------------------------------------------------------------
   Page blog (template page-blog.php)
   -------------------------------------------------------------------------- */

.ceav-archive__head {
	background: linear-gradient(160deg, #16272b 0%, #1b4d56 100%);
	color: #fff;
	padding: clamp(48px, 6vw, 80px) 0 clamp(36px, 4vw, 52px);
}

.ceav-archive__eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #7fd3e0;
	margin-bottom: 14px !important;
}

.ceav-home .ceav-archive__head h1 {
	color: #fff;
	font-size: clamp(2rem, 4.4vw, 3.1rem);
	font-weight: 800;
	margin-bottom: 14px;
}

.ceav-archive__lead {
	max-width: 62ch;
	color: rgba(255, 255, 255, .82);
	font-size: 1.05rem;
}

.ceav-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.ceav-chip {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .28);
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: .9rem;
	font-weight: 600;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.ceav-chip span {
	font-size: .75rem;
	font-weight: 700;
	color: rgba(255, 255, 255, .6);
}

.ceav-chip:hover {
	background: rgba(255, 255, 255, .18);
	border-color: rgba(255, 255, 255, .5);
	color: #fff;
}

.ceav-chip.is-active {
	background: #fff;
	border-color: #fff;
	color: var(--ceav-ink);
}

.ceav-chip.is-active span {
	color: var(--ceav-primary);
}

.ceav-empty {
	padding: 48px 0;
	text-align: center;
	font-size: 1.05rem;
}

.ceav-pagination {
	margin-top: clamp(40px, 5vw, 60px);
}

.ceav-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ceav-pagination li {
	margin: 0;
}

.ceav-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--ceav-line);
	background: #fff;
	color: var(--ceav-ink);
	font-weight: 600;
	font-size: .95rem;
	transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.ceav-pagination .page-numbers:hover {
	border-color: var(--ceav-primary);
	color: var(--ceav-primary);
}

.ceav-pagination .page-numbers.current {
	background: var(--ceav-primary);
	border-color: var(--ceav-primary);
	color: #fff;
}

.ceav-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}
