/* ============================================================
   ADEPP — theme.css (phase 1 : header / footer / base)
   Bricolage Grotesque (display) + Inter (body)
   ============================================================ */

:root {
	--bg:        #FFFFFF;
	--bg-deep:   #E8E1D2;
	--ink:       #0F0F0F;
	--ink-soft:  #4A4A48;
	--rule:      #1A1A1A;
	--red:       #7A1E2C;
	--red-deep:  #4F1018;
	--paper:     #FAF7EE;

	--ff-display: 'Bricolage Grotesque', system-ui, sans-serif;
	--ff-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--max-content: 1100px;
	--max-wide:    1400px;
	--gutter:      40px;
}

/* Reset minimal */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	font-family: var(--ff-body);
	background: var(--bg);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background-image: radial-gradient(rgba(0, 0, 0, 0.012) 1px, transparent 1px);
	background-size: 3px 3px;
	overflow-x: hidden;
}
::selection { background: var(--red); color: #fff; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
	font-family: var(--ff-display);
	font-weight: 300;
	letter-spacing: -0.02em;
	line-height: 1;
}

/* ===== Skip-link a11y (WP standard) ===== */
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto;
	padding: 12px 16px; background: var(--ink); color: var(--paper);
	z-index: 9999;
}

/* ============================================================
   TOP MARQUEE
   ============================================================ */
.top-rule {
	background: var(--ink);
	color: var(--paper);
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	padding: 10px 0;
	overflow: hidden;
	border-bottom: 1px solid var(--ink);
}
.marquee-track {
	display: inline-flex;
	white-space: nowrap;
	animation: adepp-marquee 38s linear infinite;
	gap: 48px;
	will-change: transform;
}
.top-rule:hover .marquee-track { animation-duration: 80s; }
.marquee-dot { display: inline-flex; align-items: center; }
.marquee-dot::before {
	content: '◆';
	margin-right: 48px;
	color: var(--red);
}
@keyframes adepp-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.marquee-track { animation: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
header.nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--ink);
	transition: padding 0.3s ease;
}
.nav-inner {
	display: flex;
	flex-direction: column;
	padding: 0;
}
.nav-top {
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 16px 24px 8px;
	transition: padding 0.3s ease;
}
.nav-bottom {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px 14px;
	position: relative;
	transition: padding 0.3s ease;
}
header.nav.scrolled .nav-top    { padding: 8px 24px 4px; }
header.nav.scrolled .nav-bottom { padding: 0 24px 10px; }

.brand { display: inline-flex; align-items: center; }
.brand img,
.custom-logo {
	height: 46px;
	width: auto;
	display: block;
	transition: height 0.3s ease, opacity 0.2s ease;
}
header.nav.scrolled .custom-logo,
header.nav.scrolled .brand img { height: 32px; }
.brand:hover img { opacity: 0.85; }
.brand--text .brand-text {
	font-family: var(--ff-display);
	font-size: 28px;
	font-weight: 350;
	letter-spacing: -0.02em;
	color: var(--ink);
}
.brand--text .brand-text em { font-style: italic; color: var(--red); font-weight: 300; }

/* Nav links */
.nav-links {
	display: flex;
	gap: 22px;
	list-style: none;
	justify-content: center;
}
.nav-links a {
	color: var(--ink);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	position: relative;
	padding-bottom: 2px;
}
.nav-links a::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0;
	height: 1px; width: 0;
	background: var(--red);
	transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }
.nav-links a.active,
.nav-links li.current-menu-item > a {
	color: var(--red);
	font-weight: 600;
}
.nav-links a.active::after,
.nav-links li.current-menu-item > a::after {
	width: 100%;
	background: var(--red);
}

/* Right-side actions */
.nav-actions {
	position: absolute;
	right: 24px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 8px;
}
.nav-login {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	color: var(--ink);
	border: none;
	padding: 10px 14px;
	font-family: var(--ff-body);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 500;
	transition: color 0.2s ease;
}
.nav-login:hover { color: var(--red); }
.nav-login svg { width: 18px; height: 18px; stroke-width: 1.5; }

.cart-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1px solid var(--ink);
	padding: 10px 16px;
	font-family: var(--ff-body);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 600;
	color: var(--ink);
	transition: background 0.2s ease, color 0.2s ease;
}
.cart-btn:hover { background: var(--ink); color: var(--paper); }
.cart-count {
	background: var(--red);
	color: var(--paper);
	border-radius: 50%;
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 700;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
	background: var(--ink);
	color: var(--paper);
	padding: 16px 26px;
	font-family: var(--ff-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border: 1px solid var(--ink);
	position: relative;
	overflow: hidden;
	display: inline-block;
	transition: color 0.4s ease, border-color 0.4s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn span { position: relative; z-index: 2; }
.btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--red);
	transform: translateY(101%);
	transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
	z-index: 1;
}
.btn:hover { color: var(--paper); border-color: var(--red); }
.btn:hover::before { transform: translateY(0); }
.btn.light  { background: var(--paper); color: var(--ink);   border-color: var(--paper); }
.btn.light:hover  { color: var(--paper); border-color: var(--red); }
.btn.outline {
	background: transparent;
	color: var(--paper);
	border-color: rgba(250, 247, 238, 0.5);
}
.btn.outline:hover { color: var(--paper); border-color: var(--red); }
.btn.nav-cta { padding: 12px 22px; font-size: 11px; }

/* ============================================================
   PAGE SHELL — wrappers de contenu (page.php, index.php)
   ============================================================ */
.page-shell {
	border-bottom: 1px solid var(--ink);
}
.page-shell-inner {
	max-width: var(--max-content);
	margin: 0 auto;
	padding: 80px var(--gutter);
}
.section-tag {
	font-size: 11px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--red);
	border-top: 1px solid var(--ink);
	padding-top: 12px;
	display: inline-block;
	margin-bottom: 24px;
}
.page-article-title {
	font-family: var(--ff-display);
	font-weight: 300;
	font-size: clamp(40px, 6vw, 88px);
	line-height: 0.95;
	letter-spacing: -0.03em;
	margin-bottom: 32px;
}
.page-article-body {
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink-soft);
}
.page-article-body p + p { margin-top: 1em; }

.placeholder-note {
	color: var(--ink-soft);
	font-size: 14px;
}

/* Hero placeholder front-page */
.hero {
	position: relative;
	min-height: 60vh;
	display: grid;
	grid-template-columns: 1fr;
	border-bottom: 1px solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	overflow: hidden;
}
.hero-content {
	position: relative;
	z-index: 2;
	padding: 80px var(--gutter);
	align-self: end;
	max-width: var(--max-wide);
	margin: 0 auto;
	width: 100%;
}
.hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	font-size: 11px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--paper);
	opacity: 0.85;
	margin-bottom: 28px;
}
.hero-meta span:first-child { color: var(--red); font-weight: 700; opacity: 1; }
.hero h1 {
	font-family: var(--ff-display);
	font-weight: 350;
	font-size: clamp(48px, 8vw, 124px);
	line-height: 0.92;
	letter-spacing: -0.04em;
	margin-bottom: 32px;
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--red); }
.hero-bottom {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	align-items: end;
	border-top: 1px solid rgba(250, 247, 238, 0.3);
	padding-top: 28px;
}
.hero-lede {
	font-size: 17px;
	line-height: 1.5;
	max-width: 480px;
	color: var(--paper);
	opacity: 0.92;
}
.hero-cta {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	flex-wrap: wrap;
}

/* ============================================================
   POST LIST (index.php)
   ============================================================ */
.archive-head { margin-bottom: 40px; }
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card {
	border: 1px solid var(--ink);
	padding: 24px;
	background: var(--bg);
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: background 0.3s ease;
}
.post-card:hover { background: var(--paper); }
.post-card-thumb img { aspect-ratio: 16/10; object-fit: cover; }
.post-card h2 {
	font-family: var(--ff-display);
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 350;
}
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--red); }
.post-excerpt { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.blog-meta {
	font-size: 11px; letter-spacing: 0.2em;
	text-transform: uppercase; color: var(--ink-soft);
	font-weight: 500;
}
.blog-readmore {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 11px; letter-spacing: 0.2em;
	text-transform: uppercase; font-weight: 600;
	color: var(--ink);
	border-bottom: 1px solid var(--ink); padding-bottom: 2px;
	align-self: flex-start;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.blog-readmore::after { content: '→'; transition: transform 0.2s ease; }
.blog-readmore:hover { color: var(--red); border-color: var(--red); }
.blog-readmore:hover::after { transform: translateX(3px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg); border-top: 1px solid var(--ink); }
.footer-hero {
	padding: 80px var(--gutter);
	border-bottom: 1px solid var(--ink);
	max-width: var(--max-wide);
	margin: 0 auto;
}
.footer-hero-tag {
	font-size: 11px; letter-spacing: 0.3em;
	text-transform: uppercase; font-weight: 600;
	color: var(--red);
	border-top: 1px solid var(--ink);
	padding-top: 12px;
	display: inline-block;
	margin-bottom: 28px;
}
.footer-hero h2 {
	font-family: var(--ff-display);
	font-weight: 300;
	font-size: clamp(48px, 8vw, 110px);
	line-height: 0.92;
	letter-spacing: -0.04em;
	margin-bottom: 48px;
	max-width: 1100px;
}
.footer-hero h2 em { font-style: italic; color: var(--red); }
.contact-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	border-top: 1px solid var(--ink);
	padding-top: 32px;
}
.contact-block h4 {
	font-family: var(--ff-body);
	font-size: 11px; letter-spacing: 0.3em;
	text-transform: uppercase; font-weight: 600;
	color: var(--ink-soft);
	margin-bottom: 12px;
}
.contact-block .value {
	font-family: var(--ff-display);
	font-weight: 350;
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--ink);
	display: block;
}
.contact-block a.value { transition: color 0.2s ease; }
.contact-block a.value:hover { color: var(--red); }
.contact-block .value em { font-style: italic; color: var(--red); }
.contact-block .value.email-value {
	font-family: var(--ff-body);
	font-size: clamp(15px, 1.4vw, 18px);
	font-weight: 500;
	letter-spacing: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}
.contact-block .sub { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

.footer-bottom {
	background: var(--ink);
	color: var(--paper);
	padding: 24px var(--gutter);
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 24px;
	align-items: center;
	font-size: 12px;
	letter-spacing: 0.05em;
}
.footer-bottom em { color: var(--red); font-style: normal; font-weight: 600; }
.footer-bottom .center { text-align: center; }
.footer-bottom .end    { text-align: right; }
.footer-bottom a { color: var(--paper); transition: color 0.2s ease; }
.footer-bottom a:hover { color: var(--red); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
	.nav-links { gap: 14px; }
	.nav-links a { font-size: 11px; letter-spacing: 0.04em; }
}
@media (max-width: 1180px) {
	.nav-actions { gap: 6px; right: 16px; }
	.nav-login span,
	.cart-btn span:first-child { display: none; }
	.nav-cta { padding: 10px 14px; }
}
@media (max-width: 980px) {
	.nav-bottom { justify-content: flex-end; padding: 6px 16px 10px; min-height: 40px; }
	.nav-bottom .nav-links { display: none; }
	.nav-actions { position: static; transform: none; }
	.contact-grid { grid-template-columns: 1fr 1fr; }
	.footer-bottom { grid-template-columns: 1fr; }
	.footer-bottom .center,
	.footer-bottom .end { text-align: center; }
	.hero-bottom { grid-template-columns: 1fr; gap: 24px; }
	.hero-cta { justify-content: flex-start; }
	.post-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.contact-grid { grid-template-columns: 1fr; }
}
