/*
 * LVFP — styles résiduels non couverts par theme.json.
 * Header transparent en haut de page, puis fond blanc + ombre au scroll.
 * Toutes les couleurs/typos passent par les tokens theme.json (var --wp--preset--*).
 */

/*
 * --- Header ---
 * Par défaut (pages internes) : header collant, fond blanc, texte foncé.
 * Sur la home (body.home, héro sombre) : header superposé transparent,
 * texte + logo blancs ; bascule fond blanc + ombre au scroll (.is-stuck).
 */
.lvfp-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	width: 100%;
	background-color: var(--wp--preset--color--base);
	box-shadow: 0 1px 0 var(--wp--preset--color--line);
	transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* --- Catalogue et fiches Vimeo --- */
.lvfp-vimeo-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #101820;
}

.lvfp-vimeo-player iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.lvfp-vimeo-card {
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--base);
}

.lvfp-vimeo-card .wp-block-post-title,
.lvfp-vimeo-card .wp-block-post-date {
	padding-right: var(--wp--preset--spacing--30);
	padding-left: var(--wp--preset--spacing--30);
}

.lvfp-vimeo-card .wp-block-post-date {
	padding-bottom: var(--wp--preset--spacing--30);
}
.lvfp-header a { color: var(--wp--preset--color--text); }
.lvfp-header a:hover { color: var(--wp--preset--color--primary); }

/* Home : header superposé au héro. */
.home .lvfp-header {
	position: fixed;
	background-color: transparent;
	box-shadow: none;
}
/* Home, en haut de page (héro sombre) : texte clair sur fond transparent. */
.home .lvfp-header:not(.is-stuck) a {
	color: var(--wp--preset--color--base);
}
/* État « collé » : fond blanc, ombre douce, texte foncé. */
.home .lvfp-header.is-stuck {
	background-color: var(--wp--preset--color--base);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.home .lvfp-header.is-stuck a {
	color: var(--wp--preset--color--text);
}
.home .lvfp-header.is-stuck a:hover {
	color: var(--wp--preset--color--primary);
}

/* Page Contact : menu posé sur le bandeau photographique comme sur le site actuel. */
.lvfp-contact-page .lvfp-header {
	position: fixed;
	background-color: transparent;
	box-shadow: none;
}
.lvfp-contact-page .lvfp-header:not(.is-stuck) a {
	color: var(--wp--preset--color--base);
}
.lvfp-contact-page .lvfp-header:not(.is-stuck) .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--base);
}
.lvfp-contact-page .lvfp-header.is-stuck {
	background-color: var(--wp--preset--color--base);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.lvfp-contact-page #lvfp-main { margin-block-start: 0; }

/* Le bouton du header garde toujours le rouge marque. */
.lvfp-header .wp-block-button__link {
	color: var(--wp--preset--color--base) !important;
}

/* --- Logo : bascule blanc (héro) / foncé (scroll) --- */
body.home #lvfp-main { margin-block-start: 0; }
.lvfp-brand {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
	position: relative;
}
.lvfp-brand__logo {
	display: block;
	margin: 0;
	transition: opacity 0.3s ease;
}
.lvfp-brand__logo img {
	display: block;
	height: 52px;
	width: auto;
}
/* Par défaut (pages internes / header blanc) : logo foncé visible. */
.lvfp-brand__logo--light {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	pointer-events: none;
}
/* Home, héro transparent : logo blanc visible, logo foncé masqué. */
.home .lvfp-header:not(.is-stuck) .lvfp-brand__logo--light { opacity: 1; position: static; }
.home .lvfp-header:not(.is-stuck) .lvfp-brand__logo--dark { opacity: 0; position: absolute; top: 0; left: 0; }
.lvfp-contact-page .lvfp-header:not(.is-stuck) .lvfp-brand__logo--light { opacity: 1; position: static; }
.lvfp-contact-page .lvfp-header:not(.is-stuck) .lvfp-brand__logo--dark { opacity: 0; position: absolute; top: 0; left: 0; }

/* --- Navigation header --- */
.lvfp-header .lvfp-nav {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.4px;
}
.lvfp-header .lvfp-nav a { text-decoration: none; }
/* Item « Expertises » : pas de page mère, donc rendu sans href par le bloc core.
   On neutralise le curseur texte (un <a> sans href n'est pas un lien). */
.lvfp-header .lvfp-nav a.wp-block-navigation-item__content:not([href]) { cursor: default; }

/* --- Méga menu « Affaires en cours » ---
   Le sous-menu natif (colonne étroite) est transformé en panneau large 3 colonnes.
   Le contenu (23 affaires) est injecté dynamiquement par le pattern
   lvfp/nav-affaires-megamenu (WP_Query sur le CPT « affaire »).
   Appliqué uniquement quand la nav est horizontale (>=600px : au-dessous, overlay
   burger natif = liste empilée normale, pas de grille). */
@media (min-width: 600px) {
	/* Petit écart visuel (~10px) entre le lien de nav et le panneau déroulant,
	   SANS casser le survol : le panneau descend de 10px et un pont transparent
	   (::before) comble l'espace pour garder le hover continu lien → panneau.
	   S'applique aux dropdowns de 1er niveau (Expertises + méga menu Affaires). */
	.lvfp-header .lvfp-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-container {
		top: calc(100% + 10px);
	}
	.lvfp-header .lvfp-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-container::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: -10px;
		height: 10px;
		background: transparent;
	}

	/* Sous-menu Expertises : fond clair, liens lisibles sur le header transparent. */
	.lvfp-header .lvfp-nav .lvfp-expertises > .wp-block-navigation__submenu-container {
		left: 0 !important;
		right: auto !important;
		width: 260px !important;
		min-width: 260px !important;
		padding: 8px 0;
		background-color: var(--wp--preset--color--base);
		border: 1px solid var(--wp--preset--color--line);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
	}
	.lvfp-header .lvfp-nav .lvfp-expertises > .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
	.home .lvfp-header:not(.is-stuck) .lvfp-nav .lvfp-expertises > .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
	.lvfp-contact-page .lvfp-header:not(.is-stuck) .lvfp-nav .lvfp-expertises > .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		display: block;
		width: 100%;
		padding: 10px 18px;
		color: var(--wp--preset--color--text);
		text-transform: none;
		letter-spacing: 0;
		font-size: 14px;
		line-height: 1.35;
	}
	.lvfp-header .lvfp-nav .lvfp-expertises > .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
	.lvfp-header .lvfp-nav .lvfp-expertises > .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus {
		color: var(--wp--preset--color--primary);
		background-color: var(--wp--preset--color--surface);
	}

	/* Panneau : ancré à droite de l'item pour ne jamais déborder du viewport. */
	.lvfp-header .lvfp-nav .lvfp-megamenu > .wp-block-navigation__submenu-container {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2px 28px;
		width: 760px !important;
		max-width: calc(100vw - 40px);
		left: auto;
		right: 0;
		padding: 22px 26px !important;
		background-color: var(--wp--preset--color--base);
		border: 1px solid var(--wp--preset--color--line);
		border-radius: 0;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
	}
	.lvfp-header .lvfp-nav .lvfp-megamenu > .wp-block-navigation__submenu-container > .wp-block-navigation-item {
		margin: 0;
	}
	/* Liens d'affaires : Poppins 14px, casse d'origine (titres lisibles),
	   on annule l'uppercase/letter-spacing du menu principal.
	   Ciblage restreint au CONTENU du panneau (`> .submenu-container`) : en
	   descendant simple, la règle attrapait aussi le lien « Affaires en cours »
	   de 1er niveau, qui perdait alors l'uppercase et surtout la couleur claire
	   du header transparent de la home (item illisible sur le héro sombre). */
	.lvfp-header .lvfp-nav .lvfp-megamenu > .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		font-family: var(--wp--preset--font-family--heading);
		font-weight: 400;
		text-transform: none;
		letter-spacing: 0;
		font-size: 14px;
		line-height: 1.3;
		color: var(--wp--preset--color--text);
		padding: 7px 0 !important;
	}
	.lvfp-header .lvfp-nav .lvfp-megamenu > .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
	.lvfp-header .lvfp-nav .lvfp-megamenu > .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus {
		color: var(--wp--preset--color--primary);
	}
	/* « Voir toutes les affaires → » : pleine largeur sous la grille, séparé, rouge. */
	.lvfp-header .lvfp-nav .lvfp-megamenu .lvfp-megamenu__all {
		grid-column: 1 / -1;
		margin-top: 10px;
		padding-top: 14px;
		border-top: 1px solid var(--wp--preset--color--line);
	}
	.lvfp-header .lvfp-nav .lvfp-megamenu .lvfp-megamenu__all .wp-block-navigation-item__content {
		color: var(--wp--preset--color--primary);
		font-weight: 500;
		text-transform: uppercase;
		letter-spacing: 0.4px;
		font-size: 13px;
	}
}

/* Overlay burger (mobile) : fond blanc opaque + texte foncé, y compris sur la home
   où les liens du header sont blancs (héro transparent) et seraient sinon invisibles
   dans l'overlay clair. Les affaires y restent une sous-liste empilée normale. */
.lvfp-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base);
}
.home .lvfp-header:not(.is-stuck) .wp-block-navigation__responsive-container.is-menu-open a {
	color: var(--wp--preset--color--text);
}
.home .lvfp-header:not(.is-stuck) .wp-block-navigation__responsive-container.is-menu-open a:hover {
	color: var(--wp--preset--color--primary);
}
.lvfp-contact-page .lvfp-header:not(.is-stuck) .wp-block-navigation__responsive-container.is-menu-open a {
	color: var(--wp--preset--color--text);
}

/* Bouton CONTACT en pill rouge, toujours (exception radius assumée, fidèle au live). */
.lvfp-header .lvfp-btn-pill .wp-block-button__link {
	background-color: var(--wp--preset--color--primary);
	border-radius: 999px;
	padding: 11px 26px;
	font-size: 13px;
}
.lvfp-header .lvfp-btn-pill .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--black);
}

/* --- Héro : contenu aligné à gauche --- */
.lvfp-hero .wp-block-cover__inner-container { width: 100%; }
.lvfp-hero__content {
	margin-left: 0 !important;
	margin-right: auto;
	text-align: left;
	max-width: 1120px;
	gap: clamp(16px, 2vw, 28px);
}
.lvfp-hero__content .wp-block-buttons { gap: 14px; }
/* Typo héro : surtitre compact, promesse forte et paragraphe unique. */
.lvfp-hero__content h1.lvfp-hero__eyebrow {
	max-width: none;
	margin: 0 !important;
	padding-bottom: clamp(28px, 2.4vw, 40px);
	font-size: clamp(12px, 1vw, 15px);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.lvfp-hero__content .lvfp-hero__title {
	max-width: 1050px;
	margin: 0 !important;
	padding-bottom: clamp(36px, 3vw, 52px);
	font-size: clamp(42px, 5.4vw, 78px) !important;
	line-height: 1.08;
}
.lvfp-hero__content p {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 300;
	text-align: left;
	max-width: 980px;
}
.lvfp-hero__content .lvfp-hero__lead {
	margin: 0 !important;
	max-width: 1080px;
	font-size: clamp(15px, 1.15vw, 17px);
	line-height: 1.7;
	opacity: 0.88;
}
.lvfp-hero__content > .wp-block-buttons {
	margin-top: 36px !important;
}

/* --- Bandeau titre de page (part page-hero) ---
   Le part est rendu dans un wp:template-part {tagName:"div"} à l'intérieur du <main>
   en layout constrained : ce wrapper contraint l'alignfull à ~contentSize. On force
   donc le full-bleed en CSS (100vw + marges négatives calc(50% - 50vw)).
   Fond = dégradé slate #313e47 (0.92 → 0.55) + image reprise du live (page-hero-bg.jpg),
   posé en CSS car le part est un fichier .html (pas de get_theme_file_uri possible).
   Le chemin relatif ../images/ est résolu depuis assets/css/app.css. */
.lvfp-page-hero {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background-image:
		linear-gradient(180deg, rgba(49, 62, 71, 0.92) 0%, rgba(49, 62, 71, 0.55) 100%),
		url('../images/page-hero-bg.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Contact : composition du bandeau et de la section coordonnées/formulaire. */
.lvfp-contact-hero {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background-image: linear-gradient(180deg, #313e47 0%, rgba(49, 62, 71, .5) 100%), url('../images/contact-hero.jpg');
	background-size: cover;
	background-position: center;
}
.lvfp-contact-hero .wp-block-post-title {
	margin: 0;
	text-align: center;
	font-size: 30px;
	font-weight: 500;
}
.lvfp-contact-page #lvfp-main > .wp-block-post-content { margin-block-start: 0; }
.lvfp-contact-content {
	padding: 27px 24px 28px;
}
.lvfp-contact-content > .wp-block-columns,
.lvfp-contact-content > .lvfp-map { max-width: 1080px; margin-inline: auto; }
.lvfp-contact-columns { gap: 60px; }
.lvfp-contact-info h2 {
	font-size: 30px;
	font-weight: 300;
	margin: 0 0 35px;
}
.lvfp-contact-info h2::after {
	content: '';
	display: block;
	width: 70px;
	height: 3px;
	margin-top: 10px;
	background: var(--wp--preset--color--primary);
}
.lvfp-contact-line {
	position: relative;
	min-height: 25px;
	margin: 0 0 27px;
	padding-left: 47px;
	font-size: 16px;
}
.lvfp-contact-line::before {
	position: absolute;
	left: 0;
	width: 24px;
	color: var(--wp--preset--color--primary);
	font-size: 24px;
	line-height: 1;
	text-align: center;
}
.lvfp-contact-line--address::before { content: '⌖'; }
.lvfp-contact-line--phone::before { content: '☎'; }
.lvfp-contact-line--email::before { content: '✉'; }
.lvfp-contact-line a { color: inherit; text-decoration: none; }
.lvfp-contact-line a:hover { color: var(--wp--preset--color--primary); text-decoration: underline; }
.lvfp-contact-content > .lvfp-map { margin-top: 65px; border: 0; }
.lvfp-contact-content > .lvfp-map iframe { height: 400px; }
.lvfp-contact-footer { padding: 18px 24px; }
.lvfp-contact-footer p { max-width: 1080px; margin: 0 auto; color: #bbb; }
.lvfp-contact-footer a { color: inherit; text-decoration: none; }
.lvfp-contact-footer a:hover { color: #fff; text-decoration: underline; }

/* Formulaire natif Ninja Forms : deux colonnes, libellés accessibles et champs gris. */
.lvfp-contact-form .nf-before-form-content { display: none; }
.lvfp-contact-form .nf-form-content { padding: 0; }
.lvfp-contact-form nf-fields-wrap {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 29px 30px;
}
.lvfp-contact-form nf-field:nth-child(n+5) { grid-column: 1 / -1; }
.lvfp-contact-form .nf-field-container { margin: 0; }
.lvfp-contact-form .nf-field-label:not(.checkbox-wrap .nf-field-label) {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
.lvfp-contact-form .nf-form-content input[type="text"],
.lvfp-contact-form .nf-form-content input[type="email"],
.lvfp-contact-form .nf-form-content input[type="tel"],
.lvfp-contact-form .nf-form-content textarea {
	background: #f4f5f6;
	border: 0;
	min-height: 41px;
	padding: 10px;
	font-size: 14px;
}
.lvfp-contact-form .nf-form-content textarea { height: 140px; min-height: 140px; }
.lvfp-contact-form .checkbox-container::before {
	content: 'RGPD *';
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 600;
}
.lvfp-contact-form .nf-form-content input[type="submit"],
.lvfp-contact-form .nf-form-content input[type="button"] {
	text-transform: none !important;
	padding: 10px 12px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
}
.lvfp-contact-form .checkbox-container .nf-field-label,
.lvfp-contact-form .checkbox-container label { position: static; width: auto; height: auto; }
@media (max-width: 781px) {
	.lvfp-contact-hero { min-height: 330px !important; }
	.lvfp-contact-columns { gap: 35px; }
	.lvfp-contact-content { padding-inline: 20px; }
}
@media (max-width: 600px) {
	.lvfp-contact-form nf-fields-wrap { grid-template-columns: 1fr; gap: 18px; }
	.lvfp-contact-form nf-field { grid-column: 1 / -1; }
	.lvfp-contact-line--email { font-size: 14px; overflow-wrap: anywhere; }
}
@media (max-width: 781px) {
	.lvfp-page-hero { min-height: 30vh; }
}

/* --- Boutons fantômes (contour blanc) sur fonds sombres/rouge --- */
.lvfp-btn-ghost .wp-block-button__link {
	background-color: transparent !important;
	color: var(--wp--preset--color--base) !important;
	border: 2px solid var(--wp--preset--color--base);
	border-radius: 0;
}
.lvfp-btn-ghost .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--primary) !important;
}

/* --- Titres de section avec trait rouge --- */
.lvfp-section-title {
	position: relative;
	padding-bottom: 16px;
}
.lvfp-section-title::after {
	content: "";
	display: block;
	width: 46px;
	height: 3px;
	background-color: var(--wp--preset--color--primary);
	margin-top: 14px;
}
.has-text-align-center.lvfp-section-title::after { margin-left: auto; margin-right: auto; }

/* Liens fléchés rouges. */
.lvfp-arrow-link a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.lvfp-arrow-link a:hover { text-decoration: underline; }

/* Chapeau centré (intro de section). */
.lvfp-lede {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	color: var(--wp--preset--color--text-soft);
}

/* --- Bandeau rouge affaires --- */
.lvfp-redband .wp-block-button__link { color: var(--wp--preset--color--base) !important; }

/* --- Photo fondateurs --- */
.lvfp-founders img {
	width: 100%;
	height: auto;
	display: block;
}

/* --- Cartes vidéos « Ce que nous avons dit » --- */
.lvfp-video-card {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	padding: 26px 28px;
}
.lvfp-video-card h3 { margin: 0 0 10px; line-height: 1.35; }
.lvfp-video-card h3 a { color: var(--wp--preset--color--text); text-decoration: none; }
.lvfp-video-card h3 a:hover { color: var(--wp--preset--color--primary); }
.lvfp-video-card p { margin: 0 0 6px; }
.lvfp-video-date { color: var(--wp--preset--color--text-muted); }

/* --- Logo média en tête de carte « Revue de presse » --- */
.lvfp-press-logo { margin: 0 0 14px; }
.lvfp-press-logo img {
	height: 26px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

/* --- Bloc « Réponse au livre » (fiche Aristophil) --- */
.lvfp-book-response { padding-top: var(--wp--preset--spacing--50); }
.lvfp-book-cover img { width: 100%; height: auto; }

/* --- Cartes actualités --- */
.lvfp-news-card { overflow: hidden; }
.lvfp-news-card .wp-block-post-featured-image { margin-top: 0; }
.lvfp-news-card .wp-block-post-featured-image img {
	width: 100%;
	height: 180px;
	object-fit: cover;
}
.lvfp-news-card .wp-block-post-title { margin: 0 0 10px; line-height: 1.35; }
.lvfp-news-card .wp-block-post-date { color: var(--wp--preset--color--text-muted); margin-bottom: 10px; }

/* --- Responsive --- */
@media (max-width: 781px) {
	.lvfp-redband .alignwide { row-gap: 20px; }
}

/* --- Cartes domaines / affaires : effet de survol léger (depth subtle-shadows) --- */
.lvfp-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lvfp-card:hover,
.lvfp-card:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* --- Étapes numérotées --- */
.lvfp-step-num {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}

/* --- Pied de page --- */
.lvfp-footer-list {
	list-style: none;
	margin: 0;
	padding-left: 0;
}
.lvfp-footer-list a {
	color: var(--wp--preset--color--line);
	text-decoration: none;
}
.lvfp-footer-list a:hover,
.lvfp-footer-list a:focus {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
}

/* Formulaire de rappel (placeholder, en attendant le plugin de formulaire). */
.lvfp-callback__row {
	margin: 0 0 12px;
}
.lvfp-callback input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--text-soft);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	border-radius: 0;
}
.lvfp-callback input:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
}
.lvfp-callback button {
	border: none;
	cursor: pointer;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	text-transform: uppercase;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	letter-spacing: 0.5px;
	padding: 14px 28px;
}
.lvfp-callback button:hover,
.lvfp-callback button:focus {
	background: var(--wp--preset--color--black);
}

/* Utilitaire d'accessibilité pour les labels masqués visuellement. */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Lien d'évitement (skip-link) : masqué (screen-reader-text) puis
   révélé au focus clavier. Le :focus doit annuler le clip de .screen-reader-text. --- */
.skip-link:focus {
	position: fixed;
	top: 10px;
	left: 20px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	clip: auto;
	clip-path: none;
	overflow: visible;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	text-decoration: none;
	border-radius: 0;
	outline: 2px solid var(--wp--preset--color--base);
	outline-offset: 2px;
}

/* --- FAQ (bloc Details natif) --- */
.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 18px 0;
}
.wp-block-details summary {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	color: var(--wp--preset--color--text);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	transition: color 0.2s ease;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
/* Chevron indicateur (dessiné en CSS, hérite de la couleur du summary). */
.wp-block-details summary::after {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	margin-right: 2px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}
.wp-block-details[open] summary::after {
	transform: rotate(-135deg);
}
/* Hover : passage rouge + léger décalage du chevron pour l'affordance. */
.wp-block-details summary:hover {
	color: var(--wp--preset--color--primary);
}
.wp-block-details summary:hover::after {
	transform: rotate(45deg) translate(2px, 2px);
}
.wp-block-details[open] summary:hover::after {
	transform: rotate(-135deg) translate(-2px, -2px);
}
.wp-block-details[open] summary {
	color: var(--wp--preset--color--primary);
}

/*
 * --- Ninja Forms (page Contact + footer « être rappelé ») ---
 * Habille les champs bruts Ninja aux tokens de la charte : inputs à filet
 * fin (line), angles droits, padding confortable ; labels Poppins ;
 * bouton d'envoi = CTA primaire rouge (fidèle .lvfp-btn). Tokens uniquement.
 */
.nf-form-content { max-width: none; }

/* Labels — Poppins, ton texte principal */
.nf-form-content .nf-field-label label,
.nf-form-content label.nf-checkbox-label {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--text);
	margin-bottom: 6px;
}
.nf-form-content .ninja-forms-req-symbol {
	color: var(--wp--preset--color--primary);
}

/* Champs texte / email / tel / textarea / select */
.nf-form-content input[type="text"],
.nf-form-content input[type="email"],
.nf-form-content input[type="tel"],
.nf-form-content input[type="url"],
.nf-form-content input[type="number"],
.nf-form-content textarea,
.nf-form-content select {
	width: 100%;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
	padding: 12px 14px;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nf-form-content textarea { min-height: 140px; line-height: 1.6; }
.nf-form-content input::placeholder,
.nf-form-content textarea::placeholder {
	color: var(--wp--preset--color--text-muted);
	opacity: 1;
}

/* Focus — filet rouge + halo discret (depth subtle) */
.nf-form-content input:focus,
.nf-form-content textarea:focus,
.nf-form-content select:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(169, 5, 51, 0.12);
}

/* Case RGPD — alignement propre libellé/checkbox */
.nf-form-content .checkbox-wrap .nf-field-element,
.nf-form-content .listcheckbox-wrap .nf-field-element { margin-top: 2px; }
.nf-form-content .checkbox-container label,
.nf-form-content .checkbox-wrap label {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--text-soft);
	line-height: 1.5;
}
.nf-form-content input[type="checkbox"] { accent-color: var(--wp--preset--color--primary); }

/* Bouton d'envoi — CTA primaire rouge de la charte.
   NB : Ninja Forms rend le submit en <input type="submit"> (parfois "button"). */
.nf-form-content .submit-wrap input[type="button"],
.nf-form-content .submit-wrap input[type="submit"],
.nf-form-content input.ninja-forms-field[type="button"],
.nf-form-content input.ninja-forms-field[type="submit"] {
	display: inline-block;
	width: auto;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--medium);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--primary);
	border: none;
	border-radius: 0;
	padding: 14px 28px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.nf-form-content .submit-wrap input[type="button"]:hover,
.nf-form-content .submit-wrap input[type="button"]:focus,
.nf-form-content .submit-wrap input[type="submit"]:hover,
.nf-form-content .submit-wrap input[type="submit"]:focus,
.nf-form-content input.ninja-forms-field[type="button"]:hover,
.nf-form-content input.ninja-forms-field[type="button"]:focus,
.nf-form-content input.ninja-forms-field[type="submit"]:hover,
.nf-form-content input.ninja-forms-field[type="submit"]:focus {
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--base);
}

/* Messages d'erreur / succès aux tokens */
.nf-form-content .nf-error-msg,
.nf-form-content .nf-error.field-wrap .nf-field-element input {
	color: var(--wp--preset--color--primary);
}
.nf-form-content .nf-error input,
.nf-form-content .nf-error textarea { border-color: var(--wp--preset--color--primary); }
.nf-response-msg { font-family: var(--wp--preset--font-family--body); }

/* Carte Google Map — filet fin cohérent charte */
.lvfp-map { border: 1px solid var(--wp--preset--color--line); line-height: 0; }

/* --- Pages légales : encarts « à compléter » ---
   Signalent les mentions obligatoires que seul le cabinet peut renseigner
   (assurance RCP, DPO, hébergeur définitif…). Volontairement TRÈS visibles :
   ils doivent tous avoir disparu du contenu avant la mise en production. */
.lvfp-todo {
	border-left: 4px solid var(--wp--preset--color--primary);
	background-color: #fdf3f5;
	padding: 14px 18px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}


/* --- Sous-menus repliables dans l’overlay mobile --- */
@media (max-width: 599px) {
	/* Le header est superposé au cover : réserve sa hauteur pour que le H1
	   ne passe pas sous le logo et le CTA Contact. */
	.lvfp-hero {
		min-height: auto !important;
		padding-top: 150px !important;
		padding-bottom: 70px !important;
	}

	.lvfp-hero__content h1.lvfp-hero__eyebrow {
		padding-bottom: 22px;
	}

	.lvfp-hero__content .lvfp-hero__title {
		padding-bottom: 30px;
	}

	.lvfp-hero__content .lvfp-hero__lead {
		font-size: 15px;
		line-height: 1.65;
	}

	.lvfp-hero__content > .wp-block-buttons {
		margin-top: 28px !important;
	}

	.lvfp-header .wp-block-navigation__responsive-container.is-menu-open .lvfp-mobile-accordion {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 44px;
		align-items: center;
		width: 100%;
	}

	.lvfp-header .wp-block-navigation__responsive-container.is-menu-open .lvfp-mobile-accordion > .wp-block-navigation-item__content {
		grid-column: 1;
		grid-row: 1;
	}

	.lvfp-header .wp-block-navigation__responsive-container.is-menu-open .lvfp-mobile-accordion > .wp-block-navigation__submenu-icon {
		display: flex !important;
		grid-column: 2;
		grid-row: 1;
		position: static !important;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		cursor: pointer;
	}

	.lvfp-header .wp-block-navigation__responsive-container.is-menu-open .lvfp-mobile-accordion > .wp-block-navigation__submenu-icon svg {
		width: 14px;
		height: 14px;
		transition: transform 0.2s ease;
	}

	.lvfp-header .wp-block-navigation__responsive-container.is-menu-open .lvfp-mobile-accordion > .wp-block-navigation__submenu-container {
		display: none !important;
		grid-column: 1 / -1;
		position: static !important;
		width: 100% !important;
		min-width: 0 !important;
		height: auto !important;
		visibility: hidden !important;
		opacity: 0 !important;
		overflow: visible !important;
		padding: 4px 0 12px 18px !important;
	}

	.lvfp-header .wp-block-navigation__responsive-container.is-menu-open .lvfp-mobile-accordion.is-open > .wp-block-navigation__submenu-container {
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	.lvfp-header .wp-block-navigation__responsive-container.is-menu-open .lvfp-mobile-accordion.is-open > .wp-block-navigation__submenu-icon svg {
		transform: rotate(180deg);
	}
}
