/*
 * ============================================================
 * BLACK FRIDAY FRANCE
 * Pages piliers - Premium UI
 * ============================================================
 *
 * Scope : body.bff-pillar
 *
 * IMPORTANT :
 * Le composant bw_menu est volontairement exclu.
 * Ne pas ajouter ici de règles pour :
 * .by3col
 * #hp_cat_navigator
 * .hp_cat_container
 * .hp_cat_grid
 * .hp_cat_card
 * .hp_cat_title
 */


/* ============================================================
   VARIABLES
   ============================================================ */

body.bff-pillar {
	--bff-black: #0b0b0d;
	--bff-dark: #15151a;
	--bff-panel: #1b1b21;
	--bff-cyan: #00fffc;
	--bff-cyan-dark: #00a6a3;
	--bff-cyan-soft: rgba(0, 255, 252, .12);
	--bff-white: #ffffff;
	--bff-muted: #6b7280;
	--bff-border: rgba(0, 0, 0, .09);
	--bff-radius: 18px;
	--bff-shadow: 0 18px 45px rgba(0, 0, 0, .09);
	--bff-shadow-soft: 0 10px 30px rgba(0, 0, 0, .06);
}


/* ============================================================
   STRUCTURE GÉNÉRALE
   ============================================================ */

body.bff-pillar #primary {
	position: relative;
}

body.bff-pillar .entry-content {
	font-size: 17px;
	line-height: 1.78;
}

body.bff-pillar .entry-content > p {
	margin-bottom: 1.35em;
}


/* ============================================================
   HEADER / H1
   ============================================================ */

body.bff-pillar .page-header {
	position: relative;
	overflow: hidden;
	padding: 26px 0;

	background:
		radial-gradient(
			circle at 20% 30%,
			rgba(0, 255, 252, .12),
			transparent 32%
		),
		radial-gradient(
			circle at 80% 20%,
			rgba(0, 212, 209, .08),
			transparent 30%
		),
		#09090b;
}

body.bff-pillar .page-header::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;

	background:
		linear-gradient(
			110deg,
			transparent 25%,
			rgba(255, 255, 255, .055) 45%,
			transparent 65%
		);

	transform: translateX(-120%);
	animation: bffHeroSweep 9s ease-in-out infinite;
}

body.bff-pillar .page-header .container {
	position: relative;
	z-index: 1;
}

body.bff-pillar .page-header .entry-title {
	position: relative;
	z-index: 1;

	padding: 18px 24px;

	border: 1px solid rgba(0, 255, 252, .18);
	border-radius: 16px;

	box-shadow:
		0 18px 45px rgba(0, 0, 0, .25),
		inset 0 0 35px rgba(0, 255, 252, .035);
}


/* ============================================================
   IMAGE À LA UNE
   ============================================================ */

body.bff-pillar main.site-main > a:first-child {
	display: block;
	margin: 22px 0 14px;

	border-radius: var(--bff-radius);
	overflow: hidden;

	box-shadow: var(--bff-shadow);

	transform: translateZ(0);
}

body.bff-pillar main.site-main > a:first-child img {
	display: block;
	width: 100%;
	height: auto;

	transition:
		transform .55s cubic-bezier(.2, .7, .2, 1),
		filter .55s ease;
}

body.bff-pillar main.site-main > a:first-child:hover img {
	transform: scale(1.018);
	filter: contrast(1.025) saturate(1.04);
}


/* ============================================================
   BANDEAU SOUS LE HERO
   ============================================================ */

body.bff-pillar main.site-main > p[style*="background:cyan"],
body.bff-pillar main.site-main > p[style*="background: cyan"] {
	position: relative;
	margin: 14px 0 18px !important;
	padding: 12px 18px !important;

	background:
		linear-gradient(
			100deg,
			#00d6d3,
			#00fffc,
			#00d6d3
		) !important;

	background-size: 200% 100% !important;

	color: #071212 !important;

	border-radius: 12px;
	box-shadow:
		0 8px 24px rgba(0, 190, 190, .17);

	letter-spacing: -.01em;

	animation: bffCyanFlow 8s ease infinite;
}


/* ============================================================
   INTRO
   ============================================================ */

body.bff-pillar .entry-content .intro {
	position: relative;

	margin: 24px 0;
	padding: 22px 24px;

	font-size: 1.13em;
	line-height: 1.72;

	background:
		linear-gradient(
			135deg,
			rgba(0, 255, 252, .075),
			rgba(255, 255, 255, .98) 44%
		);

	border: 1px solid rgba(0, 180, 180, .16);
	border-radius: var(--bff-radius);

	box-shadow: var(--bff-shadow-soft);
}

body.bff-pillar .entry-content .intro::before {
	content: "";

	position: absolute;
	top: 18px;
	bottom: 18px;
	left: 0;

	width: 4px;

	border-radius: 0 4px 4px 0;

	background:
		linear-gradient(
			180deg,
			var(--bff-cyan),
			var(--bff-cyan-dark)
		);

	box-shadow:
		0 0 12px rgba(0, 255, 252, .25);
}


/* ============================================================
   H2 / H3
   ============================================================ */

body.bff-pillar .entry-content h2 {
	position: relative;

	margin-top: 48px;
	margin-bottom: 20px;
	padding-bottom: 12px;

	font-weight: 800;
	letter-spacing: -.025em;

	scroll-margin-top: 100px;
}

body.bff-pillar .entry-content h2::after {
	content: "";

	display: block;

	width: 72px;
	height: 4px;

	margin-top: 10px;

	border-radius: 999px;

	background:
		linear-gradient(
			90deg,
			#00d4d1,
			#00fffc
		);

	box-shadow:
		0 0 14px rgba(0, 255, 252, .28);
}

body.bff-pillar .entry-content h3 {
	margin-top: 30px;
	margin-bottom: 13px;

	font-weight: 750;
	letter-spacing: -.015em;

	scroll-margin-top: 100px;
}


/* ============================================================
   HIGHLIGHTPUNCHY / BLOCKQUOTES
   ============================================================ */

body.bff-pillar .entry-content .highlightpunchy,
body.bff-pillar .entry-content blockquote {
	position: relative;

	margin-top: 24px;
	margin-bottom: 26px;

	border: 1px solid rgba(0, 180, 180, .18) !important;
	border-left: 5px solid var(--bff-cyan) !important;
	border-radius: 14px;

	background:
		linear-gradient(
			135deg,
			rgba(0, 255, 252, .075),
			rgba(255, 255, 255, .97)
		) !important;

	box-shadow:
		0 12px 30px rgba(0, 0, 0, .06);

	overflow: hidden;
}

body.bff-pillar .entry-content .highlightpunchy::after,
body.bff-pillar .entry-content blockquote::after {
	content: "";

	position: absolute;

	width: 130px;
	height: 130px;

	right: -65px;
	top: -65px;

	border-radius: 50%;

	background:
		radial-gradient(
			circle,
			rgba(0, 255, 252, .10),
			rgba(0, 255, 252, 0)
		);

	pointer-events: none;
}

body.bff-pillar .entry-content .highlightpunchy p:last-child,
body.bff-pillar .entry-content blockquote p:last-child {
	margin-bottom: 0;
}


/* ============================================================
   LIENS ÉDITORIAUX
   ============================================================ */

body.bff-pillar .entry-content p a,
body.bff-pillar .entry-content li a,
body.bff-pillar .entry-content td a {
	font-weight: 650;

	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: rgba(0, 150, 150, .42);

	transition:
		color .18s ease,
		text-decoration-color .18s ease;
}

body.bff-pillar .entry-content p a:hover,
body.bff-pillar .entry-content li a:hover,
body.bff-pillar .entry-content td a:hover {
	color: #008d8b;
	text-decoration-color: #00bebb;
}


/* ============================================================
   TABLEAUX
   ============================================================ */

body.bff-pillar .entry-content table {
	width: 100%;

	margin: 25px 0 34px;

	border: 0;
	border-collapse: separate;
	border-spacing: 0;

	border-radius: 16px;
	overflow: hidden;

	background: #fff;

	box-shadow: var(--bff-shadow);
}

body.bff-pillar .entry-content table thead th {
	padding: 16px 18px;

	background:
		linear-gradient(
			135deg,
			#111116,
			#202027
		);

	color: #fff;

	border: 0;

	font-weight: 750;
	line-height: 1.35;
}

body.bff-pillar .entry-content table tbody td {
	padding: 15px 18px;

	border: 0;
	border-bottom: 1px solid #eceff1;

	vertical-align: middle;
}

body.bff-pillar .entry-content table tbody tr:last-child td {
	border-bottom: 0;
}

body.bff-pillar .entry-content table tbody tr {
	transition:
		background-color .18s ease;
}

body.bff-pillar .entry-content table tbody tr:hover {
	background:
		rgba(0, 255, 252, .045);
}


/* ============================================================
   LISTES ÉDITORIALES
   ============================================================ */

body.bff-pillar .entry-content > ul {
	margin: 20px 0 28px;
	padding-left: 0;

	list-style: none;
}

body.bff-pillar .entry-content > ul > li {
	position: relative;

	margin-bottom: 8px;

	padding:
		11px
		14px
		11px
		36px;

	border: 1px solid rgba(0, 0, 0, .035);
	border-radius: 10px;

	background:
		rgba(0, 0, 0, .018);

	transition:
		background-color .18s ease,
		transform .18s ease;
}

body.bff-pillar .entry-content > ul > li::before {
	content: "✓";

	position: absolute;

	left: 13px;
	top: 11px;

	color: #00a5a3;

	font-weight: 900;
}

body.bff-pillar .entry-content > ul > li:hover {
	background:
		rgba(0, 255, 252, .045);

	transform:
		translateX(2px);
}


/* ============================================================
   CTA PRINCIPAUX
   ============================================================ */

body.bff-pillar .bigbouton {
	position: relative;

	display: block;
	overflow: hidden;

	border-radius: 14px;

	box-shadow:
		0 13px 32px rgba(0, 0, 0, .15);

	transition:
		transform .22s ease,
		box-shadow .22s ease,
		filter .22s ease;
}

body.bff-pillar .bigbouton::after {
	content: "";

	position: absolute;

	top: -40%;
	left: -50%;

	width: 35%;
	height: 180%;

	background:
		rgba(255, 255, 255, .20);

	transform:
		rotate(20deg);

	transition:
		left .55s ease;

	pointer-events: none;
}

body.bff-pillar .bigbouton:hover {
	transform:
		translateY(-2px);

	box-shadow:
		0 19px 42px rgba(0, 0, 0, .20);

	filter:
		saturate(1.06);
}

body.bff-pillar .bigbouton:hover::after {
	left: 125%;
}


/* ============================================================
   SÉPARATEURS
   ============================================================ */

body.bff-pillar .entry-content hr {
	border: 0;

	height: 1px;

	margin: 44px 0 8px;

	background:
		linear-gradient(
			90deg,
			transparent,
			rgba(0, 160, 160, .28),
			transparent
		);
}


/* ============================================================
   FAQ
   ============================================================ */

body.bff-pillar .entry-content h2 + h3 {
	margin-top: 20px;
}

body.bff-pillar .entry-content h2 ~ h3 {
	position: relative;
}


/* ============================================================
   AUTHOR / E-E-A-T
   ============================================================ */

body.bff-pillar .bf-author-box {
	margin-top: 36px;

	border: 1px solid rgba(0, 0, 0, .07);
	border-radius: 18px;

	background:
		linear-gradient(
			145deg,
			#ffffff,
			#f6fafa
		);

	box-shadow:
		var(--bff-shadow);

	overflow: hidden;
}

body.bff-pillar .bf-author-avatar img {
	border-radius: 50%;

	box-shadow:
		0 8px 22px rgba(0, 0, 0, .14);
}


/* ============================================================
   BREADCRUMBS
   ============================================================ */

body.bff-pillar .aioseo-breadcrumbs {
	margin-top: 28px;
	padding: 12px 15px;

	font-size: .9em;

	border-radius: 10px;

	background:
		#f7f8f9;

	border:
		1px solid rgba(0, 0, 0, .05);
}

body.bff-pillar .aioseo-breadcrumbs a {
	font-weight: 600;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes bffHeroSweep {

	0%,
	68% {
		transform: translateX(-120%);
	}

	88%,
	100% {
		transform: translateX(120%);
	}
}

@keyframes bffCyanFlow {

	0%,
	100% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}
}

@keyframes bffFadeUp {

	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

body.bff-pillar .entry-content > h2,
body.bff-pillar .entry-content > .highlightpunchy {
	animation:
		bffFadeUp .50s ease both;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

	body.bff-pillar .entry-content {
		font-size: 16px;
		line-height: 1.72;
	}

	body.bff-pillar .page-header {
		padding: 18px 0;
	}

	body.bff-pillar .page-header .entry-title {
		padding: 14px 12px;

		font-size: 29px !important;

		line-height: 1.22 !important;
	}

	body.bff-pillar .entry-content .intro {
		padding:
			18px
			18px
			18px
			21px;

		font-size: 1.04em;
	}

	body.bff-pillar .entry-content h2 {
		margin-top: 38px;

		font-size: 24px;
	}

	body.bff-pillar .entry-content h3 {
		margin-top: 26px;
	}

	body.bff-pillar .entry-content table {
		display: block;

		max-width: 100%;

		overflow-x: auto;

		-webkit-overflow-scrolling: touch;
	}

	body.bff-pillar .entry-content table th,
	body.bff-pillar .entry-content table td {
		min-width: 150px;
	}

	body.bff-pillar .entry-content > ul > li {
		padding:
			10px
			11px
			10px
			34px;
	}

	body.bff-pillar main.site-main > a:first-child {
		margin-top: 16px;

		border-radius: 13px;
	}

	body.bff-pillar .bigbouton {
		border-radius: 12px;
	}
}


/* ============================================================
   TRÈS PETITS ÉCRANS
   ============================================================ */

@media (max-width: 480px) {

	body.bff-pillar .page-header .entry-title {
		font-size: 25px !important;
	}

	body.bff-pillar .entry-content h2 {
		font-size: 22px;
	}

	body.bff-pillar .entry-content .intro {
		border-radius: 14px;
	}

	body.bff-pillar .entry-content .highlightpunchy,
	body.bff-pillar .entry-content blockquote {
		border-radius: 12px;
	}
}


/* ============================================================
   ACCESSIBILITÉ / REDUCED MOTION
   ============================================================ */

/*
 * Important :
 * on ne cible PAS body.bff-pillar *.
 * Ainsi le bw_menu reste totalement indépendant.
 */

@media (prefers-reduced-motion: reduce) {

	body.bff-pillar .page-header::after,
	body.bff-pillar main.site-main > p[style*="background:cyan"],
	body.bff-pillar main.site-main > p[style*="background: cyan"],
	body.bff-pillar .entry-content > h2,
	body.bff-pillar .entry-content > .highlightpunchy {
		animation: none !important;
	}

	body.bff-pillar main.site-main > a:first-child img,
	body.bff-pillar .bigbouton,
	body.bff-pillar .bigbouton::after,
	body.bff-pillar .entry-content > ul > li,
	body.bff-pillar .entry-content p a,
	body.bff-pillar .entry-content li a,
	body.bff-pillar .entry-content td a {
		transition: none !important;
	}
}