/* ============================================================
   DAL'ALU — Home page
   Styles spécifiques aux sections de la page d'accueil.
   ============================================================ */



/* ==========================================================================
   Section "Vous avez un projet, un chantier à réaliser ?"
   ========================================================================== */

.dal-projet {
	position: relative;
	overflow: hidden;
	background: var(--dal-projet-bg);
	padding: 28px 20px 80px;
	box-sizing: border-box;
}

/* Pastille rouge décorative accrochée à la première carte :
   elle défile avec la piste. Débordement à gauche = -115px par
   rapport au container (la carte a déjà 50px de margin-left). */
.dal-projet__carte:first-of-type::before {
	content: "";
	position: absolute;
	left: -145px;
	bottom: 75px;
	width: 400px;
	height: 40%;
	background: var(--dal-red, #DC0D15);
	border-radius: 150px;
	/* Décalage horizontal piloté par le scroll de la piste (JS) :
	   plus à droite au repos, revient à sa position en scrollant. */
	transform: translateX(var(--dal-projet-blob-x, 0px));
	will-change: transform;
}

.dal-projet .dal-container {
	position: relative;
	z-index: 1;
}

.dal-projet__titre {
	text-align: center;
	font-size: clamp(1.55rem, 2.2vw, 40px);
	font-weight: 800;
	margin: 0 0 48px;
	color: #000;
}

/* Piste : les cartes s'étirent pour remplir la largeur, mais jamais
   en dessous de leur minimum — au-delà, défilement horizontal.
   Les margin/padding en calc() prolongent la piste jusqu'aux bords
   du viewport : ce qui dépasse reste visible à gauche et à droite,
   et au repos les cartes restent alignées sur le container. */
.dal-projet__cartes {
	display: flex;
	gap: 80px;
	overflow-x: auto;
	padding: 4px calc(50vw - 50%) 20px;
	margin: 0 calc(50% - 50vw);
	scrollbar-width: none;
}

/* Curseur grab uniquement sous 1440px, quand la piste devient
   réellement scrollable */
@media (max-width: 1440px) {
	.dal-projet__cartes {
		cursor: grab;
	}

	.dal-projet__cartes.is-dragging {
		cursor: grabbing;
		user-select: none;
	}
}

.dal-projet__cartes::-webkit-scrollbar {
	display: none;
}


.dal-projet__carte {
	position: relative;
	/* Ancre le ::before décoratif de la 1re carte */
	flex: 1 0 min(340px, 78vw);
}

/* Dots de navigation : masqués en desktop, visibles en mobile */
.dal-projet__dots {
	display: none;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
}

.dal-projet__dot {
	width: 26px;
	height: 6px;
	border-radius: 3px;
	border: none;
	background: #ddd;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, width 0.2s ease;
}

.dal-projet__dot.is-active {
	background: var(--dal-red, #DC0D15);
	width: 40px;
}

@media (max-width: 900px) {
	.dal-projet__dots {
		display: flex;
	}

	.dal-projet__carte:first-of-type {
		margin-left: 0px;
	}

	.dal-projet__carte:first-of-type::before {
		content: "";
		position: absolute;
		left: -85px;
		bottom: 75px;
		width: 200px;
		height: 30%;
		background: var(--dal-red, #DC0D15);
		border-radius: 150px;
	}

	.dal-projet__titre {
		margin-bottom: 20px;
	}
}

.dal-projet__image {
	position: relative;
	width: 100%;
	aspect-ratio: 442 / 509;
	border-radius: 24px;
}

/* Vraie image : remplit la carte et se recadre comme un cover */
.dal-projet__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
	display: block;
}

/* Badge rouge qui déborde sur la gauche de l'image.
   Même principe que .dal-slider__blob : pas de z-index ici (sinon le
   stacking context piège le mix-blend-mode du fond), le fond et le
   texte sont deux enfants séparés. */
.dal-projet__badge {
	position: absolute;
	top: 44px;
	left: -50px;
	color: #fff;
	min-width: 85%;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
	padding: 8px 40px 8px 65px;
	border-radius: 6px 50px 50px 6px;
	max-width: calc(100% - -30px);
	box-sizing: border-box;
}

/* Fond rouge avec blend-mode, séparé du texte */
.dal-projet__badge-bg {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--dal-red, #DC0D15);
	mix-blend-mode: hard-light;
}

/* Texte au-dessus du fond, hors du contexte de blend */
.dal-projet__badge-texte {
	position: relative;
	z-index: 1;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Zone blanche collée au coin bas-droit : c'est elle qui "découpe"
   l'encoche dans l'image, et elle s'adapte à la taille du bouton.
   Les deux pseudo-éléments dessinent les raccords concaves (coins
   inversés) avec un radial-gradient couleur du fond de section. */
.dal-projet__btn-zone {
	--dal-encoche-r: 24px;
	position: absolute;
	right: 0;
	bottom: 0;
	background: var(--dal-projet-bg);
	padding: 12px 0 0 14px;
	border-top-left-radius: var(--dal-encoche-r);
}

.dal-projet__btn-zone::before,
.dal-projet__btn-zone::after {
	content: "";
	position: absolute;
	width: var(--dal-encoche-r);
	height: var(--dal-encoche-r);
	background: radial-gradient(circle at 0 0,
			transparent var(--dal-encoche-r),
			var(--dal-projet-bg) calc(var(--dal-encoche-r) + 0.5px));
}

/* Raccord sur le bord bas, à gauche de la zone */
.dal-projet__btn-zone::before {
	left: calc(-1 * var(--dal-encoche-r));
	bottom: 0;
}

/* Raccord sur le bord droit, au-dessus de la zone */
.dal-projet__btn-zone::after {
	right: 0;
	top: calc(-1 * var(--dal-encoche-r));
}

.dal-projet__btn {
	padding: 9px 26px;
	font-size: clamp(1rem, 1.4vw, 20px);
	font-weight: 500;
}

@media (max-width: 900px) {
	.dal-projet__carte:first-of-type::before {
		/* width: 64px;
		height: 100px; */
	}
}


@media (max-width: 900px) {
	.dal-projet__carte:first-of-type::before {
		/* width: 64px;
		height: 100px; */
	}

	.dal-projet__badge {
		left: -25px;
		padding-left: 40px;
	}
}

@media (max-width: 600px) {
	.dal-projet__badge-texte {
		white-space: unset;
	}

	.dal-projet {
		padding-bottom: 0;
		padding: 28px 0px 80px;
	}

	.dal-projet__titre {
		text-align: left;
	}

	.dal-projet__carte {
		flex: 1 0 100%;
	}


	.dal-projet__carte::before {
		display: none;
	}
}



/* ==========================================================================
   Section "DAL'ALU, près de 45 ans d'histoire"
   ========================================================================== */

.dal-histoire {
	padding: 60px 0;
}

/* Carte grise arrondie : texte à gauche, photo à droite */
.dal-histoire__carte {
	display: grid;
	grid-template-columns: 1.32fr 1fr;
	width: 80%;
	margin: 0 auto;
	background: rgba(47, 47, 47, 0.04);
	;
	border-radius: 30px;
	overflow: hidden;
}

.dal-histoire__texte {
	padding: 64px 45px 84px 100px;
}

.dal-histoire__logo {
	width: 280px;
	height: auto;
	display: block;
	margin-bottom: 28px;
}

.dal-histoire__titre {
	font-size: clamp(2rem, 2vw, 39px);
	font-weight: 800;
	color: #000;
	margin: 32px 0 32px;
}

/* Petit trait rouge sous le titre */
.dal-histoire__titre::after {
	content: "";
	display: block;
	width: 120px;
	height: 6px;
	margin-top: 20px;
	background: var(--dal-red, #DC0D15);
	border-radius: 20px;
}

.dal-histoire__texte p {
	color: #000;
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
}

/* "Lire plus" : masqué par défaut, visible seulement sous 425px */
.dal-histoire__lire-plus {
	display: none;
	margin-top: 4px;
	padding: 0;
	border: none;
	background: none;
	color: #888;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.dal-histoire__btn {
	margin-top: 20px;
	padding: 10px 50px;
	font-size: 18px;
	font-weight: 500;
}

/* Vraie image : remplit toute la colonne droite de la carte,
   recadrée comme un cover */
.dal-histoire__image {
	width: 100%;
	height: 100%;
	margin-top: 90px;
	min-height: 420px;
	object-fit: fill;
	display: block;
}

@media (max-width: 1440px) {
	.dal-histoire__carte {
		grid-template-columns: 1fr;
		width: 90%;
	}

	.dal-histoire__texte {
		padding: 36px 28px;
	}

	.dal-histoire__logo {
		max-width: 80%;
	}

	.dal-histoire__image {
		min-height: 260px;
		margin-top: 0;
		max-height: 260px;
		object-fit: contain;
		object-position: right;
	}

	.dal-histoire {
		padding-top: 24px;
	}
}

/* Sous 425px : on replie tout à partir du 2e paragraphe derrière un
   "Lire plus". Le clic ajoute .is-open sur la carte (géré en JS). */
@media (max-width: 600px) {
	.dal-histoire__suite {
		display: none;
	}

	.dal-histoire__carte.is-open .dal-histoire__suite {
		display: block;
	}

	/* Le bouton se cale juste sous le paragraphe visible */
	.dal-histoire__texte>p {
		margin-bottom: 8px;
	}

	.dal-histoire__lire-plus {
		display: block;
		width: fit-content;
		margin-top: 0;
		margin-bottom: 20px;
	}
}



/* ==========================================================================
   Section "Alucampus — Le centre de formation made in DAL'ALU"
   ========================================================================== */

.dal-alucampus {
	padding: 60px 0;
}

.dal-alucampus__inner {
	display: flex;
	gap: clamp(40px, 10vw, 180px);
	align-items: center;
}

.dal-alucampus__texte {
	flex: 1.2;
	min-width: 0;
}

/* Visuel temporaire — sera remplacé par la mosaïque Alucampus */
.dal-alucampus__image {
	flex: 1;
	min-width: 0;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

/* Logo temporaire — déposer logo-alucampus.png dans assets/img/ */
.dal-alucampus__logo {
	width: 200px;
	height: auto;
	display: block;
	margin-bottom: 24px;
}

.dal-alucampus__titre {
	font-size: clamp(2rem, 2vw, 39px);
	font-weight: 800;
	color: #000;
	margin: 32px 0 32px;
}

/* Petit trait rouge sous le titre */
.dal-alucampus__titre::after {
	content: "";
	display: block;
	width: 120px;
	height: 6px;
	margin-top: 20px;
	background: var(--dal-red, #DC0D15);
	border-radius: 20px;
}

.dal-alucampus__texte p {
	color: #000;
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	max-width: 60ch;
}

.dal-alucampus__btn {
	margin-top: 20px;
	padding: 14px 50px;
	font-size: 18px;
	font-weight: 500;
	line-height: normal;
}

@media (max-width: 900px) {
	.dal-alucampus__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
	}

	/* Image sous le texte en mobile (comme la section 45 ans) */
	.dal-alucampus__image {
		order: 1;
		max-width: 420px;
		/* margin: 0 auto; */
	}

	.dal-alucampus {
		padding: 20px 0;
	}

	.dal-alucampus__btn {
		padding: 14px 40px;
	}
}



/* ==========================================================================
   Section "Quelques réalisations de nos partenaires franchisés"
   ========================================================================== */

.dal-realisations {
	--dal-realisation-bg: #fff;
	padding: 60px 0;
	overflow: hidden;
}

/* Aligné sur le bord gauche du container 80%, ouvert à droite */
.dal-realisations__inner {
	margin-left: 10%;
}

.dal-realisations__titre {
	font-size: clamp(1.75rem, 2vw, 28px);
	font-weight: 700;
	color: #000;
	margin: 0 0 32px;
	padding-right: 10%;
}

/* Piste horizontale scrollable. Elle s'étend jusqu'au bord gauche du
   viewport (l'inner est décalé de 10% => -10vw pour y revenir), et le
   padding-left ramène la 1re carte à sa position d'origine. Ainsi ce
   qui défile hors-champ reste visible à gauche comme à droite. */
.dal-realisations__scroller {
	display: flex;
	gap: 32px;
	overflow-x: auto;
	padding: 4px 10% 20px 10%;
	margin-left: -10vw;
	scrollbar-width: none;
	cursor: grab;
}

.dal-realisations__scroller.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.dal-realisations__scroller::-webkit-scrollbar {
	display: none;
}

.dal-realisation {
	flex: 0 0 auto;
	width: 32%;
	min-width: 420px;
	/* Permet de styler les éléments internes selon la largeur DE LA CARTE
	   (et non du viewport) via @container ci-dessous */
	container-type: inline-size;
}

/* Quand la carte fait moins de 400px de large, on réduit le padding
   du badge (et sa débord/typo) pour qu'il reste proportionné.
   → 400px = seuil, 8px 22px = padding réduit : ajuste ces valeurs. */
@container (max-width: 460px) {
	.dal-realisation__partenaire {
		bottom: 60px !important;
	}
}

/* Carte étroite (< 340px) : badge et "par…" peuvent occuper 100% */
@container (max-width: 340px) {
	.dal-realisation__badge {
		max-width: 100% !important;
	}

	.dal-realisation__partenaire {
		max-width: 100% !important;
	}
}

.dal-realisation__image {
	position: relative;
	aspect-ratio: 490 / 384;
	border-radius: 24px;
	margin-left: 25px;
}

/* Vraie image : remplit la carte et se recadre comme un cover */
.dal-realisation__img {
	position: absolute;
	inset: 0;
	width: calc(100% - 1px);
	height: calc(100% - 1px);
	object-fit: cover;
	border-radius: inherit;
	display: block;
}


/* Badge rouge à deux lignes qui déborde à gauche.
   Même principe que les cartes projet : pas de z-index sur le badge
   (sinon le stacking context piège le mix-blend-mode), fond et texte
   sont deux enfants séparés. */
.dal-realisation__badge {
	position: absolute;
	top: 24px;
	left: -30px;
	color: #fff;
	padding: 10px 40px 10px 30px;
	border-radius: 20px 50px 50px 20px;
	max-width: calc(60% + 30px);
	box-sizing: border-box;
}

/* Fond rouge avec blend-mode, séparé du texte */
.dal-realisation__badge-bg {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--dal-red, #DC0D15);
	mix-blend-mode: hard-light;
}

/* Texte au-dessus du fond, hors du contexte de blend */
.dal-realisation__badge-texte {
	position: relative;
	z-index: 1;
	display: block;
}

.dal-realisation__badge-titre {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
	text-transform: uppercase;
}

.dal-realisation__badge-lieu {
	display: block;
	font-size: 16px;
	font-weight: 800;
	margin-top: 5px;
}

/* "par Nom du franchisé" en bas à gauche de la photo, sur un dégradé
   sombre qui n'habille que le texte pour rester lisible */
.dal-realisation__partenaire {
	position: absolute;
	left: 0;
	bottom: 14px;
	z-index: 1;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	max-width: min(70%, 320px);
	padding: 8px 22px 8px 18px;
	border-radius: 10px;
	box-shadow: inset 0px 0px 100px 0px #00000054;
}

.dal-realisation__partenaire strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
}

/* Zone blanche collée au coin bas-droit qui "découpe" l'encoche
   (même technique que les cartes projet, s'adapte au bouton) */
.dal-realisation__btn-zone {
	--dal-encoche-r: 20px;
	position: absolute;
	right: 0;
	bottom: 0;
	background: var(--dal-realisation-bg, #fff);
	padding: 12px 0 0 14px;
	border-top-left-radius: var(--dal-encoche-r);
}

.dal-realisation__btn-zone::before,
.dal-realisation__btn-zone::after {
	content: "";
	position: absolute;
	width: 21px;
	height: 21px;
	background: radial-gradient(circle at 0 0,
			transparent var(--dal-encoche-r),
			var(--dal-realisation-bg, #fff) calc(var(--dal-encoche-r) + 0.5px));
}

.dal-realisation__btn-zone::before {
	left: calc(-1 * var(--dal-encoche-r));
	bottom: 0;
}

.dal-realisation__btn-zone::after {
	right: 0;
	top: calc(-1 * var(--dal-encoche-r));
}

.dal-realisation__btn {
	padding: 8px 50px;
	font-size: 18px;
	font-weight: 800;
	white-space: nowrap;
}

.dal-realisations__footer {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 24px;
}

.dal-realisations__toutes {
	padding: 13px 50px;
	font-size: 18px;
	font-weight: 500;
	line-height: normal;
}

/* Contexte clair : flèches rouges (géométrie dans global.css .dal-arrow) */
.dal-realisations__arrows {
	display: flex;
	gap: 12px;
	--dal-arrow-color: var(--dal-red, #DC0D15);
	--dal-arrow-hover-bg: rgba(220, 13, 21, 0.08);
}

/* Barre de progression du carrousel */
.dal-realisations__progress {
	height: 2px;
	background: #dc0d1447;
	margin-top: 28px;
	margin-right: 10%;
	border-radius: 1px;
	overflow: hidden;
}

.dal-realisations__progress-fill {
	display: block;
	height: 100%;
	width: 0;
	background: var(--dal-red, #DC0D15);
	transition: width 0.2s ease;
}

@media (max-width: 900px) {
	.dal-realisations__inner {
		margin-left: 5%;
	}

	.dal-realisations__progress {
		margin-right: 5%;
	}

	.dal-realisation__badge {
		max-width: calc(75% + 30px);
	}


	.dal-realisation__image {
		aspect-ratio: 500 / 580;
	}


}

@media (max-width: 600px) {
	.dal-realisations {
		padding-top: 20px;
		padding-bottom: 0;
	}

	.dal-realisations__footer {
		flex-direction: column-reverse;
		align-items: flex-start;
		margin-top: 0;
	}

	.dal-realisations__arrows {
		margin-left: 15px;
	}

	.dal-realisations__footer .dal-btn {
		margin: auto;
	}

	.dal-realisation {
		min-width: 375px;
	}
}


@media (max-width: 440px) {
	.dal-realisations__scroller {
		padding: 4px 16px 20px 26px;
	}

	.dal-realisation {
		min-width: 100%;
	}

	.dal-realisation__image {
		margin-left: 16px;
		aspect-ratio: 370 / 430;
	}

	.dal-realisations__toutes {
		padding: 13px 40px;
	}


	.dal-realisation__badge {
		left: -20px;
		padding-left: 20px;
	}

	.dal-realisation__badge-titre {
		font-size: 16px;
	}

	.dal-realisation__btn {
		padding: 8px 40px;
	}

	.dal-realisation__partenaire {
		max-width: 100%;
		bottom: 60px;
	}

}





/* ==========================================================================
   Section "Vous aussi devenez un partenaire franchisé DAL'ALU"
   ========================================================================== */

.dal-franchise {
	padding: 60px 0;
}

.dal-franchise__carte {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: clamp(32px, 5vw, 72px);
	width: 80%;
	margin: 0 auto;
	background: #F7F5F4;
	border-radius: 30px;
	padding: clamp(28px, 4vw, 56px);
	box-sizing: border-box;
}

/* Colonne photos : une grande + une ligne de trois carrées */
.dal-franchise__photo-principale {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.dal-franchise__photos-ligne {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-top: 14px;
}

.dal-franchise__photos-ligne img {
	width: 100%;
	aspect-ratio: 218 / 200;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.dal-franchise__titre {
	font-size: clamp(2rem, 2vw, 28px);
	font-weight: 700;
	color: #000;
	margin: 0 0 36px;
	line-height: 1.25;
}

.dal-franchise__rouge {
	color: var(--dal-red, #DC0D15);
}

.dal-franchise__stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 36px;
	row-gap: 32px;
}

.dal-franchise__stat-haut {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	margin-bottom: 10px;
}

/* Pictos temporaires — à remplacer par les pictos de la maquette */
.dal-franchise__icone {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	color: var(--dal-red, #DC0D15);
}

.dal-franchise__chiffre {
	font-size: 34px;
	font-weight: 800;
	color: #000;
	line-height: 1;
	margin: 0;
}

/* "Franchisés" sous le chiffre */
.dal-franchise__chiffre-label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dal-red, #DC0D15);
	margin-top: 3px;
}

/* "K€" / "%" accolé au chiffre */
.dal-franchise__chiffre-unite {
	font-size: 14px;
	font-weight: 700;
	color: var(--dal-red, #DC0D15);
	margin-left: 3px;
}

.dal-franchise__desc {
	margin: 0;
	color: #000;
	font-size: 16px;
	font-weight: 400;
}

/* Case du bouton, calée en bas à droite de la grille */
.dal-franchise__stat--action {
	display: flex;
	align-items: flex-end;
}

.dal-franchise__btn {
	padding: 10px 40px;
	font-size: 18px;
	font-weight: 800;
}

@media (max-width: 1440px) {
	.dal-franchise__carte {
		grid-template-columns: 1fr;
		width: 90%;
	}

	/* Infos d'abord, images en dessous */
	.dal-franchise__photos {
		order: 1;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 14px;
	}

	/* La rangée de 3 se dissout pour que ses images rejoignent la grille :
	   on obtient 4 images de taille identique en 2×2 */
	.dal-franchise__photos-ligne {
		display: contents;
	}

	.dal-franchise__photo-principale,
	.dal-franchise__photos-ligne img {
		aspect-ratio: 218 / 200;
		margin-top: 0;
	}
}

@media (max-width: 560px) {

	.dal-franchise {
		padding-bottom: 0;
	}

	.dal-franchise__stats {
		grid-template-columns: 1fr;
		row-gap: 24px;
	}

	/* Tout centré en mode mobile */
	.dal-franchise__contenu {
		text-align: center;
	}

	.dal-franchise__titre::after {
		margin-left: auto;
		margin-right: auto;
	}

	.dal-franchise__stat-haut {
		justify-content: center;
	}

	.dal-franchise__desc {
		max-width: 34ch;
		margin-left: auto;
		margin-right: auto;
	}

	.dal-franchise__stat--action {
		justify-content: center;
	}

	.dal-franchise__photos {
		display: none;
	}
}



/* ==========================================================================
   Section "Actualités / conseils"
   Cartes : image + badge (blend) en haut, texte + footer en dessous.
   Fonctionnement identique au carrousel de la section projet.
   ========================================================================== */

.dal-actus {
	--dal-actu-bg: #FFFFFF;
	/* couleur qui remplit l'encoche (= fond global du site) */
	padding: 60px 0 80px;
}

/* Piste : mêmes réglages que .dal-projet__cartes (scroll libre, full-bleed,
   drag activé en JS, débord visible des deux côtés) */
.dal-actus__cartes {
	display: flex;
	gap: 44px;
	overflow-x: auto;
	padding: 4px calc(50vw - 50%) 20px;
	margin: 0 calc(50% - 50vw);
	scrollbar-width: none;
}

.dal-actus__cartes::-webkit-scrollbar {
	display: none;
}

@media (max-width: 1440px) {
	.dal-actus__cartes {
		cursor: grab;
	}

	.dal-actus__cartes.is-dragging {
		cursor: grabbing;
		user-select: none;
	}
}

@media (max-width: 560px) {
	.dal-actus {
		padding-bottom: 0;
	}
}

.dal-actu {
	position: relative;
	/* ancre la btn-zone en encoche */
	flex: 1 0 min(360px, 82vw);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 0px 40px rgba(0, 0, 0, 0.06);
}

/* ── Média + badge ── */
.dal-actu__media {
	position: relative;
	aspect-ratio: 320 / 200;
}

.dal-actu__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 24px 24px 0 0;
}

/* Badge rouge en blend, même principe que les autres cartes */
.dal-actu__badge {
	position: absolute;
	top: 24px;
	left: -25px;
	color: #fff;
	padding: 7px 50px 7px 20px;
	border-radius: 6px 50px 50px 6px;
	box-sizing: border-box;
}

.dal-actu__badge-bg {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--dal-red, #DC0D15);
	mix-blend-mode: hard-light;
}

.dal-actu__badge-texte {
	position: relative;
	z-index: 1;
	padding-left: 25px;
	display: block;
	color: #FFF;
	font-size: 16px;
	font-weight: 800;
}

/* ── Corps de la carte ── */
.dal-actu__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px 28px 24px;
	background: #fff;
	border-radius: 0 0 24px 24px;
}

.dal-actu__titre {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
	color: #000;
	margin: 0 0 14px;
}

.dal-actu__extrait {
	font-size: 14px;
	line-height: 1.55;
	color: #444;
	margin: 0 0 24px;
	/* 3 lignes max */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

/* Date poussée en bas à gauche ; on réserve de la place à droite
   pour ne pas passer sous le bouton en encoche */
.dal-actu__date {
	margin-top: auto;
	padding-right: 140px;
	font-size: 13px;
	color: #9a9a9a;
}

/* Zone blanche qui découpe l'encoche au coin bas-droit de la carte,
   même technique que .dal-projet__btn-zone */
.dal-actu__btn-zone {
	--dal-encoche-r: 22px;
	position: absolute;
	right: 0;
	bottom: 0;
	background: #f8f8fa;
	padding: 14px 0 0 16px;
	border-top-left-radius: var(--dal-encoche-r);
	border-bottom-right-radius: 24px;
	box-shadow: inset 1px 1px 3px 0px #f0f0f0;
}

.dal-actu__btn-zone::before,
.dal-actu__btn-zone::after {
	content: "";
	position: absolute;
	width: var(--dal-encoche-r);
	height: var(--dal-encoche-r);
	background: radial-gradient(circle at 0 0, transparent var(--dal-encoche-r), #f3f3f4 calc(var(--dal-encoche-r) + 0.5px));
}


.dal-actu__btn-zone::before {
	left: calc(-1 * var(--dal-encoche-r));
	bottom: 0;
}

.dal-actu__btn-zone::after {
	right: 0;
	top: calc(-1 * var(--dal-encoche-r));
}

.dal-actu__btn {
	padding: 9px 24px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

/* Dots de navigation : masqués en desktop, visibles en mobile */
.dal-actus__dots {
	display: none;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.dal-actus__dot {
	width: 26px;
	height: 6px;
	border-radius: 3px;
	border: none;
	background: #ddd;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, width 0.2s ease;
}

.dal-actus__dot.is-active {
	background: var(--dal-red, #DC0D15);
	width: 40px;
}

@media (max-width: 900px) {
	.dal-actus__dots {
		display: flex;
	}
}

/* ============================================================
   Section "près de 45 ans" : apparition au scroll + compteur
   La classe .dal-anim-ready n'est posée que si le JS tourne :
   sans JS, rien n'est masqué. Désactivé si reduced-motion. */
@media (prefers-reduced-motion: no-preference) {

	.dal-histoire__carte.dal-anim-ready {
		opacity: 0;
		transform: translateY(30px);
		transition: opacity 0.7s ease, transform 0.7s ease;
		will-change: opacity, transform;
	}

	.dal-histoire__carte.dal-anim-ready.is-visible {
		opacity: 1;
		transform: none;
	}
}

/* Section franchise : apparition au scroll + compteurs (même principe). */
@media (prefers-reduced-motion: no-preference) {

	.dal-franchise__carte.dal-anim-ready {
		opacity: 0;
		transform: translateY(30px);
		transition: opacity 0.7s ease, transform 0.7s ease;
		will-change: opacity, transform;
	}

	.dal-franchise__carte.dal-anim-ready.is-visible {
		opacity: 1;
		transform: none;
	}
}

/* Mobile : marge latérale 16px (conteneur projet) */
@media (max-width: 600px) {
	.dal-projet .dal-container {
		width: 100%;
		padding-left: max(16px, 4vw);
		padding-right: max(16px, 4vw);
		box-sizing: border-box;
	}
}