/* =====================================================================
   ARTICLE BLOG — Valiseofilms Child Theme
   v1.0.0
   Design premium cohérent avec la charte graphique.
===================================================================== */

/* ── Wrapper global ── */
.vs-blog {
	background: #ffffff;
	padding: 32px 0 0;
}

/* ── Retour au blog ── */
.vs-blog__retour {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Lato', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	color: #888;
	text-decoration: none;
	margin-bottom: 28px;
	transition: color 0.2s ease;
}

.vs-blog__retour:hover {
	color: #fb8500;
	text-decoration: none;
}

.vs-blog__retour svg {
	flex-shrink: 0;
}

.vs-blog__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
}

/* ═══════════════════════════════════════════════════════════
   EN-TÊTE ARTICLE
═══════════════════════════════════════════════════════════ */

.vs-blog__header {
	max-width: 780px;
	margin: 0 auto 48px;
	text-align: left;
}

.vs-blog__categorie {
	display: inline-block;
	font-family: 'Oswald', sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #fb8500;
	margin-bottom: 14px;
}

.vs-blog__titre {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	color: #1a1a1a;
	margin: 0 0 18px;
}

.vs-blog__meta {
	font-family: 'Lato', sans-serif;
	font-size: 0.88rem;
	color: #888;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 32px;
}

.vs-blog__meta-sep {
	color: #ccc;
}

.vs-blog__featured {
	width: 100%;
	max-width: 780px;
	margin: 0 auto;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	aspect-ratio: 16 / 9;
}

.vs-blog__featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vs-blog__featured-sep {
	width: 48px;
	height: 3px;
	background: #fb8500;
	border-radius: 2px;
	margin: 28px 0 0;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT : CONTENU + SIDEBAR
═══════════════════════════════════════════════════════════ */

.vs-blog__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	align-items: start;
}

@media (min-width: 1100px) {
	.vs-blog__layout {
		grid-template-columns: 1fr 780px;
		gap: 64px;
	}

	.vs-blog__toc {
		order: -1;
	}
}

/* ═══════════════════════════════════════════════════════════
   CONTENU ARTICLE (styles Gutenberg)
═══════════════════════════════════════════════════════════ */

.vs-blog__content {
	font-family: 'Lato', sans-serif;
	font-size: 17px;
	line-height: 1.8;
	color: #1a1a1a;
	min-width: 0;
}

/* H2 */
.vs-blog__content h2 {
	font-family: 'Oswald', sans-serif;
	font-size: 28px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 48px 0 8px;
	padding-bottom: 12px;
	position: relative;
}

.vs-blog__content h2::after {
	content: '';
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background: #fb8500;
	border-radius: 1px;
}

/* H3 */
.vs-blog__content h3 {
	font-family: 'Oswald', sans-serif;
	font-size: 22px;
	font-weight: 500;
	color: #333;
	margin: 32px 0 12px;
}

/* Paragraphes */
.vs-blog__content p {
	margin: 0 0 20px;
	text-align: left !important;
}

/* Listes */
.vs-blog__content ul,
.vs-blog__content ol {
	padding-left: 0;
	margin: 0 0 24px;
	list-style: none;
}

.vs-blog__content ul li,
.vs-blog__content ol li {
	padding-left: 20px;
	position: relative;
	margin-bottom: 8px;
}

.vs-blog__content ul li::before {
	content: '—';
	color: #fb8500;
	font-weight: 700;
	position: absolute;
	left: 0;
}

.vs-blog__content ol {
	counter-reset: vs-ol;
	list-style: none;
}

.vs-blog__content ol li {
	counter-increment: vs-ol;
}

.vs-blog__content ol li::before {
	content: counter(vs-ol) '.';
	color: #fb8500;
	font-weight: 700;
	font-family: 'Oswald', sans-serif;
	position: absolute;
	left: 0;
}

/* Séparateurs */
.vs-blog__content hr {
	border: none;
	border-top: 1px solid #eee;
	margin: 40px 0;
}

/* Tableaux */
.vs-blog__content table {
	width: 100%;
	border-collapse: collapse;
	border-radius: 8px;
	overflow: hidden;
	margin: 32px 0;
	font-size: 15px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.vs-blog__content table thead th {
	background: #1a1a1a;
	color: #f0f0f0;
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	text-align: left;
	padding: 12px 16px;
}

.vs-blog__content table tbody tr:nth-child(odd) td {
	background: #ffffff;
}

.vs-blog__content table tbody tr:nth-child(even) td {
	background: #f9f9f9;
}

.vs-blog__content table td {
	padding: 11px 16px;
	border-bottom: 1px solid #eee;
}

/* Bloc résumé / points clés (wp:group avec bordure orange) */
.vs-blog__content .wp-block-group {
	background: #fff8f0;
	border-left: 4px solid #fb8500;
	border-radius: 0 8px 8px 0;
	padding: 20px 24px;
	margin: 32px 0;
}

.vs-blog__content .wp-block-group h2,
.vs-blog__content .wp-block-group h3 {
	font-family: 'Oswald', sans-serif;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fb8500;
	margin: 0 0 12px;
}

.vs-blog__content .wp-block-group h2::after,
.vs-blog__content .wp-block-group h3::after {
	display: none;
}

.vs-blog__content .wp-block-group p:last-child {
	margin-bottom: 0;
}

/* Blockquotes */
.vs-blog__content blockquote {
	border-left: 4px solid #fb8500;
	margin: 32px 0;
	padding: 16px 24px;
	font-style: italic;
	color: #555;
	background: #fafafa;
}

/* Liens */
.vs-blog__content a {
	color: #fb8500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: opacity 0.2s ease;
}

.vs-blog__content a:hover {
	opacity: 0.75;
	color: #fb8500;
}

/* Images dans le contenu */
.vs-blog__content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.vs-blog__content figure {
	margin: 32px 0;
}

.vs-blog__content figcaption {
	font-size: 0.82rem;
	color: #888;
	text-align: center;
	margin-top: 8px;
}

/* ── Bouton Gutenberg dans le contenu ── */
.vs-blog__content .wp-block-buttons {
	margin: 40px 0;
	display: flex;
	justify-content: center;
}

.vs-blog__content .wp-block-button__link {
	background-color: #fb8500 !important;
	color: #ffffff !important;
	font-family: 'Oswald', sans-serif !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
	text-decoration: none !important;
	padding: 14px 40px !important;
	border-radius: 8px !important;
	transition: background 0.2s ease, transform 0.2s ease;
	display: inline-block;
}

.vs-blog__content .wp-block-button__link:hover {
	background-color: #e07600 !important;
	color: #ffffff !important;
	text-decoration: none !important;
	transform: translateY(-2px);
}

/* ── FAQ Accordéon ── */
.vs-blog__faq-item {
	border-bottom: 1px solid #eee;
	overflow: hidden;
}

.vs-blog__faq-question {
	width: 100%;
	background: none;
	border: none;
	padding: 18px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	font-family: 'Oswald', sans-serif;
	font-size: 18px;
	font-weight: 500;
	color: #1a1a1a;
	text-align: left;
	transition: color 0.2s ease;
	box-shadow: none !important;
	outline: none !important;
	background: transparent !important;
}

.vs-blog__faq-question:hover,
.vs-blog__faq-question:focus {
	color: #fb8500;
	background: transparent !important;
	box-shadow: none !important;
}

.vs-blog__faq-icon {
	font-size: 22px;
	color: #fb8500;
	flex-shrink: 0;
	margin-left: 16px;
	line-height: 1;
	transition: transform 0.3s ease;
}

.vs-blog__faq-item.is-open .vs-blog__faq-icon {
	transform: rotate(45deg);
}

.vs-blog__faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.vs-blog__faq-answer-inner {
	padding: 0 0 20px;
	color: #555;
	font-size: 16px;
	line-height: 1.75;
}

.vs-blog__faq-answer-inner p:last-child {
	margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR TABLE DES MATIÈRES
═══════════════════════════════════════════════════════════ */

.vs-blog__toc {
	display: none;
}

@media (min-width: 1100px) {
	.vs-blog__toc {
		display: block;
		position: sticky;
		top: 100px;
		padding: 24px;
		background: #f9f9f9;
		border-radius: 12px;
		border-left: 3px solid #fb8500;
		max-height: calc(100vh - 140px);
		overflow-y: auto;
	}
}

.vs-blog__toc-title {
	font-family: 'Oswald', sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #888;
	margin: 0 0 14px;
}

#vs-blog-toc-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

#vs-blog-toc-list li {
	margin: 0;
	padding: 0;
}

#vs-blog-toc-list li::before {
	display: none;
}

#vs-blog-toc-list a {
	display: block;
	font-family: 'Lato', sans-serif;
	font-size: 13px;
	color: #555;
	text-decoration: none;
	padding: 5px 0 5px 10px;
	border-left: 2px solid transparent;
	line-height: 1.4;
	transition: color 0.2s ease, border-color 0.2s ease;
}

#vs-blog-toc-list a:hover {
	color: #fb8500;
}

#vs-blog-toc-list a.is-active {
	color: #fb8500;
	border-left-color: #fb8500;
	font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER ARTICLE : TAGS + PARTAGE
═══════════════════════════════════════════════════════════ */

.vs-blog__footer-art {
	max-width: 780px;
	margin: 48px auto 0;
	padding: 32px 0;
	border-top: 1px solid #eee;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.vs-blog__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vs-blog__tag {
	font-family: 'Lato', sans-serif;
	font-size: 0.8rem;
	color: #fb8500;
	border: 1px solid #fb8500;
	border-radius: 20px;
	padding: 4px 14px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.vs-blog__tag:hover {
	background: #fb8500;
	color: #ffffff;
	text-decoration: none;
}

.vs-blog__share {
	display: flex;
	align-items: center;
	gap: 12px;
}

.vs-blog__share-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: 'Lato', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 9px 18px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.vs-blog__share-btn--linkedin {
	background: #0a66c2;
	color: #fff;
}

.vs-blog__share-btn--linkedin:hover {
	background: #084e94;
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.vs-blog__share-btn--copy {
	background: #f0f0f0;
	color: #1a1a1a;
}

.vs-blog__share-btn--copy:hover {
	background: #e0e0e0;
	transform: translateY(-1px);
}

.vs-blog__share-btn--copy.is-copied {
	background: #22c55e;
	color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   AUTEUR
═══════════════════════════════════════════════════════════ */

.vs-blog__author {
	max-width: 780px;
	margin: 0 auto;
	padding: 28px;
	background: #f9f9f9;
	border-radius: 12px;
	border-left: 3px solid #fb8500;
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin-top: 32px;
}

.vs-blog__author-photo {
	flex-shrink: 0;
}

.vs-blog__author-photo img {
	width: 120px;
	height: 120px;
	border-radius: 10px;
	object-fit: cover;
	display: block;
}

.vs-blog__author-name {
	font-family: 'Oswald', sans-serif;
	font-size: 17px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 2px;
}

.vs-blog__author-role {
	font-family: 'Lato', sans-serif;
	font-size: 13px;
	color: #fb8500;
	margin: 0 0 10px;
}

.vs-blog__author-bio {
	font-family: 'Lato', sans-serif;
	font-size: 14px;
	color: #555;
	line-height: 1.65;
	margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   CTA FINAL
═══════════════════════════════════════════════════════════ */

.vs-blog__cta {
	background: #0d0d0d;
	margin: 48px -32px 0;
	padding: 72px 32px;
	text-align: center;
}

.vs-blog__cta-inner {
	max-width: 520px;
	margin: 0 auto;
}

.vs-blog__cta-titre {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 600;
	color: #f0f0f0;
	margin: 0 0 12px;
}

.vs-blog__cta-sous {
	font-family: 'Lato', sans-serif;
	font-size: 1rem;
	color: #888;
	margin: 0 0 32px;
}

.vs-blog__cta-btn {
	display: inline-block;
	background: #fb8500;
	color: #0d0d0d;
	font-family: 'Oswald', sans-serif;
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 14px 36px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.vs-blog__cta-btn:hover {
	background: #e07600;
	transform: translateY(-2px);
	color: #0d0d0d;
	text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════
   ARTICLES LIÉS
═══════════════════════════════════════════════════════════ */

.vs-blog__related {
	padding: 64px 0 80px;
}

.vs-blog__related-titre {
	font-family: 'Oswald', sans-serif;
	font-size: 1.6rem;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 32px;
}

.vs-blog__related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.vs-blog__related-card {
	text-decoration: none;
	color: inherit;
	border-radius: 10px;
	overflow: hidden;
	background: #f9f9f9;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}

.vs-blog__related-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
	text-decoration: none;
	color: inherit;
}

.vs-blog__related-img {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.vs-blog__related-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.vs-blog__related-card:hover .vs-blog__related-img img {
	transform: scale(1.04);
}

.vs-blog__related-info {
	padding: 16px 18px 20px;
}

.vs-blog__related-cat {
	display: block;
	font-family: 'Oswald', sans-serif;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: #fb8500;
	margin-bottom: 6px;
}

.vs-blog__related-card-titre {
	font-family: 'Oswald', sans-serif;
	font-size: 1rem;
	font-weight: 500;
	color: #1a1a1a;
	line-height: 1.3;
	margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
	.vs-blog {
		padding: 32px 0 0;
	}

	.vs-blog__inner {
		padding: 0 20px;
	}

	.vs-blog__titre {
		font-size: 1.8rem;
	}

	.vs-blog__cta {
		margin: 48px -20px 0;
		padding: 56px 20px;
	}

	.vs-blog__related-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.vs-blog__author {
		flex-direction: column;
		gap: 16px;
	}

	.vs-blog__content h2 {
		font-size: 22px;
	}

	.vs-blog__content h3 {
		font-size: 18px;
	}

	.vs-blog__content {
		font-size: 16px;
	}
}

@media (min-width: 769px) and (max-width: 1099px) {
	.vs-blog__related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ═══════════════════════════════════════════════════════════
   ARCHIVE BLOG — page /blog/
═══════════════════════════════════════════════════════════ */

.vs-archive {
	background: #ffffff;
	padding: 64px 0 80px;
}

.vs-archive__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
}

.vs-archive__hero {
	text-align: center;
	margin-bottom: 56px;
}

.vs-archive__label {
	display: inline-block;
	font-family: 'Oswald', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #fb8500;
	margin-bottom: 16px;
}

.vs-archive__titre {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 16px;
	line-height: 1.1;
}

.vs-archive__sous {
	font-family: 'Lato', sans-serif;
	font-size: 1.05rem;
	color: #888;
	margin: 0 auto;
	max-width: 520px;
}

/* ── Grille d'articles ── */
.vs-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

@media (max-width: 1099px) {
	.vs-archive__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.vs-archive__grid {
		grid-template-columns: 1fr;
	}
}

/* ── Card article ── */
.vs-archive__card {
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	text-decoration: none;
	color: inherit;
}

.vs-archive__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
	text-decoration: none;
	color: inherit;
}

.vs-archive__card-img {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f0f0f0;
}

.vs-archive__card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.vs-archive__card:hover .vs-archive__card-img img {
	transform: scale(1.04);
}

.vs-archive__card-body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.vs-archive__card-cat {
	display: inline-block;
	font-family: 'Oswald', sans-serif;
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #fb8500;
	margin-bottom: 8px;
}

.vs-archive__card-titre {
	font-family: 'Oswald', sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.3;
	margin: 0 0 10px;
}

.vs-archive__card-excerpt {
	font-family: 'Lato', sans-serif;
	font-size: 0.88rem;
	color: #666;
	line-height: 1.65;
	margin: 0 0 16px;
	flex: 1;
}

.vs-archive__card-meta {
	font-family: 'Lato', sans-serif;
	font-size: 0.8rem;
	color: #aaa;
	display: flex;
	align-items: center;
	gap: 8px;
}

.vs-archive__card-sep {
	color: #ddd;
}

/* ── Pagination ── */
.vs-archive__pagination {
	margin-top: 56px;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.vs-archive__pagination .page-numbers {
	font-family: 'Lato', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1a1a1a;
	background: #f0f0f0;
	padding: 8px 16px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.vs-archive__pagination .page-numbers:hover {
	background: #fb8500;
	color: #ffffff;
	text-decoration: none;
}

.vs-archive__pagination .page-numbers.current {
	background: #fb8500;
	color: #ffffff;
}

/* ── Responsive archive ── */
@media (max-width: 768px) {
	.vs-archive {
		padding: 40px 0 56px;
	}

	.vs-archive__inner {
		padding: 0 20px;
	}

	.vs-archive__hero {
		margin-bottom: 36px;
	}
}
