/**
 * Styles spécifiques maquette v2 — layout classique type WooCommerce
 */
@import url('styles.css');

.mock-banner--v2 { background: #2c5282; }

/* Zone secondaire : colonne contenu + sidebar */
.product-body {
	padding: 48px 0 72px;
	background: #fff;
	border-top: 1px solid var(--border);
}
.product-body__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: start;
}
@media (min-width: 960px) {
	.product-body__grid {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 48px;
	}
}
@media (min-width: 1100px) {
	.product-body__grid { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* Sections empilées + mini-nav type onglets */
.product-sections { max-width: 760px; }
.product-section {
	padding: 40px 0;
	border-top: 1px solid var(--border);
	scroll-margin-top: calc(var(--header-offset, 72px) + 16px);
}
.product-section:first-child {
	padding-top: 0;
	border-top: 0;
}
.product-section__title {
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	margin: 0 0 24px;
}
.product-section__content { margin: 0; }

.product-section-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-bottom: 2px solid var(--border);
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}
.product-section-nav a {
	display: inline-block;
	padding: 14px 20px;
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-muted);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: color .2s, border-color .2s;
}
.product-section-nav a:hover {
	color: var(--text);
	text-decoration: none;
}
.product-section-nav a.is-current {
	color: var(--brand-orange);
	border-bottom-color: var(--brand-orange);
}
.product-section-nav .tab-count {
	font-weight: 600;
	color: inherit;
	opacity: 0.85;
}

/* Legacy tab classes (v1) — conservés si réutilisés ailleurs */
.product-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-bottom: 2px solid var(--border);
	margin: 0 0 0;
	padding: 0;
	list-style: none;
}
.product-tabs__nav [role="tab"] {
	padding: 14px 20px;
	border: none;
	background: transparent;
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-muted);
	cursor: pointer;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: color .2s, border-color .2s;
}
.product-tabs__nav [role="tab"]:hover { color: var(--text); }
.product-tabs__nav [role="tab"].is-active {
	color: var(--brand-orange);
	border-bottom-color: var(--brand-orange);
}
.product-tabs__nav [role="tab"] .tab-count {
	font-weight: 600;
	color: var(--text-muted);
}

.product-tabs__panel {
	padding: 32px 0 0;
	max-width: 760px;
}
.product-tabs__panel[hidden] { display: none; }

/* Prose classique (description longue) */
.product-prose { font-size: 17px; line-height: 1.7; color: var(--text); }
.product-prose > p:first-child { margin-top: 0; }
.product-prose h2 {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	margin: 2em 0 0.75em;
	padding-top: 0.5em;
	border-top: 1px solid var(--border);
}
.product-prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.product-prose h3 {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	margin: 1.5em 0 0.5em;
}
.product-prose ul, .product-prose ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.product-prose li + li { margin-top: 0.35em; }
.product-prose strong { font-weight: 700; }
.product-prose figure {
	margin: 1.5em 0;
	text-align: center;
}
.product-prose figure img {
	margin: 0 auto;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	max-width: 100%;
}
.product-prose figcaption {
	font-size: 14px;
	color: var(--text-muted);
	margin-top: 8px;
	font-style: italic;
}
.product-prose .notice {
	background: var(--brand-orange-soft);
	border-left: 4px solid var(--brand-orange);
	padding: 14px 18px;
	margin: 1.5em 0;
	font-size: 15px;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Table fiche technique (onglet Informations) */
.spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
.spec-table th,
.spec-table td {
	padding: 12px 16px;
	border: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}
.spec-table th {
	width: 38%;
	background: var(--bg-page);
	font-weight: 700;
	color: var(--text-muted);
}

/* Liste avis classique */
.reviews-classic { list-style: none; margin: 0; padding: 0; }
.review-classic {
	padding: 20px 0;
	border-bottom: 1px solid var(--border);
}
.review-classic:first-child { padding-top: 0; }
.review-classic__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 8px;
	font-size: 14px;
}
.review-classic__stars { color: var(--brand-orange); font-weight: 700; }
.review-classic__author { font-weight: 700; }
.review-classic__date { color: var(--text-muted); }
.review-classic__text { margin: 0; color: var(--text-muted); line-height: 1.6; }

/* Changelog classique */
.changelog-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.changelog-list li {
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
}
.changelog-list strong { color: var(--brand-orange); }

/* Sidebar */
.product-aside { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 960px) {
	.product-aside { position: sticky; top: calc(var(--header-offset) + 16px); }
}
.aside-box {
	background: var(--bg-page);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 20px;
}
.aside-box h3 {
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
}
.aside-box:not(.aside-box--brief) dl {
	margin: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	font-size: 14px;
}
.aside-box:not(.aside-box--brief) dt { font-weight: 700; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.aside-box:not(.aside-box--brief) dd { margin: 0 0 8px; }

/* Bloc « En bref » — label et valeur sur une ligne */
.aside-box--brief .aside-brief {
	margin: 0;
	display: block;
}
.aside-brief__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--border);
}
.aside-brief__row:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-brief__row:first-child { padding-top: 0; }
.aside-brief__label {
	margin: 0;
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: none;
	letter-spacing: 0;
}
.aside-brief__value {
	margin: 0;
	flex: 0 1 auto;
	text-align: right;
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
	line-height: 1.35;
}
.aside-brief__value--accent { color: var(--brand-orange); }
.aside-brief__muted { font-weight: 600; color: var(--text-muted); font-size: 13px; }
.aside-box p { margin: 0 0 8px; font-size: 14px; color: var(--text-muted); }
.aside-box p:last-child { margin-bottom: 0; }
.aside-box code { font-size: 12px; background: rgba(0,0,0,.06); padding: 2px 5px; border-radius: 3px; }

.aside-related { list-style: none; margin: 0; padding: 0; }
.aside-related li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.aside-related a {
	display: flex;
	gap: 12px;
	align-items: center;
	color: inherit;
	text-decoration: none;
	font-size: 14px;
}
.aside-related a:hover { color: var(--brand-orange); text-decoration: none; }
.aside-related__thumb {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	background: var(--brand-orange-soft);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
}
.aside-related__price { display: block; font-weight: 800; color: var(--brand-orange); margin-top: 2px; font-size: 13px; }

/* Réassurance sous le hero — ligne simple */
.reassure-inline {
	background: var(--bg-page);
	border-bottom: 1px solid var(--border);
	padding: 16px 0;
}
.reassure-inline__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--text-muted);
}
.reassure-inline__list strong { color: var(--text); font-weight: 700; }

/* Related full width sous le body */
.related-classic {
	background: var(--bg-page);
	border-top: 1px solid var(--border);
	padding: 48px 0;
}
.related-classic__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
@media (min-width: 768px) { .related-classic__grid { grid-template-columns: repeat(4, 1fr); } }

.product-hero--v2 { padding-bottom: 0; }
.product-hero--v2 + .reassure-inline { margin-top: 0; }

/* Galerie v2 — lien « toutes les images » + modale */
.gallery__thumb--all {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 8px;
	border-style: dashed;
	font-family: var(--font-display);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--brand-orange);
	background: var(--brand-orange-soft);
}
.gallery__thumb--all:hover,
.gallery__thumb--all:focus-visible {
	border-color: var(--brand-orange);
	background: #fff;
}
.gallery__thumb-all-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--brand-orange);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
}
.gallery__all-link {
	margin: 10px 0 0;
	text-align: center;
}
.gallery__all-link-btn {
	border: 0;
	background: none;
	padding: 0;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--brand-orange);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.gallery__all-link-btn:hover { color: var(--text); }
@media (min-width: 480px) {
	.gallery__all-link { display: none; }
}
@media (max-width: 479px) {
	.gallery__thumb--all { display: none; }
	.gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
}

.gallery-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.gallery-modal[hidden] { display: none; }
.gallery-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.72);
}
.gallery-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	max-height: calc(100vh - 32px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}
.gallery-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
}
.gallery-modal__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.gallery-modal__close {
	border: 0;
	background: var(--bg-page);
	width: 36px;
	height: 36px;
	border-radius: 999px;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: var(--text-muted);
}
.gallery-modal__close:hover { color: var(--text); background: var(--brand-orange-soft); }
.gallery-modal__stage {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 8px;
	padding: 16px 12px;
	min-height: 0;
}
.gallery-modal__figure { margin: 0; min-width: 0; text-align: center; }
.gallery-modal__img {
	display: block;
	max-width: 100%;
	max-height: min(60vh, 520px);
	margin: 0 auto;
	object-fit: contain;
}
.gallery-modal__caption {
	margin-top: 10px;
	font-size: 14px;
	color: var(--text-muted);
}
.gallery-modal__nav {
	border: 1px solid var(--border);
	background: #fff;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: var(--text);
	flex-shrink: 0;
}
.gallery-modal__nav:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.gallery-modal__strip {
	display: flex;
	gap: 8px;
	padding: 12px 16px 16px;
	overflow-x: auto;
	border-top: 1px solid var(--border);
	background: var(--bg-page);
}
.gallery-modal__strip-btn {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid var(--border);
	border-radius: var(--radius-sm);
	background: #fff;
	cursor: pointer;
	overflow: hidden;
}
.gallery-modal__strip-btn.is-active,
.gallery-modal__strip-btn:hover { border-color: var(--brand-orange); }
.gallery-modal__strip-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.gallery-modal-open { overflow: hidden; }
