/* ============================================================
   DAL'ALU — Page "Histoire & valeurs"
   Reprend les conventions des autres pages : conteneurs 1460 px,
   hero à panneau rouge en blend, demi-cercles rouges débordants,
   ancre + 215 px avant le formulaire. Ajoute une frise
   chronologique alternée avec badge année sur le visuel.
   ============================================================ */

.dal-hist {
	padding: 0 20px 90px;
	overflow: hidden;
}

.dal-hist .dal-container {
	width: 100%;
	max-width: 1460px;
	margin: 0 auto;
}

/* ── Fil d'ariane ── */
.dal-hist__fil {
	padding: 18px 0 8px;
	font-size: 13px;
	color: #888;
}

.dal-hist__fil a {
	color: #888;
	text-decoration: none;
}

.dal-hist__fil a:hover {
	color: var(--dal-red, #DC0D15);
}

.dal-hist__fil span {
	margin: 0 6px;
}

/* ── Hero : bandeau image + panneau rouge centré ──
   Centrage en flex (pas de transform : un transform créerait un
   stacking context qui piégerait le mix-blend-mode du panneau). */
.dal-hist__hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 1460px;
	min-height: 300px;
	margin: 8px auto 0;
	background: #cfcfcf;
	border-radius: 24px;
}

.dal-hist__hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 60%;
	border-radius: inherit;
	display: block;
}

.dal-hist__hero-panel {
	position: relative;
	color: #fff;
	text-align: center;
	padding: 26px 132px;
	border-radius: 20px;
	max-width: 90%;
}

.dal-hist__hero-panel-bg {
	position: absolute;
	inset: 0;
	border-radius: 150px;
	background: var(--dal-red, #DC0D15);
	mix-blend-mode: hard-light;
	padding: 19px 162px 19px 162px;
}

/* Texte du hero au-dessus du fond en blend */
.dal-hist__hero-panel-texte {
	position: relative;
	z-index: 1;
}

.dal-hist__hero-titre {
	margin: 0;
	color: #FFF;
	text-align: center;	font-size: 48px;
	font-style: normal;
	font-weight: 800;
	line-height: normal;
}

.dal-hist__hero-sous {
	margin: 8px 0 0;
	color: #FFF;
	text-align: center;	font-size: 20px;
	font-style: normal;
	font-weight: 800;
	line-height: normal;
}

/* ── Titres de section (centrés, rouges) ── */
.dal-container.dal-hist__frise {
	margin-top: 92px;
}

.dal-container.dal-hist__frise:first-of-type {
	margin-top: 72px;
}

.dal-hist__section-titre {
	text-align: center;
	color: #DC0D15;	font-size: 46px;
	font-style: normal;
	font-weight: 650;
	line-height: normal;
	margin: 0 0 130px;
}

/* ── Frise : ligne centrale verticale + entrées alternées ── */
.dal-hist__timeline {
	position: relative;
	padding: 24px 0;
	--dal-hist-progress: 0; /* piloté au scroll par histoire.js */
}

/* Piste (fond clair, hauteur totale) */
.dal-hist__timeline::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 3px;
	transform: translateX(-50%);
	/* Fondu d'entrée en haut de la piste */
	background: linear-gradient(to bottom, transparent 0, #f2d4d6 48px);
	border-radius: 3px;
	z-index: 0;
}

/* Remplissage rouge : hauteur = progression du scroll ;
   estompé en haut (fondu d'entrée) et à son extrémité (pointe douce). */
.dal-hist__timeline::after {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 3px;
	height: calc(var(--dal-hist-progress) * 100%);
	transform: translateX(-50%);
	background: linear-gradient(to bottom,
			transparent 0,
			var(--dal-red, #DC0D15) 48px,
			var(--dal-red, #DC0D15) calc(100% - 44px),
			transparent 100%);
	border-radius: 3px;
	z-index: 0;
	will-change: height;
}

@media (max-width: 900px) {
	.dal-hist__timeline::before,
	.dal-hist__timeline::after {
		display: none;
	}
}

.dal-hist__entree {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	/* 150 px entre le visuel (daté) et sa colonne titre/texte */
	gap: 150px;
	align-items: center;
	margin-top: 100px;
}

.dal-hist__entree:first-child {
	margin-top: 0;
}

/* Entrée inversée : le texte passe à gauche, le visuel à droite */
.dal-hist__entree--inverse .dal-hist__col-visuel {
	order: 2;
}

.dal-hist__entree--inverse .dal-hist__col-texte {
	order: 1;
	text-align: left;
}

/* ── Visuel + badge année ── */
.dal-hist__col-visuel {
	position: relative;
}

.dal-hist__visuel {
	position: relative;
	z-index: 1;
	width: 100%;
	/* Visuel plus large, même hauteur, collé au bord extérieur (loin du trait) */
	max-width: 600px;
	margin-right: auto;
	height: 360px;
	object-fit: cover;
	border-radius: 24px;
	display: block;
	background: #cfcfcf;
}

/* Entrée inversée : image collée à droite (bord extérieur) */
.dal-hist__entree--inverse .dal-hist__visuel {
	margin-right: 0;
	margin-left: auto;
}

/* Cadrage décalé à droite (sujet à droite de la photo) */
.dal-hist__visuel[src$="ent-2013.jpg"] {
	object-position: right center;
}

/* Record Guinness : haut de l'image calé sur le haut du cadre */
.dal-hist__visuel[src$="rec-1995.jpg"] {
	object-position: center top;
}

/* Visuel 2013 descendu un peu (image + badge année ensemble) */
.dal-hist__col-visuel:has(> img[src$="ent-2013.jpg"]) {
	transform: translateY(30px);
}

/* Badge année : pastille rouge sur le coin du visuel, côté centre/spine */
.dal-hist__annee {
	position: absolute;
	z-index: 2;
	top: 32px;
	left: -18px;
	/* Conteneur affiné (moins haut) + plus d'espace de chaque côté de la date */
	padding: 7px 78px;
	background: rgba(220, 13, 21, .82);
	color: #FFF;
	font-size: 36px;
	font-style: normal;
	font-weight: 800;
	line-height: normal;
	text-align: center;
	/* Radius asymétriques : peu arrondi côté extérieur, très arrondi côté intérieur */
	border-radius: 18px 40px 40px 18px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

/* Entrée inversée : badge à droite, radius mis en miroir */
.dal-hist__entree--inverse .dal-hist__annee {
	left: auto;
	right: -18px;
	border-radius: 40px 18px 18px 40px;
}

/* ── Colonne texte ── */
/* Petit intitulé rouge (catégorie) au-dessus du titre.
   Sélecteur scopé (2 classes) pour l'emporter sur « .dal-hist__col-texte p ». */
.dal-hist__col-texte .dal-hist__categorie {
	color: #DC0D15;
	font-family: "Futura Std";
	font-size: 14px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
	text-transform: uppercase;
	margin: 0 0 8px;
}

.dal-hist__entree-titre {
	color: #000;	font-size: 39px;
	font-style: normal;
	font-weight: 800;
	line-height: normal;
	margin: 0 0 16px;
}

/* Trait rouge entre le titre et le texte */
.dal-hist__entree-titre::after {
	content: "";
	display: block;
	width: 122px;
	height: 6px;
	margin: 18px 0 0;
	border-radius: 43px;
	background: var(--dal-red, #DC0D15);
}

.dal-hist__col-texte p {
	color: #000;	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	margin: 0 0 12px;
}

/* Passages en gras (balises <strong> dans les textes) */
.dal-hist__col-texte p strong {
	color: #000;	font-size: 18px;
	font-style: normal;
	font-weight: 650;
	line-height: normal;
}

.dal-hist__col-texte p:last-child {
	margin-bottom: 0;
}

/* Ancre "Vous avez un projet ?" : 215 px d'écart avant le formulaire,
   scroll-margin calé sur la valeur validée côté gouttières. */
.dal-hist__ancre-devis {
	margin-top: 215px;
	scroll-margin-top: -35px !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {

	/* Frise passée en mono-colonne : image d'abord */
	.dal-hist__entree,
	.dal-hist__entree--inverse {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-top: 48px;
	}

	.dal-hist__entree--inverse .dal-hist__col-visuel {
		order: -1;
	}

	.dal-hist__entree--inverse .dal-hist__col-texte {
		order: 0;
		text-align: left;
	}

	.dal-hist__col-visuel,
	.dal-hist__entree--inverse .dal-hist__col-visuel {
		order: -1;
	}

	.dal-hist__visuel {
		aspect-ratio: 5 / 3;
		height: 320px;
		/* pleine largeur en mono-colonne (pas de réduction) */
		max-width: none;
		margin: 0;
	}

	.dal-hist__annee,
	.dal-hist__entree--inverse .dal-hist__annee {
		right: auto;
		left: 16px;
		top: 16px;
	}
}

@media (max-width: 700px) {
	.dal-hist__hero {
		min-height: 220px;
	}

	.dal-hist__hero-panel {
		max-width: calc(100% - 40px);
		box-sizing: border-box;
	}

	.dal-hist__hero-titre {
		font-size: clamp(1.35rem, 6vw, 34px);
	}

	.dal-hist__hero-panel {
		padding: 20px 32px;
	}

	.dal-container.dal-hist__frise {
		margin-top: 64px;
	}

	.dal-hist__ancre-devis {
		scroll-margin-top: -120px !important;
	}
}
