/*
 * Page « /notre-histoire/ » — styles PROPRES à la page (chargés uniquement sur elle).
 * Mobile-first, jetons --cmb-* de la feuille globale (palette, typographie, espacements, rayons).
 * Aucune police, aucun script, aucune image obligatoire : la page est complète sans photo ;
 * l'image mise en avant de la page, si elle est choisie (une VRAIE photo), s'ajoute à l'intro.
 *
 * 0.2.0 : page de récit. Le seul détail marquant est le fil cuivre vertical (la « mèche ») qui relie les
 * trois chapitres racontés par Grégory, avec un petit point cuivre à chaque chapitre ; le reste reprend les
 * codes de l'accueil et des points de vente (surtitre, filet cuivre, bande lin, icônes au trait).
 *
 * Sommaire : 1. Intro · 2. Récit (chapitres) · 3. Aujourd'hui (bande lin) · 4. Continuer à créer
 */

/* 1. Intro ---------------------------------------------------------------------------------- */

.cmb-histoire-intro {
	display: grid;
	gap: var(--cmb-space-l);
	padding-block: var(--cmb-space-xl) var(--cmb-space-2xl);
}

.cmb-histoire-intro__title {
	max-width: 22ch;
	margin-bottom: var(--cmb-space-s);
	font-size: var(--cmb-text-4xl);
	line-height: var(--cmb-leading-tight);
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.cmb-histoire-intro__lead {
	max-width: 34rem;
	margin: 0;
	color: var(--cmb-color-text-muted);
	font-size: var(--cmb-text-lg);
	line-height: var(--cmb-leading-normal);
	text-wrap: balance;
}

/* Filet cuivré fin sous l'intro (même détail que l'accueil et Points de vente). */
.cmb-histoire-intro__text::after {
	content: "";
	display: block;
	width: 3rem;
	height: 1px;
	margin-top: var(--cmb-space-l);
	background: var(--cmb-color-accent);
}

/* Image mise en avant (facultative, vraie photo) : cadre beige, image entière, jamais déformée. */
.cmb-histoire-intro__media {
	overflow: hidden;
	background: var(--cmb-color-beige);
	border-radius: var(--cmb-radius-l);
}

.cmb-histoire-intro__img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 28rem;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

@media (min-width: 56.25em) {
	.cmb-histoire-intro--media {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: center;
		column-gap: var(--cmb-space-2xl);
	}

	.cmb-histoire-intro--media .cmb-histoire-intro__img {
		max-height: none;
		aspect-ratio: 4 / 5;
	}
}

/* 2. Récit : trois chapitres reliés par le fil cuivre --------------------------------------- */

/* Le fil : un trait cuivre de 1,5 px le long des trois chapitres, à gauche du texte. Colonne de lecture
   d'environ 36rem (60 à 70 caractères), corps de texte un cran plus grand que le reste du site. */
.cmb-histoire-story {
	padding-bottom: var(--cmb-space-2xl);
}

.cmb-histoire-chapter {
	position: relative;
	max-width: 44rem;
	padding: 0 0 var(--cmb-space-2xl) var(--cmb-space-l);
	border-left: 1.5px solid var(--cmb-color-accent);
}

.cmb-histoire-chapter:last-child {
	padding-bottom: var(--cmb-space-xs);
}

/* Le point de chaque chapitre, posé sur le fil (comme une flamme sur sa mèche). */
.cmb-histoire-chapter::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: -0.3125rem;
	width: 0.5rem;
	height: 0.5rem;
	background: var(--cmb-color-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 4px var(--cmb-color-background);
}

.cmb-histoire-chapter__title {
	max-width: 20ch;
	margin: 0 0 var(--cmb-space-m);
	font-size: var(--cmb-text-2xl);
	line-height: var(--cmb-leading-tight);
}

.cmb-histoire-chapter__body {
	max-width: 36rem;
	font-size: var(--cmb-text-lg);
	line-height: 1.7;
	overflow-wrap: break-word;
}

.cmb-histoire-chapter__body p {
	margin: 0 0 var(--cmb-space-m);
}

.cmb-histoire-chapter__body > :last-child {
	margin-bottom: 0;
}

/* La question de départ : le moment du récit, en serif, sans guillemets décoratifs ni couleur d'accent. */
.cmb-histoire-question {
	margin: var(--cmb-space-l) 0;
	padding: 0;
}

.cmb-histoire-question p {
	max-width: 24ch;
	margin: 0;
	font-family: var(--cmb-font-heading);
	font-size: var(--cmb-text-2xl);
	line-height: var(--cmb-leading-tight);
	text-wrap: balance;
}

@media (min-width: 48em) {
	.cmb-histoire-chapter {
		padding-left: var(--cmb-space-xl);
	}

	.cmb-histoire-question {
		margin-block: var(--cmb-space-xl);
	}
}

/* Grand écran : chaque chapitre en deux colonnes le long du fil, titre à gauche, texte à droite (la colonne de
   lecture garde sa largeur ; les titres se lisent d'un coup d'œil). */
@media (min-width: 64em) {
	.cmb-histoire-chapter {
		display: grid;
		grid-template-columns: minmax(0, 15rem) minmax(0, 38rem);
		column-gap: var(--cmb-space-2xl);
		max-width: none;
	}

	.cmb-histoire-chapter__title {
		margin-bottom: 0;
	}
}

/* 3. Aujourd'hui : bande lin pleine largeur (la marque parle au « nous ») -------------------- */

.cmb-histoire-today {
	padding-block: var(--cmb-space-2xl);
	background: var(--cmb-color-surface-alt);
	border-block: 1px solid var(--cmb-color-border);
}

.cmb-histoire-today__inner {
	display: grid;
	gap: var(--cmb-space-l);
}

.cmb-histoire-today__title {
	margin: 0 0 var(--cmb-space-s);
	font-size: var(--cmb-text-2xl);
	line-height: var(--cmb-leading-tight);
}

.cmb-histoire-today__lead {
	max-width: 30rem;
	margin: 0;
	color: var(--cmb-color-text-muted);
	line-height: var(--cmb-leading-normal);
}

.cmb-histoire-today__header::after {
	content: "";
	display: block;
	width: 3rem;
	height: 1px;
	margin-top: var(--cmb-space-m);
	background: var(--cmb-color-accent);
}

/* Les faits de la fabrique (source partagée avec l'accueil) : icône cuivre au trait, filets beige. */
.cmb-histoire-facts {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cmb-histoire-fact {
	display: flex;
	align-items: flex-start;
	gap: var(--cmb-space-s);
	padding-block: var(--cmb-space-s);
	border-top: 1px solid var(--cmb-color-border);
}

.cmb-histoire-fact:last-child {
	border-bottom: 1px solid var(--cmb-color-border);
}

.cmb-histoire-fact .cmb-icon {
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	color: var(--cmb-color-accent);
}

.cmb-histoire-fact__body {
	min-width: 0;
}

.cmb-histoire-fact__title {
	margin: 0 0 var(--cmb-space-3xs);
	font-size: var(--cmb-text-lg);
	line-height: var(--cmb-leading-tight);
}

.cmb-histoire-fact__text {
	max-width: 38rem;
	margin: 0;
	color: var(--cmb-color-text-muted);
	line-height: var(--cmb-leading-snug);
}

/* Personnalisation et points de vente : deux phrases, sans bloc commercial. */
.cmb-histoire-today__more {
	display: grid;
	gap: var(--cmb-space-xs);
	margin: var(--cmb-space-l) 0 0;
	padding: 0;
	list-style: none;
	line-height: var(--cmb-leading-normal);
}

.cmb-histoire-link {
	display: inline-flex;
	align-items: center;
	gap: var(--cmb-space-2xs);
	min-height: var(--cmb-tap-target);
	color: var(--cmb-color-text);
	font-weight: var(--cmb-weight-medium);
	text-decoration-line: underline;
	text-decoration-color: var(--cmb-color-border-strong);
	text-underline-offset: 0.25em;
}

.cmb-histoire-link:hover {
	color: var(--cmb-color-text);
	text-decoration-color: currentColor;
}

.cmb-histoire-link .cmb-icon {
	width: 1.25rem;
	height: 1.25rem;
	color: var(--cmb-color-accent);
}

@media (min-width: 48em) {
	.cmb-histoire-fact {
		padding-block: var(--cmb-space-m);
	}

	.cmb-histoire-fact__title {
		font-size: var(--cmb-text-xl);
	}

	.cmb-histoire-fact__text {
		line-height: var(--cmb-leading-normal);
	}
}

@media (min-width: 56.25em) {
	.cmb-histoire-today__inner {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		column-gap: var(--cmb-space-2xl);
		align-items: start;
	}
}

/* 4. Continuer à créer : conclusion courte, centrée, appels finaux --------------------------- */

.cmb-histoire-end {
	padding-block: var(--cmb-space-2xl);
	text-align: center;
}

/* Dernière section de la page : le footer (lin, bordure haute) la suit directement. */
body:has(.cmb-histoire > .cmb-histoire-end:last-child) .site-footer {
	margin-top: 0;
}

.cmb-histoire-end__title {
	margin: 0 auto var(--cmb-space-s);
	font-size: var(--cmb-text-2xl);
}

.cmb-histoire-end__text {
	max-width: 34rem;
	margin: 0 auto;
	color: var(--cmb-color-text-muted);
	font-size: var(--cmb-text-lg);
	line-height: var(--cmb-leading-normal);
	text-wrap: balance;
}

.cmb-histoire-end__actions {
	display: flex;
	flex-direction: column;
	gap: var(--cmb-space-xs);
	margin-top: var(--cmb-space-l);
}

@media (min-width: 30em) {
	.cmb-histoire-end__actions {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}
}
