/**
 * Styles principaux — Saint-Vincent-de-Paul Nice
 * Les couleurs sont injectées via inc/colors.php (variables CSS --svp-*)
 */

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

html { scroll-behavior: smooth; }

body {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	color: var(--svp-body-text);
	background: var(--svp-body-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--svp-link);
	text-decoration: none;
	transition: color .25s ease, background .25s ease, transform .25s ease;
}

a:hover { color: var(--svp-link-hover); }

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

/* ── Topbar ── */
.topbar {
	background: var(--svp-topbar-bg);
	color: var(--svp-topbar-text);
	font-size: 13px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.topbar__inner {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	align-items: center;
}

.topbar__info span { margin-right: 18px; opacity: .85; }

.topbar__menu,
.topbar__menu ul {
	display: flex;
	gap: 18px;
	list-style: none;
	flex-wrap: wrap;
}

.topbar a { color: inherit; }
.topbar a:hover { color: var(--svp-topbar-link-hover); }

/* ── Header / Nav ── */
.site-header {
	background: var(--svp-header-bg);
	color: var(--svp-header-text);
	padding: 18px 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 4px 20px rgba(7, 22, 60, .25);
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--svp-header-text);
	font-family: 'Archivo Black', sans-serif;
	letter-spacing: .5px;
}

.logo__mark {
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background: var(--svp-white);
	display: grid;
	place-items: center;
	color: var(--svp-blue-800);
	font-family: 'Archivo Black', sans-serif;
	font-size: 22px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
	flex-shrink: 0;
}

.logo__mark--image img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }

.logo__text { font-size: 18px; line-height: 1.1; }

.logo__text small {
	display: block;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 10px;
	letter-spacing: 3px;
	opacity: .85;
	margin-top: 3px;
	text-transform: uppercase;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.menu,
.menu ul {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
}

.menu > li > a {
	padding: 10px 14px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14.5px;
	color: var(--svp-header-text);
	display: inline-block;
}

.menu > li > a:hover,
.menu > li.current-menu-item > a {
	background: rgba(255, 255, 255, .1);
	color: var(--svp-nav-link-hover-text);
}

.nav-cta {
	background: var(--svp-nav-cta-bg);
	color: var(--svp-nav-cta-text) !important;
	padding: 11px 22px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: .3px;
	box-shadow: 0 6px 18px rgba(245, 184, 0, .4);
	white-space: nowrap;
	flex-shrink: 0;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 8px;
}

.nav-cta:hover {
	background: var(--svp-nav-cta-hover-bg) !important;
	color: var(--svp-ink) !important;
	transform: translateY(-1px);
}

.burger {
	display: none;
	background: none;
	border: 0;
	color: var(--svp-header-text);
	font-size: 24px;
	cursor: pointer;
	padding: 4px 8px;
}

/* ── Buttons ── */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	transition: all .25s ease;
	cursor: pointer;
	border: 0;
}

.btn-primary {
	background: var(--svp-btn-primary-bg);
	color: var(--svp-btn-primary-text);
	box-shadow: 0 10px 24px rgba(245, 184, 0, .35);
}

.btn-primary:hover {
	transform: translateY(-2px);
	background: var(--svp-btn-primary-hover-bg);
	color: var(--svp-ink);
}

.btn-ghost {
	background: transparent;
	color: var(--svp-btn-ghost-text);
	border: 2px solid rgba(255, 255, 255, .35);
}

.btn-ghost:hover {
	background: var(--svp-btn-ghost-hover-bg);
	color: var(--svp-btn-ghost-hover-text);
	border-color: var(--svp-white);
}

.btn-dark {
	background: var(--svp-btn-dark-bg);
	color: var(--svp-white);
}

.btn-dark:hover { background: var(--svp-btn-dark-hover-bg); }

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

/* ── Hero ── */
.hero {
	position: relative;
	overflow: hidden;
	color: var(--svp-hero-text);
	padding: 90px 0 120px;
	background: linear-gradient(
		120deg,
		var(--svp-hero-gradient-start) 0%,
		var(--svp-hero-gradient-mid) 55%,
		var(--svp-hero-gradient-end) 100%
	);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 90% 10%, rgba(245, 184, 0, .15), transparent 40%),
		radial-gradient(circle at 10% 90%, rgba(58, 117, 232, .25), transparent 40%);
	pointer-events: none;
}

.hero__bg {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 55%;
	background: linear-gradient(135deg, rgba(58, 117, 232, .3), transparent);
	opacity: .28;
	mask-image: linear-gradient(to right, transparent 0%, black 70%);
	-webkit-mask-image: linear-gradient(to right, transparent 0%, black 70%);
}

.hero__grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.2fr .9fr;
	gap: 60px;
	align-items: center;
}

.hero h1 {
	font-family: 'Archivo Black', sans-serif;
	font-size: clamp(42px, 6vw, 84px);
	line-height: .95;
	letter-spacing: -1px;
	margin: 22px 0 24px;
	text-transform: uppercase;
}

.hero h1 span { color: var(--svp-hero-accent); }

.hero .lead {
	font-size: 18px;
	line-height: 1.6;
	opacity: .92;
	max-width: 560px;
	margin-bottom: 36px;
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 54px;
	max-width: 560px;
}

.stat { border-left: 3px solid var(--svp-stat-accent); padding-left: 14px; }

.stat__num {
	font-family: 'Archivo Black', sans-serif;
	font-size: 32px;
	color: var(--svp-stat-accent);
	line-height: 1;
}

.stat__lbl { font-size: 13px; opacity: .85; margin-top: 4px; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(245, 184, 0, .15);
	color: var(--svp-hero-eyebrow-text);
	padding: 8px 16px;
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: 1.5px;
	font-size: 12px;
	text-transform: uppercase;
	border: 1px solid rgba(245, 184, 0, .3);
}

.eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	background: var(--svp-yellow);
	border-radius: 50%;
}

.hero-card {
	background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: var(--svp-radius-lg);
	padding: 34px;
	backdrop-filter: blur(10px);
	position: relative;
}

.hero-card__badge {
	position: absolute;
	top: -14px;
	left: 24px;
	background: var(--svp-badge-bg);
	color: var(--svp-badge-text);
	padding: 6px 14px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.hero-card h3 {
	font-family: 'Archivo Black', sans-serif;
	font-size: 30px;
	line-height: 1;
	margin-bottom: 8px;
}

.hero-card h3 span { color: var(--svp-hero-accent); }

.hero-card p { opacity: .85; font-size: 14.5px; margin-bottom: 22px; }

.palme-stat {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.palme-stat__num {
	font-family: 'Archivo Black', sans-serif;
	font-size: 36px;
	color: var(--svp-hero-accent);
}

.palme-stat__lbl { font-size: 14px; opacity: .85; }

/* ── Sections ── */
.section { padding: 90px 0; }

.section--alt { background: var(--svp-section-alt-bg); }

.section-head {
	text-align: center;
	margin-bottom: 54px;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.section-eyebrow {
	color: var(--svp-section-eyebrow);
	font-weight: 800;
	letter-spacing: 3px;
	font-size: 12px;
	text-transform: uppercase;
	display: inline-block;
	margin-bottom: 14px;
}

.section-eyebrow::before,
.section-eyebrow::after {
	content: "";
	display: inline-block;
	width: 30px;
	height: 2px;
	background: var(--svp-section-eyebrow-line);
	vertical-align: middle;
	margin: 0 12px;
}

.section-title {
	font-family: 'Archivo Black', sans-serif;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.05;
	color: var(--svp-section-title);
	text-transform: uppercase;
	letter-spacing: -.5px;
}

.section-title span { color: var(--svp-section-title-accent); }

.section-sub { margin-top: 18px; font-size: 17px; color: var(--svp-section-subtitle); }

/* ── Formations grid ── */
.formations-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.formation-card {
	background: var(--svp-card-bg);
	border: 1px solid var(--svp-card-border);
	border-radius: var(--svp-radius);
	padding: 28px;
	position: relative;
	transition: transform .25s ease, box-shadow .25s ease;
}

.formation-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--svp-shadow-soft);
}

.formation-card__tag {
	display: inline-block;
	background: rgba(21, 71, 178, .1);
	color: var(--svp-blue-700);
	font-weight: 700;
	font-size: 12px;
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 14px;
}

.formation-card h3 {
	font-family: 'Archivo Black', sans-serif;
	font-size: 20px;
	margin-bottom: 10px;
	color: var(--svp-ink);
}

.formation-card p { font-size: 14.5px; color: var(--svp-muted); }

.formation-card__arrow {
	position: absolute;
	bottom: 28px;
	right: 28px;
	font-size: 20px;
	color: var(--svp-yellow);
	font-weight: 700;
}

/* ── CTA section ── */
.cta-section {
	background: linear-gradient(
		120deg,
		var(--svp-cta-gradient-start) 0%,
		var(--svp-cta-gradient-end) 100%
	);
	color: var(--svp-white);
}

.cta-section__inner {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}

.cta-section h2 {
	font-family: 'Archivo Black', sans-serif;
	font-size: clamp(32px, 4vw, 48px);
	text-transform: uppercase;
	line-height: 1.05;
	margin-bottom: 18px;
}

.cta-section p { opacity: .9; margin-bottom: 28px; font-size: 17px; }

.cta-section .btns { justify-content: center; }

/* ── Page hero (inner pages) ── */
.page-hero {
	background: linear-gradient(
		120deg,
		var(--svp-hero-gradient-start) 0%,
		var(--svp-hero-gradient-mid) 55%,
		var(--svp-hero-gradient-end) 100%
	);
	color: var(--svp-hero-text);
	padding: 120px 0 90px;
	position: relative;
	overflow: hidden;
}

.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 80% 20%, rgba(245, 184, 0, .18), transparent 45%),
		radial-gradient(circle at 10% 90%, rgba(58, 117, 232, .25), transparent 40%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero--compact { padding: 80px 0 60px; }

.breadcrumb {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 13px;
	opacity: .8;
	margin-bottom: 22px;
	flex-wrap: wrap;
}

.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--svp-hero-accent); }
.breadcrumb .sep { opacity: .4; }

.page-hero h1 {
	font-family: 'Archivo Black', sans-serif;
	font-size: clamp(40px, 6vw, 76px);
	line-height: .95;
	letter-spacing: -1px;
	margin: 18px 0 22px;
	text-transform: uppercase;
	max-width: 900px;
}

.page-hero .lead { font-size: 18px; line-height: 1.6; opacity: .92; max-width: 680px; }

/* ── Entry content ── */
.entry__content {
	font-size: 17px;
	line-height: 1.75;
	color: var(--svp-body-text);
}

.entry__content > * + * { margin-top: 1.25em; }

.entry__content h2,
.entry__content h3 {
	font-family: 'Archivo Black', sans-serif;
	color: var(--svp-ink);
	margin-top: 2em;
}

.entry__thumbnail {
	margin-bottom: 32px;
	border-radius: var(--svp-radius);
	overflow: hidden;
}

/* ── Footer ── */
.site-footer {
	background: var(--svp-footer-bg);
	color: rgba(255, 255, 255, .85);
	padding: 80px 0 30px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
	gap: 40px;
}

.site-footer h5 {
	font-family: 'Archivo Black', sans-serif;
	color: var(--svp-footer-heading);
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 2px;
	margin-bottom: 18px;
}

.site-footer h5::after {
	content: "";
	display: block;
	width: 30px;
	height: 3px;
	background: var(--svp-footer-accent-line);
	margin-top: 8px;
	border-radius: 2px;
}

.site-footer ul,
.footer-menu { list-style: none; }

.site-footer li { margin-bottom: 10px; font-size: 14.5px; }

.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--svp-footer-link-hover); }

.logo--footer { margin-bottom: 18px; }

.logo--footer .logo__mark {
	background: var(--svp-footer-logo-mark-bg);
	color: var(--svp-footer-logo-mark-text);
}

.foot-about {
	font-size: 14.5px;
	line-height: 1.65;
	opacity: .8;
	max-width: 340px;
}

.qualiopi {
	margin-top: 22px;
	padding: 14px;
	background: rgba(255, 255, 255, .06);
	border-radius: 12px;
	font-size: 12.5px;
	line-height: 1.5;
	border-left: 3px solid var(--svp-yellow);
}

.footer-bottom {
	margin-top: 50px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	opacity: .7;
	flex-wrap: wrap;
	gap: 14px;
}

/* ── Responsive ── */
@media (max-width: 980px) {
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--svp-header-bg);
		flex-direction: column;
		padding: 16px 24px 24px;
		box-shadow: var(--svp-shadow-soft);
	}

	.site-nav.is-open { display: flex; }

	.site-header { position: relative; }

	.menu,
	.menu ul { flex-direction: column; align-items: stretch; width: 100%; }

	.nav-cta { margin: 12px 0 0; justify-content: center; }

	.burger { display: block; }

	.hero__grid { grid-template-columns: 1fr; gap: 40px; }

	.hero-stats { grid-template-columns: 1fr; max-width: none; }

	.footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }

	.section { padding: 60px 0; }

	.page-hero { padding: 80px 0 60px; }
}

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

	.topbar__info span { display: block; margin: 4px 0; }
}
