/* AZE Hero Slider – front */

.ahs {
	--ahs-or: #c9b98f;
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #0b0b0b;
	color: #fff;
	isolation: isolate;
	/* Les textes se dimensionnent d'après la largeur du SLIDER, pas de l'écran */
	container-type: inline-size;
}
/* Format photo (16/9, 21/9, 3/2) : la hauteur suit la largeur */
.ahs.ahs-ratio { height: auto; aspect-ratio: var(--ahs-r, 16/9); }
/* Format écran : hauteur en % de l'écran */
.ahs.ahs-ecran { height: var(--ahs-h, 85vh); min-height: 420px; }

/* Téléphone : format propre au mobile */
@media (max-width: 767px) {
	/* Format choisi pour le téléphone : prioritaire sur toute autre règle (thème, ancien cache) */
	.ahs.ahs-m-ratio { height: auto !important; min-height: 0 !important; aspect-ratio: var(--ahs-rm, 4/5) !important; }
	.ahs.ahs-m-ecran {
		aspect-ratio: auto;
		height: calc(var(--ahs-hm, 70) * 1vh);
		height: calc(var(--ahs-hm, 70) * 1svh); /* tient compte de la barre d'adresse */
		min-height: 380px;
	}
}

.ahs-scene { position: absolute; inset: 0; }

/* Photos */
.ahs-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	z-index: 0;
}
.ahs-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.ahs-slide.is-next   { opacity: 1; visibility: visible; z-index: 2; }

.ahs .ahs-slide picture,
.ahs .ahs-slide img,
.ahs .ahs-copie {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	display: block;
}
/* Recadrage autour du point focal choisi dans l'admin */
.ahs .ahs-slide img,
.ahs .ahs-copie {
	object-fit: cover;
	object-position: var(--fx, 50%) var(--fy, 50%);
}
.ahs-copie { will-change: transform, opacity, clip-path; }

/* Dégradé sombre en bas pour la lisibilité des textes */
.ahs-slide::after,
.ahs-voile-copie {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .25) 40%, rgba(0, 0, 0, 0) 70%);
	opacity: var(--ahs-voile, .5);
	pointer-events: none;
	z-index: 1;
}
.ahs-calque { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

/* Textes */
.ahs-texte {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: clamp(18px, 6vw, 96px);
	padding: clamp(18px, 5cqw, 96px);
	padding-bottom: calc(clamp(18px, 5cqw, 96px) + 30px);
	pointer-events: none;
}
.ahs-texte a { pointer-events: auto; }
.ahs-pos-bas-gauche .ahs-texte { justify-content: flex-end; align-items: flex-start; text-align: left; }
.ahs-pos-bas-centre .ahs-texte { justify-content: flex-end; align-items: center; text-align: center; }
.ahs-pos-centre .ahs-texte     { justify-content: center; align-items: center; text-align: center; }

/* Texte placé avec le carré bleu de l'admin */
.ahs-texte.ahs-libre {
	inset: auto;
	padding: 0;
	display: block;
	max-width: 60%;
}
.ahs-texte.ahs-libre.ahs-h-g { left: var(--tx); text-align: left; }
.ahs-texte.ahs-libre.ahs-h-c { left: var(--tx); transform: translateX(-50%); text-align: center; }
.ahs-texte.ahs-libre.ahs-h-d { right: calc(100% - var(--tx)); text-align: right; }
.ahs-texte.ahs-libre.ahs-v-h { top: var(--ty); }
.ahs-texte.ahs-libre.ahs-v-m { top: var(--ty); translate: 0 -50%; }
.ahs-texte.ahs-libre.ahs-v-b { bottom: calc(100% - var(--ty)); }
.ahs-texte.ahs-libre.ahs-h-c .ahs-titre,
.ahs-texte.ahs-libre.ahs-h-c .ahs-sous { margin-left: auto; margin-right: auto; }
.ahs-texte.ahs-libre.ahs-h-d .ahs-titre,
.ahs-texte.ahs-libre.ahs-h-d .ahs-sous { margin-left: auto; }
@media (max-width: 767px) { .ahs-texte.ahs-libre { max-width: 84%; } }

.ahs .ahs-titre {
	margin: 0;
	max-width: 16ch;
	font-family: "Cormorant Garamond", "Cormorant", Georgia, serif;
	font-weight: 400;
	font-size: clamp(1.9rem, 5.2vw, 4.4rem);
	font-size: clamp(1.05rem, 5cqw, 4.4rem);
	line-height: 1.05;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.ahs .ahs-sous {
	margin: .7em 0 0;
	max-width: 40ch;
	font-family: "Cormorant Garamond", "Cormorant", Georgia, serif;
	font-style: italic;
	font-size: clamp(1.05rem, 1.7vw, 1.4rem);
	font-size: clamp(.95rem, 1.9cqw, 1.4rem);
	color: rgba(255, 255, 255, .9);
}
.ahs .ahs-btn {
	display: inline-block;
	margin-top: 1.5em;
	margin-top: clamp(.8em, 2.5cqw, 1.5em);
	padding: .9em 2.2em;
	border: 1px solid rgba(255, 255, 255, .8);
	font-size: .85rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.ahs .ahs-btn:hover,
.ahs .ahs-btn:focus { background: var(--ahs-or); border-color: var(--ahs-or); color: #111; }

/* Indicateurs : fines barres avec progression */
.ahs-points {
	position: absolute;
	z-index: 6;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
}
.ahs .ahs-point {
	width: 36px;
	padding: 12px 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.ahs-point i {
	position: relative;
	display: block;
	height: 2px;
	overflow: hidden;
	background: rgba(255, 255, 255, .35);
}
.ahs-point i::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--ahs-or);
	transform: scaleX(0);
	transform-origin: left;
}
.ahs-point.is-on i::after { animation: ahs-progression var(--ahs-duree, 6000ms) linear forwards; }
.ahs-pause .ahs-point.is-on i::after { animation-play-state: paused; }
@keyframes ahs-progression { to { transform: scaleX(1); } }

/* Flèches discrètes (ordinateur uniquement) */
.ahs .ahs-fleche {
	position: absolute;
	top: 50%;
	z-index: 6;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	background: rgba(0, 0, 0, .15);
	color: #fff;
	font-size: 26px;
	line-height: 48px;
	cursor: pointer;
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity .3s ease, background .3s ease;
}
.ahs-prec { left: 24px; }
.ahs-suiv { right: 24px; }
.ahs:hover .ahs-fleche,
.ahs .ahs-fleche:focus-visible { opacity: 1; }
.ahs .ahs-fleche:hover { background: rgba(0, 0, 0, .4); }
@media (max-width: 767px), (hover: none) {
	.ahs .ahs-fleche { display: none; }
}

/* Ouverture façon diaphragme au chargement */
.ahs-slide.ahs-ouverture { animation: ahs-iris 1.1s cubic-bezier(.65, 0, .35, 1) .1s both; }
@keyframes ahs-iris {
	from { clip-path: circle(0% at 50% 50%); }
	to   { clip-path: circle(75% at 50% 50%); }
}

@media (prefers-reduced-motion: reduce) {
	.ahs-slide.ahs-ouverture { animation: none; }
	.ahs-point.is-on i::after { animation: none; transform: scaleX(1); }
}

/* =========================================================================
 * DISPOSITION « PLEIN CADRE »
 * ========================================================================= */
.ahs-principale { position: absolute; inset: 0; }

/* =========================================================================
 * DISPOSITION « ARCHE » : photo centrale en arche + photos voisines sur les côtés
 * ========================================================================= */
.ahs.ahs-l-arche { background: #141414; }
.ahs-l-arche .ahs-panneau { position: absolute; top: 0; bottom: 0; overflow: hidden; }
.ahs-l-arche {
	--cote: 28%;            /* largeur des photos voisines */
	--ecart: 3%;            /* espace entre les photos */
	--haut-arche: 23%;      /* début de l'arche (place pour le titre) */
	--bord: 0%;             /* marge entre les photos des côtés et le bord du slider */
}
.ahs-l-arche.ahs-v-discrete { --cote: 22%; }
.ahs-l-arche.ahs-v-grande   { --cote: 32%; }
.ahs-l-arche.ahs-v-tres-grande { --cote: 36%; }
.ahs-l-arche .ahs-gauche { left: var(--bord); width: var(--cote); }
.ahs-l-arche .ahs-droite { right: var(--bord); width: var(--cote); }
.ahs-l-arche .ahs-gauche img,
.ahs-l-arche .ahs-droite img { filter: brightness(.82); }
/* L'arche : rayon énorme → demi-cercle parfait quelle que soit la taille */
.ahs-l-arche .ahs-arche {
	left: 50%;
	width: calc(100% - 2 * var(--bord) - 2 * var(--cote) - 2 * var(--ecart));
	top: var(--haut-arche);
	transform: translateX(-50%);
	overflow: visible;
}
.ahs-l-arche .ahs-arche::before { /* fin contour décalé autour de l'arche */
	content: '';
	position: absolute;
	inset: -12px -12px 0 -12px;
	border: 1px solid rgba(255, 255, 255, .45);
	border-bottom: 0;
	border-radius: 2000px 2000px 0 0;
	pointer-events: none;
}
.ahs-l-arche .ahs-principale { border-radius: 2000px 2000px 0 0; overflow: hidden; }
.ahs-l-arche .ahs-slide::after { display: none; } /* pas de dégradé : fond sombre entre les photos */
.ahs-l-arche .ahs-texte:not(.ahs-libre) {
	justify-content: flex-start;
	align-items: center;
	text-align: center;
	padding-top: 3.5%;
	padding-top: 3.5cqw;
	z-index: 4;
}
.ahs-l-arche .ahs-titre { font-style: italic; text-shadow: 0 2px 24px rgba(0, 0, 0, .55); max-width: 22ch; }
.ahs-l-arche .ahs-sous { order: -1; margin: 0 0 .6em; font-style: normal; font-size: clamp(.8rem, 1.1cqw, 1rem); letter-spacing: .04em; }
.ahs-l-arche .ahs-btn { background: #fff; color: #111; border-color: #fff; border-radius: 999px; }
.ahs-l-arche .ahs-btn:hover { background: var(--ahs-or); border-color: var(--ahs-or); }

/* =========================================================================
 * DISPOSITION « PAPIER DÉCHIRÉ » : texte à gauche, photo aux bords déchirés à droite
 * ========================================================================= */
.ahs.ahs-l-dechire { background: transparent; }
.ahs-l-dechire .ahs-slide::after { display: none; }
.ahs-l-dechire .ahs-papier { position: absolute; left: 47%; right: 2.5%; top: 2.5%; bottom: 2.5%; }
.ahs-l-dechire .ahs-principale {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1000 1000%22 preserveAspectRatio=%22none%22%3E%3Cpolygon points=%220,5 14,1 29,1 43,13 57,6 71,3 86,8 100,1 114,11 129,11 143,9 157,9 171,10 186,8 200,11 214,8 229,10 243,2 257,2 271,9 286,12 300,8 314,12 329,22 343,9 357,4 371,0 386,15 400,2 414,23 429,8 443,12 457,5 471,2 486,3 500,14 514,5 529,10 543,24 557,11 571,5 586,16 600,3 614,8 629,1 643,12 657,4 671,2 686,7 700,1 714,12 729,13 743,19 757,14 771,4 786,11 800,5 814,14 829,11 843,7 857,0 871,10 886,13 900,5 914,3 929,13 943,9 957,9 971,11 986,11 1000,14 989,0 998,25 998,50 990,75 990,100 992,125 993,150 1000,175 992,200 989,225 990,250 997,275 996,300 993,325 995,350 989,375 995,400 989,425 989,450 994,475 1000,500 988,525 990,550 994,575 993,600 994,625 981,650 993,675 997,700 994,725 991,750 995,775 994,800 992,825 994,850 989,875 989,900 997,925 989,950 998,975 985,1000 1000,984 986,989 971,990 957,988 943,987 929,986 914,994 900,997 886,1000 871,1000 857,977 843,989 829,982 814,986 800,987 786,998 771,984 757,990 743,987 729,999 714,988 700,992 686,998 671,998 657,997 643,989 629,998 614,983 600,992 586,973 571,994 557,994 543,986 529,990 514,988 500,999 486,983 471,988 457,997 443,998 429,987 414,997 400,985 386,993 371,984 357,999 343,1000 329,992 314,991 300,995 286,998 271,999 257,991 243,998 229,988 214,992 200,990 186,998 171,988 157,991 143,1000 129,993 114,999 100,999 86,997 71,993 57,990 43,984 29,996 14,985 0,996 8,1000 6,975 16,950 11,925 12,900 0,875 10,850 5,825 3,800 3,775 2,750 11,725 10,700 11,675 3,650 16,625 0,600 5,575 2,550 4,525 0,500 10,475 11,450 11,425 4,400 12,375 4,350 13,325 1,300 3,275 3,250 6,225 4,200 11,175 8,150 11,125 19,100 9,75 9,50 13,25 11,0%22 fill=%22%23000%22/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1000 1000%22 preserveAspectRatio=%22none%22%3E%3Cpolygon points=%220,5 14,1 29,1 43,13 57,6 71,3 86,8 100,1 114,11 129,11 143,9 157,9 171,10 186,8 200,11 214,8 229,10 243,2 257,2 271,9 286,12 300,8 314,12 329,22 343,9 357,4 371,0 386,15 400,2 414,23 429,8 443,12 457,5 471,2 486,3 500,14 514,5 529,10 543,24 557,11 571,5 586,16 600,3 614,8 629,1 643,12 657,4 671,2 686,7 700,1 714,12 729,13 743,19 757,14 771,4 786,11 800,5 814,14 829,11 843,7 857,0 871,10 886,13 900,5 914,3 929,13 943,9 957,9 971,11 986,11 1000,14 989,0 998,25 998,50 990,75 990,100 992,125 993,150 1000,175 992,200 989,225 990,250 997,275 996,300 993,325 995,350 989,375 995,400 989,425 989,450 994,475 1000,500 988,525 990,550 994,575 993,600 994,625 981,650 993,675 997,700 994,725 991,750 995,775 994,800 992,825 994,850 989,875 989,900 997,925 989,950 998,975 985,1000 1000,984 986,989 971,990 957,988 943,987 929,986 914,994 900,997 886,1000 871,1000 857,977 843,989 829,982 814,986 800,987 786,998 771,984 757,990 743,987 729,999 714,988 700,992 686,998 671,998 657,997 643,989 629,998 614,983 600,992 586,973 571,994 557,994 543,986 529,990 514,988 500,999 486,983 471,988 457,997 443,998 429,987 414,997 400,985 386,993 371,984 357,999 343,1000 329,992 314,991 300,995 286,998 271,999 257,991 243,998 229,988 214,992 200,990 186,998 171,988 157,991 143,1000 129,993 114,999 100,999 86,997 71,993 57,990 43,984 29,996 14,985 0,996 8,1000 6,975 16,950 11,925 12,900 0,875 10,850 5,825 3,800 3,775 2,750 11,725 10,700 11,675 3,650 16,625 0,600 5,575 2,550 4,525 0,500 10,475 11,450 11,425 4,400 12,375 4,350 13,325 1,300 3,275 3,250 6,225 4,200 11,175 8,150 11,125 19,100 9,75 9,50 13,25 11,0%22 fill=%22%23000%22/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
/* Morceaux de scotch sur deux coins */
.ahs-l-dechire .ahs-papier::before,
.ahs-l-dechire .ahs-papier::after {
	content: '';
	position: absolute;
	z-index: 2;
	width: 13%;
	min-width: 46px;
	height: 6.5%;
	min-height: 18px;
	background: rgba(214, 211, 204, .82);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	pointer-events: none;
}
.ahs-l-dechire .ahs-papier::before { top: 1%; left: -4%; transform: rotate(-16deg); }
.ahs-l-dechire .ahs-papier::after { bottom: 1%; right: -2.5%; transform: rotate(-24deg); }
.ahs-l-dechire .ahs-texte {
	right: 53%;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 0 4%;
}
.ahs-l-dechire .ahs-titre { max-width: 18ch; }
.ahs-l-dechire .ahs-sous { order: -1; margin: 0 0 .8em; font-style: normal; font-size: clamp(.8rem, 1.1cqw, 1rem); }

/* Flèches carrées et discrètes pour les 2 dispositions */
.ahs-l-arche .ahs-fleche,
.ahs-l-dechire .ahs-fleche {
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 0;
	background: #000;
	font-size: 18px;
	line-height: 30px;
	opacity: .9;
}
.ahs-l-arche .ahs-prec, .ahs-l-dechire .ahs-prec { left: 14px; }
.ahs-l-arche .ahs-suiv, .ahs-l-dechire .ahs-suiv { right: 14px; }

/* Téléphone */
@media (max-width: 767px) {
	/* Bouton plus compact sur téléphone (toutes dispositions) */
	.ahs .ahs-btn { padding: .7em 1.4em; font-size: .72rem; letter-spacing: .12em; margin-top: .9em; }
	/* Téléphone : voisines plus présentes qu'avant, l'arche s'ajuste */
	.ahs-l-arche { --cote: 22%; --ecart: 2.5%; --haut-arche: 30%; }
	.ahs-l-arche.ahs-v-discrete { --cote: 16%; }
	.ahs-l-arche.ahs-v-grande   { --cote: 26%; }
	.ahs-l-arche.ahs-v-tres-grande { --cote: 30%; }
	.ahs-l-arche .ahs-arche::before { inset: -8px -8px 0 -8px; }
	.ahs-l-arche .ahs-titre { font-size: clamp(1.3rem, 7.5cqw, 2.2rem); }

	.ahs-l-dechire .ahs-papier { left: 4%; right: 4%; top: 3%; bottom: 43%; }
	.ahs-l-dechire .ahs-texte { top: 57%; bottom: 34px; right: 0; padding: 0 6%; }
	.ahs-l-dechire .ahs-titre { font-size: clamp(1.2rem, 7cqw, 2rem); }
}

/* Arche : photo sans texte → l'arche remonte (pas de vide au-dessus) */
.ahs-l-arche .ahs-sans-texte .ahs-arche { top: 7%; }

/* =========================================================================
 * ARCHE FIXE : photo du milieu immobile, photos portrait des côtés qui tournent
 * ========================================================================= */
.ahs-arche-fixe .ahs-arche { z-index: 3; }
.ahs-arche-fixe > .ahs-scene > .ahs-texte { z-index: 4; }
.ahs-arche-fixe.ahs-fixe-sans-texte .ahs-arche { top: 7%; }

/* Photos des côtés (empilées, une seule visible) */
.ahs-diapo { position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 0; }
.ahs-diapo.is-active { opacity: 1; visibility: visible; z-index: 1; }
.ahs-diapo.is-next { opacity: 1; visibility: visible; z-index: 2; }
.ahs .ahs-diapo picture,
.ahs .ahs-diapo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	display: block;
	object-fit: cover;
	object-position: var(--fx, 50%) var(--fy, 50%);
}

/* La photo fixe « respire » : zoom très lent, aller-retour */
/* La photo fixe remplit toute l'arche, recadrée autour du point focal */
.ahs.ahs-arche-fixe .ahs-principale picture,
.ahs.ahs-arche-fixe .ahs-principale img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	display: block;
	object-fit: cover;
	object-position: var(--fx, 50%) var(--fy, 50%);
}
.ahs-arche-fixe.ahs-kb .ahs-principale img { animation: ahs-respire 22s ease-in-out infinite alternate; }
@keyframes ahs-respire { from { transform: scale(1); } to { transform: scale(1.07); } }

/* Apparition de l'arche au chargement */
.ahs-arche-fixe.ahs-avec-ouverture .ahs-arche { animation: ahs-arche-entree 1.2s cubic-bezier(.22, .61, .36, 1) .1s both; }
@keyframes ahs-arche-entree {
	from { opacity: 0; transform: translateX(-50%) translateY(5%); }
	to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.ahs-arche-fixe .ahs-principale img,
	.ahs-arche-fixe .ahs-arche { animation: none !important; }
}

/* Arche carrée : aussi large que haute, posée en bas (le titre garde sa place au-dessus) */
.ahs-l-arche.ahs-arche-carree .ahs-arche,
.ahs-l-arche.ahs-arche-carree .ahs-sans-texte .ahs-arche,
.ahs-arche-fixe.ahs-arche-carree.ahs-fixe-sans-texte .ahs-arche {
	top: auto;
	bottom: 0;
	height: auto;
	aspect-ratio: 1 / 1;
	max-height: 94%;
}

/* Style épuré (comme l'original) : photos décalées des bords, beaucoup de noir autour */
@media (max-width: 767px) {
	/* Téléphone épuré : marge noire franche autour des photos des côtés */
	.ahs-l-arche.ahs-epure { --bord: 4%; --cote: 25%; --ecart: 5%; }
}
/* Style épuré : titre plus discret */
.ahs-l-arche.ahs-epure .ahs-titre { font-size: clamp(1.15rem, 3cqw, 2.6rem); }

/* Sécurité : les thèmes et Elementor imposent souvent « img { height: auto } » */
.ahs .ahs-slide img, .ahs .ahs-diapo img, .ahs .ahs-principale img, .ahs .ahs-copie { height: 100% !important; max-width: none !important; }

/* Style épuré : proportions relevées sur le slider d'origine */
.ahs-l-arche.ahs-epure { --bord: 12%; --cote: 21.6%; --ecart: 5.6%; }
@media (max-width: 767px) {
	/* Téléphone épuré : les côtés ne touchent jamais les bords */
	.ahs-l-arche.ahs-epure { --bord: 4%; --cote: 25%; --ecart: 5%; }
}
@media (max-width: 767px) {
	/* Bandeau épuré sur téléphone : textes discrets pour ne pas couvrir l'arche */
	.ahs-l-arche.ahs-epure .ahs-sous { font-size: .7rem; margin-bottom: .3em; }
	.ahs-l-arche.ahs-epure .ahs-titre { font-size: clamp(.9rem, 4.5cqw, 1.3rem); }
	.ahs-l-arche.ahs-epure .ahs-texte:not(.ahs-libre) { padding-top: 2.5%; }
}

/* Papier déchiré : photo sans texte → la photo prend toute la place (pas de moitié vide) */
.ahs-l-dechire .ahs-sans-texte .ahs-papier { left: 4%; right: 4%; top: 4%; bottom: 4%; }
@media (max-width: 767px) {
	.ahs-l-dechire .ahs-sans-texte .ahs-papier { left: 5%; right: 5%; top: 4%; bottom: 9%; }
}

/* Plein cadre sur téléphone : texte compact, collé à gauche (ou à droite), sans manger les personnes */
@media (max-width: 767px) {
	.ahs-l-plein .ahs-texte.ahs-libre { max-width: 50%; }
	.ahs-l-plein .ahs-texte.ahs-libre.ahs-h-g { left: min(var(--tx), 7%); }
	.ahs-l-plein .ahs-texte.ahs-libre.ahs-h-d { right: min(calc(100% - var(--tx)), 7%); }
	.ahs-l-plein .ahs-titre { letter-spacing: .03em; line-height: 1.08; font-size: clamp(1rem, 5.2cqw, 1.6rem); }
	.ahs-l-plein .ahs-sous { font-size: .78rem; margin-top: .45em; }
}

/* Téléphone tourné en paysage : écran bas → texte dimensionné sur la hauteur, pas sur la largeur */
@media (orientation: landscape) and (max-height: 520px) {
	.ahs .ahs-titre { font-size: clamp(1rem, 7.5vh, 1.9rem); max-width: 18ch; }
	.ahs .ahs-sous { font-size: clamp(.75rem, 4vh, 1rem); margin-top: .4em; }
	.ahs .ahs-btn { margin-top: .7em; padding: .6em 1.4em; font-size: .7rem; }
	.ahs-texte { padding: 4vh 5%; padding-bottom: calc(4vh + 26px); }
	.ahs-texte.ahs-libre { max-width: 45%; padding: 0; }
	.ahs-l-arche.ahs-epure .ahs-titre { font-size: clamp(.9rem, 6vh, 1.5rem); }
}

/* =========================================================================
 * PAPIER DÉCHIRÉ — comme l'original :
 *  - une photo sur deux passe à gauche (texte à droite), en alternance
 *  - sur téléphone : photo et texte restent CÔTE À CÔTE (plus d'empilement)
 * ========================================================================= */
.ahs-l-dechire .ahs-inverse .ahs-papier { left: 2.5%; right: 47%; }
.ahs-l-dechire .ahs-inverse .ahs-texte { left: 53%; right: 0; }
.ahs-l-dechire .ahs-inverse .ahs-papier::before { left: auto; right: -4%; transform: rotate(16deg); }
.ahs-l-dechire .ahs-inverse .ahs-papier::after { right: auto; left: -2.5%; transform: rotate(24deg); }

@media (max-width: 767px) {
	.ahs-l-dechire .ahs-papier { left: 50%; right: 2.5%; top: 6%; bottom: 6%; }
	.ahs-l-dechire .ahs-texte { top: 0; bottom: 0; left: 0; right: 50%; padding: 0 3%; }
	.ahs-l-dechire .ahs-inverse .ahs-papier { left: 2.5%; right: 50%; }
	.ahs-l-dechire .ahs-inverse .ahs-texte { left: 50%; right: 0; }
	.ahs-l-dechire .ahs-titre { font-size: clamp(.78rem, 4.6cqw, 1.3rem); letter-spacing: .06em; line-height: 1.15; max-width: none; }
	.ahs-l-dechire .ahs-sous { font-size: .62rem; margin-bottom: .4em; }
	.ahs-l-dechire .ahs-btn { margin-top: .7em; padding: .5em .9em; font-size: .55rem; letter-spacing: .08em; }
	.ahs-l-dechire .ahs-papier::before,
	.ahs-l-dechire .ahs-papier::after { min-width: 30px; min-height: 10px; }
	/* Photo sans texte : toute la largeur */
	.ahs-l-dechire .ahs-sans-texte .ahs-papier { left: 5%; right: 5%; top: 5%; bottom: 9%; }
}
.ahs-l-dechire .ahs-slide.ahs-sans-texte .ahs-papier { left: 4%; right: 4%; }
@media (max-width: 767px) { .ahs-l-dechire .ahs-slide.ahs-sans-texte .ahs-papier { left: 5%; right: 5%; } }

/* Papier déchiré sur téléphone : photo un peu plus grande (moins rognée) */
@media (max-width: 767px) {
	.ahs-l-dechire .ahs-papier { left: 46%; right: 2.5%; top: 5%; bottom: 5%; }
	.ahs-l-dechire .ahs-texte { right: 54%; }
	.ahs-l-dechire .ahs-inverse .ahs-papier { left: 2.5%; right: 46%; }
	.ahs-l-dechire .ahs-inverse .ahs-texte { left: 54%; right: 0; }
	.ahs-l-dechire .ahs-slide.ahs-sans-texte .ahs-papier { left: 5%; right: 5%; top: 5%; bottom: 9%; }
}

/* Bord à bord : le slider sort de son conteneur et occupe toute la largeur de l'écran.
 * --ahs-sb = largeur de la barre de défilement (calculée par le script) pour éviter tout débordement. */
.ahs.ahs-bord {
	width: calc(100vw - var(--ahs-sb, 0px)) !important;
	max-width: none !important;
	margin-left: calc(50% - (100vw - var(--ahs-sb, 0px)) / 2) !important;
	margin-right: 0 !important;
}

/* =========================================================================
 * 1.5.3 — FINITION PREMIUM (assortie au reste du site : crème / doré)
 * ========================================================================= */
/* Fond : léger halo au centre plutôt qu'un aplat */
.ahs.ahs-l-arche { background: radial-gradient(ellipse 70% 80% at 50% 45%, #202125 0%, #161617 55%, #121212 100%); }
/* Contour de l'arche : filet doré au lieu du blanc */
.ahs-l-arche .ahs-arche::before { border-color: rgba(214, 189, 138, .6); }
/* Photos voisines : coins adoucis, ombre douce et fin cadre doré décalé (même esprit que l'arche) */
.ahs-l-arche .ahs-gauche,
.ahs-l-arche .ahs-droite {
	border-radius: 14px;
	outline: 1px solid rgba(214, 189, 138, .28);
	outline-offset: 7px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.ahs-l-arche .ahs-gauche img,
.ahs-l-arche .ahs-droite img { filter: brightness(.8) saturate(.95); }
/* Flèches : ronds dorés (comme le carrousel d'avis) */
.ahs.ahs-l-arche .ahs-fleche,
.ahs.ahs-l-dechire .ahs-fleche {
	width: 46px;
	height: 46px;
	border: 1px solid rgba(214, 189, 138, .55);
	border-radius: 50%;
	background: rgba(18, 18, 18, .55);
	color: #d6bd8a;
	font-size: 22px;
	line-height: 42px;
	opacity: 1;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.ahs.ahs-l-arche .ahs-fleche:hover,
.ahs.ahs-l-dechire .ahs-fleche:hover { background: #d6bd8a; border-color: #d6bd8a; color: #141414; }
.ahs-l-arche .ahs-prec, .ahs-l-dechire .ahs-prec { left: 22px; }
.ahs-l-arche .ahs-suiv, .ahs-l-dechire .ahs-suiv { right: 22px; }
/* Indicateurs : piste plus discrète, progression dorée */
.ahs-point i { background: rgba(243, 239, 230, .22); }
/* Bouton des dispositions arche : doré */
.ahs-l-arche .ahs-btn { background: linear-gradient(135deg, #cfae6f, #b08d4f); border-color: transparent; color: #fff; }
.ahs-l-arche .ahs-btn:hover { background: linear-gradient(135deg, #c4a265, #9d7c42); color: #fff; }
@media (max-width: 767px) {
	.ahs-l-arche .ahs-gauche,
	.ahs-l-arche .ahs-droite { border-radius: 10px; outline-offset: 4px; }
}

/* =========================================================================
 * 1.5.4 — Titres « papier déchiré » au style du site :
 *    titre crème, accroche dorée en italique SOUS le titre, double filet
 * ========================================================================= */
.ahs-l-dechire .ahs-titre { color: #f3efe6; letter-spacing: .05em; text-shadow: none; }
.ahs-l-dechire .ahs-sous {
	order: 0;
	margin: .5em 0 0;
	font-style: italic;
	font-weight: 500;
	font-size: clamp(1rem, 2.1cqw, 1.6rem);
	letter-spacing: 0;
	color: #d6bd8a;
}
.ahs-l-dechire .ahs-sous::after {
	content: "";
	display: block;
	width: 100px;
	height: 4px;
	margin: 18px auto 0;
	border-top: 1px solid #757b66;
	border-bottom: 1px solid #757b66;
}
@media (max-width: 767px) {
	.ahs-l-dechire .ahs-sous { font-size: clamp(.9rem, 4.2cqw, 1.15rem); }
	.ahs-l-dechire .ahs-sous::after { width: 70px; margin-top: 12px; }
}

/* =========================================================================
 * 1.5.5 — Même style de titres pour TOUTES les dispositions (plein, arche) :
 *    titre crème, accroche dorée en italique sous le titre, double filet
 * ========================================================================= */
.ahs .ahs-titre { color: #f3efe6; }
.ahs-l-plein .ahs-sous,
.ahs-l-arche .ahs-sous {
	order: 0;
	margin: .5em 0 0;
	font-style: italic;
	font-weight: 500;
	font-size: clamp(1rem, 2.1cqw, 1.6rem);
	letter-spacing: 0;
	color: #d6bd8a;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.ahs-l-plein .ahs-sous::after,
.ahs-l-arche .ahs-sous::after {
	content: "";
	display: block;
	width: 100px;
	height: 4px;
	margin: 16px 0 0;
	border-top: 1px solid #d6bd8a;
	border-bottom: 1px solid #d6bd8a;
	opacity: .55;
}
.ahs-pos-bas-centre .ahs-sous::after,
.ahs-pos-centre .ahs-sous::after,
.ahs-l-arche .ahs-sous::after { margin-left: auto; margin-right: auto; }
@media (max-width: 767px) {
	.ahs-l-plein .ahs-sous, .ahs-l-arche .ahs-sous { font-size: clamp(.9rem, 4.2cqw, 1.15rem); }
	.ahs-l-plein .ahs-sous::after, .ahs-l-arche .ahs-sous::after { width: 70px; margin-top: 10px; }
}
