/* ==========================================================================
   Portfolio Artiste Pro — direction artistique
   Palette : beige chaud / blanc cassé / vert pâle (loges & lumière de scène)
   Display : Fraunces (italique, éditorial, cinéma) — Body/Utility : Work Sans
   Signature : la "poursuite" — un halo de lumière douce qui suit le portrait,
   et une frise perforée façon pellicule 35mm pour la galerie.
   ========================================================================== */

:root {
	--pap-beige:      #F2ECDE;
	--pap-beige-deep: #E4DBC6;
	--pap-white:      #FBFAF6;
	--pap-sage:        #BFCDAE;
	--pap-sage-deep:   #5B6B4B;
	--pap-sage-pale:   #DCE4D2;
	--pap-ink:         #2A2820;
	--pap-ink-soft:    #6E6A5A;

	--pap-font-display: 'Fraunces', Georgia, serif;
	--pap-font-body:    'Work Sans', 'Helvetica Neue', Arial, sans-serif;

	--pap-radius: 2px;
	--pap-max: 1180px;
}

.pap-site * { box-sizing: border-box; }

.pap-site {
	background: var(--pap-beige);
	color: var(--pap-ink);
	font-family: var(--pap-font-body);
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.pap-site a { color: inherit; }

.pap-container {
	max-width: var(--pap-max);
	margin: 0 auto;
	padding: 0 32px;
}

.pap-eyebrow {
	font-family: var(--pap-font-body);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--pap-sage-deep);
	font-weight: 600;
}

/* ---------- Hero : la poursuite ---------- */

.pap-hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--pap-ink);
}

.pap-hero__image-wrap {
	position: absolute;
	inset: 0;
	display: flex;
}

.pap-hero__image-wrap > div {
	flex: 1 1 50%;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.pap-hero__image-wrap > div::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--pap-ink);
	opacity: 0.06;
}

.pap-hero__image-wrap > div:first-child {
	border-right: 1px solid rgba(242, 236, 222, 0.18);
}

.pap-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 15%; /* garde le visage dans la moitié haute, libre de tout texte */
	filter: grayscale(15%) contrast(1.02);
	opacity: 0.92;
}

.pap-hero__spotlight {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(
		circle 42vw at var(--pap-mx, 50%) var(--pap-my, 22%),
		rgba(223, 231, 210, 0.22) 0%,
		rgba(42, 40, 32, 0.06) 40%,
		rgba(42, 40, 32, 0.55) 100%
	);
	transition: background 0.4s ease-out;
}

.pap-hero__scrim {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 38%; /* zone de texte resserrée : ne remonte plus jusqu'au visage */
	background: linear-gradient(to top, rgba(20, 19, 14, 0.94), rgba(20, 19, 14, 0));
}

.pap-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 0 32px 72px;
	color: var(--pap-white);
}

.pap-hero__name {
	font-family: var(--pap-font-display);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(40px, 7vw, 104px);
	line-height: 0.98;
	margin: 0 0 12px;
	letter-spacing: -0.01em;
}

.pap-hero__accroche {
	font-size: clamp(15px, 1.6vw, 20px);
	max-width: 46ch;
	color: var(--pap-sage-pale);
	font-weight: 300;
	margin: 0 0 32px;
}

.pap-hero__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.pap-hero__actions .pap-btn--ghost {
	background: transparent;
	border-color: var(--pap-sage-pale);
	color: var(--pap-sage-pale);
}

.pap-hero__actions .pap-btn--ghost:hover {
	background: var(--pap-sage-pale);
	color: var(--pap-ink);
	border-color: var(--pap-sage-pale);
}

.pap-hero__scrollcue {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	width: 1px;
	height: 44px;
	background: linear-gradient(to bottom, transparent, var(--pap-sage-pale) 40%, transparent);
	overflow: hidden;
}

.pap-hero__scrollcue::after {
	content: "";
	position: absolute;
	top: -44px;
	left: 0;
	width: 100%;
	height: 44px;
	background: var(--pap-white);
	animation: pap-scrollcue 2.2s ease-in-out infinite;
}

@keyframes pap-scrollcue {
	0%   { top: -44px; }
	60%  { top: 44px; }
	100% { top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
	.pap-hero__scrollcue::after { animation: none; top: 0; }
}

/* ---------- Fondu d'entrée de page ---------- */

.pap-site {
	opacity: 0;
	animation: pap-page-in 0.9s ease forwards;
}

@keyframes pap-page-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.pap-site { opacity: 1; animation: none; }
}

/* ---------- Sections génériques ---------- */

.pap-section {
	padding: 108px 0;
	border-bottom: 1px solid var(--pap-beige-deep);
}

.pap-section--white { background: var(--pap-white); }

.pap-section__head {
	margin-bottom: 56px;
	max-width: 640px;
}

.pap-section__title {
	font-family: var(--pap-font-display);
	font-style: italic;
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 400;
	margin: 8px 0 0;
	color: var(--pap-ink);
}

/* ---------- Biographie ---------- */

.pap-bio {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 64px;
	align-items: start;
}

.pap-bio__text p { font-size: 17px; color: var(--pap-ink); max-width: 62ch; }

.pap-bio__facts {
	border-top: 1px solid var(--pap-sage-deep);
	padding-top: 20px;
}

.pap-bio__fact {
	display: grid;
	grid-template-columns: 122px 1fr;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--pap-beige-deep);
	font-size: 14px;
}

.pap-bio__fact-label {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 11px;
	color: var(--pap-ink-soft);
	white-space: nowrap;
}

@media (max-width: 780px) {
	.pap-bio { grid-template-columns: 1fr; }
}

/* ---------- Showreel ---------- */

.pap-showreel__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 32px;
}

.pap-showreel__video {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background: var(--pap-ink);
	overflow: hidden;
}

.pap-showreel__video iframe,
.pap-showreel__video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	background: #000;
}

.pap-showreel__empty {
	border: 1px dashed var(--pap-sage-deep);
	padding: 64px 32px;
	text-align: center;
	font-family: var(--pap-font-display);
	font-style: italic;
	font-size: 22px;
	color: var(--pap-sage-deep);
	background: var(--pap-sage-pale);
}

/* ---------- Filmographie : deux colonnes, Rôles / Figuration ---------- */

.pap-filmo__columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
}

.pap-filmo__column-title {
	font-family: var(--pap-font-display);
	font-style: italic;
	font-size: 24px;
	font-weight: 400;
	margin: 0 0 18px;
	color: var(--pap-sage-deep);
}

.pap-filmo__list { border-top: 1px solid var(--pap-ink); list-style: none; margin: 0; padding: 0; }

.pap-filmo__item {
	display: flex;
	gap: 16px;
	align-items: baseline;
	padding: 18px 0;
	border-bottom: 1px solid var(--pap-beige-deep);
}

.pap-filmo__empty { padding: 18px 0; color: var(--pap-ink-soft); font-size: 14px; list-style: none; }

.pap-filmo__year {
	font-family: var(--pap-font-display);
	font-style: italic;
	font-size: 18px;
	color: var(--pap-sage-deep);
	flex: 0 0 auto;
	min-width: 44px;
}

.pap-filmo__title { font-weight: 500; font-size: 16px; }
.pap-filmo__role { color: var(--pap-ink-soft); font-size: 13px; margin-top: 3px; }

@media (max-width: 780px) {
	.pap-filmo__columns { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Galerie : frise façon pellicule 35mm ---------- */

.pap-galerie__strip {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 24px 6px 32px;
	scroll-snap-type: x proximity;
	background: var(--pap-ink);
	border-top: 14px solid var(--pap-ink);
	border-bottom: 14px solid var(--pap-ink);
	position: relative;
}

.pap-galerie__strip::before,
.pap-galerie__strip::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	height: 14px;
	background-image: radial-gradient(circle, var(--pap-beige) 3px, transparent 3.5px);
	background-size: 22px 14px;
	background-repeat: repeat-x;
}
.pap-galerie__strip::before { top: -14px; }
.pap-galerie__strip::after  { bottom: -14px; }

.pap-galerie__frame {
	flex: 0 0 auto;
	width: 280px;
	height: 380px;
	scroll-snap-align: start;
	overflow: hidden;
	background: #111;
}

.pap-galerie__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(8%);
	transition: transform 0.6s ease;
}

.pap-galerie__frame:hover img { transform: scale(1.05); }

/* ---------- Actualités ---------- */

.pap-actu__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 40px;
}

.pap-actu__card { border-top: 2px solid var(--pap-ink); padding-top: 18px; }
.pap-actu__date { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pap-sage-deep); }
.pap-actu__title { font-family: var(--pap-font-display); font-style: italic; font-size: 22px; margin: 8px 0 10px; }
.pap-actu__excerpt { font-size: 14px; color: var(--pap-ink-soft); }

/* ---------- CV ---------- */

.pap-cv {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	background: var(--pap-sage-pale);
	padding: 40px 48px;
}

.pap-cv__label { font-family: var(--pap-font-display); font-style: italic; font-size: 26px; }

.pap-btn {
	display: inline-block;
	font-family: var(--pap-font-body);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--pap-white);
	background: var(--pap-ink);
	padding: 16px 30px;
	border: 1px solid var(--pap-ink);
	transition: background 0.25s ease, color 0.25s ease;
}

.pap-btn:hover { background: transparent; color: var(--pap-ink); }

/* ---------- Contact ---------- */

.pap-contact { max-width: 560px; }
.pap-contact__row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--pap-beige-deep); }
.pap-contact__row a { text-decoration: none; border-bottom: 1px solid var(--pap-sage-deep); }

/* ---------- Formulaire de contact ---------- */

.pap-form { max-width: 560px; margin-top: 40px; }

.pap-form__hp { position: absolute; left: -9999px; }

.pap-form__row { margin-bottom: 20px; }

.pap-form__row label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--pap-ink-soft);
	margin-bottom: 8px;
}

.pap-form__row input,
.pap-form__row textarea {
	width: 100%;
	font-family: var(--pap-font-body);
	font-size: 15px;
	color: var(--pap-ink);
	background: var(--pap-white);
	border: 1px solid var(--pap-beige-deep);
	border-radius: 2px;
	padding: 12px 14px;
	resize: vertical;
}

.pap-form__row input#pap_captcha { max-width: 120px; }

.pap-form__row input:focus,
.pap-form__row textarea:focus {
	outline: none;
	border-color: var(--pap-sage-deep);
}

.pap-form button.pap-btn {
	background: var(--pap-ink);
	border-color: var(--pap-ink);
	cursor: pointer;
	font-family: inherit;
}

.pap-form__notice {
	padding: 14px 18px;
	margin-bottom: 24px;
	font-size: 14px;
	max-width: 560px;
}

.pap-form__notice--ok { background: var(--pap-sage-pale); color: var(--pap-sage-deep); }
.pap-form__notice--error { background: #f3d9d3; color: #8a3c2c; }

/* ---------- Prise de contrôle totale de la page ----------
   Le plugin doit avoir l'air d'un site sur mesure, pas d'un thème
   générique avec du contenu collé dedans : on masque l'habillage du
   thème (en-tête, titre de page, pied de page) et on annule les
   contraintes de largeur imposées par les thèmes basés sur les blocs. */

body:has(.pap-site) header:not(.pap-nav),
body:has(.pap-site) .wp-block-template-part,
body:has(.pap-site) .site-header,
body:has(.pap-site) #masthead,
body:has(.pap-site) .entry-header,
body:has(.pap-site) .page-header,
body:has(.pap-site) .wp-block-post-title,
body:has(.pap-site) h1.entry-title,
body:has(.pap-site) footer:not(.pap-footer),
body:has(.pap-site) .site-footer,
body:has(.pap-site) #colophon {
	display: none !important;
}

body:has(.pap-site) .entry-content,
body:has(.pap-site) .wp-block-post-content,
body:has(.pap-site) main,
body:has(.pap-site) #content,
body:has(.pap-site) #primary {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body:has(.pap-site) {
	margin: 0 !important;
}

/* ---------- Grain cinéma : texture discrète sur toute la page ---------- */

.pap-site::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 100;
	pointer-events: none;
	opacity: 0.035;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
	background-size: 140px 140px;
}

@media (prefers-reduced-motion: reduce), (max-width: 480px) {
	.pap-site::before { display: none; }
}

/* ---------- Bio : traitement éditorial, lettrine ---------- */

.pap-bio__text .pap-bio__lede {
	font-family: var(--pap-font-display);
	font-style: italic;
	font-size: 22px;
	color: var(--pap-ink);
	line-height: 1.5;
	max-width: 56ch;
	margin: 0 0 20px;
}

.pap-bio__text .pap-bio__lede::first-letter {
	font-size: 64px;
	line-height: 0.8;
	float: left;
	padding: 4px 10px 0 0;
	color: var(--pap-sage-deep);
}

/* ---------- Footer sur mesure ---------- */

.pap-footer {
	background: var(--pap-ink);
	color: var(--pap-sage-pale);
	padding: 56px 0 32px;
}

.pap-footer__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(242, 236, 222, 0.15);
	position: relative;
}

.pap-footer__name {
	font-family: var(--pap-font-display);
	font-style: italic;
	font-size: 32px;
	color: var(--pap-white);
	margin: 0;
}

.pap-footer__links {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0; padding: 0;
}

.pap-footer__links a {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--pap-sage-pale);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.pap-footer__links a:hover { border-color: var(--pap-sage-pale); }

.pap-footer__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 22px;
	margin: 0; padding: 0;
	flex: 1 1 auto;
}

.pap-footer__links a {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--pap-sage-pale);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	white-space: nowrap;
}

.pap-footer__links a:hover { border-color: var(--pap-sage-pale); }

.pap-footer__bottom a {
	color: var(--pap-white);
	text-decoration: none;
	border-bottom: 1px solid rgba(251, 250, 246, 0.4);
}

.pap-footer__bottom a:hover { border-color: var(--pap-white); }

.pap-footer__bottom {
	display: flex;
	justify-content: center;
	padding-top: 24px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: var(--pap-white);
}

html:has(.pap-site) {
	scroll-behavior: smooth;
}

/* ---------- Nav : toujours visible, s'adapte au fond qu'elle survole ---------- */

.pap-nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 34px 32px 22px;
	background: transparent;
	overflow: hidden;
	transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.pap-nav.is-scrolled {
	background: rgba(251, 250, 246, 0.94);
	backdrop-filter: blur(8px);
	padding: 16px 32px;
	box-shadow: 0 1px 0 var(--pap-beige-deep);
}

.pap-nav__name {
	font-family: var(--pap-font-display);
	font-style: italic;
	font-size: 19px;
	color: var(--pap-white);
	text-decoration: none;
	transition: color 0.35s ease;
}

.pap-nav.is-scrolled .pap-nav__name { color: var(--pap-ink); }

.pap-nav__links {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0; padding: 0;
}

.pap-nav__links a {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	color: var(--pap-white);
	border: 1px solid rgba(251, 250, 246, 0.45);
	border-radius: 999px;
	padding: 8px 16px;
	background: rgba(42, 40, 32, 0.25);
	backdrop-filter: blur(4px);
	transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.pap-nav__links a:hover {
	background: var(--pap-sage-pale);
	border-color: var(--pap-sage-pale);
	color: var(--pap-ink);
}

.pap-nav__toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 6px;
}

.pap-nav__toggle span {
	display: block;
	width: 22px;
	height: 1.5px;
	background: var(--pap-white);
	transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.pap-nav.is-scrolled .pap-nav__toggle span { background: var(--pap-ink); }

.pap-nav__toggle.is-open span { background: var(--pap-sage-pale); }
.pap-nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.pap-nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.pap-nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.pap-nav__close {
	display: block;
	position: absolute;
	top: 28px;
	right: 28px;
	width: 44px;
	height: 44px;
	line-height: 40px;
	text-align: center;
	font-size: 32px;
	font-weight: 300;
	color: var(--pap-sage-pale);
	background: transparent;
	border: 1px solid rgba(251, 250, 246, 0.3);
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
}

.pap-nav__toggle { display: flex; }

.pap-nav__links {
	position: fixed;
	inset: 0;
	min-height: 100vh;
	min-height: 100dvh;
	z-index: 49;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 18px;
	background: var(--pap-ink);
	transform: translateY(-100%);
	visibility: hidden;
	opacity: 0;
	transition: transform 0.4s ease, visibility 0s linear 0.4s, opacity 0.3s ease;
}

.pap-nav__links a {
	color: var(--pap-sage-pale);
	font-size: 15px;
	padding: 12px 28px;
	border-color: rgba(251, 250, 246, 0.3);
	background: transparent;
}

.pap-nav__links.is-open {
	transform: translateY(0);
	visibility: visible;
	opacity: 1;
	transition: transform 0.4s ease, visibility 0s linear 0s, opacity 0.3s ease;
}

html.pap-scroll-lock,
body.pap-scroll-lock {
	overflow: hidden !important;
	height: 100% !important;
}

/* ---------- Marquise : le nom en toutes lettres, façon enseigne de théâtre ---------- */

.pap-marquee {
	background: var(--pap-ink);
	overflow: hidden;
	padding: 22px 0;
	border-bottom: 1px solid var(--pap-sage-deep);
}

.pap-marquee__track {
	display: flex;
	width: max-content;
	animation: pap-marquee-scroll 32s linear infinite;
}

.pap-marquee__item {
	font-family: var(--pap-font-display);
	font-style: italic;
	font-size: clamp(22px, 3vw, 34px);
	color: var(--pap-sage-pale);
	white-space: nowrap;
	padding: 0 36px;
	display: flex;
	align-items: center;
	gap: 36px;
}

.pap-marquee__item::after {
	content: "★";
	font-style: normal;
	font-size: 12px;
	color: var(--pap-sage-deep);
}

@keyframes pap-marquee-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.pap-marquee__track { animation: none; }
}

/* ---------- Apparition au scroll ---------- */

.pap-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.pap-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.pap-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Galerie : visionneuse plein écran ---------- */

.pap-galerie__frame { cursor: zoom-in; }

.pap-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(20, 19, 14, 0.96);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.pap-lightbox.is-open { opacity: 1; pointer-events: auto; }

.pap-lightbox img {
	max-width: 100%;
	max-height: 100%;
	box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.pap-lightbox__close {
	position: absolute;
	top: 24px; right: 32px;
	color: var(--pap-white);
	font-family: var(--pap-font-body);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: none;
	border: 1px solid var(--pap-white);
	padding: 10px 18px;
	cursor: pointer;
}

/* ---------- Freins au telechargement (dissuasif, pas un verrou absolu) ---------- */

.pap-site img,
.pap-site video {
	-webkit-user-drag: none;
	user-select: none;
	-webkit-touch-callout: none;
}
