/* ==========================================================================
   Naleen Foto – styles complémentaires au theme.json
   ========================================================================== */

/* Sections qui se touchent : pas d'espace entre les grandes bandes ------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.nf-sections > .alignfull,
.nf-sections > .alignfull + * { margin-block-start: 0; margin-block-end: 0; }
.nf-sections > :first-child { margin-block-start: 0; }

/* Calligraphie : mettre un mot en italique dans un titre le passe en
   Great Vibes (Ctrl+I dans l'éditeur). -------------------------------- */
:where(h1, h2, h3, .wp-block-heading, .wp-block-post-title) em {
	font-family: var(--wp--preset--font-family--calligraphie);
	font-style: normal;
	font-weight: 400;
	font-size: 1.3em;
	line-height: 0.9;
	letter-spacing: 0;
	color: var(--wp--preset--color--violet);
}
:where(.has-bleu-background-color, .has-violet-background-color) :where(h1, h2, h3, .wp-block-heading) em {
	color: var(--wp--preset--color--jaune);
}

/* Styles de paragraphe -------------------------------------------------- */
.is-style-nf-script {
	font-family: var(--wp--preset--font-family--calligraphie);
	font-size: clamp(2.25rem, 4vw, 2.9rem);
	line-height: 1;
	color: var(--wp--preset--color--violet);
	margin-block-end: -0.25rem;
}
.has-bleu-background-color .is-style-nf-script,
.has-violet-background-color .is-style-nf-script { color: var(--wp--preset--color--jaune); }

.is-style-nf-eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--wp--preset--color--violet);
}
.has-bleu-background-color .is-style-nf-eyebrow,
.has-violet-background-color .is-style-nf-eyebrow { color: var(--wp--preset--color--jaune); }

.nf-breadcrumb { color: var(--wp--preset--color--texte-doux); }
.nf-breadcrumb a { color: inherit; }

.nf-num {
	font-weight: 800;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--wp--preset--color--violet);
}
.has-bleu-background-color .nf-num,
.has-violet-background-color .nf-num { color: var(--wp--preset--color--jaune); }

.nf-stat { font-weight: 800; font-size: 1.9rem; line-height: 1.1; margin: 0; }
.nf-stat + p { margin-block-start: 0.15rem; }

/* Liens sur fonds foncés ------------------------------------------------ */
:where(.has-bleu-background-color, .has-violet-background-color) a:where(:not(.wp-element-button)) { color: inherit; }
:where(.has-bleu-background-color, .has-violet-background-color) a:where(:not(.wp-element-button)):hover { color: var(--wp--preset--color--jaune); }

/* Motifs de la charte en filigrane --------------------------------------- */
.is-style-nf-motif-mains,
.is-style-nf-motif-etoiles { position: relative; isolation: isolate; }
.is-style-nf-motif-mains::before,
.is-style-nf-motif-etoiles::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-repeat: repeat;
}
.is-style-nf-motif-mains::before {
	background-image: url(../images/pattern-rose.jpg);
	background-size: 560px auto;
	opacity: 0.22;
}
.is-style-nf-motif-etoiles::before {
	background-image: url(../images/pattern-violet.jpg);
	background-size: 620px auto;
	opacity: 0.07;
}

/* Cartes ---------------------------------------------------------------- */
.is-style-nf-carte {
	border-radius: var(--wp--custom--radius--card);
	padding: clamp(1.5rem, 3vw, 2rem);
}
.is-style-nf-carte:not(.has-background) { border: 1px solid var(--wp--preset--color--rose-moyen); }
.is-style-nf-carte > * { margin-block: 0; }
.is-style-nf-carte > * + * { margin-block-start: 0.75rem; }

.is-style-nf-etape {
	border-top: 2px solid var(--wp--preset--color--violet);
	padding-top: 1.25rem;
}
.has-bleu-background-color .is-style-nf-etape,
.has-violet-background-color .is-style-nf-etape { border-top-color: var(--wp--preset--color--jaune); }
.is-style-nf-etape > * { margin-block: 0; }
.is-style-nf-etape > * + * { margin-block-start: 0.6rem; }

/* Boutons --------------------------------------------------------------- */
.wp-block-button.is-style-nf-whatsapp .wp-block-button__link {
	background: var(--wp--preset--color--jaune);
	color: var(--wp--preset--color--bleu);
}
.wp-block-button.is-style-nf-whatsapp .wp-block-button__link:hover {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--bleu);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1.5px solid currentColor;
	background: transparent;
	color: inherit;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--bleu);
	border-color: var(--wp--preset--color--bleu);
	color: var(--wp--preset--color--blanc);
}
.wp-element-button { transition: background-color 0.2s ease, color 0.2s ease; }

/* Images ---------------------------------------------------------------- */
.wp-block-image img { width: 100%; height: auto; object-fit: cover; }
.wp-block-image.is-style-nf-arche img { border-radius: 999px 999px var(--wp--custom--radius--image) var(--wp--custom--radius--image); aspect-ratio: 4 / 5; }
.wp-block-image.is-style-nf-portrait img { aspect-ratio: 4 / 5; }
.wp-block-image.is-style-nf-paysage img { aspect-ratio: 3 / 2; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--wp--custom--radius--image); }
.wp-block-gallery.has-nested-images figure.wp-block-image { border-radius: var(--wp--custom--radius--image); overflow: hidden; }

/* Témoignages ----------------------------------------------------------- */
.wp-block-quote.is-style-nf-temoignage {
	background: var(--wp--preset--color--blanc);
	border-radius: var(--wp--custom--radius--card);
	padding: clamp(1.5rem, 3vw, 2rem);
	margin: 0;
}
.wp-block-quote.is-style-nf-temoignage::before {
	content: "★★★★★";
	display: block;
	color: var(--wp--preset--color--jaune);
	letter-spacing: 0.15em;
	margin-bottom: 0.75rem;
}
.wp-block-quote.is-style-nf-temoignage cite {
	display: block;
	margin-top: 1rem;
	font-size: 0.875rem;
	font-style: normal;
	color: var(--wp--preset--color--texte-doux);
}

/* FAQ (bloc Détails) ---------------------------------------------------- */
.wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 1.0625rem;
	padding: 1.15rem 2rem 1.15rem 0;
	list-style: none;
	position: relative;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--wp--preset--color--violet);
}
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > :not(summary) { margin-block: 0 1.15rem; color: var(--wp--preset--color--texte-doux); }

/* En-tête --------------------------------------------------------------- */
.nf-header { position: relative; z-index: 50; }
.nf-header .wp-block-navigation { gap: 0.4rem 1.4rem; }
.nf-header .wp-block-navigation a { text-decoration: none; }
.nf-header .wp-block-navigation .nf-nav-phare > a { color: var(--wp--preset--color--jaune); font-weight: 700; }
.nf-header .wp-block-navigation .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-radius: 14px;
	padding: 0.5rem;
	min-width: 270px !important;
	box-shadow: 0 18px 40px rgba(33, 47, 87, 0.22);
	background: var(--wp--preset--color--blanc) !important;
	color: var(--wp--preset--color--bleu) !important;
}
.nf-header .wp-block-navigation .wp-block-navigation__submenu-container a { border-radius: 10px; padding: 0.65rem 0.85rem !important; }
.nf-header .wp-block-navigation .wp-block-navigation__submenu-container a:hover { background: var(--wp--preset--color--rose-clair); color: var(--wp--preset--color--violet); }
.nf-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.nf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	box-shadow: none; background: transparent !important; color: inherit !important; padding: 0 0 0 1rem;
}

/* Pied de page ---------------------------------------------------------- */
.nf-footer p { margin-block: 0.15rem; }
.nf-footer .wp-block-social-links .wp-block-social-link-label { font-size: 0.875rem; }

/* Bouton WhatsApp flottant --------------------------------------------- */
.nf-wa-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 52px;
	padding: 0 1.1rem 0 0.9rem;
	border-radius: 999px;
	background: #25D366;
	color: #0B2E13;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.nf-wa-float:hover { background: #1EBE5A; color: #0B2E13; }
.nf-wa-float:focus-visible { outline: 3px solid var(--wp--preset--color--jaune); outline-offset: 3px; }
.nf-wa-float svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 600px) {
	.nf-wa-float span { display: none; }
	.nf-wa-float { padding: 0; width: 56px; justify-content: center; }
}

/* Formulaire de contact ------------------------------------------------- */
.nf-form { display: grid; gap: 1rem; }
.nf-form .nf-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.nf-form label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; }
.nf-form input, .nf-form select, .nf-form textarea {
	font: inherit;
	font-weight: 400;
	color: var(--wp--preset--color--bleu);
	background: var(--wp--preset--color--blanc);
	border: 1px solid #C792AE;
	border-radius: 10px;
	padding: 0.8rem 0.9rem;
	min-height: 48px;
	box-sizing: border-box;
	width: 100%;
}
.nf-form input:focus, .nf-form select:focus, .nf-form textarea:focus { outline: 2px solid var(--wp--preset--color--violet); outline-offset: 1px; }
.nf-form .nf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nf-form button {
	justify-self: start;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 0.9rem 1.8rem;
	border-radius: 999px;
	background: var(--wp--preset--color--violet);
	color: var(--wp--preset--color--blanc);
	min-height: 48px;
}
.nf-form button:hover { background: var(--wp--preset--color--bleu); }
.nf-notice { padding: 1rem 1.25rem; border-radius: 12px; font-weight: 600; }
.nf-notice.is-ok { background: #E3F5E9; color: #14532D; }
.nf-notice.is-error { background: #FDE8E8; color: #8A1C1C; }

/* Bloc Instagram de repli ----------------------------------------------- */
.nf-insta-fallback { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }

/* Articles du blog ------------------------------------------------------ */
.nf-post-card { height: 100%; }
.nf-post-card .wp-block-post-featured-image img { aspect-ratio: 3 / 2; object-fit: cover; }
.nf-post-card .wp-block-post-title a { text-decoration: none; }

/* Accessibilité : lien d'évitement ------------------------------------- */
.skip-link.screen-reader-text:focus { background: var(--wp--preset--color--jaune); color: var(--wp--preset--color--bleu); }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* Lignes de tarifs ------------------------------------------------------ */
.nf-price-row { border-top: 1px solid #E2B9CC; padding-top: 0.7rem; gap: 1rem; }
.nf-price-row > p { margin: 0; }
html { scroll-behavior: smooth; }
:where([id]) { scroll-margin-top: 1.5rem; }
:where(h1, h2, h3) { text-wrap: balance; }
:where(p) { text-wrap: pretty; }
@media (max-width: 781px) {
	.nf-header .wp-block-buttons { display: none; }
}
