/* ═══════════════════════════════════════════════════
   VI NATURAL — ARTICLES HISTÒRIES
   vinatural.org · 2026
   ═══════════════════════════════════════════════════ */

/* ═══════════ HERO ARTICLE ═══════════ */

.article-hero {
	background: var(--blanc);
	padding: calc(var(--sp-xl) + 4rem) var(--gutter) var(--sp-lg);
}

.article-hero-inner {
	max-width: var(--max-w);
	margin: 0 auto;
}

.article-hero-meta {
	display: flex;
	align-items: center;
	gap: var(--sp-xs);
	margin-bottom: var(--sp-sm);
}

.article-hero-breadcrumb {
	font-family: var(--font-body);
	font-size: clamp(0.62rem, 0.75vw, 0.72rem);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--carbó);
	opacity: 0.4;
	text-decoration: none;
	transition: opacity 0.2s;
}

.article-hero-breadcrumb:hover {
	opacity: 0.7;
}

.article-hero-breadcrumb::after {
	content: '/';
	margin-left: var(--sp-xs);
	opacity: 0.5;
}

.article-hero-tag {
	font-family: var(--font-body);
	font-size: clamp(0.62rem, 0.75vw, 0.72rem);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--terra);
}

.article-hero-date {
	font-family: var(--font-body);
	font-size: clamp(0.62rem, 0.75vw, 0.72rem);
	letter-spacing: 0.1em;
	color: var(--carbó);
	opacity: 0.35;
}

.article-hero-date::before {
	content: '·';
	margin-right: var(--sp-xs);
}

.article-hero h1 {
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 5.5vw, 4.5rem);
	font-weight: 300;
	line-height: 1.08;
	color: var(--vi-profund);
	max-width: 18ch;
	margin-bottom: var(--sp-sm);
}

.article-hero h1 em {
	font-weight: 600;
	font-style: italic;
}

.article-hero-lead {
	max-width: 64ch;
	font-family: var(--font-display);
	font-size: clamp(1.1rem, 1.5vw, 1.3rem);
	font-weight: 400;
	line-height: 1.7;
	color: var(--carbó);
	opacity: 0.75;
}

/* ═══════════ IMAGE COUVERTURE ═══════════ */

/* Les images d'articles sont en 800x600 (paysage) ou 600x800 (portrait).
   On les affiche centrées à leur ratio naturel, avec une largeur max raisonnable.
   Pas de crop forcé : l'image doit être vue entièrement. */
.article-cover {
	line-height: 0;
	position: relative;
	text-align: center;
	background: var(--blanc);
	padding: 0 var(--gutter);
}

.article-cover img {
	display: block;
	width: 100%;
	max-width: 448px;
	height: auto;
	margin: 0 auto;
}

.article-cover figcaption {
	max-width: 448px;
	margin: 0 auto;
	padding: 0.4rem 0 var(--sp-sm);
	font-family: var(--font-body);
	font-size: 0.68rem;
	letter-spacing: 0.06em;
	color: var(--carbó);
	opacity: 0.35;
	text-align: right;
	line-height: 1;
}

/* ═══════════ CORPS DE L'ARTICLE ═══════════ */

.article-body {
	background: var(--blanc);
	padding: var(--sp-lg) var(--gutter) var(--sp-xl);
}

.article-body-inner {
	max-width: 68ch;
	margin: 0 auto;
}

/* Premier paragraphe mis en valeur */
.article-lead {
	font-family: var(--font-display);
	font-size: clamp(1.27rem, 1.73vw, 1.44rem);
	font-weight: 600;
	line-height: 1.65;
	color: var(--vi-profund);
	border-left: 2px solid var(--vi);
	padding-left: 1.2em;
	margin-left: -1.2em;
}

/* Paragraphes courants */
.article-body-inner p {
	font-family: var(--font-display);
	font-size: clamp(1rem, 1.25vw, 1.12rem);
	font-weight: 400;
	line-height: 1.85;
	color: var(--carbó);
}

.article-body-inner p + p {
	margin-top: var(--sp-sm);
}

/* Lettrine : uniquement sur demande explicite via classe */
.article-dropcap::first-letter {
	font-family: var(--font-display);
	font-size: 4.2em;
	font-weight: 600;
	float: left;
	line-height: 0.78;
	padding-right: 0.12em;
	margin-top: 0.08em;
	color: var(--vi-profund);
}

/* ═══════════ IMAGE INTÉGRÉE ═══════════ */

.article-figure {
	margin: var(--sp-lg) 0;
}

.article-figure img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 0.4rem;
}

.article-figure figcaption {
	margin-top: var(--sp-2xs);
	font-family: var(--font-body);
	font-size: clamp(0.72rem, 0.85vw, 0.8rem);
	letter-spacing: 0.06em;
	color: var(--carbó);
	opacity: 0.4;
	text-align: center;
}

/* Image moitié-largeur flottante */
.article-figure--half {
	float: right;
	width: clamp(220px, 38%, 380px);
	margin: 0.3em 0 var(--sp-md) var(--sp-lg);
	border-radius: 0.4rem;
	overflow: hidden;
}

.article-figure--half img {
	border-radius: 0;
}

.article-figure--half figcaption {
	text-align: left;
}
/* Image flottante à droite */
.article-figure--right {
	float: right;
	width: 42%;
	margin: 0 0 var(--sp-sm) var(--sp-md);
	clear: right;
}

.article-figure--right img {
	width: 100%;
	height: auto;
	display: block;
}

.article-figure--right figcaption {
	font-family: var(--font-body);
	font-size: 0.78rem;
	color: var(--carbó);
	opacity: 0.5;
	padding-top: 0.3em;
}



/* ═══════════ SÉPARATEUR SECTION ═══════════ */

.article-sep {
	display: block;
	width: 3rem;
	height: 1px;
	background: var(--carbó);
	opacity: 0.15;
	margin: var(--sp-sm) 0;
}

/* ═══════════ BLOC SOMBRE (citation / aparté) ═══════════ */

.article-dark {
	background: var(--carbó);
	color: var(--blanc);
	padding: var(--sp-xl) var(--gutter);
	margin: 0;
	clear: both;
}

.article-dark-inner {
	max-width: 68ch;
	margin: 0 auto;
}

.article-dark h2 {
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	font-weight: 300;
	line-height: 1.15;
	margin-bottom: var(--sp-md);
}

.article-dark h2 em {
	font-weight: 600;
	font-style: italic;
}

.article-dark p {
	font-family: var(--font-body);
	font-size: clamp(0.88rem, 1vw, 0.95rem);
	line-height: 1.8;
	opacity: 0.65;
}

.article-dark p + p {
	margin-top: var(--sp-sm);
}

/* ═══════════ PLAYER AUDIO ═══════════ */

.article-audio {
	margin: var(--sp-lg) 0;
	padding: var(--sp-md);
	background: var(--vi-profund);
	border-radius: 0.6rem;
	color: var(--blanc);
}

.article-audio-label {
	font-family: var(--font-body);
	font-size: 0.72rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.45;
	margin-bottom: 0.4rem;
}

.article-audio-title {
	font-family: var(--font-display);
	font-size: clamp(1rem, 1.3vw, 1.15rem);
	font-weight: 400;
	margin-bottom: var(--sp-sm);
}

.article-audio audio {
	width: 100%;
	filter: invert(1) brightness(0.8);
	border-radius: 0.3rem;
}

/* ═══════════ RETOUR ═══════════ */

.article-back {
	background: var(--blanc);
	padding: var(--sp-sm) var(--gutter) var(--sp-md);
	clear: both;
}

.article-back a {
	font-family: var(--font-body);
	font-size: clamp(0.78rem, 0.9vw, 0.85rem);
	letter-spacing: 0.08em;
	color: var(--carbó);
	opacity: 0.35;
	text-decoration: none;
	transition: opacity 0.3s;
}

.article-back a:hover {
	opacity: 0.7;
}

/* ═══════════ INDEX HISTOIRES ═══════════ */

.histories-page {
	background: var(--blanc);
	padding: calc(var(--sp-xl) + 4rem) var(--gutter) var(--sp-lg);
}

.histories-page-inner {
	max-width: var(--max-w);
	margin: 0 auto;
}

.histories-page h1 {
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 5vw, 4rem);
	font-weight: 300;
	line-height: 1.1;
	color: var(--vi-profund);
	margin-bottom: var(--sp-sm);
}

.histories-page h1 em {
	font-weight: 600;
	font-style: italic;
}

.histories-page-intro {
	max-width: 56ch;
	font-family: var(--font-display);
	font-size: clamp(1rem, 1.3vw, 1.15rem);
	font-weight: 300;
	line-height: 1.8;
	color: var(--carbó);
	opacity: 0.65;
	margin-bottom: var(--sp-lg);
}

/* Grille d'articles */
.histories-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-md) var(--sp-lg);
}

.history-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border-top: 1px solid rgba(42, 36, 32, 0.08);
	padding-top: var(--sp-sm);
	transition: opacity 0.25s;
}

.history-card:hover {
	opacity: 0.65;
}

.history-card-date {
	font-family: var(--font-body);
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--terra);
	margin-bottom: 0.3rem;
}

.history-card-title {
	font-family: var(--font-display);
	font-size: clamp(1.1rem, 1.5vw, 1.3rem);
	font-weight: 400;
	line-height: 1.3;
	color: var(--vi-profund);
}

/* ═══════════ INTRO TITRE + IMAGE ═══════════ */

/* Toujours en deux colonnes : texte à gauche, image à droite.
   Le conteneur est centré et limité en largeur pour que
   l'image reste adossée au texte quelle que soit la fenêtre. */
.article-intro {
	background: var(--blanc);
	padding: calc(var(--sp-xl) + 4rem) var(--gutter) 0;
}

.article-intro-inner {
	display: grid;
	grid-template-columns: minmax(0, 68ch) clamp(200px, 28vw, 400px);
	align-items: start;
	gap: 0 1rem;
	width: calc(min(68ch, 100% - clamp(200px, 28vw, 400px) - 1rem) + clamp(200px, 28vw, 400px) + 1rem);
}

.article-intro .article-hero {
	padding: 0;
	background: transparent;
}

.article-intro .article-hero .article-hero-inner {
	max-width: none;
}

.article-intro .article-cover {
	padding: 0;
}

.article-intro .article-cover img {
	width: 100%;
}

.article-intro .article-cover figcaption {
	text-align: left;
}

@media (max-width: 600px) {
	.article-intro-inner {
		grid-template-columns: 1fr;
		width: 100%;
	}
	.article-intro .article-cover {
		position: static;
		margin-top: var(--sp-md);
	}
}

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

@media (max-width: 900px) {
	.histories-list {
		grid-template-columns: 1fr 1fr;
	}
	.article-figure--half {
		float: none;
		width: 100%;
		margin: var(--sp-md) 0;
	}
}

@media (max-width: 600px) {
	.histories-list {
		grid-template-columns: 1fr;
	}
	.article-dropcap::first-letter {
		font-size: 3.5em;
	}
}

/* ═══════════ ARTICLE DESTACAT ═══════════ */

.histoire-featured {
	display: block;
	position: relative;
	text-decoration: none;
	background-size: cover;
	background-position: center;
	background-color: var(--vi-profund);
	height: clamp(360px, 52vw, 620px);
	overflow: hidden;
}

.histoire-featured-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(42, 36, 32, 0.15) 0%,
		rgba(42, 36, 32, 0.35) 40%,
		rgba(42, 36, 32, 0.85) 100%
	);
	transition: background 0.5s;
}

.histoire-featured:hover .histoire-featured-overlay {
	background: linear-gradient(
		to bottom,
		rgba(42, 36, 32, 0.2) 0%,
		rgba(42, 36, 32, 0.45) 40%,
		rgba(42, 36, 32, 0.92) 100%
	);
}

.histoire-featured-body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: var(--sp-xl) var(--gutter);
	max-width: calc(var(--max-w) + 2 * var(--gutter));
	margin: 0 auto;
	color: var(--blanc);
}

.histoire-featured-tag {
	font-family: var(--font-body);
	font-size: clamp(0.62rem, 0.75vw, 0.72rem);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--terra-clar);
	margin-bottom: var(--sp-xs);
}

.histoire-featured-title {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 5vw, 4.2rem);
	font-weight: 300;
	line-height: 1.08;
	color: var(--blanc);
	margin-bottom: var(--sp-xs);
	max-width: 18ch;
}

.histoire-featured-title em {
	font-weight: 600;
	font-style: italic;
}

.histoire-featured-excerpt {
	font-family: var(--font-display);
	font-size: clamp(0.95rem, 1.2vw, 1.1rem);
	font-weight: 300;
	line-height: 1.6;
	opacity: 0.65;
	max-width: 56ch;
}

/* ═══════════ GRILLE ARTICLES (fond clair) ═══════════ */

.histories-grid-light {
	background: var(--blanc);
	padding: var(--sp-lg) var(--gutter) var(--sp-xl);
}

.histories-grid-light-inner {
	max-width: var(--max-w);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

.hcard {
	display: block;
	text-decoration: none;
	color: inherit;
	padding: var(--sp-md) var(--sp-md) var(--sp-md) 0;
	border-top: 1px solid rgba(42, 36, 32, 0.1);
	transition: opacity 0.25s;
}

/* Colonnes 2 et 3 : séparateur vertical à gauche */
.hcard:nth-child(3n+2),
.hcard:nth-child(3n+3) {
	padding-left: var(--sp-md);
	border-left: 1px solid rgba(42, 36, 32, 0.1);
}

.hcard:hover {
	opacity: 0.6;
}

.hcard-tag {
	font-family: var(--font-body);
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--terra);
	margin-bottom: 0.5rem;
}

.hcard-title {
	font-family: var(--font-display);
	font-size: clamp(1.1rem, 1.5vw, 1.3rem);
	font-weight: 400;
	line-height: 1.25;
	color: var(--vi-profund);
}

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

@media (max-width: 900px) {
	.article-figure--half {
		float: none;
		width: 100%;
		margin: var(--sp-md) 0;
	}
	.histories-grid-light-inner {
		grid-template-columns: 1fr 1fr;
	}
	.hcard:nth-child(3n+2),
	.hcard:nth-child(3n+3) {
		padding-left: 0;
		border-left: none;
	}
	.hcard:nth-child(even) {
		padding-left: var(--sp-md);
		border-left: 1px solid rgba(42, 36, 32, 0.1);
	}
}

@media (max-width: 600px) {
	.histories-grid-light-inner {
		grid-template-columns: 1fr;
	}
	.hcard:nth-child(even) {
		padding-left: 0;
		border-left: none;
	}
	.article-dropcap::first-letter {
		font-size: 3.5em;
	}
}

/* ═══════════ EXTENSIONS LAYOUTS MAGAZINE ═══════════ */

/* Cover pleine largeur (paysage) */
.article-cover--wide img {
	max-width: 672px;
}

/* Duo d'images côte à côte */
.article-figures-duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-sm);
	margin: var(--sp-lg) auto;
	max-width: 68ch;
}

.article-figures-duo figure {
	margin: 0;
}

.article-figures-duo img {
	width: 100%;
	height: auto;
	display: block;
}

.article-figures-duo figcaption {
	margin-top: 0.3rem;
	font-family: var(--font-body);
	font-size: 0.68rem;
	letter-spacing: 0.06em;
	color: var(--carbó);
	opacity: 0.4;
}

/* Galerie 3 images (tast) */
.article-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-sm);
	margin: var(--sp-lg) 0;
	background: var(--blanc);
	padding: 0 var(--gutter);
}

.article-gallery figure {
	margin: 0;
}

.article-gallery img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.article-gallery figcaption {
	margin-top: 0.3rem;
	font-family: var(--font-body);
	font-size: 0.65rem;
	letter-spacing: 0.05em;
	color: var(--carbó);
	opacity: 0.4;
	text-align: center;
}

/* Titre de section dans le corps (h2) */
.article-body-inner h2 {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 300;
	line-height: 1.2;
	color: var(--vi-profund);
	margin-top: var(--sp-xl);
	margin-bottom: var(--sp-sm);
}

.article-body-inner h2 em {
	font-weight: 600;
	font-style: italic;
}

/* Citation extraite (pull quote) */
.article-pullquote {
	border-left: 3px solid var(--vi);
	padding: var(--sp-sm) 0 var(--sp-sm) var(--sp-md);
	margin: var(--sp-lg) 0;
}

.article-pullquote p {
	font-family: var(--font-display);
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	font-weight: 400;
	font-style: italic;
	line-height: 1.6;
	color: var(--vi-profund);
}

/* Liste stylisée (etiquetatge) */
.article-list {
	margin: var(--sp-sm) 0;
	padding: 0;
	list-style: none;
}

.article-list li {
	font-family: var(--font-display);
	font-size: clamp(1rem, 1.25vw, 1.12rem);
	line-height: 1.7;
	color: var(--carbó);
	padding-left: 1.4em;
	position: relative;
	margin-bottom: 0.4em;
}

.article-list li::before {
	content: '·';
	position: absolute;
	left: 0.3em;
	color: var(--vi);
	font-weight: 700;
}

/* Manifeste court (pa-vi-formatge) */
.article-manifesto {
	max-width: 52ch;
	margin: 0 auto var(--sp-sm);
}

.article-manifesto h3 {
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 2vw, 1.7rem);
	font-weight: 600;
	font-style: italic;
	color: var(--vi-profund);
	margin-top: var(--sp-md);
	margin-bottom: 0.2em;
}

/* Auteur article */
.article-author {
	margin-top: var(--sp-lg);
	padding-top: var(--sp-sm);
	border-top: 1px solid rgba(42, 36, 32, 0.1);
	font-family: var(--font-body);
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	color: var(--carbó);
	opacity: 0.45;
}

/* Sources */
.article-sources {
	margin-top: var(--sp-lg);
	padding-top: var(--sp-sm);
	border-top: 1px solid rgba(42, 36, 32, 0.08);
}

.article-sources-title {
	font-family: var(--font-body);
	font-size: 0.72rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--carbó);
	opacity: 0.35;
	margin-bottom: var(--sp-xs);
}

.article-sources p, .article-sources a {
	font-family: var(--font-body);
	font-size: 0.78rem;
	line-height: 1.7;
	color: var(--carbó);
	opacity: 0.45;
	text-decoration: none;
}

/* Liste de vins (tast) */
.article-wine-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-sm);
	margin: var(--sp-lg) 0;
}

.article-wine-item {
	padding: var(--sp-sm);
	border: 1px solid rgba(42, 36, 32, 0.1);
	border-radius: 0.3rem;
}

.article-wine-item-name {
	font-family: var(--font-display);
	font-size: clamp(1rem, 1.2vw, 1.1rem);
	font-weight: 500;
	color: var(--vi-profund);
	margin-bottom: 0.2em;
}

.article-wine-item-meta {
	font-family: var(--font-body);
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--carbó);
	opacity: 0.55;
}

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

@media (max-width: 768px) {
	.article-figures-duo {
		grid-template-columns: 1fr;
	}
	.article-gallery {
		grid-template-columns: 1fr;
	}
	.article-gallery img {
		height: 220px;
	}
	.article-wine-list {
		grid-template-columns: 1fr;
	}
}

/* ═══════════ PA · VI · FROMAGE — section titres ═══════════ */

.article-body-inner h3 {
	font-family: var(--font-display);
	font-size: clamp(2rem, 3.5vw, 2.6rem);
	font-weight: 300;
	line-height: 1.1;
	color: var(--vi-profund);
	margin-top: var(--sp-md);
	margin-bottom: var(--sp-xs, 0.5rem);
	letter-spacing: -0.01em;
}

.article-body-inner h3 + p {
	font-size: clamp(1.3rem, 1.65vw, 1.46rem);
	line-height: 1.7;
	margin-top: 0;
}

/* ═══════════ LIENS EN BAS D'ARTICLE ═══════════ */

.article-links {
	background: var(--blanc);
	padding: var(--sp-sm) var(--gutter) 0;
	border-top: 1px solid rgba(42, 36, 32, 0.08);
	margin-top: var(--sp-sm);
}

.article-links p {
	font-family: var(--font-body);
	font-size: clamp(0.75rem, 0.85vw, 0.82rem);
	letter-spacing: 0.06em;
	color: var(--carbó);
	opacity: 0.55;
	margin: 0 auto;
	max-width: var(--max-w);
	padding-bottom: var(--sp-sm);
}

.article-links a {
	color: var(--carbó);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity 0.2s;
}

.article-links a:hover {
	opacity: 0.8;
}


