/* ============================================================
   Sobre Pro - Feuille de style principale
   Architecture : variables CSS pilotées par le Customizer
   ============================================================ */

:root {
	--sp-primary: #0d9488;
	--sp-secondary: #134e4a;
	--sp-accent: #5eead4;
	--sp-text: #1f2937;
	--sp-bg: #ffffff;
	--sp-muted: #6b7280;
	--sp-border: #e5e7eb;
	--sp-surface: #f9fafb;
	--sp-radius: .375rem;
	--sp-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
	--sp-shadow-md: 0 4px 12px rgba(0,0,0,.08);
}

/* ============================ TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
	color: var(--sp-secondary);
	line-height: 1.25;
	margin: 0 0 .75em;
	font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1em; }

blockquote {
	border-left: 4px solid var(--sp-primary);
	margin: 1.5em 0;
	padding: .5em 1.25em;
	background: var(--sp-surface);
	font-style: italic;
	color: var(--sp-text);
}

/* ============================ NAVIGATION */
.site-nav {
	position: relative;
}
.primary-menu {
	display: flex;
	gap: 1.75rem;
	list-style: none;
	padding: 0;
	margin: 0;
}
.primary-menu li { position: relative; }
.primary-menu a {
	color: var(--sp-text);
	font-weight: 500;
	padding: .5rem 0;
	display: inline-block;
	position: relative;
}
.primary-menu a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--sp-primary);
	transform: scaleX(0);
	transition: transform .2s;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
	text-decoration: none;
	color: var(--sp-primary);
}
.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after {
	transform: scaleX(1);
}
.sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 220px;
	padding: .5rem 0;
	box-shadow: var(--sp-shadow-md);
	border-radius: var(--sp-radius);
	list-style: none;
	margin: 0;
	z-index: 10;
}
.sub-menu a {
	padding: .5rem 1rem;
	display: block;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	display: block;
}

.nav-toggle {
	display: none;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: .5rem;
	width: 44px;
	height: 44px;
	flex-direction: column;
	justify-content: space-between;
}
.nav-toggle__bar {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--sp-text);
	transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================ HERO */
.hero {
	position: relative;
	overflow: hidden;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.1), transparent 50%);
	pointer-events: none;
}
.hero__inner { position: relative; }
.btn--secondary {
	background: var(--sp-primary);
	color: #fff;
}
.btn--secondary:hover { background: var(--sp-secondary); }
.btn--outline {
	background: transparent;
	color: var(--sp-primary);
	border: 2px solid var(--sp-primary);
}
.btn--outline:hover {
	background: var(--sp-primary);
	color: #fff;
}

/* ============================ PAGE / SECTIONS */
.page-wrap { padding: 3rem 1.25rem; }
.page-content,
.latest-posts {
	padding: 4rem 0;
}
.latest-posts { background: var(--sp-surface); }

.section-title {
	text-align: center;
	margin-bottom: 2.5rem;
	position: relative;
}
.section-title::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	background: var(--sp-primary);
	margin: .75rem auto 0;
	border-radius: 2px;
}

.page-header { margin-bottom: 2rem; }
.page-title { margin: 0; }

/* ============================ CARDS / POST GRID */
.post-grid {
	display: grid;
	gap: 1.75rem;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
	background: #fff;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .2s, box-shadow .2s;
}
.card:hover {
	transform: translateY(-2px);
	box-shadow: var(--sp-shadow-md);
}
.card__media {
	display: block;
	aspect-ratio: 3/2;
	overflow: hidden;
}
.card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s;
}
.card:hover .card__image { transform: scale(1.03); }
.card__body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.card__title {
	margin: 0 0 .5rem;
	font-size: 1.25rem;
}
.card__title a {
	color: var(--sp-secondary);
}
.card__title a:hover {
	color: var(--sp-primary);
	text-decoration: none;
}
.card__meta {
	font-size: .8125rem;
	color: var(--sp-muted);
	margin: 0 0 .75rem;
}
.card__excerpt {
	color: var(--sp-text);
	margin-bottom: 1rem;
	flex: 1;
}
.card__excerpt p:last-child { margin-bottom: 0; }
.card__link {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	font-weight: 600;
	color: var(--sp-primary);
	margin-top: auto;
}
.card__link::after { content: "→"; transition: transform .2s; }
.card__link:hover { text-decoration: none; }
.card__link:hover::after { transform: translateX(3px); }

/* header logo */
img.custom-logo {max-width: 75px;}

/* ============================ SINGLE POST / PAGE */
.single-post,
.single-page {
	max-width: 1440px;
	margin: 0 auto;
}
.entry-header { margin-bottom: 1.5rem; }
.entry-title { margin-bottom: .5rem; }
.entry-meta {
	color: var(--sp-muted);
	font-size: .875rem;
	margin: 0;
}
.entry-thumbnail {
	margin: 0 0 2rem;
	border-radius: var(--sp-radius);
	overflow: hidden;
}
.entry-content {
	font-size: 1.0625rem;
	line-height: 1.7;
}
.entry-content > * + * { margin-top: 1.25em; }
.entry-content ul,
.entry-content ol {
	padding-left: 1.5em;
	margin: 1em 0;
}
.entry-content li { margin-bottom: .35em; }
.entry-content img {
	border-radius: var(--sp-radius);
}
.entry-footer {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--sp-border);
	font-size: .875rem;
	color: var(--sp-muted);
}
.entry-footer a { color: var(--sp-primary); }

/* ============================ PAGINATION */
.pagination,
.nav-links {
	margin: 3rem 0 1rem;
	display: flex;
	justify-content: center;
	gap: .5rem;
	flex-wrap: wrap;
}
.pagination .page-numbers,
.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 .75rem;
	border-radius: var(--sp-radius);
	background: #fff;
	border: 1px solid var(--sp-border);
	color: var(--sp-text);
	font-weight: 500;
	text-decoration: none;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
	background: var(--sp-primary);
	color: #fff;
	border-color: var(--sp-primary);
}

/* ============================ SEARCH FORM */
.search-form {
	display: flex;
	gap: .5rem;
	max-width: 480px;
	margin: 1.5rem 0;
}
.search-field {
	flex: 1;
	padding: .75rem 1rem;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius);
	font-size: 1rem;
	background: #fff;
	color: var(--sp-text);
}
.search-field:focus {
	outline: 2px solid var(--sp-primary);
	outline-offset: 1px;
	border-color: var(--sp-primary);
}

/* ============================ FORMS */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="password"],
textarea,
select {
	width: 100%;
	padding: .75rem 1rem;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius);
	font: inherit;
	background: #fff;
	color: var(--sp-text);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus {
	outline: 2px solid var(--sp-primary);
	outline-offset: 1px;
	border-color: var(--sp-primary);
}

/* ============================ FOOTER */
.site-footer {
	background: var(--sp-secondary);
	color: #cbd5e1;
	padding: 4rem 0 0;
	margin-top: 4rem;
}
.site-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2.5rem;
	padding-bottom: 3rem;
}
.site-footer .widget-title {
	color: #fff;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-bottom: 1rem;
}
.site-footer a {
	color: #cbd5e1;
}
.site-footer a:hover {
	color: var(--sp-accent);
	text-decoration: none;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.footer-contact { font-style: normal; }
.footer-contact__item {
	display: block;
	margin-bottom: .5rem;
}
.site-footer__bottom {
	border-top: 1px solid rgba(255,255,255,.1);
	padding: 1.5rem 0;
	text-align: center;
	font-size: .875rem;
}
.site-info { margin: 0; }

/* ============================ COMMENTS */
.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--sp-border);
}
.comment-list {
	list-style: none;
	padding: 0;
}
.comment-body {
	padding: 1.25rem;
	background: var(--sp-surface);
	border-radius: var(--sp-radius);
	margin-bottom: 1rem;
}

/* ============================ WP CORE CLASSES */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter{ display:block; margin-left:auto; margin-right:auto; }
.alignwide  { max-width: 1100px; margin-left:auto; margin-right:auto; }
.alignfull  { max-width:100%; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); }
.wp-caption {
	max-width: 100%;
	margin-bottom: 1em;
}
.wp-caption-text {
	font-size: .875rem;
	color: var(--sp-muted);
	text-align: center;
	margin-top: .5em;
}
.sticky { /* style optionnel pour les articles épinglés */ }

/* ============================ RESPONSIVE */
@media (max-width: 768px) {
	.nav-toggle { display: flex; }
	.primary-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		padding: 1rem;
		gap: .25rem;
		box-shadow: var(--sp-shadow-md);
		border-top: 1px solid var(--sp-border);
		z-index: 100;
	}
	.primary-menu.is-open { display: flex; }
	.primary-menu a {
		padding: .75rem 0;
		display: block;
	}
	.sub-menu {
		position: static;
		box-shadow: none;
		padding-left: 1rem;
	}
	.hero { padding: 3rem 0; }
	.page-content,
	.latest-posts { padding: 2.5rem 0; }
	.site-footer { padding-top: 2.5rem; }
}

/* ============================ PRINT */
@media print {
	.site-header, .site-footer, .nav-toggle, .skip-link { display: none; }
	body { color: #000; background: #fff; }
	a { color: #000; text-decoration: underline; }
}

/* ============================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
