/* Agorgi — accueil et pages de liste (style du site de référence selmaferiani.com).
   Uniquement sur les pages gérées par l'extension (body.agp-geree). */

body.agp-geree,
body.agp-geree #page,
body.agp-geree .site-content,
body.agp-geree.ast-separate-container,
body.agp-geree.ast-plain-container { background: #fff !important; }
body.agp-geree {
	--agp-ink: #111;
	--agp-copy: #444;
	--agp-grey: #8a8a8a;
	--agp-rule: #e4e4e4;
	--agp-head: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--agp-text: 'Baskervville', Georgia, 'Times New Roman', serif;
	overflow-x: clip;
}

/* En-tête et pied du site : même typographie que la page */
body.agp-geree .agorgi-site-header,
body.agp-geree .agorgi-site-header a,
body.agp-geree .agorgi-site-header button,
body.agp-geree #agorgi-site-footer,
body.agp-geree #agorgi-site-footer a,
body.agp-geree #agorgi-site-footer h2 {
	font-family: var(--agp-head) !important;
}
body.agp-geree .agorgi-primary-nav a,
body.agp-geree .agorgi-language-nav a {
	font-weight: 400 !important;
	letter-spacing: .09em !important;
}

/* Conteneur */
.agp-page {
	width: 100%;
	flex: 1 1 100%;
	min-width: 0;
	color: var(--agp-ink);
	font-family: var(--agp-text);
	font-size: 15px;
	line-height: 1.6;
}
.agp-page *, .agp-page *::before, .agp-page *::after { box-sizing: border-box; }
.agp-page a { color: inherit; text-decoration: none; }
.agp-page img { max-width: 100%; height: auto; }
.agp-wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 0 96px; }

/* ------------------------------------------------------------------ */
/* Carrousel plein écran                                               */
/* ------------------------------------------------------------------ */
.agp-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	height: min(calc(100svh - 90px), 940px);
	min-height: 420px;
	overflow: hidden;
	background: #1a1a1a;
	color: #fff;
	touch-action: pan-y;
}
.agp-hero__track { position: absolute; inset: 0; }
.agp-hero__slide {
	position: absolute;
	inset: 0;
	transform: translateX(100%);
	visibility: hidden;
}
.agp-hero__slide.is-active { transform: none; visibility: visible; }
.agp-hero__slide.is-leaving { transform: translateX(-100%); visibility: visible; }
.agp-hero.is-reverse .agp-hero__slide:not(.is-active):not(.is-leaving) { transform: translateX(-100%); }
.agp-hero.is-reverse .agp-hero__slide.is-leaving { transform: translateX(100%); }
.agp-hero.is-anim .agp-hero__slide.is-active,
.agp-hero.is-anim .agp-hero__slide.is-leaving { transition: transform .95s cubic-bezier(.65, 0, .35, 1); }
.agp-hero__media { position: absolute; inset: 0; display: block; }
.agp-hero__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
}
.agp-hero__fond {
	position: absolute;
	inset: -40px;
	background: center / cover no-repeat;
	filter: blur(28px) brightness(.72);
	transform: scale(1.08);
}
.agp-hero__slide--petite .agp-hero__img {
	position: relative;
	object-fit: contain;
	padding: clamp(24px, 5vh, 56px) 0 clamp(110px, 16vh, 170px);
}
.agp-hero__slide::after {
	position: absolute;
	inset: 45% 0 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .18) 55%, transparent);
	content: "";
}
.agp-hero__caption {
	position: absolute;
	left: clamp(22px, 3.4vw, 56px);
	bottom: clamp(64px, 9vh, 104px);
	z-index: 2;
	max-width: min(760px, 82%);
	text-shadow: 0 1px 14px rgba(0, 0, 0, .35);
}
.agp-page .agp-hero__label {
	margin: 0 0 10px;
	font: 400 11px/1.4 var(--agp-head);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .86);
}
.agp-page .agp-hero__title {
	margin: 0;
	padding: 0;
	border: 0;
	font: 300 clamp(22px, 2.3vw, 34px)/1.2 var(--agp-head);
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #fff;
}
.agp-page .agp-hero__title a { color: #fff; }
.agp-page .agp-hero__title a:hover,
.agp-page .agp-hero__title a:focus-visible { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.agp-page .agp-hero__dates {
	margin: 10px 0 0;
	font: 400 12px/1.5 var(--agp-head);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .92);
}
/* Points en bas, au centre (pas de flèches, pas de compteur) */
.agp-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 22px;
	z-index: 3;
	display: flex;
	gap: 4px;
	transform: translateX(-50%);
}
.agp-hero__dot {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.agp-hero__dot::before {
	display: block;
	width: 8px;
	height: 8px;
	border: 1px solid #fff;
	border-radius: 50%;
	background: transparent;
	box-shadow: 0 0 6px rgba(0, 0, 0, .35);
	content: "";
	transition: background .25s, transform .25s;
}
.agp-hero .agp-hero__dot,
.agp-hero .agp-hero__dot:hover,
.agp-hero .agp-hero__dot:focus,
.agp-hero .agp-hero__dot:active {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #fff !important;
}
.agp-hero__dot:hover::before { background: rgba(255, 255, 255, .55); }
.agp-hero__dot.is-active::before { background: #fff; transform: scale(1.15); }
.agp-hero__dot:focus-visible { outline: 2px solid #fff; outline-offset: 0; }
/* Pause : visible uniquement au clavier (accessibilité) */
.agp-hero__pause {
	position: absolute;
	right: 18px;
	bottom: 18px;
	z-index: 3;
	padding: 6px 12px;
	border: 1px solid #fff;
	border-radius: 0;
	color: #fff;
	background: rgba(0, 0, 0, .45);
	font: 400 11px/1 var(--agp-head);
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
}
.agp-hero .agp-hero__pause:hover,
.agp-hero .agp-hero__pause:focus { color: #fff !important; background: rgba(0, 0, 0, .65) !important; border-color: #fff !important; }
.agp-hero__pause:not(:focus-visible) {
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	overflow: hidden;
	padding: 0;
	border: 0;
}

/* ------------------------------------------------------------------ */
/* Sections et cartes                                                  */
/* ------------------------------------------------------------------ */
.agp-section { margin-top: clamp(56px, 6.5vw, 92px); }
.agp-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 28px;
	padding: 0 0 11px;
	border-bottom: 1px solid var(--agp-ink);
}
.agp-page .agp-section__title,
.agp-page .agp-page-title,
.agp-page .agp-year__title {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--agp-ink);
	font-family: var(--agp-head);
	text-transform: uppercase;
}
.agp-page .agp-section__title { font-size: 15px; font-weight: 400; line-height: 1.3; letter-spacing: .09em; }
.agp-section__more {
	flex: 0 0 auto;
	color: var(--agp-grey) !important;
	font: 400 11px/1.4 var(--agp-head);
	letter-spacing: .12em;
	text-transform: uppercase;
}
.agp-section__more:hover, .agp-section__more:focus-visible { color: var(--agp-ink) !important; }

.agp-grid {
	display: grid;
	gap: 46px 28px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.agp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.agp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.agp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agp-card { margin: 0 !important; padding: 0 !important; min-width: 0; }
.agp-card::marker { content: none; }
.agp-card__link { display: block; }
.agp-card__media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #f2f2f2;
}
.agp-card__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: transform .7s cubic-bezier(.19, .6, .22, 1);
}
.agp-card__link:hover .agp-card__img { transform: scale(1.03); }
.agp-card__noimg {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--agp-grey);
	font: 400 11px var(--agp-head);
	letter-spacing: .14em;
	text-transform: uppercase;
}
.agp-card__body { padding-top: 14px; }
.agp-page .agp-card__label {
	margin: 0 0 6px;
	color: var(--agp-grey);
	font: 400 10.5px/1.4 var(--agp-head);
	letter-spacing: .14em;
	text-transform: uppercase;
}
.agp-page .agp-card__title {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--agp-ink);
	font: 400 13.6px/1.4 var(--agp-head);
	letter-spacing: .09em;
	text-transform: uppercase;
}
.agp-card__link:hover .agp-card__title,
.agp-card__link:focus-visible .agp-card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.agp-page .agp-card__sub { margin: 4px 0 0; color: var(--agp-copy); font: italic 400 14.5px/1.45 var(--agp-text); }
.agp-page .agp-card__dates {
	margin: 4px 0 0;
	color: var(--agp-copy);
	font: 400 11px/1.5 var(--agp-head);
	letter-spacing: .08em;
	text-transform: uppercase;
}
.agp-page .agp-card__excerpt {
	display: -webkit-box;
	margin: 10px 0 0;
	overflow: hidden;
	color: var(--agp-copy);
	font: 400 14.5px/1.55 var(--agp-text);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}
.agp-card__link:focus-visible { outline: 2px solid var(--agp-ink); outline-offset: 4px; }

/* Pages de liste */
.agp-page-head { margin: clamp(40px, 5vw, 64px) 0 8px; }
.agp-page .agp-page-title { font-size: clamp(22px, 2.3vw, 30px); font-weight: 400; line-height: 1.2; letter-spacing: .09em; }
.agp-year { margin-top: clamp(40px, 5vw, 64px); }
.agp-page .agp-year__title {
	margin: 0 0 26px;
	padding: 0 0 10px;
	border-bottom: 1px solid var(--agp-ink);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: .09em;
}
.agp-page .agp-empty { margin: 40px 0; color: var(--agp-grey); font: 400 12px var(--agp-head); letter-spacing: .12em; text-transform: uppercase; }

/* Tablette */
@media (max-width: 1024px) {
	.agp-grid--4, .agp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agp-hero { height: min(78svh, 760px); }
}
/* Mobile */
@media (max-width: 640px) {
	.agp-grid--4, .agp-grid--3, .agp-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.agp-hero { height: 72svh; min-height: 380px; }
	.agp-hero__caption { left: 20px; right: 20px; bottom: 62px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
	.agp-hero.is-anim .agp-hero__slide.is-active,
	.agp-hero.is-anim .agp-hero__slide.is-leaving,
	.agp-card__img { transition: none !important; }
}

/* ================================================================== */
/* 1.2.0 — mouvement, survol, artistes, fiche artiste                  */
/* ================================================================== */

/* Apparition douce au défilement : seuls les blocs situés plus bas que l'écran, une fois le script chargé */
.agp-reveal { transition: opacity .55s ease-out, transform .55s cubic-bezier(.2, .65, .25, 1); transition-delay: calc(var(--agp-i, 0) * 50ms); }
.agp-reveal.agp-attente { opacity: 0; transform: translateY(12px); }
.agp-section__head { position: relative; border-bottom-color: transparent; }
.agp-section__head::after {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 1px;
	background: var(--agp-ink);
	transform-origin: left center;
	transition: transform .8s cubic-bezier(.2, .65, .25, 1) .05s;
	content: "";
}
.agp-reveal.agp-attente .agp-section__head::after { transform: scaleX(0); }

/* Carrousel : léger zoom lent sur la photo affichée */
.agp-hero__slide.is-active:not(.agp-hero__slide--petite) .agp-hero__img { animation: agp-zoom 8s ease-out both; }
@keyframes agp-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.agp-hero__slide.is-active .agp-hero__caption > * { animation: agp-monte .9s cubic-bezier(.2, .65, .25, 1) both; }
.agp-hero__slide.is-active .agp-hero__title { animation-delay: .12s; }
.agp-hero__slide.is-active .agp-hero__dates { animation-delay: .22s; }
@keyframes agp-monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Survol : images secondaires en fondu */
.agp-survol { position: relative; }
.agp-survol__img {
	position: absolute !important;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	opacity: 0;
	transition: opacity .7s ease, transform .7s cubic-bezier(.19, .6, .22, 1);
	pointer-events: none;
}
.agp-survol__img.is-on { opacity: 1; }
.agp-card__link:hover .agp-survol__img { transform: scale(1.03); }
.agp-artiste__cadre .agp-survol__img { object-fit: cover; }

/* Cartes artistes et œuvres */
.agp-card--artiste .agp-card__media { aspect-ratio: 4 / 5; }
.agp-card--oeuvre .agp-card__media { aspect-ratio: 4 / 3; background: #f6f6f6; }
.agp-card--oeuvre .agp-card__img,
.agp-card--oeuvre .agp-survol__img { object-fit: contain; padding: 5%; }
.agp-page .agp-card--artiste .agp-card__title { font-size: 14px; }
.agp-card[hidden] { display: none !important; }

/* En-tête de liste avec recherche (même style que la recherche du pied de page) */
.agp-page-head--outils {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px 40px;
	margin-bottom: 40px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--agp-ink);
}
.agp-recherche {
	display: flex;
	align-items: center;
	gap: 7px;
	width: min(340px, 100%);
	margin: 0;
	border-bottom: 1px solid #cfcfcf;
	transition: border-color .3s;
}
.agp-recherche:focus-within { border-bottom-color: var(--agp-ink); }
.agp-page .agp-recherche input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 38px;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0;
	box-shadow: none !important;
	color: var(--agp-ink);
	background: transparent !important;
	font: 400 12px/1 var(--agp-head);
	letter-spacing: .06em;
	-webkit-appearance: none;
	appearance: none;
}
.agp-page .agp-recherche input::placeholder { color: var(--agp-grey); opacity: 1; }
.agp-page .agp-recherche button,
.agp-page .agp-recherche button:hover,
.agp-page .agp-recherche button:focus {
	width: 30px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	color: var(--agp-ink) !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	transition: transform .3s;
}
.agp-page .agp-recherche button:hover { transform: translateX(3px); }
.agp-page .agp-recherche button:focus-visible { outline: 1px solid var(--agp-ink); }
.agp-page .agp-recherche__statut { min-height: 1.4em; margin: -22px 0 22px; color: var(--agp-grey); font: 400 11px/1.4 var(--agp-head); letter-spacing: .1em; text-transform: uppercase; }

/* ------------------------------------------------------------------ */
/* Fiche artiste : photo d'un côté, biographie de l'autre               */
/* ------------------------------------------------------------------ */
.agp-page--artiste .agp-wrap { padding-top: clamp(28px, 4vw, 48px); }
.agp-page .agp-fil { margin: 0 0 clamp(26px, 4vw, 44px); font: 400 11px/1.4 var(--agp-head); letter-spacing: .14em; text-transform: uppercase; }
.agp-page .agp-fil a { color: var(--agp-grey); transition: color .3s; }
.agp-page .agp-fil a:hover, .agp-page .agp-fil a:focus-visible { color: var(--agp-ink); }
.agp-artiste__intro {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}
.agp-artiste--photo-droite .agp-artiste__portrait { order: 2; }
.agp-artiste__intro--sans-photo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.agp-artiste__portrait { position: sticky; top: 110px; margin: 0; }
.admin-bar .agp-artiste__portrait { top: 142px; }
.agp-artiste__cadre { position: relative; overflow: hidden; background: #f2f2f2; aspect-ratio: 4 / 5; }
.agp-artiste__img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.agp-page .agp-artiste__legende { margin: 10px 0 0; color: var(--agp-grey); font: italic 400 13px/1.5 var(--agp-text); }
.agp-artiste__texte { padding-top: 4px; }
.agp-page .agp-artiste__nom {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--agp-ink);
	font: 300 clamp(26px, 2.8vw, 38px)/1.15 var(--agp-head);
	letter-spacing: .08em;
	text-transform: uppercase;
}
.agp-page .agp-artiste__ligne { margin: 12px 0 0; color: var(--agp-copy); font: italic 400 16px/1.5 var(--agp-text); }
.agp-artiste__ancres { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 26px 0 0; padding: 14px 0; border-top: 1px solid var(--agp-rule); border-bottom: 1px solid var(--agp-rule); }
.agp-page .agp-artiste__ancres a { position: relative; color: var(--agp-copy); font: 400 11px/1.6 var(--agp-head); letter-spacing: .14em; text-transform: uppercase; }
.agp-page .agp-artiste__ancres a::after { position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s; content: ""; }
.agp-page .agp-artiste__ancres a:hover { color: var(--agp-ink); }
.agp-page .agp-artiste__ancres a:hover::after, .agp-page .agp-artiste__ancres a:focus-visible::after { transform: scaleX(1); }
.agp-artiste__bio { margin-top: 34px; scroll-margin-top: 130px; }
.agp-page .agp-etiquette { margin: 0 0 16px; padding: 0; border: 0; color: var(--agp-grey); font: 400 11px/1.4 var(--agp-head); letter-spacing: .16em; text-transform: uppercase; }
.agp-artiste__bio-texte { max-width: 62ch; }
.agp-page .agp-artiste__bio-texte p,
.agp-page .agp-artiste__bio-texte li { margin: 0 0 1.05em; color: #2b2b2b; font: 400 16px/1.8 var(--agp-text); }
.agp-page .agp-artiste__bio-texte a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.agp-artiste__infos { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--agp-ink); }
.agp-artiste__infos dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; }
.agp-artiste__infos dl > div { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--agp-rule); }
.agp-page .agp-artiste__infos dt { margin: 0 0 6px; color: var(--agp-grey); font: 400 10.5px/1.4 var(--agp-head); letter-spacing: .16em; text-transform: uppercase; }
.agp-page .agp-artiste__infos dd { margin: 0; color: var(--agp-ink); font: 400 15px/1.5 var(--agp-text); }
.agp-page .agp-artiste__infos dd a { border-bottom: 1px solid var(--agp-rule); transition: border-color .3s; }
.agp-page .agp-artiste__infos dd a:hover { border-color: var(--agp-ink); }
.agp-artiste .agp-section { scroll-margin-top: 120px; }
.agp-artiste__bloc { margin-top: clamp(48px, 6vw, 80px); }
.agp-artiste .agorgi-photos,
.agp-artiste .agorgi-descriptif { margin: 0; }
.agp-artiste .agorgi-photos__title,
.agp-artiste .agorgi-descriptif__title {
	margin: 0 0 24px !important;
	padding: 0 0 11px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--agp-ink) !important;
	color: var(--agp-ink) !important;
	font: 400 15px/1.3 var(--agp-head) !important;
	letter-spacing: .09em !important;
	text-transform: uppercase !important;
}
.agp-artiste .agorgi-descriptif__text p { font-family: var(--agp-text) !important; font-size: 16px !important; line-height: 1.8 !important; color: #2b2b2b !important; }

@media (max-width: 860px) {
	.agp-artiste__intro { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.agp-artiste--photo-droite .agp-artiste__portrait { order: 0; }
	.agp-artiste__portrait { position: static; max-width: 520px; }
}
@media (max-width: 640px) {
	.agp-grid--artistes,
	.agp-artiste .agp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
	.agp-artiste .agp-card__title { font-size: 12px !important; }
	.agp-page-head--outils { align-items: stretch; flex-direction: column; }
	.agp-recherche { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.agp-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	.agp-hero__slide.is-active .agp-hero__img,
	.agp-hero__slide.is-active .agp-hero__caption > * { animation: none !important; }
	.agp-survol__img { transition: none !important; }
}
