/*
Theme Name: Nafrini Academy
Theme URI: https://nafriniacademy.com
Author: Chris Mouaya
Author URI: https://nafriniacademy.com
Description: Custom one-page WordPress theme for Nafrini Academy — a warm, premium coaching brand for women. Built from the official brand plan: Playfair Display + Poppins typography, the Bleu/Rose/Saumon/Or palette, and a conversion-focused single-page architecture (Hero, Méthode, Offres, Mini Guides, Organisations/WhatsApp, Contact). Includes a full "Theme Options" admin settings page and a "Mini Guides" content type.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nafrini
*/

/* ==========================================================================
   Self-hosted brand fonts (Playfair Display + Poppins)
   Bundled locally instead of loading from Google Fonts' CDN, so no visitor
   IP address is sent to Google just to render the page — one less GDPR
   consideration for an EU-based business. Files: assets/fonts/.
   Source: Fontsource (fonts.google.com originals, SIL Open Font License).
   ========================================================================== */

@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/playfair-display/playfair-display-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/playfair-display/playfair-display-latin-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/playfair-display/playfair-display-latin-700-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("assets/fonts/poppins/poppins-latin-300-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/poppins/poppins-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/poppins/poppins-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/poppins/poppins-latin-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/poppins/poppins-latin-700-normal.woff2") format("woff2");
}

/* ==========================================================================
   Brand tokens
   ========================================================================== */

:root {
	/* Official Nafrini palette (editable in Theme Options → Branding) */
	--nf-blue: #0D1B3D;
	--nf-rose: #EC4B7A;
	--nf-salmon: #FFE1D6;
	--nf-cream: #FFF7F1;
	--nf-gold: #EAB84D;

	--nf-text: #24263A;
	--nf-text-muted: #5B5F76;
	--nf-border: #F0DED4;
	--nf-white: #FFFFFF;

	--nf-heading-font: "Playfair Display", Georgia, "Times New Roman", serif;
	--nf-body-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--nf-radius-sm: 10px;
	--nf-radius-md: 18px;
	--nf-radius-lg: 28px;
	--nf-radius-pill: 999px;

	--nf-max-width: 1180px;
	--nf-shadow: 0 20px 50px -25px rgba(13, 27, 61, 0.25);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--nf-body-font);
	color: var(--nf-text);
	background: var(--nf-cream);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--nf-heading-font);
	color: var(--nf-blue);
	line-height: 1.2;
	margin: 0 0 0.5em;
	font-weight: 700;
}

p { margin: 0 0 1em; color: var(--nf-text-muted); }

a { color: var(--nf-rose); text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.container {
	max-width: var(--nf-max-width);
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
}

.nf-accent-line {
	width: 60px;
	height: 3px;
	background: var(--nf-rose);
	border: none;
	margin: 14px 0 22px;
}
.nf-accent-line.is-centered { margin-left: auto; margin-right: auto; }

.nf-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--nf-rose);
	text-transform: uppercase;
}

.nf-hero, .nf-section, main#main-content > section { scroll-margin-top: 90px; }
.nf-section { padding: 72px 0; }
.nf-section.is-tight { padding: 48px 0; }
.nf-section-title { text-align: center; margin-bottom: 8px; }
.nf-section-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.nf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--nf-body-font);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 13px 26px;
	border-radius: var(--nf-radius-pill);
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
	white-space: nowrap;
}
.nf-btn:hover { transform: translateY(-1px); text-decoration: none; }

.nf-btn--primary { background: var(--nf-rose); color: var(--nf-white); }
.nf-btn--primary:hover { opacity: 0.92; color: var(--nf-white); }

.nf-btn--outline { background: transparent; border-color: var(--nf-rose); color: var(--nf-rose); }
.nf-btn--outline:hover { background: var(--nf-salmon); color: var(--nf-rose); }

.nf-btn--dark { background: var(--nf-blue); color: var(--nf-white); }
.nf-btn--dark:hover { opacity: 0.92; color: var(--nf-white); }

.nf-btn--whatsapp { background: #25D366; color: var(--nf-white); }
.nf-btn--whatsapp:hover { opacity: 0.92; color: var(--nf-white); }

.nf-btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.nf-btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	background: var(--nf-cream);
	padding: 18px 0;
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 1px solid var(--nf-border);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding .custom-logo { max-height: 44px; width: auto; }
.site-branding .site-title {
	font-family: var(--nf-heading-font);
	font-size: 1.15rem;
	letter-spacing: 0.08em;
	margin: 0;
	color: var(--nf-blue);
	text-transform: uppercase;
}
.site-branding .site-title a { color: inherit; }
.site-branding .site-description {
	margin: 0;
	font-size: 0.6rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--nf-rose);
}

.primary-navigation ul {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}
.primary-navigation a {
	color: var(--nf-blue);
	font-weight: 500;
	font-size: 0.95rem;
	padding-bottom: 4px;
	border-bottom: 2px solid transparent;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
	border-bottom-color: var(--nf-rose);
	text-decoration: none;
}

.nf-header-actions { display: flex; align-items: center; gap: 14px; }

.nf-nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.6rem;
	color: var(--nf-blue);
	cursor: pointer;
}

@media (max-width: 900px) {
	.primary-navigation { display: none; width: 100%; order: 3; }
	.primary-navigation.is-open { display: block; }
	.primary-navigation ul { flex-direction: column; gap: 14px; padding: 16px 0; }
	.nf-nav-toggle { display: block; }
	.site-header .container { flex-wrap: wrap; }
	.nf-header-actions .nf-btn span.nf-btn-full-label { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.nf-hero { padding: 60px 0 80px; overflow: hidden; }
.nf-hero .container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
}

.nf-hero-heading {
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	margin-bottom: 0;
}
.nf-hero-heading .is-rose { color: var(--nf-rose); }

.nf-hero-text { max-width: 480px; margin-top: 20px; font-size: 1.02rem; }

.nf-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.nf-hero-media { position: relative; }
.nf-hero-media-frame {
	background: var(--nf-salmon);
	border-radius: var(--nf-radius-lg);
	padding: 14px;
	box-shadow: var(--nf-shadow);
}
.nf-hero-media-frame img { border-radius: calc(var(--nf-radius-lg) - 8px); }

.nf-play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--nf-rose);
	color: var(--nf-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	border: 4px solid var(--nf-white);
	cursor: pointer;
	box-shadow: 0 10px 30px -10px rgba(236, 75, 122, 0.6);
}

.nf-hero-caption {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: -28px;
	background: var(--nf-white);
	border-radius: var(--nf-radius-md);
	padding: 14px 18px;
	box-shadow: var(--nf-shadow);
	font-size: 0.85rem;
}
.nf-hero-caption strong { display: block; color: var(--nf-blue); margin-bottom: 2px; }

@media (max-width: 900px) {
	.nf-hero .container { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Méthode (6 steps)
   ========================================================================== */

.nf-method-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 18px;
	margin-top: 20px;
}
.nf-method-step { text-align: center; }
.nf-method-icon {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: var(--nf-salmon);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
	font-size: 1.8rem;
	color: var(--nf-rose);
	border: 2px solid var(--nf-white);
	box-shadow: 0 8px 20px -12px rgba(13, 27, 61, 0.35);
}
.nf-method-step .nf-step-number {
	display: block;
	font-size: 0.7rem;
	color: var(--nf-rose);
	font-weight: 700;
	margin-bottom: 4px;
}
.nf-method-step h3 { font-size: 0.95rem; margin: 0; }

@media (max-width: 1024px) {
	.nf-method-grid { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}
@media (max-width: 560px) {
	.nf-method-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Offres (2 coaching cards)
   ========================================================================== */

.nf-offers-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	margin-top: 20px;
}
.nf-offer-card {
	background: var(--nf-white);
	border-radius: var(--nf-radius-lg);
	padding: 28px;
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 20px;
	align-items: start;
	box-shadow: var(--nf-shadow);
}
.nf-offer-card .nf-offer-media {
	border-radius: var(--nf-radius-md);
	overflow: hidden;
	aspect-ratio: 1 / 1.15;
}
.nf-offer-tag {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nf-text-muted);
}
.nf-offer-card h3 { font-size: 1.35rem; margin: 4px 0 10px; color: var(--nf-rose); }
.nf-offer-card.is-dark h3 { color: var(--nf-blue); }

@media (max-width: 900px) {
	.nf-offers-grid { grid-template-columns: 1fr; }
	.nf-offer-card { grid-template-columns: 100px 1fr; }
}

/* ==========================================================================
   Mini Guides
   ========================================================================== */

.nf-guides-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 26px;
	margin-top: 20px;
}
.nf-guide-card { text-align: left; }
.nf-guide-cover {
	border-radius: var(--nf-radius-md);
	overflow: hidden;
	box-shadow: var(--nf-shadow);
	margin-bottom: 14px;
	aspect-ratio: 3 / 4;
	background: var(--nf-salmon);
	display: flex;
	align-items: center;
	justify-content: center;
}
.nf-guide-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.nf-guide-card .nf-guide-excerpt { font-size: 0.9rem; }
.nf-guide-card .nf-btn-link {
	color: var(--nf-rose);
	font-weight: 600;
	font-size: 0.9rem;
}

.nf-guides-footer { text-align: center; margin-top: 30px; }

/* ==========================================================================
   Organisations / WhatsApp / CTA row
   ========================================================================== */

.nf-trio-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 10px;
}
.nf-trio-card {
	background: var(--nf-white);
	border-radius: var(--nf-radius-lg);
	padding: 30px 26px;
	text-align: left;
}
.nf-trio-icon {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--nf-salmon);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	color: var(--nf-rose);
	margin-bottom: 16px;
}
.nf-trio-card h3 { font-size: 1.1rem; }
.nf-trio-card p { font-size: 0.9rem; margin-bottom: 18px; }

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

/* ==========================================================================
   Pourquoi Nafrini (Preuves)
   ========================================================================== */

.nf-why-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 20px;
}
.nf-why-card { text-align: center; padding: 10px; }
.nf-why-icon {
	width: 60px; height: 60px; border-radius: 50%;
	background: var(--nf-cream);
	border: 2px solid var(--nf-salmon);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 14px;
	color: var(--nf-rose);
	font-size: 1.3rem;
}
@media (max-width: 720px) { .nf-why-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact / "Parlons de toi"
   ========================================================================== */

.nf-contact { background: var(--nf-white); }
.nf-contact-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 40px;
	align-items: start;
	margin-top: 10px;
}
.nf-contact-intro { max-width: 420px; }
.nf-contact-methods { display: flex; gap: 26px; margin-top: 24px; flex-wrap: wrap; }
.nf-contact-method { text-align: center; font-size: 0.85rem; color: var(--nf-text-muted); }
.nf-contact-method .nf-contact-icon {
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--nf-salmon); color: var(--nf-rose);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 8px; font-size: 1.1rem;
}

.nf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nf-form .full-width { grid-column: 1 / -1; }
.nf-form label {
	display: block; font-size: 0.8rem; font-weight: 600;
	color: var(--nf-blue); margin-bottom: 6px;
}
.nf-form input,
.nf-form select,
.nf-form textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: var(--nf-radius-sm);
	border: 1px solid var(--nf-border);
	font-family: var(--nf-body-font);
	font-size: 0.95rem;
	background: var(--nf-cream);
}
.nf-form textarea { min-height: 110px; resize: vertical; }
.nf-form .nf-form-submit { margin-top: 6px; }

.nf-booking-card {
	background: var(--nf-blue);
	color: var(--nf-white);
	border-radius: var(--nf-radius-lg);
	padding: 30px;
	text-align: center;
}
.nf-booking-card h3 { color: var(--nf-white); font-size: 1.2rem; }
.nf-booking-card p { color: rgba(255,255,255,0.75); }
.nf-booking-icon {
	width: 56px; height: 56px; border-radius: 50%;
	background: rgba(255,255,255,0.12);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 16px; font-size: 1.3rem;
}

.nf-form-notice {
	grid-column: 1 / -1;
	padding: 12px 16px;
	border-radius: var(--nf-radius-sm);
	font-size: 0.9rem;
	margin-bottom: 4px;
}
.nf-form-notice.is-success { background: #E4F7EC; color: #146C43; }
.nf-form-notice.is-error { background: #FBE4E4; color: #B02A2A; }

@media (max-width: 900px) {
	.nf-contact-grid { grid-template-columns: 1fr; }
	.nf-form { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Booking modal
   ========================================================================== */

.nf-modal-overlay {
	position: fixed; inset: 0;
	background: rgba(13, 27, 61, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100;
	padding: 20px;
}
.nf-modal-overlay.is-open { display: flex; }
.nf-modal {
	background: var(--nf-white);
	border-radius: var(--nf-radius-md);
	width: 100%;
	max-width: 760px;
	max-height: 88vh;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.nf-modal-close {
	position: absolute; top: 10px; right: 14px;
	background: none; border: none; font-size: 1.6rem;
	cursor: pointer; color: var(--nf-blue); z-index: 2;
}
.nf-modal-body { flex: 1; overflow: auto; }
.nf-modal-body iframe { width: 100%; height: 74vh; border: none; }
.nf-modal-body .nf-modal-shortcode { padding: 30px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--nf-blue); color: rgba(255,255,255,0.8); padding: 56px 0 24px; margin-top: 20px; }
.nf-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 34px;
	border-bottom: 1px solid rgba(255,255,255,0.15);
}
.nf-footer-brand .site-title { color: var(--nf-white); }
.nf-footer-brand .site-description { color: var(--nf-rose); }
.nf-footer-brand p { color: rgba(255,255,255,0.65); margin-top: 14px; font-size: 0.9rem; max-width: 300px; }
.site-footer h4 { color: var(--nf-white); font-family: var(--nf-body-font); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.site-footer a:hover { color: var(--nf-white); }
.nf-footer-social { display: flex; gap: 12px; margin-top: 6px; }
.nf-footer-social a {
	width: 36px; height: 36px; border-radius: 50%;
	background: rgba(255,255,255,0.1);
	display: flex; align-items: center; justify-content: center;
}
.nf-footer-bottom {
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
	padding-top: 22px; font-size: 0.8rem; color: rgba(255,255,255,0.5);
}
.nf-footer-bottom a { color: rgba(255,255,255,0.6); }

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

/* ==========================================================================
   Generic page/post/archive templates (blog, static pages, guide archive)
   ========================================================================== */

.nf-page-header { text-align: center; padding: 50px 0 10px; }
.nf-page-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

.nf-entry-content { max-width: 760px; margin: 0 auto; padding: 30px 0 60px; }
.nf-entry-content img { border-radius: var(--nf-radius-md); }
.nf-entry-content h2, .nf-entry-content h3 { margin-top: 1.4em; }
.nf-entry-content ul, .nf-entry-content ol { color: var(--nf-text-muted); }

.nf-post-list { max-width: 760px; margin: 0 auto; padding: 10px 0 60px; display: grid; gap: 30px; }
.nf-post-summary {
	background: var(--nf-white);
	border-radius: var(--nf-radius-md);
	padding: 24px;
	box-shadow: var(--nf-shadow);
}
.nf-post-summary h2 { font-size: 1.3rem; margin-bottom: 8px; }
.nf-post-summary .nf-entry-meta { font-size: 0.8rem; color: var(--nf-text-muted); margin-bottom: 10px; }

.nf-guide-purchase-box {
	background: var(--nf-white);
	border-radius: var(--nf-radius-lg);
	padding: 30px;
	box-shadow: var(--nf-shadow);
	text-align: center;
	max-width: 420px;
	margin: 30px auto 0;
}

.nf-pagination { display: flex; justify-content: center; gap: 10px; padding-bottom: 60px; }
.nf-pagination a, .nf-pagination span {
	padding: 8px 14px; border-radius: var(--nf-radius-pill);
	background: var(--nf-white); color: var(--nf-blue); font-size: 0.9rem;
}
.nf-pagination .current { background: var(--nf-rose); color: #fff; }

/* ==========================================================================
   Misc: WP core alignment, screen-reader text
   ========================================================================== */

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
