/**
 * Styles de contenu éditorial Droitzen
 * Typographie et espacements pour la lecture de contenu juridique
 *
 * Principes :
 * - font-size déclaré UNE fois sur le conteneur (pas de cascade)
 * - Espacements en em pour garder les proportions
 * - line-height confortable pour de la lecture longue
 * - Hiérarchie visuelle claire entre titres, texte et listes
 *
 * @doc docs/theme/blocs-contenus.md
 */

/* --- Base conteneur — point de contrôle unique --- */
.post-detail .post-content {
	font-size: 1.125rem; /* 18px — lisibilité accrue pour contenu juridique */
	line-height: 1.55;
}

/* --- Paragraphes --- */
.post-detail .post-content p {
	font-size: 1em;
	line-height: 1.55;
	margin-bottom: 0.6em;
}

/* --- Titres dans le contenu --- */
.post-detail .post-content h2,
.post-detail .post-content h3,
.post-detail .post-content h4,
.post-detail .post-content h5,
.post-detail .post-content h6 {
	line-height: 1.2;
	font-weight: 600;
	margin-top: 1.75em;
	margin-bottom: 0.6em;
}

.post-detail .post-content > h2:first-child,
.post-detail .post-content > h3:first-child,
.post-detail .post-content > h4:first-child,
.post-detail .post-content > h5:first-child,
.post-detail .post-content > h6:first-child {
	margin-top: 0;
}

/* --- Listes (ul / ol) --- */
.post-detail .post-content ul,
.post-detail .post-content ol {
	font-size: 1em;
	margin-bottom: 0.6em;
	padding-left: 1.4em;
}

.post-detail .post-content li {
	font-size: 1em;
	margin-bottom: 0.15em;
}

.post-detail .post-content li:last-child {
	margin-bottom: 0;
}

/* Listes imbriquées — évite la cascade de font-size */
.post-detail .post-content li ul,
.post-detail .post-content li ol {
	margin-top: 0.3em;
	margin-bottom: 0.3em;
	font-size: 1em;
}

/* --- Blockquotes --- */
.post-detail .post-content blockquote {
	margin: 1.75em 0;
	padding: 1.25em 1.5em;
	line-height: 1.5;
}

.post-detail .post-content blockquote p {
	line-height: inherit;
	margin-bottom: 0.5em;
}

.post-detail .post-content blockquote p:last-child {
	margin-bottom: 0;
}

/* ==============================================
   BOX AUTEUR PROFESSIONNEL
   Affichée en bas d'article et sur la page auteur
   ============================================== */

.drz-author-box {
	margin-top: 3em;
	border-top: 3px solid #ec1166;
	padding-top: 2em;
}

.drz-author-box__inner {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

/* Photo */
.drz-author-box__photo {
	flex-shrink: 0;
}

.drz-author-box__photo-img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

/* Contenu */
.drz-author-box__content {
	flex: 1;
	min-width: 0;
}

.drz-author-box__label {
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #b10d4b;
	margin: 0 0 0.4em;
}

.drz-author-box__name {
	font-size: 1.15em;
	font-weight: 700;
	margin: 0 0 0.15em;
	line-height: 1.2;
}

.drz-author-box__name a {
	color: inherit;
	text-decoration: none;
}

.drz-author-box__name a:hover {
	color: #ec1166;
}

.drz-author-box__titre {
	font-size: 0.9em;
	color: #555;
	margin: 0 0 0.4em;
	font-style: italic;
}

.drz-author-box__experience {
	font-size: 0.8em;
	color: #595959;
	margin: 0 0 0.6em;
}

.drz-author-box__bio {
	font-size: 0.9em;
	line-height: 1.5;
	color: #444;
	margin: 0 0 0.8em;
}

/* Liens externes */
.drz-author-box__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 1em;
}

.drz-author-box__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.8em;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
	border: 1px solid #ddd;
	color: #444;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.drz-author-box__link:hover {
	border-color: #ec1166;
	color: #ec1166;
}

.drz-author-box__link--barreau::before {
	content: "⚖";
	font-size: 0.9em;
}

.drz-author-box__link--linkedin::before {
	content: none;
}

.drz-author-box__link--linkedin {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.drz-author-box__link--site::before {
	content: "🔗";
	font-size: 0.85em;
}

/* Actions (articles + CTA) */
.drz-author-box__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.drz-author-box__articles-link {
	font-size: 0.85em;
	color: #777;
	text-decoration: underline;
}

.drz-author-box__articles-link:hover {
	color: #ec1166;
}

.drz-author-box__cta {
	font-size: 0.85em;
	padding: 8px 18px;
	background: #ec1166;
	color: #fff !important;
	border-radius: 3px;
	text-decoration: none !important;
	font-weight: 600;
	transition: background 0.2s;
}

.drz-author-box__cta:hover {
	background: #c40f55;
}

/* Lien vers d'autres professionnels de la même catégorie */
.drz-author-box__related-pros {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #ececec;
	font-size: 0.85em;
}

.drz-author-box__related-pros-link {
	color: #ec1166;
	text-decoration: none;
	font-weight: 600;
}

.drz-author-box__related-pros-link:hover {
	text-decoration: underline;
}

/* LinkedIn inline dans le héro article */
.post-author .drz-author-linkedin-hero {
	display: inline-flex;
	align-items: center;
	color: #0a66c2;
	margin-left: 6px;
	vertical-align: middle;
	text-decoration: none;
	transition: color 0.15s;
}

.post-author .drz-author-linkedin-hero:hover {
	color: #004182;
}

/* Contexte page auteur — dans le wrapper du thème */
.authorpage .drz-author-box {
	margin-top: 0;
	border-top: none;
	padding-top: 0;
	border-left: 3px solid #ec1166;
	padding-left: 1.5em;
}

/* Masquer les fallbacks "Pas d'articles plus récents / plus anciens" */
.article-navigation .columns > span {
	display: none;
}

/* ==============================================
   NAVIGATION PRÉCÉDENT / SUIVANT (rewrite DRZ)
   Remplace .post-detail .article-navigation du thème parent
   CSS ::before / ::after en lieu et place des SVG inline
   ============================================== */

.drz-post-nav {
	display: flex;
	border: 1px solid rgba(0, 0, 0, 0.07);
	padding: 15px;
	margin-bottom: 30px;
}

@media only screen and (min-width: 40.0625em) {
	.drz-post-nav {
		padding: 30px;
	}
}

.drz-post-nav-link {
	flex: 1;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: #222;
	text-decoration: none;
	transition: color 0.15s;
}

.drz-post-nav-link:hover {
	color: #ec1166;
}

.drz-nav-label {
	text-transform: uppercase;
	font-size: 10px;
	color: #222;
	opacity: 0.6;
	display: block;
	line-height: 1;
	font-weight: 600;
	margin-bottom: 10px;
}

.drz-nav-title {
	display: block;
	font-weight: 400;
	line-height: 1.4;
	margin: 0;
}

/* Chevron précédent */
.drz-post-nav-prev {
	padding-left: 20px;
}

.drz-post-nav-prev::before {
	content: '\2039'; /* ‹ */
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	opacity: 0.4;
	line-height: 1;
	transition: opacity 0.15s;
}

.drz-post-nav-prev:hover::before {
	opacity: 1;
}

/* Chevron suivant */
.drz-post-nav-next {
	text-align: right;
	padding-right: 20px;
}

.drz-post-nav-next::after {
	content: '\203A'; /* › */
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	opacity: 0.4;
	line-height: 1;
	transition: opacity 0.15s;
}

.drz-post-nav-next:hover::after {
	opacity: 1;
}

/* Séparateur vertical entre précédent et suivant */
.drz-post-nav-prev + .drz-post-nav-next {
	border-left: 1px solid rgba(0, 0, 0, 0.07);
	padding-left: 30px;
	margin-left: 15px;
}

/* Mobile : empilé verticalement */
@media only screen and (max-width: 40.0625em) {
	.drz-post-nav {
		flex-direction: column;
	}

	.drz-post-nav-prev + .drz-post-nav-next {
		border-left: none;
		border-top: 1px solid rgba(0, 0, 0, 0.07);
		padding-left: 20px;
		margin-left: 0;
		padding-top: 15px;
		margin-top: 15px;
	}
}

/* Overlay gradient diffus pour le contraste texte sur fond clair dans le héro article */
.style3 .post-header {
	position: relative;
}

.style3 .post-header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.18) 0%,
		rgba(0, 0, 0, 0.52) 50%,
		rgba(0, 0, 0, 0.18) 100%
	);
	z-index: 1;
	pointer-events: none;
}

.style3 .post-header .post-title-container {
	position: relative;
	z-index: 2;
}

/* Responsive */
@media (max-width: 640px) {
	.drz-author-box__inner {
		flex-direction: column;
	}

	.drz-author-box__photo {
		align-self: center;
	}
}

/* Masquer les compteurs de partages (toujours à 0, inutiles visuellement) */
.share-article .thb-social-count,
.share-article .boxed-icon.comment > span {
	display: none;
}

/* ==============================================
   PERFORMANCE — font-display: swap pour Font Awesome
   Le thème parent déclare font-display: block sur toutes les FA fonts,
   ce qui rend les icônes invisibles pendant le chargement (FOIT).
   On redéclare les @font-face avec font-display: swap — les icônes
   s'affichent avec un caractère de remplacement pendant le chargement,
   puis sont remplacées sans saut de layout.
   Chemin relatif depuis thevoux-wp-child/assets/css/ → ../../../thevoux-wp/assets/fonts/
   (css/ → assets/ → thevoux-wp-child/ → themes/ → puis thevoux-wp/)
   ============================================== */

@font-face {
	font-family: "Font Awesome 6 Free";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url('../../../thevoux-wp/assets/fonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
	font-family: "Font Awesome 6 Free";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../../../thevoux-wp/assets/fonts/fa-regular-400.woff2') format('woff2');
}

@font-face {
	font-family: "Font Awesome 6 Brands";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../../../thevoux-wp/assets/fonts/fa-brands-400.woff2') format('woff2');
}

/* ==============================================
   ACCESSIBILITÉ — Correctifs contraste et images
   ============================================== */

/* Breadcrumb Rank Math — bande dédiée sous le header */
.drz-breadcrumb-bar {
	background: #f5f5f5;
	border-bottom: 1px solid #e8e8e8;
	padding: 0.55rem 0;
	font-size: 0.8rem;
	color: #4a4a4a;
}

.drz-breadcrumb-bar-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.drz-breadcrumb-bar .rank-math-breadcrumb p {
	margin: 0;
	line-height: 1.4;
}

.drz-breadcrumb-bar a {
	color: #555;
	text-decoration: none;
}

.drz-breadcrumb-bar a:hover {
	color: #ec1166;
	text-decoration: underline;
}

.drz-breadcrumb-bar .last {
	color: #888;
}

/* Séparateur › (Rank Math génère <span class="separator">) */
.drz-breadcrumb-bar .separator {
	color: #bbb;
	padding: 0 0.1em;
}

/* Correction aspect ratio des thumbnails mini (20x15) générés par le thème parent */
.post img[src*="-20x15."],
.featured-image img[src*="-20x15."] {
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

/* Labels catégorie sur fond sombre (héros article) — garantir lisibilité */
.featured-title .post-meta a[class*="cat-"] {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Texte sur overlay hero — renforcer le contraste */
.style3 .featured-title a,
.style3 .featured-title .post-meta a {
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Couleur accent DroitZen — WCAG AA : #c4094f passe à 5.34:1 sur blanc (vs 4.34 pour #ec1166) */
.post .thb-post-top .post-meta a[class*="cat-"],
.post-detail .post-meta a[class*="cat-"],
.sidebar-content a[class*="cat-"] {
	color: #c4094f !important;
}

.post .thb-post-top .post-meta.style2 a[class*="cat-"] {
	background-color: #c4094f !important;
	color: #fff !important;
}

/* Décaler la sidebar de partage sous la lettrine */
.article-dropcap-on .post-share-container > .share-article-single.fixed-me {
	margin-top: 220px;
}

/* Baseline / tagline sous le logo dans le header */
.header .logo {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.header .drz-logo-baseline {
	margin: 4px 0 0;
	padding: 0;
	font-size: 0.7rem;
	font-weight: 400;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.75;
	line-height: 1.2;
	text-align: center;
}

/* Version header fixe : masquer la baseline pour ne pas surcharger */
.fixed-header .drz-logo-baseline {
	display: none;
}

/* ---------------------------------------------------------------
   Barre de navigation thématique (NYT-style) sous le menu principal
   --------------------------------------------------------------- */
.drz-subheader-nav {
	background: #fff;
	border-top: 1px solid #e0e0e0;
	border-bottom: 3px solid #111;
}

.drz-categories-menu {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.drz-cat-menu {
	display: flex;
	flex-wrap: nowrap;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
}

.drz-cat-menu::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

.drz-cat-menu > li {
	flex-shrink: 0;
}

.drz-cat-menu > li > a {
	display: block;
	padding: 0.65rem 1rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #111;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	margin-bottom: -3px; /* aligne sur le border-bottom du conteneur */
	transition: color 0.15s, border-color 0.15s;
}

.drz-cat-menu > li > a:hover,
.drz-cat-menu > li.current-menu-item > a,
.drz-cat-menu > li.current-menu-ancestor > a {
	color: #ec1166;
	border-bottom-color: #ec1166;
}

/* Masquer sur mobile (géré par le menu hamburger) */
@media (max-width: 1024px) {
	.drz-subheader-nav {
		display: none;
	}
}

/* ==============================================
   ARTICLES LIÉS (maillage horizontal)
   Affiché après la CTA en bas d'article
   ============================================== */

.drz-related-articles {
	margin-top: 3em;
	padding-top: 2em;
	border-top: 1px solid #e8e8e8;
}

.drz-related-articles__title {
	font-size: 1.15em;
	font-weight: 700;
	margin: 0 0 1em;
	color: #1a1a2e;
}

.drz-related-articles__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.drz-related-articles__card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s;
}

.drz-related-articles__card:hover {
	transform: translateY(-2px);
}

.drz-related-articles__thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 8px;
}

.drz-related-articles__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s;
}

.drz-related-articles__card:hover .drz-related-articles__thumb img {
	transform: scale(1.04);
}

.drz-related-articles__card-title {
	font-size: 0.85em;
	font-weight: 600;
	line-height: 1.35;
	margin: 0;
	color: #222;
}

.drz-related-articles__card:hover .drz-related-articles__card-title {
	color: #ec1166;
}

@media (max-width: 860px) {
	.drz-related-articles__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.drz-related-articles__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}
