/* ==========================================================================
   Prev'Concept — feuille principale (site ET éditeur)
   Palette, polices et largeur : réglages globaux Kadence (Personnaliser).
   Ici : les variables complémentaires et le rendu du thème.
   Convention : déclarations de base d'abord, media queries en fin de section.
   ========================================================================== */

/* ---------- Polices auto-hébergées (sous-ensemble latin, variables) ---------- */
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("fonts/newsreader-italic-latin.woff2") format("woff2");
}
@font-face {
	font-family: "Hanken Grotesk";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
}

/* ---------- Variables ---------- */
:root {
	/* Palette Kadence (Personnaliser > Couleurs), repli sur les valeurs de la maquette */
	--pc-red: var(--global-palette1, #D7141A);
	--pc-red-dark: var(--global-palette2, #B00F14);
	--pc-ink: var(--global-palette3, #141414);
	--pc-body: var(--global-palette4, #3A3A3A);
	--pc-grey: var(--global-palette5, #4A4A4A);
	--pc-muted: var(--global-palette6, #7A7266);
	--pc-line: var(--global-palette7, #E4DFD6);
	--pc-cream: var(--global-palette8, #F7F5F1);
	--pc-white: var(--global-palette9, #FFFFFF);
	--pc-gold: var(--global-palette10, #E3A83B);

	/* Teintes complémentaires de la maquette (fonds sombres) */
	--pc-red-light: #FF4D4F;
	--pc-red-soft: #FF8A8C;
	--pc-black: #050505;
	--pc-dark: #0A0A0A;
	--pc-dark-card: #141414;
	--pc-on-dark: #CFCFCF;
	--pc-on-dark-muted: #A8A8A8;
	--pc-line-dark: rgba(255, 255, 255, 0.14);

	/* Typographie (Personnaliser > Typographie) */
	--pc-serif: var(--global-heading-font-family, "Newsreader", "Iowan Old Style", Georgia, serif);
	--pc-sans: var(--global-body-font-family, "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif);

	/* Mise en page */
	--pc-max: 1240px;
	--pc-pad: clamp(20px, 4vw, 40px);
	--pc-radius: 8px;
	--pc-radius-lg: 18px;
	--pc-header-h: 88px;
}

/* ---------- Base ---------- */
body.pc-site {
	background: var(--pc-cream);
	color: var(--pc-ink);
	font-family: var(--pc-sans);
}
.pc-site a { text-decoration: none; }
.pc-site :where(h1, h2, h3) { text-wrap: balance; }
.pc-site :where(p) { text-wrap: pretty; }
.pc-accent { font-style: italic; color: var(--pc-red); }
.pc-dark .pc-accent,
.pc-bandeau .pc-accent { color: var(--pc-red-light); }

.pc-skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 1000;
	background: var(--pc-white);
	color: var(--pc-ink);
	padding: 10px 16px;
	border-radius: var(--pc-radius);
	font-weight: 600;
}
.pc-skip:focus { top: 12px; }

.pc-site :focus-visible {
	outline: 2px solid var(--pc-gold);
	outline-offset: 2px;
}

/* Cibles d'ancre sous l'en-tête collant */
.pc-site [id] { scroll-margin-top: calc(var(--pc-header-h) + 16px); }

/* ---------- Surtitre ---------- */
.pc-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--pc-red);
}
.pc-eyebrow--gold { color: var(--pc-gold); }

/* ---------- Boutons ----------
   Préfixés par body.pc-site : les sélecteurs d'élément du parent (button, input[type=submit])
   ne doivent pas repasser devant la charte. */
body.pc-site .pc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: var(--pc-radius);
	font-family: var(--pc-sans);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
body.pc-site .pc-btn--lg { padding: 16px 26px; font-size: 15px; }
body.pc-site .pc-btn--red,
body.pc-site .pc-btn--red:visited { background: var(--pc-red); color: #fff; }
body.pc-site .pc-btn--red:hover,
body.pc-site .pc-btn--red:focus-visible,
body.pc-site .pc-btn--red:active { background: var(--pc-red-dark); color: #fff; }
body.pc-site .pc-btn--ghost-light,
body.pc-site .pc-btn--ghost-light:visited { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.32); }
body.pc-site .pc-btn--ghost-light:hover,
body.pc-site .pc-btn--ghost-light:focus-visible,
body.pc-site .pc-btn--ghost-light:active { background: rgba(255, 255, 255, 0.08); color: #fff; }

.pc-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.pc-actions--center { justify-content: center; }

/* ==========================================================================
   Bandeau du haut
   ========================================================================== */
.pc-topbar {
	background: var(--pc-black);
	color: var(--pc-on-dark-muted);
	font-size: 13px;
	line-height: 20px; /* hauteur entière : pas de demi-pixel sous la barre */
}
.pc-topbar__in {
	max-width: var(--pc-max);
	margin: 0 auto;
	padding: 8px var(--pc-pad);
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.pc-topbar__contact { display: flex; gap: 20px; flex-wrap: wrap; }
.pc-topbar a { color: #fff; }
.pc-topbar a:hover { color: var(--pc-red-light); }

/* ==========================================================================
   En-tête collant
   ========================================================================== */
.pc-header {
	position: sticky;
	top: 0;
	z-index: 50;
}
/* Filet bas dessiné par-dessus le fond sombre (une bordure laissait voir le fond crème de la page). */
.pc-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}
/* Fond flouté sur un pseudo-élément : un backdrop-filter posé sur l'en-tête lui-même
   deviendrait le repère du menu mobile en position fixed (panneau réduit à la hauteur de l'en-tête). */
.pc-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(10, 10, 10, 0.96);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.admin-bar .pc-header { top: 32px; }
.pc-header__in {
	max-width: var(--pc-max);
	margin: 0 auto;
	padding: 10px var(--pc-pad);
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.4vw, 32px);
	min-height: 88px;
	box-sizing: border-box;
}
.pc-header__logo { display: flex; align-items: center; flex: none; }
.pc-logo { height: 68px; width: auto; display: block; }
.pc-logo--texte { height: auto; color: #fff; font-family: var(--pc-serif); font-size: 22px; }

/* Navigation principale (bureau) */
.pc-nav { flex: 1; display: flex; justify-content: center; }
.pc-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: clamp(12px, 1.6vw, 26px);
	font-size: clamp(13px, 1.15vw, 15px);
	font-weight: 500;
	white-space: nowrap;
}
.pc-nav__list > li { position: relative; padding: 18px 0; display: flex; align-items: center; }
.pc-nav__list > li > a {
	color: #fff;
	padding-bottom: 4px;
	border-bottom: 2px solid transparent;
}
.pc-nav__list > li > a:hover,
.pc-nav__list > li:focus-within > a { color: var(--pc-red-light); }
.pc-nav__list > li.current-menu-item > a,
.pc-nav__list > li.current-menu-ancestor > a,
.pc-nav__list > li.current-menu-parent > a,
.pc-nav__list > li.current_page_parent > a,
.pc-nav__list > li.current-page-ancestor > a {
	color: var(--pc-red-light);
	border-bottom-color: var(--pc-red);
}
.pc-nav__toggle { display: none; }

.pc-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	position: absolute;
	top: 100%;
	left: -18px;
	min-width: 300px;
	background: var(--pc-dark);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-top: 2px solid var(--pc-gold);
	border-radius: 0 0 12px 12px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 60;
}
.pc-nav__list > li:hover > .sub-menu,
.pc-nav__list > li:focus-within > .sub-menu,
.pc-nav__list > li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.pc-nav__list .sub-menu a {
	display: block;
	color: #D6D6D6;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	white-space: normal;
	line-height: 1.35;
}
.pc-nav__list .sub-menu a:hover,
.pc-nav__list .sub-menu a:focus-visible { background: rgba(255, 255, 255, 0.07); color: #fff; }
.pc-nav__list .sub-menu .current-menu-item > a { color: #fff; background: rgba(255, 255, 255, 0.07); }

/* Même spécificité que body.pc-site .pc-btn, sinon le bouton réapparaît */
body.pc-site .pc-nav__cta-mobile { display: none; }
.pc-header__cta { flex: none; }

/* Burger */
body.pc-site .pc-burger {
	display: none;
	flex: none;
	margin-left: auto;
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: var(--pc-radius);
	color: #fff;
	cursor: pointer;
}
body.pc-site .pc-burger:hover,
body.pc-site .pc-burger:focus-visible { background: rgba(255, 255, 255, 0.08); color: #fff; }
.pc-burger__close { display: none; }
.pc-burger[aria-expanded="true"] .pc-burger__open { display: none; }
.pc-burger[aria-expanded="true"] .pc-burger__close { display: inline-flex; }
.pc-burger__open { display: inline-flex; line-height: 0; }
.pc-burger__close { line-height: 0; }

@media (max-width: 1100px) {
	:root { --pc-header-h: 72px; }
	.pc-header__in { min-height: 72px; }
	.pc-logo { height: 52px; }
	body.pc-site .pc-header__cta { display: none; }
	body.pc-site .pc-burger { display: inline-flex; }

	.pc-nav {
		position: fixed;
		left: 0;
		right: 0;
		top: var(--pc-nav-top, 72px);
		bottom: 0;
		background: var(--pc-dark);
		display: block;
		overflow-y: auto;
		padding: 12px var(--pc-pad) 32px;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.2s ease, visibility 0.2s;
	}
	.pc-nav.is-open { transform: none; visibility: visible; }
	.pc-nav__list { flex-direction: column; gap: 0; font-size: 17px; white-space: normal; }
	.pc-nav__list > li {
		padding: 0;
		flex-wrap: wrap;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}
	.pc-nav__list > li > a { flex: 1; padding: 16px 0; border-bottom: 0; }
	body.pc-site .pc-nav__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		padding: 0;
		background: transparent;
		border: 0;
		color: #fff;
		cursor: pointer;
	}
	.pc-nav__toggle svg { transition: transform 0.15s ease; }
	.pc-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.pc-nav__list .sub-menu {
		position: static;
		flex-basis: 100%;
		min-width: 0;
		border: 0;
		border-left: 2px solid var(--pc-gold);
		border-radius: 0;
		box-shadow: none;
		padding: 0 0 12px 12px;
		margin: 0 0 12px;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: none;
	}
	.pc-nav__list > li:hover > .sub-menu,
	.pc-nav__list > li:focus-within > .sub-menu { display: none; }
	.pc-nav__list > li.is-open > .sub-menu { display: flex; }
	.pc-nav__list .sub-menu a { font-size: 15px; padding: 12px; }
	body.pc-site .pc-nav__cta-mobile { display: flex; margin-top: 24px; width: 100%; box-sizing: border-box; }
	body.pc-nav-open { overflow: hidden; }
}
@media (max-width: 782px) {
	.admin-bar .pc-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .pc-header { top: 0; }
	.pc-topbar__in { justify-content: center; text-align: center; }
	.pc-topbar__txt { display: none; }
}

/* ==========================================================================
   Bandeau de fin de page
   ========================================================================== */
.pc-bandeau {
	background: var(--pc-black);
	color: #fff;
	position: relative;
	overflow: hidden;
}
.pc-bandeau__decor {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 26%;
	background-image: url("images/bandeau-fond.webp");
	background-size: cover;
	background-repeat: no-repeat;
	pointer-events: none;
}
.pc-bandeau__decor--g {
	left: 0;
	background-position: left center;
	-webkit-mask-image: linear-gradient(to right, #000 35%, transparent);
	mask-image: linear-gradient(to right, #000 35%, transparent);
}
.pc-bandeau__decor--d {
	right: 0;
	background-position: right center;
	-webkit-mask-image: linear-gradient(to left, #000 35%, transparent);
	mask-image: linear-gradient(to left, #000 35%, transparent);
}
.pc-bandeau__in {
	position: relative;
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(64px, 8vw, 104px) var(--pc-pad);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 24px;
}
.pc-site .pc-bandeau__titre {
	font-family: var(--pc-serif);
	font-weight: 500;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.1;
	color: #fff;
	margin: 0;
}
.pc-bandeau__texte { font-size: 17px; line-height: 1.6; color: var(--pc-on-dark); margin: 0; }

@media (max-width: 700px) {
	.pc-bandeau__decor { width: 40%; opacity: 0.6; }
}

/* ==========================================================================
   Mention Qualiopi (partial unique)
   ========================================================================== */
.pc-qualiopi { display: flex; flex-direction: column; gap: 12px; }
.pc-qualiopi__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pc-qualiopi__logo {
	height: 64px;
	width: auto;
	background: #fff;
	border-radius: 6px;
	padding: 4px;
}
.pc-qualiopi__text,
.pc-qualiopi__rh { margin: 0; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.pc-footer {
	background: var(--pc-black);
	color: var(--pc-on-dark-muted);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pc-footer a { color: var(--pc-on-dark-muted); }
.pc-footer a:hover,
.pc-footer a:focus-visible { color: #fff; }
.pc-footer__in {
	max-width: var(--pc-max);
	margin: 0 auto;
	padding: 64px var(--pc-pad) 32px;
	display: flex;
	flex-direction: column;
	gap: 48px;
}
.pc-footer__cols {
	display: grid;
	grid-template-columns: minmax(200px, 1.2fr) 3fr;
	gap: 36px;
}
.pc-footer__id { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pc-logo--footer { height: 64px; }
.pc-footer__adr { margin: 0; font-size: 14px; line-height: 1.6; }
.pc-footer__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
}
.pc-footer__social:hover { border-color: var(--pc-red); background: var(--pc-red); }

.pc-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 36px;
}
.pc-footer__menu > li { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.pc-footer__menu > li > a {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
}
.pc-footer__menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.pc-footer__menu .sub-menu a { line-height: 1.4; }

.pc-footer__bas {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 12px;
	line-height: 1.6;
}
.pc-footer .pc-qualiopi__logo { height: 48px; }
.pc-footer .pc-qualiopi__cert { color: #fff; font-weight: 600; }
.pc-footer__legal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px 20px;
	flex-wrap: wrap;
}
.pc-footer__legal-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 8px 20px;
	flex-wrap: wrap;
}
.pc-footer__credit { margin: 0; }

@media (max-width: 900px) {
	.pc-footer__cols { grid-template-columns: 1fr; }
}
