/* =========================================================================
 * AZE Médaillons : carrousel de médaillons ovales
 * Les tailles sont relatives à la largeur du carrousel (unités cqw).
 * ========================================================================= */
.amd {
	--amd-or: #757b66;          /* lignes décoratives (même teinte que les titres du thème) */
	--amd-liseré: rgba(255, 255, 255, .35);
	--amd-duree: .9s;
	--amd-courbe: cubic-bezier(.65, 0, .35, 1);
	/* Ordinateur : médaillon central / médaillons des côtés */
	--amd-c-l: 25%;   --amd-c-h: 37cqw;
	--amd-s-l: 18%;   --amd-s-h: 26.6cqw;
	--amd-ecart: 31%; /* distance centre → médaillon voisin */
	--amd-texte: 170px;
	container-type: inline-size;
	max-width: 1500px;
	margin: 0 auto;
	color: #999;
	text-align: center;
}

/* ---------- En-tête : titre de section + introduction ---------- */
.amd .amd-entete { max-width: 980px; margin: 0 auto 2.5rem; padding: 0 5%; }
.amd .amd-titre-section {
	position: relative;
	font-family: "Cormorant Garamond", serif;
	font-weight: 600;
	font-style: normal;
	line-height: 1.1;
	margin: 0 0 24px;
	padding: 0 0 22px;
}
/* Grand titre : même style que les pages de tarifs */
.amd .amd-l1 { display: block; font-size: 40px; text-transform: uppercase; letter-spacing: .04em; color: #f3efe6; }
/* Accroche : italique doré */
.amd .amd-l2 { display: block; margin-top: 10px; font-size: 22px; font-style: italic; font-weight: 500; text-transform: none; letter-spacing: 0; line-height: 1.3; color: #d6bd8a; }
/* Double ligne sous le titre */
.amd .amd-titre-section::before,
.amd .amd-titre-section::after {
	content: "" !important;
	position: absolute !important;
	left: 0 !important; right: 0 !important;
	width: 100px !important; height: 1px !important;
	margin: 0 auto !important;
	background: var(--amd-or) !important;
	border: 0 !important;
	transform: none !important;
}
.amd .amd-titre-section::before { top: auto !important; bottom: 0 !important; }
.amd .amd-titre-section::after  { top: auto !important; bottom: 5px !important; }
.amd .amd-intro {
	max-width: 680px;
	margin: 0 auto;
	font-style: normal;
	font-size: 16px;
	line-height: 1.7;
	color: #a7a296;
}

/* ---------- Scène ---------- */
.amd .amd-scene {
	position: relative;
	height: calc(var(--amd-c-h) + var(--amd-texte));
	overflow: hidden;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}

/* Un médaillon (lien complet : photo + étiquette + titre) */
.amd .amd-item {
	position: absolute;
	top: 0;
	left: 50%;
	width: var(--amd-s-l);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none !important;
	color: inherit;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-50%);
	transition: left var(--amd-duree) var(--amd-courbe), width var(--amd-duree) var(--amd-courbe),
		margin-top var(--amd-duree) var(--amd-courbe), opacity var(--amd-duree) var(--amd-courbe);
	-webkit-tap-highlight-color: transparent;
}
/* Positions : -2 / -1 / 0 / +1 / +2 */
.amd .amd-item.p-0  { left: 50%; width: var(--amd-c-l); opacity: 1; pointer-events: auto; z-index: 3; }
.amd .amd-item.p-m1 { left: calc(50% - var(--amd-ecart)); margin-top: calc((var(--amd-c-h) - var(--amd-s-h)) / 2); opacity: 1; pointer-events: auto; z-index: 2; }
.amd .amd-item.p-p1 { left: calc(50% + var(--amd-ecart)); margin-top: calc((var(--amd-c-h) - var(--amd-s-h)) / 2); opacity: 1; pointer-events: auto; z-index: 2; }
.amd .amd-item.p-m2 { left: calc(50% - var(--amd-ecart) * 2); margin-top: calc((var(--amd-c-h) - var(--amd-s-h)) / 2); }
.amd .amd-item.p-p2 { left: calc(50% + var(--amd-ecart) * 2); margin-top: calc((var(--amd-c-h) - var(--amd-s-h)) / 2); }

/* Cadre ovale avec liseré fin, photo à l'intérieur */
.amd .amd-cadre {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 2.95;
	padding: 3.5%;
	border: 1px solid var(--amd-liseré);
	border-radius: 50%;
	box-sizing: border-box;
	transition: border-radius var(--amd-duree) var(--amd-courbe), border-color .4s;
}
.amd .amd-item.p-0 .amd-cadre { border-radius: 999px; } /* central : forme « gélule » */
.amd .amd-photo {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: inherit;
	transition: transform 1.2s var(--amd-courbe), filter .5s;
}
.amd .amd-item.p-0:hover .amd-photo { transform: scale(1.03); }
.amd .amd-item:not(.p-0) .amd-photo { filter: brightness(.85); }

/* Petit trait vertical + textes */
.amd .amd-trait { display: block; width: 1px; height: 50px; margin: 18px auto 16px; background: var(--amd-liseré); }
.amd .amd-etiquette {
	display: block;
	font-family: Mulish, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #999;
	line-height: 1.4;
}
.amd .amd-nom {
	font-family: "Cormorant Garamond", serif;
	font-size: 28px;
	font-weight: 600;
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0;
	line-height: 1.2;
	color: #fff;
	margin: 6px 0 0;
	padding: 0;
	white-space: nowrap;
}
.amd .amd-nom::before, .amd .amd-nom::after { display: none !important; }

/* ---------- Points de navigation ---------- */
.amd .amd-points { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 10px; }
.amd .amd-point {
	width: 34px; height: 34px;
	padding: 0; margin: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: none !important;
	display: grid; place-items: center;
	cursor: pointer;
	transition: border-color .3s;
}
.amd .amd-point i { width: 6px; height: 6px; transform: rotate(45deg); background: #777; transition: background .3s; }
.amd .amd-point.is-on { border-color: #fff; }
.amd .amd-point.is-on i { background: #fff; }
.amd .amd-point:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }

/* ---------- Bouton ---------- */
.amd .amd-pied { margin-top: 2rem; }
.amd .amd-bouton {
	display: inline-block;
	padding: .85em 2em;
	border: 1px solid rgba(255, 255, 255, .6);
	color: #fff !important;
	font-family: Mulish, "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background .3s, color .3s;
}
.amd .amd-bouton:hover { background: #fff; color: #111 !important; }

/* ---------- Téléphone : un grand médaillon au centre, les voisins dépassent sur les bords ---------- */
@media (max-width: 767px) {
	.amd {
		--amd-c-l: 60%;  --amd-c-h: 88.5cqw;
		--amd-s-l: 40%;  --amd-s-h: 59cqw;
		--amd-ecart: 58%;
		--amd-texte: 150px;
	}
	.amd .amd-entete { margin-bottom: 1.8rem; }
	.amd .amd-l1 { font-size: 32px; }
	.amd .amd-l2 { font-size: 20px; }
	.amd .amd-item.p-m1, .amd .amd-item.p-p1 { opacity: .45; }
	.amd .amd-item:not(.p-0) .amd-trait,
	.amd .amd-item:not(.p-0) .amd-etiquette,
	.amd .amd-item:not(.p-0) .amd-nom { visibility: hidden; }
	.amd .amd-trait { height: 34px; margin: 14px auto 12px; }
	.amd .amd-etiquette { font-size: 12px; }
	.amd .amd-nom { font-size: 22px; }
	.amd .amd-points { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.amd { --amd-duree: .01s; }
}

/* =========================================================================
 * STYLE « RECTANGLES » : grandes photos côte à côte, la centrale en gélule
 * ========================================================================= */
.amd.amd-s-rect {
	--amd-c-l: 29%;  --amd-c-h: 42.8cqw;
	--amd-s-l: 29%;  --amd-s-h: 42.8cqw;
	--amd-ecart: 31%;
	--amd-texte: 120px;
}
.amd.amd-s-rect .amd-item.p-m2,
.amd.amd-s-rect .amd-item.p-p2 { opacity: 1; }           /* la photo suivante dépasse sur le bord */
.amd.amd-s-rect .amd-item:not(.p-0) .amd-cadre { border-radius: 0; border-color: transparent; padding: 0; }
.amd.amd-s-rect .amd-item:not(.p-0) .amd-photo { filter: none; }
.amd.amd-s-rect .amd-item:not(.p-0) .amd-trait,
.amd.amd-s-rect .amd-item:not(.p-0) .amd-etiquette,
.amd.amd-s-rect .amd-item:not(.p-0) .amd-nom { visibility: hidden; }
.amd.amd-s-rect .amd-cadre { transition: border-radius var(--amd-duree) var(--amd-courbe), padding var(--amd-duree) var(--amd-courbe), border-color .4s; }
.amd.amd-s-rect .amd-trait { height: 0; margin: 14px auto 0; }

@media (max-width: 767px) {
	.amd.amd-s-rect {
		--amd-c-l: 64%;  --amd-c-h: 94.4cqw;
		--amd-s-l: 64%;  --amd-s-h: 94.4cqw;
		--amd-ecart: 68%;
		--amd-texte: 110px;
	}
	.amd.amd-s-rect .amd-item.p-m1,
	.amd.amd-s-rect .amd-item.p-p1 { opacity: .6; }
}

/* =========================================================================
 * TÉLÉPHONE (comme l'original) : un seul grand médaillon en gélule,
 * les voisins restent hors de l'écran et glissent à chaque changement
 * ========================================================================= */
@media (max-width: 767px) {
	.amd.amd-s-ovales,
	.amd.amd-s-rect {
		--amd-c-l: 80%;  --amd-c-h: 118cqw;
		--amd-s-l: 80%;  --amd-s-h: 118cqw;
		--amd-ecart: 90%;
		--amd-texte: 120px;
	}
	.amd .amd-item.p-m1, .amd .amd-item.p-p1 { opacity: 1; }
	.amd .amd-item:not(.p-0) .amd-photo { filter: none; }
	.amd.amd-s-ovales .amd-item:not(.p-0) .amd-cadre { border-radius: 999px; }
	.amd .amd-cadre { padding: 3%; }
	.amd .amd-trait { height: 0; margin: 12px auto 0; }
	.amd .amd-nom { font-size: 20px; }
}

/* Téléphone : le bord des galeries voisines dépasse de chaque côté
 * (invite à faire glisser vers la gauche ou la droite) */
@media (max-width: 767px) {
	.amd.amd-s-ovales,
	.amd.amd-s-rect {
		--amd-c-l: 72%;  --amd-c-h: 106.2cqw;
		--amd-s-l: 72%;  --amd-s-h: 106.2cqw;
		--amd-ecart: 77%;
	}
	.amd .amd-item.p-m1, .amd .amd-item.p-p1 { opacity: .55; }
	.amd .amd-item:not(.p-0) .amd-trait,
	.amd .amd-item:not(.p-0) .amd-etiquette,
	.amd .amd-item:not(.p-0) .amd-nom { visibility: hidden; }
}

/* =========================================================================
 * TÉLÉPHONE, effet de l'original : les voisins sont de fines tranches sur
 * les bords. Au changement, le médaillon central se resserre vers un bord
 * pendant que le suivant s'ouvre depuis l'autre (effet « accordéon »).
 * ========================================================================= */
@media (max-width: 767px) {
	.amd.amd-s-ovales,
	.amd.amd-s-rect {
		--amd-c-l: 74%;  --amd-c-h: 109cqw;
		--amd-s-l: 7%;   --amd-s-h: 109cqw;
		--amd-ecart: 46%;
	}
	/* Hauteur fixe : seule la largeur change pendant la transition */
	.amd .amd-cadre { aspect-ratio: auto; height: var(--amd-c-h); }
	.amd .amd-item { margin-top: 0 !important; }
	.amd .amd-item.p-m1, .amd .amd-item.p-p1 { opacity: .7; }
	.amd .amd-item.p-m2 { left: -4%; width: 0; }
	.amd .amd-item.p-p2 { left: 104%; width: 0; }
	.amd.amd-s-rect .amd-item:not(.p-0) .amd-cadre { border-radius: 0; }
	.amd .amd-cadre { padding: 2.5%; }
	.amd .amd-item:not(.p-0) .amd-cadre { padding: 0; border-color: transparent; }

	/* Petit trait vertical sous le médaillon (style Ovales) */
	.amd.amd-s-ovales .amd-trait { height: 34px; margin: 12px auto 12px; }
}

/* Téléphone : titre de section au même gabarit que le H1 de l'accueil, plus d'air au-dessus */
@media (max-width: 767px) {
	.amd { padding-top: 2.5rem; }
	.amd .amd-l1 { font-size: 28px; }
	.amd .amd-l2 { font-size: 18px; }
	.amd .amd-intro { font-size: 15px; }
	.amd .amd-entete { padding: 0 16px; }
}

/* Sans titre ni introduction : moins d'espace au-dessus des médaillons */
.amd:not(:has(.amd-entete)) { padding-top: 1.5rem; }

/* =========================================================================
 * Hauteur fiable dans Elementor : la hauteur de la scène est calculée en
 * pourcentage de sa largeur (padding), pas en unités de conteneur, pour
 * qu'Elementor réserve toujours la bonne place (plus de débordement).
 * ========================================================================= */
.amd .amd-scene {
	height: auto !important;
	box-sizing: content-box;
	padding-top: calc(var(--amd-c-l) * 1.475);
	padding-bottom: var(--amd-texte);
}
.amd .amd-item { top: 0; }
.amd .amd-cadre { height: auto; }
@media (max-width: 767px) {
	.amd .amd-cadre { height: var(--amd-c-h); }
}
.elementor-widget-shortcode:has(.amd) { flex-shrink: 0 !important; width: 100%; }

/* Textes : jamais coupés sur plusieurs lignes, ils apparaissent une fois
 * le médaillon ouvert et disparaissent aussitôt quand il se referme */
@media (max-width: 767px) { .amd .amd-etiquette, .amd .amd-nom { white-space: nowrap; } }
.amd .amd-etiquette, .amd .amd-nom { overflow-wrap: normal; word-break: normal; hyphens: none; }
.amd .amd-item .amd-trait,
.amd .amd-item .amd-etiquette,
.amd .amd-item .amd-nom {
	transition: opacity .45s ease calc(var(--amd-duree) * .75), visibility 0s linear calc(var(--amd-duree) * .75);
}
@media (max-width: 767px) {
	.amd .amd-item:not(.p-0) .amd-trait,
	.amd .amd-item:not(.p-0) .amd-etiquette,
	.amd .amd-item:not(.p-0) .amd-nom { opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s linear .15s; }
}
.amd.amd-s-rect .amd-item:not(.p-0) .amd-trait,
.amd.amd-s-rect .amd-item:not(.p-0) .amd-etiquette,
.amd.amd-s-rect .amd-item:not(.p-0) .amd-nom { opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s linear .15s; }

/* =========================================================================
 * MODE « PHOTOS SEULES » : pas d'étiquette, de titre ni de trait
 * → la scène ne réserve plus de place pour les textes
 * ========================================================================= */
.amd.amd-mode-photos { --amd-texte: 24px; }
.amd.amd-mode-photos .amd-item.p-0 { cursor: zoom-in; }
@media (max-width: 767px) {
	.amd.amd-mode-photos { --amd-texte: 20px; }
}

/* =========================================================================
 * VISIONNEUSE PLEIN ÉCRAN
 * ========================================================================= */
html.amd-vis-bloque, html.amd-vis-bloque body { overflow: hidden !important; }

.amd-vis {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(8, 8, 8, .97);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility 0s linear .35s;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}
.amd-vis.is-ouvert { opacity: 1; visibility: visible; transition: opacity .35s ease; }

.amd-vis .amd-vis-cadre {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.amd-vis .amd-vis-img {
	display: block;
	max-width: min(92vw, 1600px) !important;
	max-height: 86vh !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
	opacity: 0;
	transform: scale(.985);
	transition: opacity .45s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
}
.amd-vis .amd-vis-img.is-pret { opacity: 1; transform: none; }

/* Boutons fins (style du site), sans dépendre du thème */
.amd-vis .amd-vis-btn {
	position: absolute;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .35) !important;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, .25) !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: border-color .3s, background .3s;
}
.amd-vis .amd-vis-btn:hover,
.amd-vis .amd-vis-btn:focus-visible { border-color: #fff !important; background: rgba(255, 255, 255, .08) !important; outline: none; }
.amd-vis .amd-vis-btn::before,
.amd-vis .amd-vis-btn::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; }

/* Croix */
.amd-vis .amd-vis-fermer { top: 22px; right: 22px; }
.amd-vis .amd-vis-fermer::before,
.amd-vis .amd-vis-fermer::after { width: 20px; height: 1px; margin: 0 0 0 -10px; transform: rotate(45deg); }
.amd-vis .amd-vis-fermer::after { transform: rotate(-45deg); }

/* Flèches (chevrons) */
.amd-vis .amd-vis-prec { left: 26px; top: 50%; margin-top: -26px; }
.amd-vis .amd-vis-suiv { right: 26px; top: 50%; margin-top: -26px; }
.amd-vis .amd-vis-prec::before,
.amd-vis .amd-vis-suiv::before {
	width: 12px; height: 12px;
	background: none;
	border-left: 1px solid #fff;
	border-bottom: 1px solid #fff;
	margin: -6px 0 0 -3px;
	transform: rotate(45deg);
}
.amd-vis .amd-vis-suiv::before { margin-left: -9px; transform: rotate(-135deg); }
.amd-vis .amd-vis-prec::after,
.amd-vis .amd-vis-suiv::after { display: none; }
.amd-vis.is-seule .amd-vis-prec,
.amd-vis.is-seule .amd-vis-suiv,
.amd-vis.is-seule .amd-vis-compteur { display: none; }

/* Compteur 3 / 12 */
.amd-vis .amd-vis-compteur {
	position: absolute;
	left: 0; right: 0; bottom: 22px;
	text-align: center;
	font-family: Mulish, "Helvetica Neue", Arial, sans-serif;
	font-size: 12px;
	letter-spacing: 3px;
	color: rgba(255, 255, 255, .7);
}

/* Téléphone : photo en grand, flèches discrètes en bas, on glisse au doigt */
@media (max-width: 767px) {
	.amd-vis .amd-vis-img { max-width: 100vw !important; max-height: 78vh !important; box-shadow: none; }
	.amd-vis .amd-vis-btn { width: 44px; height: 44px; }
	.amd-vis .amd-vis-fermer { top: 14px; right: 14px; }
	.amd-vis .amd-vis-prec,
	.amd-vis .amd-vis-suiv { top: auto; bottom: 14px; margin-top: 0; }
	.amd-vis .amd-vis-prec { left: 18px; }
	.amd-vis .amd-vis-suiv { right: 18px; }
	.amd-vis .amd-vis-compteur { bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.amd-vis, .amd-vis .amd-vis-img { transition: none; }
}

/* =========================================================================
 * MODE « PHOTOS SEULES » : design distinct des liens de galeries
 * Tirages d'exposition : cadre rectangulaire, passe-partout, liseré doré,
 * petite icône « agrandir » → on comprend que ça s'ouvre, pas que ça mène ailleurs
 * ========================================================================= */
.amd.amd-mode-photos {
	--amd-cadre-or: rgba(201, 185, 143, .55);   /* doré du site (#c9b98f) */
}
.amd.amd-mode-photos .amd-cadre,
.amd.amd-mode-photos .amd-item.p-0 .amd-cadre,
.amd.amd-mode-photos .amd-item:not(.p-0) .amd-cadre {
	position: relative;
	aspect-ratio: 2 / 2.95;
	border-radius: 0 !important;
	border: 1px solid var(--amd-cadre-or) !important;
	padding: 5% !important;                     /* passe-partout */
	background: rgba(255, 255, 255, .025);
}
.amd.amd-mode-photos .amd-photo { border-radius: 0 !important; }

/* Second liseré intérieur, très fin, qui suit exactement la photo */
.amd.amd-mode-photos .amd-item.p-0 .amd-photo { outline: 1px solid rgba(201, 185, 143, .22); outline-offset: 5px; }

/* Voisins : plus discrets */
.amd.amd-mode-photos .amd-item:not(.p-0) .amd-cadre { opacity: .55; transition: opacity .6s; }
.amd.amd-mode-photos .amd-item:not(.p-0):hover .amd-cadre { opacity: .85; }

/* Icône « agrandir » (4 coins) sur la photo centrale */
.amd.amd-mode-photos .amd-cadre::after {
	content: "";
	position: absolute;
	right: calc(5% + 12px);
	bottom: calc(5% + 12px);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background:
		linear-gradient(#fff, #fff) 9px 9px / 6px 1px no-repeat,
		linear-gradient(#fff, #fff) 9px 9px / 1px 6px no-repeat,
		linear-gradient(#fff, #fff) 19px 9px / 6px 1px no-repeat,
		linear-gradient(#fff, #fff) 24px 9px / 1px 6px no-repeat,
		linear-gradient(#fff, #fff) 9px 24px / 6px 1px no-repeat,
		linear-gradient(#fff, #fff) 9px 19px / 1px 6px no-repeat,
		linear-gradient(#fff, #fff) 19px 24px / 6px 1px no-repeat,
		linear-gradient(#fff, #fff) 24px 19px / 1px 6px no-repeat,
		rgba(0, 0, 0, .45);
	border: 1px solid rgba(255, 255, 255, .45);
	opacity: 0;
	transform: scale(.85);
	transition: opacity .4s, transform .4s;
	pointer-events: none;
}
.amd.amd-mode-photos .amd-item.p-0 .amd-cadre::after { opacity: .75; transform: none; transition-delay: calc(var(--amd-duree) * .6); }
.amd.amd-mode-photos .amd-item.p-0:hover .amd-cadre::after { opacity: 1; }
.amd.amd-mode-photos .amd-item.p-0:hover .amd-photo { transform: scale(1.02); }

/* Téléphone : l'effet accordéon reste, en rectangles */
@media (max-width: 767px) {
	.amd.amd-mode-photos .amd-cadre,
	.amd.amd-mode-photos .amd-item.p-0 .amd-cadre { aspect-ratio: auto; height: var(--amd-c-h); padding: 4% !important; }
	.amd.amd-mode-photos .amd-item:not(.p-0) .amd-cadre { padding: 0 !important; border-color: transparent !important; background: none; }
	.amd.amd-mode-photos .amd-item.p-0 .amd-photo { outline-offset: 4px; }
	.amd.amd-mode-photos .amd-cadre::after { right: calc(4% + 10px); bottom: calc(4% + 10px); }
}

/* Icône « agrandir » centrée sur la photo
 * Ordinateur : apparaît au survol. Téléphone (pas de survol) : visible
 * quelques secondes à l'ouverture du médaillon, puis s'efface. */
.amd.amd-mode-photos .amd-cadre::after,
.amd.amd-mode-photos .amd-item.p-0 .amd-cadre::after {
	left: 50%;
	top: 50%;
	right: auto;
	bottom: auto;
	margin: -17px 0 0 -17px;
	opacity: 0;
	transform: scale(.8);
	transition: opacity .35s, transform .35s;
	transition-delay: 0s;
}
.amd.amd-mode-photos .amd-item.p-0:hover .amd-cadre::after,
.amd.amd-mode-photos .amd-item.p-0:focus-visible .amd-cadre::after { opacity: 1; transform: none; }

@media (hover: none) {
	.amd.amd-mode-photos .amd-item.p-0 .amd-cadre::after {
		animation: amd-loupe 2.6s ease calc(var(--amd-duree) * .8) both;
	}
}
@keyframes amd-loupe {
	0%   { opacity: 0; transform: scale(.8); }
	20%  { opacity: .9; transform: none; }
	75%  { opacity: .9; transform: none; }
	100% { opacity: 0; transform: none; }
}

/* Photo toujours ENTIÈRE dans le cadre (macarons de récompense jamais coupés).
 * Le passe-partout sombre absorbe la différence de format, comme un tirage encadré. */
.amd.amd-mode-photos .amd-photo {
	object-fit: contain !important;
	background: #121212;
}
/* Le liseré intérieur suit la zone du cadre (la photo peut être plus petite que la zone) */
.amd.amd-mode-photos .amd-item.p-0 .amd-photo { outline-color: transparent; }
.amd.amd-mode-photos .amd-item.p-0 .amd-cadre { box-shadow: inset 0 0 0 6px rgba(0,0,0,0), inset 0 0 0 7px rgba(201, 185, 143, .2); }

/* =========================================================================
 * 1.5.5 — Finitions premium (même univers que les pages de tarifs)
 * ========================================================================= */
.amd {
	--amd-liseré: rgba(214, 189, 138, .28);   /* liseré doré discret */
	--amd-dore: #d6bd8a;
}
/* Médaillon central : liseré doré plus présent + halo très doux */
.amd .amd-item.p-0 .amd-cadre {
	border-color: rgba(214, 189, 138, .65);
	box-shadow: 0 0 0 1px rgba(214, 189, 138, .08), 0 18px 50px rgba(0, 0, 0, .45), 0 0 46px rgba(196, 162, 101, .14);
}
.amd .amd-cadre { transition: border-radius var(--amd-duree) var(--amd-courbe), border-color .5s, box-shadow .6s; }
@media (hover: hover) {
	.amd .amd-item.p-0:hover .amd-cadre { border-color: rgba(214, 189, 138, .9); box-shadow: 0 0 0 1px rgba(214, 189, 138, .12), 0 22px 60px rgba(0, 0, 0, .5), 0 0 60px rgba(196, 162, 101, .22); }
	.amd .amd-item.p-0:hover .amd-nom { color: var(--amd-dore); }
}
/* Médaillons des côtés : un peu plus en retrait pour faire ressortir le central */
.amd .amd-item:not(.p-0) .amd-photo { filter: brightness(.72) saturate(.9); }

/* Trait vertical : filet doré qui s'efface */
.amd .amd-trait { background: linear-gradient(180deg, rgba(214, 189, 138, .75), rgba(214, 189, 138, 0)); }

/* Étiquette : petites majuscules dorées espacées (comme les rubans des tarifs) */
.amd .amd-etiquette {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 2px;
	color: var(--amd-dore);
}
/* Nom de la galerie : crème, légèrement espacé */
.amd .amd-nom {
	color: #f3efe6;
	letter-spacing: .06em;
	margin-top: 8px;
	transition: color .4s;
}

/* Points : losange doré pour la photo active */
.amd .amd-point i { background: #5a5a55; }
.amd .amd-point.is-on { border-color: rgba(214, 189, 138, .7); }
.amd .amd-point.is-on i { background: var(--amd-dore); }
.amd .amd-point:hover i { background: #a7a296; }

/* Bouton : même style que les boutons des cartes de tarifs */
.amd .amd-bouton {
	border: 0 !important;
	border-radius: 10px;
	background: #f1ece2;
	color: #26272b !important;
	font-weight: 600;
	letter-spacing: .04em;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
	transition: background .25s, transform .25s;
}
.amd .amd-bouton:hover { background: #fff; transform: translateY(-1px); }

@media (max-width: 767px) {
	.amd .amd-etiquette { font-size: 11px; letter-spacing: 1.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.amd .amd-cadre, .amd .amd-nom { transition: none; }
}

/* =========================================================================
 * 1.6.0 — Thème « Fond clair » (site mariage : fond blanc, vert sauge, Playfair)
 * ========================================================================= */
.amd.amd-clair {
	--amd-or: #748173;
	--amd-liseré: rgba(29, 29, 27, .16);
	--amd-dore: #748173;
	color: #6b6b66;
}
.amd.amd-clair .amd-titre-section { font-family: "Playfair Display", Georgia, serif; font-weight: 400; }
.amd.amd-clair .amd-l1 { color: #1d1d1b; text-transform: none; letter-spacing: 0; font-size: 44px; }
.amd.amd-clair .amd-l2 { color: #748173; font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: 21px; }
/* Ordre visuel : petite accroche italique AU-DESSUS du grand titre, comme le reste du site mariage */
.amd.amd-clair .amd-titre-section { display: flex; flex-direction: column-reverse; align-items: center; }
.amd.amd-clair .amd-l2 { margin: 0 0 10px; }
.amd.amd-clair .amd-intro { color: #4a4a46; font-family: "Didact Gothic", "Helvetica Neue", Arial, sans-serif; }
.amd.amd-clair .amd-item.p-0 .amd-cadre {
	border-color: rgba(116, 129, 115, .55);
	box-shadow: 0 18px 46px rgba(0, 0, 0, .16);
}
@media (hover: hover) {
	.amd.amd-clair .amd-item.p-0:hover .amd-cadre { border-color: rgba(116, 129, 115, .9); box-shadow: 0 22px 56px rgba(0, 0, 0, .2); }
	.amd.amd-clair .amd-item.p-0:hover .amd-nom { color: #748173; }
}
/* Médaillons des côtés : légèrement estompés (sur fond blanc, on éclaircit au lieu d'assombrir) */
.amd.amd-clair .amd-item:not(.p-0) .amd-photo { filter: saturate(.8) brightness(1.02); opacity: .72; }
.amd.amd-clair .amd-trait { background: linear-gradient(180deg, rgba(116, 129, 115, .75), rgba(116, 129, 115, 0)); }
.amd.amd-clair .amd-etiquette { color: #748173; font-family: "Didact Gothic", "Helvetica Neue", Arial, sans-serif; }
.amd.amd-clair .amd-nom { color: #1d1d1b; font-family: "Playfair Display", Georgia, serif; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 30px; }
.amd.amd-clair .amd-point i { background: #c9c9c3; }
.amd.amd-clair .amd-point.is-on { border-color: rgba(116, 129, 115, .7); }
.amd.amd-clair .amd-point.is-on i { background: #748173; }
.amd.amd-clair .amd-point:hover i { background: #8a8a84; }
.amd.amd-clair .amd-point:focus-visible { outline-color: #1d1d1b; }
.amd.amd-clair .amd-bouton {
	border-radius: 0;
	background: #1d1d1b;
	color: #fff !important;
	font-family: "Didact Gothic", "Helvetica Neue", Arial, sans-serif;
	letter-spacing: .16em;
	box-shadow: none;
}
.amd.amd-clair .amd-bouton:hover { background: #748173; color: #fff !important; transform: none; }
@media (max-width: 767px) {
	.amd.amd-clair .amd-l1 { font-size: 32px; }
	.amd.amd-clair .amd-nom { font-size: 24px; }
}
