/* =========================================================================
   POCHOLLE — Gabarit Articles
   Charte alignée sur assets/css/realisations.css.
   Toute modification se fait ici, jamais dans l'éditeur.
   ========================================================================= */

.art-scope {
	/* Couleurs de marque. */
	--art-primary: #dc4f34;
	--art-primary-dark: #b93c24;
	--art-ink: #0e121d;
	--art-ink-soft: #2a3341;
	--art-muted: #667080;
	--art-line: #e3e6ea;
	--art-surface: #f5f6f8;
	--art-white: #ffffff;

	/* Typographies : héritées des réglages globaux Elementor. */
	--art-font-title: var(--e-global-typography-primary-font-family, "Poppins"), sans-serif;
	--art-font-text: var(--e-global-typography-text-font-family, var(--e-global-typography-secondary-font-family, "Poppins")), sans-serif;

	/* Rythme vertical et largeur de lecture. */
	--art-shell: 1200px;
	--art-gutter: clamp(20px, 5vw, 40px);
	--art-section: clamp(56px, 8vw, 104px);
	--art-radius: 10px;

	font-family: var(--art-font-text);
	color: var(--art-ink-soft);
	line-height: 1.65;
}

.art-scope *,
.art-scope *::before,
.art-scope *::after {
	box-sizing: border-box;
}

main.site-main.art-page {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.art-shell {
	width: 100%;
	max-width: var(--art-shell);
	margin-inline: auto;
	padding-inline: var(--art-gutter);
}

/* -------------------------------------------------------------------------
   Éléments transverses
   ---------------------------------------------------------------------- */

.art-scope .art-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-family: var(--art-font-title);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--art-primary);
}

.art-scope .art-eyebrow::before {
	content: "";
	flex: none;
	width: 22px;
	height: 4px;
	background-image: radial-gradient(circle, currentColor 55%, transparent 56%);
	background-size: 8px 4px;
	background-repeat: repeat-x;
}

.art-scope .art-section-title {
	margin: 0 0 clamp(28px, 4vw, 44px);
	font-family: var(--art-font-title);
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--art-ink);
}

.art-scope .art-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 30px;
	font-family: var(--art-font-title);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--art-white);
	background: var(--art-primary);
	border: 0;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.art-scope .art-btn:hover,
.art-scope .art-btn:focus-visible {
	background: var(--art-primary-dark);
	color: var(--art-white);
	transform: translateY(-2px);
}

.art-scope .art-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--art-primary);
	text-decoration: none;
	border-bottom: 2px solid currentColor;
	padding-bottom: 2px;
}

.art-scope .art-link:hover,
.art-scope .art-link:focus-visible {
	color: var(--art-primary-dark);
}

.art-scope a:focus-visible,
.art-scope button:focus-visible {
	outline: 3px solid var(--art-primary);
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
   Vignette d'article — design de référence (accueil, listing, articles liés)
   ---------------------------------------------------------------------- */

.art-tiles {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(20px, 2.4vw, 32px);
}

@media (min-width: 640px) {
	.art-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.art-tiles--cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.art-tiles--cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.art-tile {
	position: relative;
}

.art-scope .art-tile__link {
	display: block;
	position: relative;
	color: inherit;
	text-decoration: none;
}

.art-tile__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1.08;
	border-radius: var(--art-radius);
	background: var(--art-surface);
}

.art-tile .art-tile__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.art-tile__link:hover .art-tile__img,
.art-tile__link:focus-visible .art-tile__img {
	transform: scale(1.04);
}

.art-tile__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(45deg, #eceff2 0 10px, #f5f6f8 10px 20px);
}

/* Panneau blanc en surimpression, ancré en bas du visuel. */
.art-tile__panel {
	position: absolute;
	right: clamp(14px, 4.5%, 26px);
	bottom: clamp(14px, 5%, 30px);
	left: clamp(14px, 4.5%, 26px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 14px 14px 20px;
	background: var(--art-white);
	box-shadow: 0 12px 28px rgba(14, 18, 29, 0.14);
}

.art-tile__text {
	min-width: 0;
}

.art-tile__eyebrow {
	display: block;
	font-size: 16px;
	line-height: 1.35;
	color: var(--art-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.art-scope .art-tile__title {
	margin: 2px 0 0;
	font-family: var(--art-font-title);
	font-size: clamp(19px, 1.6vw, 23px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--art-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.art-tile__arrow {
	flex: none;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	color: var(--art-white);
	background: var(--art-primary);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.art-tile__link:hover .art-tile__arrow,
.art-tile__link:focus-visible .art-tile__arrow {
	background: var(--art-primary-dark);
	transform: translate(2px, -2px);
}

@media (max-width: 480px) {
	.art-tile__arrow {
		width: 52px;
		height: 52px;
	}

	.art-tile__panel {
		padding: 12px 12px 12px 16px;
	}
}

/* -------------------------------------------------------------------------
   Bloc d'accueil
   ---------------------------------------------------------------------- */

.art-block__more {
	margin: clamp(28px, 3.5vw, 44px) 0 0;
}

.art-block__more--center {
	text-align: center;
}

.art-block__more--right {
	text-align: right;
}

.art-block__more--left {
	text-align: left;
}

/* -------------------------------------------------------------------------
   Listing
   ---------------------------------------------------------------------- */

.art-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 clamp(26px, 3vw, 38px);
}

.art-scope .art-filters__item {
	padding: 10px 20px;
	font-family: var(--art-font-title);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--art-ink-soft);
	background: var(--art-white);
	border: 1px solid var(--art-line);
	transition: all 0.2s ease;
}

.art-scope .art-filters__item:hover {
	border-color: var(--art-primary);
	color: var(--art-primary);
}

.art-scope .art-filters__item.is-active {
	color: var(--art-white);
	background: var(--art-primary);
	border-color: var(--art-primary);
}

.art-empty {
	padding: clamp(40px, 6vw, 72px) 0;
	text-align: center;
	color: var(--art-muted);
}

.art-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: clamp(36px, 4vw, 56px);
}

.art-scope .art-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	font-family: var(--art-font-title);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	color: var(--art-ink);
	background: var(--art-white);
	border: 1px solid var(--art-line);
	transition: all 0.2s ease;
}

.art-scope .art-pagination a.page-numbers:hover {
	border-color: var(--art-primary);
	color: var(--art-primary);
}

.art-scope .art-pagination .page-numbers.current {
	color: var(--art-white);
	background: var(--art-primary);
	border-color: var(--art-primary);
}

.art-scope .art-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* -------------------------------------------------------------------------
   Fiche article — en-tête
   ---------------------------------------------------------------------- */

.art-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(340px, 48vh, 540px);
	padding-block: clamp(90px, 12vw, 130px) clamp(44px, 6vw, 72px);
	overflow: hidden;
	background: var(--art-ink);
}

.art-hero__media {
	position: absolute;
	inset: 0;
}

.art-hero .art-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.art-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(75deg, rgba(14, 18, 29, 0.95) 28%, rgba(14, 18, 29, 0.62) 100%);
}

.art-hero--plain {
	background-image: linear-gradient(75deg, var(--art-primary) 18%, var(--art-ink) 18%);
}

.art-hero__inner {
	position: relative;
	z-index: 2;
}

.art-breadcrumb {
	margin-bottom: 24px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
}

.art-scope .art-breadcrumb a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.art-scope .art-breadcrumb a:hover {
	color: var(--art-white);
	text-decoration: underline;
}

.art-breadcrumb span {
	margin-inline: 8px;
}

.art-scope .art-hero__title {
	max-width: 20ch;
	margin: 0;
	font-family: var(--art-font-title);
	font-size: clamp(32px, 4.4vw, 56px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.025em;
	color: var(--art-white);
}

.art-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin: 22px 0 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.78);
}

.art-hero__meta li {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
}

.art-scope .art-hero__meta {
	padding: 0;
}

.art-hero__meta li + li::before {
	content: "";
	width: 4px;
	height: 4px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--art-primary);
}

/* -------------------------------------------------------------------------
   Fiche article — corps
   ---------------------------------------------------------------------- */

.art-body {
	padding-block: var(--art-section);
}

.art-body__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(36px, 5vw, 64px);
}

@media (min-width: 1000px) {
	.art-body__layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		align-items: start;
	}
}

.art-chapo {
	margin: 0 0 clamp(28px, 3vw, 40px);
	padding-left: 20px;
	border-left: 4px solid var(--art-primary);
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.6;
	color: var(--art-ink);
}

/* Contenu rédigé dans l'éditeur : mise en forme imposée. */
.art-prose {
	max-width: 72ch;
	font-size: 17px;
}

.art-prose > *:first-child {
	margin-top: 0;
}

.art-prose > *:last-child {
	margin-bottom: 0;
}

.art-scope .art-prose p {
	margin: 0 0 20px;
}

.art-scope .art-prose h2 {
	margin: clamp(38px, 4vw, 56px) 0 16px;
	font-family: var(--art-font-title);
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.02em;
	color: var(--art-ink);
	scroll-margin-top: 120px;
}

.art-scope .art-prose h3 {
	margin: 32px 0 12px;
	font-family: var(--art-font-title);
	font-size: clamp(19px, 1.8vw, 23px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--art-ink);
}

.art-scope .art-prose h4 {
	margin: 26px 0 10px;
	font-family: var(--art-font-title);
	font-size: 17px;
	font-weight: 700;
	color: var(--art-ink);
}

.art-scope .art-prose strong {
	color: var(--art-ink);
	font-weight: 700;
}

.art-scope .art-prose a {
	color: var(--art-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.art-scope .art-prose a:hover {
	color: var(--art-primary-dark);
}

.art-scope .art-prose ul,
.art-scope .art-prose ol {
	margin: 0 0 22px;
	padding-left: 0;
}

.art-scope .art-prose li {
	margin-bottom: 10px;
}

.art-scope .art-prose ul {
	list-style: none;
}

.art-scope .art-prose ul > li {
	position: relative;
	padding-left: 26px;
}

.art-scope .art-prose ul > li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 0;
	width: 9px;
	height: 9px;
	background: var(--art-primary);
}

.art-scope .art-prose ol {
	padding-left: 22px;
}

.art-prose img,
.art-prose iframe,
.art-prose video {
	max-width: 100%;
	height: auto;
	border-radius: var(--art-radius);
}

.art-prose figure {
	margin: clamp(28px, 3vw, 40px) 0;
}

.art-prose figcaption {
	margin-top: 10px;
	font-size: 14px;
	color: var(--art-muted);
}

.art-scope .art-prose blockquote {
	margin: clamp(28px, 3vw, 40px) 0;
	padding: 24px 28px;
	background: var(--art-surface);
	border-left: 4px solid var(--art-primary);
	font-family: var(--art-font-title);
	font-size: clamp(18px, 1.7vw, 21px);
	font-weight: 600;
	line-height: 1.45;
	color: var(--art-ink);
}

.art-scope .art-prose blockquote p:last-child {
	margin-bottom: 0;
}

.art-prose table {
	width: 100%;
	margin: 28px 0;
	border-collapse: collapse;
	font-size: 15px;
}

.art-prose th,
.art-prose td {
	padding: 12px 14px;
	border: 1px solid var(--art-line);
	text-align: left;
}

.art-prose th {
	background: var(--art-surface);
	font-family: var(--art-font-title);
	font-weight: 700;
	color: var(--art-ink);
}

/* -------------------------------------------------------------------------
   Fiche article — colonne latérale
   ---------------------------------------------------------------------- */

.art-aside {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

@media (min-width: 1000px) {
	.art-aside {
		position: sticky;
		top: 110px;
	}
}

.art-panel {
	padding: 24px 24px 26px;
	background: var(--art-surface);
	border-top: 4px solid var(--art-primary);
}

.art-panel__title {
	margin: 0 0 14px;
	font-family: var(--art-font-title);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--art-ink);
}

.art-scope .art-toc {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 1.45;
}

.art-scope .art-toc li {
	margin-bottom: 12px;
}

.art-scope .art-toc li:last-child {
	margin-bottom: 0;
}

.art-scope .art-toc a {
	color: var(--art-ink-soft);
	text-decoration: none;
	border-left: 2px solid var(--art-line);
	padding-left: 12px;
	display: block;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.art-scope .art-toc a:hover {
	color: var(--art-primary);
	border-color: var(--art-primary);
}

.art-share {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.art-scope .art-share__link {
	display: inline-flex;
	align-items: center;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	color: var(--art-ink-soft);
	background: var(--art-white);
	border: 1px solid var(--art-line);
	transition: all 0.2s ease;
}

.art-scope .art-share__link:hover {
	color: var(--art-primary);
	border-color: var(--art-primary);
}

/* -------------------------------------------------------------------------
   Fiche article — appel à l'action et articles liés
   ---------------------------------------------------------------------- */

.art-cta {
	padding-block: clamp(48px, 6vw, 76px);
	background: var(--art-surface);
	border-top: 1px solid var(--art-line);
}

.art-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.art-scope .art-cta__title {
	margin: 0 0 10px;
	font-family: var(--art-font-title);
	font-size: clamp(24px, 2.8vw, 36px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--art-ink);
}

.art-cta__text {
	max-width: 52ch;
	margin: 0;
	color: var(--art-muted);
}

.art-related {
	padding-block: var(--art-section);
}

.art-related__more {
	margin: clamp(28px, 3vw, 40px) 0 0;
}

/* -------------------------------------------------------------------------
   Accessibilité
   ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.art-scope * {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	.art-scope .art-btn:hover,
	.art-tile__link:hover .art-tile__arrow {
		transform: none;
	}
}
