/*
Theme Name: SmartMag Child
Theme URI: https://smartmag.theme-sphere.com/
Description: A child theme of SmartMag
Author: ThemeSphere
Author URI: https://theme-sphere.com
Template: smart-mag
Version: 1.1
*/
/* -------------------------------------------------------------------------
 * btp-dz.com — ajustements repris de l'apparence d'origine (thème multinews).
 * Chaque valeur renvoie à une mesure consignée dans reports/design-origine.md.
 * ---------------------------------------------------------------------- */

/* Le menu principal compte 10 entrées de premier niveau, comme à l'origine.
   À la taille par défaut de SmartMag il passe sur deux lignes et chevauche le
   slider : on resserre la typographie pour le ramener sur une seule ligne. */
.navigation-main .menu > li > a {
	font-size: 12px;
	letter-spacing: .02em;
	padding-left: 11px;
	padding-right: 11px;
}

@media (max-width: 1300px) {
	.navigation-main .menu > li > a {
		font-size: 11px;
		padding-left: 8px;
		padding-right: 8px;
	}
}

/* La barre de navigation reste au-dessus du slider placé juste en dessous.
   Le fond n'est PAS forcé ici : il vient du schéma `header_scheme_bot`, sans
   quoi on se retrouve avec du texte clair sur un blanc imposé. */
.navigation-main {
	position: relative;
	z-index: 20;
}

/* Le menu était centré sur l'original (ul.main-menu { margin: 0 auto }). */
.navigation-main .menu {
	justify-content: center;
}

/* Bandeau « Infos dernières » : libellé sur fond d'accent, comme l'original. */
.trending-ticker .heading {
	background: #9ca71f;
	color: #fff;
	padding: 0 12px;
}

/* =========================================================================
 * Pages Contact et Web TV (gabarits page-contact.php, page-web-tv-btp.php)
 * ====================================================================== */

.btpdz-contact,
.btpdz-webtv {
	--btpdz-accent: #9ca71f;
	--btpdz-accent-dark: #6f7815;
	--btpdz-ink: #161616;
	--btpdz-muted: #666;
	--btpdz-line: #e6e6e6;
	--btpdz-soft: #f5f6ee;
	padding: 10px 0 60px;
}

.btpdz-kicker {
	display: inline-block;
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--btpdz-accent-dark);
}

.btpdz-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: 3px;
	background: var(--btpdz-accent-dark);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s;
}
.btpdz-btn:hover,
.btpdz-btn:focus-visible { background: #555d10; color: #fff; }
.btpdz-btn--light { background: #fff; color: var(--btpdz-ink); }
.btpdz-btn--light:hover,
.btpdz-btn--light:focus-visible { background: var(--btpdz-soft); color: var(--btpdz-ink); }
.btpdz-btn--yt { background: #c4302b; }
.btpdz-btn--yt:hover,
.btpdz-btn--yt:focus-visible { background: #a02622; }

/* ---------------------------------------------------------------- Contact */

.btpdz-contact__hero {
	max-width: 760px;
	padding: 20px 0 34px;
}
.btpdz-contact__title,
.btpdz-webtv__title {
	margin: 0 0 14px;
	font-size: clamp(30px, 4vw, 42px);
	line-height: 1.1;
	color: var(--btpdz-ink);
}
.btpdz-contact__lead,
.btpdz-webtv__lead {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--btpdz-muted);
}

.btpdz-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 40px;
	align-items: start;
}

.btpdz-contact__cards {
	display: grid;
	gap: 12px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
.btpdz-card {
	display: grid;
	grid-template-columns: 44px 1fr;
	column-gap: 14px;
	padding: 16px 18px;
	border: 1px solid var(--btpdz-line);
	border-radius: 4px;
	background: #fff;
}
.btpdz-card__icon {
	grid-row: span 3;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--btpdz-soft);
	color: var(--btpdz-accent-dark);
}
.btpdz-card__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--btpdz-muted);
}
.btpdz-card__value {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--btpdz-ink);
	overflow-wrap: anywhere;
}
a.btpdz-card__value:hover { color: var(--btpdz-accent-dark); }
.btpdz-card__link {
	margin-top: 4px;
	font-size: 13px;
	color: var(--btpdz-accent-dark);
}

.btpdz-ad {
	padding: 26px 26px 28px;
	border-radius: 4px;
	background: var(--btpdz-ink);
	color: #d8d8d8;
	scroll-margin-top: 90px;
}
.btpdz-ad__title {
	margin: 0 0 10px;
	font-size: 21px;
	color: #fff;
}
.btpdz-ad__title::before {
	content: "";
	display: block;
	width: 36px;
	height: 3px;
	margin-bottom: 14px;
	background: var(--btpdz-accent);
}
.btpdz-ad p {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.65;
}

.btpdz-contact__social {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--btpdz-muted);
}
.btpdz-contact__social a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--btpdz-line);
	border-radius: 50%;
	color: var(--btpdz-ink);
	font-size: 16px;
}
.btpdz-contact__social a:hover { border-color: var(--btpdz-accent); color: var(--btpdz-accent-dark); }

.btpdz-contact__form-wrap {
	padding: 30px 32px 32px;
	border: 1px solid var(--btpdz-line);
	border-top: 3px solid var(--btpdz-accent);
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
	scroll-margin-top: 90px;
}
.btpdz-contact__form-title {
	margin: 0 0 20px;
	font-size: 22px;
	color: var(--btpdz-ink);
}

.btpdz-form { display: grid; gap: 16px; }
.btpdz-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.btpdz-field { display: grid; gap: 6px; margin: 0; }
.btpdz-field > span {
	font-size: 13px;
	font-weight: 600;
	color: var(--btpdz-ink);
}
.btpdz-field em { font-style: normal; color: var(--btpdz-accent-dark); }
.btpdz-field input,
.btpdz-field select,
.btpdz-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #d5d5d5;
	border-radius: 3px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	color: var(--btpdz-ink);
	transition: border-color .2s, box-shadow .2s;
}
.btpdz-field select { height: auto; }
.btpdz-field textarea { resize: vertical; min-height: 150px; }
.btpdz-field input:focus,
.btpdz-field select:focus,
.btpdz-field textarea:focus {
	outline: none;
	border-color: var(--btpdz-accent);
	box-shadow: 0 0 0 3px rgba(156, 167, 31, .2);
}
.btpdz-form__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.btpdz-form__foot small { color: var(--btpdz-muted); font-size: 13px; }
.btpdz-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btpdz-notice {
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: 3px;
	font-size: 14px;
}
.btpdz-notice--ok { background: #eef5d6; color: #3f4a07; }
.btpdz-notice--err { background: #fbe9e7; color: #8a1f11; }

/* ----------------------------------------------------------------- Web TV */

.btpdz-webtv__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	padding: 20px 0 30px;
}
.btpdz-webtv__head > div { max-width: 720px; }
.btpdz-webtv__title span { color: var(--btpdz-muted); font-weight: 400; }
.btpdz-webtv__head .btpdz-btn { flex: none; }

.btpdz-stage {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
	background: #111;
	border-radius: 4px;
	overflow: hidden;
	scroll-margin-top: 80px;
}
.btpdz-stage__screen {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}
.btpdz-stage__screen > iframe,
.btpdz-stage__screen > video,
.btpdz-stage__facade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.btpdz-stage__facade {
	padding: 0;
	background: #000;
	cursor: pointer;
}
.btpdz-stage__facade img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .85;
	transition: opacity .25s;
}
.btpdz-stage__facade:hover img,
.btpdz-stage__facade:focus-visible img { opacity: 1; }

.btpdz-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 84px;
	height: 84px;
	margin: -42px 0 0 -42px;
	border-radius: 50%;
	background: var(--btpdz-accent);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
	transition: transform .2s;
}
.btpdz-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	border-style: solid;
	border-width: 14px 0 14px 23px;
	border-color: transparent transparent transparent #fff;
	transform: translate(-50%, -50%);
}
.btpdz-stage__facade:hover .btpdz-play { transform: scale(1.08); }
.btpdz-play--sm {
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	opacity: 0;
	transition: opacity .2s;
}
.btpdz-play--sm::after { border-width: 8px 0 8px 13px; }

.btpdz-stage__meta {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 28px;
	color: #cfcfcf;
}
.btpdz-stage__kicker {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--btpdz-accent);
}
.btpdz-stage__title {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.35;
	color: #fff;
}
.btpdz-stage__date { margin: 0 0 20px; font-size: 13px; color: #9a9a9a; }
.btpdz-stage__link { font-size: 14px; font-weight: 600; color: #fff; }
.btpdz-stage__link:hover { color: var(--btpdz-accent); }

.btpdz-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 44px 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--btpdz-ink);
	font-size: 20px;
	color: var(--btpdz-ink);
}
.btpdz-section-title span {
	padding: 2px 8px;
	border-radius: 20px;
	background: var(--btpdz-accent-dark);
	color: #fff;
	font-size: 12px;
}

.btpdz-episodes__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.btpdz-ep {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--btpdz-ink);
	text-decoration: none;
}
.btpdz-ep__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	margin-bottom: 6px;
	border-radius: 3px;
	overflow: hidden;
	background: #222;
}
.btpdz-ep__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s;
}
.btpdz-ep:hover .btpdz-ep__thumb img,
.btpdz-ep:focus-visible .btpdz-ep__thumb img { transform: scale(1.05); }
.btpdz-ep:hover .btpdz-play--sm,
.btpdz-ep:focus-visible .btpdz-play--sm { opacity: 1; }
.btpdz-ep__now {
	position: absolute;
	left: 8px;
	bottom: 8px;
	display: none;
	padding: 3px 8px;
	border-radius: 2px;
	background: var(--btpdz-accent-dark);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.btpdz-ep.is-current .btpdz-ep__now { display: block; }
.btpdz-ep.is-current .btpdz-ep__thumb { outline: 3px solid var(--btpdz-accent); outline-offset: -3px; }
.btpdz-ep__kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--btpdz-accent-dark);
}
.btpdz-ep__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.btpdz-ep:hover .btpdz-ep__title { color: var(--btpdz-accent-dark); }
.btpdz-ep__date { font-size: 12px; color: var(--btpdz-muted); }

.btpdz-webtv__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 50px;
	padding: 28px 32px;
	border-radius: 4px;
	background: var(--btpdz-ink);
	color: #cfcfcf;
}
.btpdz-webtv__cta h2 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.btpdz-webtv__cta p { margin: 0; font-size: 15px; line-height: 1.6; max-width: 640px; }
.btpdz-webtv__cta .btpdz-btn { flex: none; }

/* Lecteur des articles WebTV (scripts/22_webtv.php) : 16:9 fluide. */
.btpdz-video-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	margin-bottom: 24px;
	background: #000;
}
.btpdz-video-frame > iframe,
.btpdz-video-frame > video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

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

@media (max-width: 1100px) {
	.btpdz-episodes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.btpdz-stage { grid-template-columns: 1fr; }
	.btpdz-stage__meta { padding: 20px 22px 24px; }
}
@media (max-width: 900px) {
	.btpdz-contact__grid { grid-template-columns: 1fr; gap: 28px; }
	.btpdz-contact__form-wrap { order: -1; }
}
@media (max-width: 767px) {
	.btpdz-webtv__head,
	.btpdz-webtv__cta { flex-direction: column; align-items: flex-start; }
	.btpdz-episodes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
}
@media (max-width: 540px) {
	.btpdz-form__row { grid-template-columns: 1fr; }
	.btpdz-contact__form-wrap { padding: 22px 18px; }
	.btpdz-episodes__grid { grid-template-columns: 1fr; }
	.btpdz-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}
