/* ============================================================
   MATHIEU ROS — Feuille de style principale
   Palette : mustard #F9BC06 · navy #242F4C · ink #14181F · paper #FBFAF9
   Typographie : Playfair Display (titres) + Inter (corps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- Variables ---- */
:root {
  --bg:           #FBFAF9;
  --fg:           #14181F;
  --card:         #F6F5F3;
  --secondary:    #EDEBE9;
  --border:       #E5E2DC;
  --muted:        #E2DED8;
  --muted-fg:     #676F7E;
  --mustard:      #F9BC06;
  --mustard-dark: #CB950B;
  --navy:         #242F4C;
  --radius:       0.25rem;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --shadow-soft:  0 4px 20px -4px rgba(20,24,31,.08);
  --shadow-med:   0 8px 30px -6px rgba(20,24,31,.12);
  --shadow-big:   0 20px 60px -12px rgba(20,24,31,.25);
  --transition:   .3s ease;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--muted); }
::-webkit-scrollbar-thumb { background: rgba(103,111,126,.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(103,111,126,.5); }

/* Selection */
::selection { background: rgba(249,188,6,.3); color: var(--fg); }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: 900px; }
.container--blog   { max-width: 800px; }

/* ---- Animations (IntersectionObserver-driven) ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.reveal--left  { transform: translateX(-50px); }
.reveal.reveal--right { transform: translateX(50px); }
.reveal.reveal--scale { transform: scale(.95); }
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .30s; }
.reveal-delay-3 { transition-delay: .45s; }
.reveal-delay-4 { transition-delay: .60s; }

/* Entrée hero (immédiate au chargement) */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1.5rem 0;
}
.site-header.scrolled {
  background: rgba(251,250,249,.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  padding: 1rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo-link { display: block; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--fg);
}
.logo-tagline {
  display: block;
  font-size: .65rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-top: .125rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-fg);
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--mustard);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--fg); }
.nav-link:hover::after { width: 100%; }

.header-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.social-link { color: var(--muted-fg); transition: color var(--transition); }
.social-link:hover { color: var(--fg); }
.social-link svg { width: 1.125rem; height: 1.125rem; display: block; }

/* Mobile burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  padding: .5rem;
}
.burger-icon, .burger-close { width: 1.5rem; height: 1.5rem; }

.mobile-menu {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}
.mobile-menu.open { display: block; max-height: 400px; }
.mobile-menu nav {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--fg);
  padding: .5rem 0;
}
.mobile-menu-socials {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-fg);
  font-size: .875rem;
}

@media (max-width: 1023px) {
  .nav-desktop, .header-socials { display: none; }
  .burger { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(20,24,31,.3), transparent);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 8rem 0 4rem;
}
.hero-text {
  order: 2;
  animation: fadeInLeft .8s ease both;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp .6s .7s ease both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 2rem;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .05em;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border-radius: var(--radius);
}
.btn--mustard {
  background: var(--mustard);
  color: var(--fg);
}
.btn--mustard:hover { background: var(--mustard-dark); }
.btn--outline-white {
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
}
.btn--outline-white:hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.1);
}
.btn--dark {
  background: var(--fg);
  color: var(--bg);
}
.btn--dark:hover { background: #2d3340; }
.btn-icon { width: 1rem; height: 1rem; }

.hero-portrait {
  order: 1;
  display: flex;
  justify-content: flex-end;
  animation: fadeInScale .8s .2s ease both;
}
.portrait-frame {
  border: 2px solid var(--mustard);
  padding: 4px;
  display: inline-block;
}
.portrait-frame img {
  width: clamp(280px, 28vw, 400px);
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: fadeInUp .6s 1.5s ease both;
}
.scroll-indicator {
  width: 1.5rem; height: 2.5rem;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: .375rem;
  animation: scrollBounce 1.5s ease-in-out infinite;
}
.scroll-dot {
  width: .25rem; height: .5rem;
  background: rgba(255,255,255,.5);
  border-radius: 999px;
}

@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-text  { order: 1; }
  .hero-portrait { order: 2; justify-content: center; }
}
@media (max-width: 639px) {
  .hero-inner { padding-top: 6rem; }
  .hero-title { font-size: 2.25rem; }
}

/* ============================================================
   SECTION COMMUNE
   ============================================================ */
.section { padding: 6rem 0; }
.section--large { padding: 8rem 0; }
.section--navy { background: var(--navy); }
.section--secondary { background: var(--secondary); }
.section-label {
  display: block;
  font-size: .8125rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-label--mustard { color: var(--mustard); }
.section-label--mustard-dark { color: var(--mustard-dark); }
.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}
.section-title--white { color: #fff; }
.section-desc { color: var(--muted-fg); max-width: 42rem; }
.section-desc--white { color: rgba(255,255,255,.5); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-head {
  text-align: center;
  margin-bottom: 5rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  position: relative;
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,.1);
  transition: border-color .5s;
  overflow: hidden;
}
.service-card:hover { border-color: rgba(249,188,6,.3); }
.service-number {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(255,255,255,.05);
  user-select: none;
  line-height: 1;
}
.service-icon {
  width: 3.5rem; height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  margin-bottom: 1.5rem;
  transition: border-color .3s;
}
.service-card:hover .service-icon { border-color: rgba(249,188,6,.4); }
.service-icon svg { width: 1.75rem; height: 1.75rem; color: rgba(255,255,255,.7); }
.service-card h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}
.service-card p { color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 1.5rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.service-tag {
  font-size: .75rem;
  letter-spacing: .05em;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.1);
  padding: .375rem .75rem;
}
.service-bar {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--mustard);
  transition: width .5s ease;
}
.service-card:hover .service-bar { width: 100%; }

@media (max-width: 1023px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px)  { .services-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 2rem;
}
.portfolio-head-desc { color: var(--muted-fg); max-width: 28rem; text-align: right; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  display: block;
  position: relative;
  overflow: hidden;
}
.project-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--muted);
  position: relative;
}
.project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-img img { transform: scale(1.05); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 2rem;
}
.project-card:hover .project-overlay { opacity: .95; }
.project-overlay-desc { color: rgba(255,255,255,.7); font-size: .875rem; line-height: 1.6; margin-bottom: 1rem; }
.project-discover {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: var(--mustard);
  font-size: .875rem;
  font-weight: 500;
}
.project-meta {
  position: absolute;
  inset: 0;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.project-badges {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.project-badge {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  background: rgba(20,24,31,.4);
  backdrop-filter: blur(4px);
  padding: .25rem .5rem;
}
.project-info { }
.project-client {
  font-size: .875rem;
  color: rgba(255,255,255,.8);
  margin-bottom: .25rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.portfolio-more {
  text-align: center;
  margin-top: 3rem;
}
.portfolio-more a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-fg);
  border-bottom: 1px solid rgba(103,111,126,.3);
  padding-bottom: .25rem;
  transition: color var(--transition), border-color var(--transition);
}
.portfolio-more a:hover { color: var(--fg); border-color: var(--fg); }

@media (max-width: 1023px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-head { flex-direction: column; align-items: flex-start; }
  .portfolio-head-desc { text-align: left; }
}

/* ============================================================
   CLIENTS
   ============================================================ */
.clients-head { text-align: center; margin-bottom: 4rem; }
.clients-collage { margin: 0 auto 3rem; max-width: 56rem; }
.clients-collage img { width: 100%; object-fit: contain; }
.marquee-wrapper {
  position: relative;
  overflow: hidden;
}
.marquee-fade-left,
.marquee-fade-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 8rem;
  z-index: 2;
  pointer-events: none;
}
.marquee-fade-left  { left: 0;  background: linear-gradient(to right, var(--navy), transparent); }
.marquee-fade-right { right: 0; background: linear-gradient(to left, var(--navy), transparent); }
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  padding: 1.5rem 0;
}
.marquee-item {
  margin: 0 3rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  color: rgba(255,255,255,.2);
  cursor: default;
  transition: color var(--transition);
  white-space: nowrap;
}
.marquee-item:hover { color: var(--mustard); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-img-wrapper {
  position: relative;
}
.about-img-bg {
  position: absolute;
  inset: -2rem;
  background: rgba(249,188,6,.1);
  transform: rotate(-3deg);
  z-index: 0;
}
.about-img {
  position: relative;
  z-index: 1;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-quote-card {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  z-index: 2;
  background: var(--navy);
  padding: 2rem;
  max-width: 280px;
  box-shadow: var(--shadow-big);
}
.about-quote-text {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  font-style: italic;
  line-height: 1.6;
}
.about-text p { color: var(--muted-fg); line-height: 1.8; margin-bottom: 1rem; }
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.highlight-card {
  padding: 1rem;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}
.highlight-card:hover { border-color: rgba(203,149,11,.3); }
.highlight-icon { width: 1.5rem; height: 1.5rem; color: var(--mustard-dark); margin-bottom: .75rem; }
.highlight-card h4 { font-size: .9375rem; font-weight: 500; margin-bottom: .25rem; }
.highlight-card p { font-size: .8125rem; color: var(--muted-fg); line-height: 1.5; }

@media (max-width: 1023px) {
  .about-grid { grid-template-columns: 1fr; gap: 4rem; }
  .about-quote-card { right: 0; }
}
@media (max-width: 639px) {
  .highlights-grid { grid-template-columns: 1fr; }
  .about-quote-card { position: static; margin-top: 2rem; max-width: 100%; }
  .about-img-bg { inset: -1rem; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-inner { max-width: 56rem; margin: 0 auto; text-align: center; }
.contact-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
.contact-desc { font-size: 1.125rem; color: var(--muted-fg); margin-bottom: 3rem; max-width: 42rem; margin-left: auto; margin-right: auto; }
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 640px) {
  .contact-actions { flex-direction: row; justify-content: center; }
}
.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 2rem;
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
  transition: background var(--transition);
}
.contact-email-btn:hover { background: #2d3340; }
.contact-email-btn svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.contact-location {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted-fg);
}
.contact-location svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.contact-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.contact-social {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted-fg);
  font-size: .875rem;
  font-weight: 500;
  transition: color var(--transition);
}
.contact-social:hover { color: var(--fg); }
.contact-social svg { width: 1.25rem; height: 1.25rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 3rem 0;
  background: var(--fg);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-logo { }
.footer-name { font-family: var(--font-display); font-size: 1.25rem; color: var(--bg); }
.footer-tagline {
  display: block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(251,250,249,.5);
  margin-top: .25rem;
}
.footer-copy { font-size: .875rem; color: rgba(251,250,249,.4); }
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(251,250,249,.6);
  transition: color var(--transition);
}
.footer-top:hover { color: var(--bg); }
.footer-top svg { width: 1rem; height: 1rem; }

/* ============================================================
   BLOG — LISTE
   ============================================================ */
.blog-header { padding-top: 8rem; padding-bottom: 6rem; }
.blog-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.blog-intro { color: var(--muted-fg); font-size: 1.125rem; margin-bottom: 2.5rem; }
.blog-categories {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.cat-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: .75rem 0;
  margin-bottom: -1px;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted-fg);
  transition: color var(--transition), border-color var(--transition);
}
.cat-btn:hover { color: var(--fg); }
.cat-btn.active { border-color: var(--mustard); color: var(--fg); }
.blog-list { display: flex; flex-direction: column; gap: 3rem; }
.blog-post-item { }
.blog-post-link {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}
.blog-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--muted);
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-post-link:hover .blog-thumb img { transform: scale(1.05); }
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: var(--muted-fg);
  margin-bottom: .75rem;
}
.meta-dot { color: var(--muted); }
.blog-post-title {
  font-size: 1.5rem;
  color: var(--fg);
  margin-bottom: .75rem;
  transition: color var(--transition);
}
.blog-post-link:hover .blog-post-title { color: var(--mustard-dark); }
.blog-post-excerpt { color: var(--muted-fg); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-divider { border: none; border-top: 1px solid var(--border); margin-top: 3rem; }
.blog-empty { text-align: center; padding: 5rem 0; color: var(--muted-fg); }
.blog-empty p:first-child { font-size: 1.125rem; margin-bottom: .5rem; }

@media (max-width: 639px) {
  .blog-post-link { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG — ARTICLE UNIQUE
   ============================================================ */
.post-header { padding-top: 8rem; padding-bottom: 2rem; }
.post-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted-fg);
  font-size: .875rem;
  margin-bottom: 2rem;
  transition: color var(--transition);
}
.post-back:hover { color: var(--fg); }
.post-back svg { width: 1rem; height: 1rem; }
.post-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--muted-fg);
  margin-bottom: 1rem;
}
.post-title { font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.2; margin-bottom: 2.5rem; }
.post-cover {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { color: var(--muted-fg); line-height: 1.85; }
.post-body p { margin-bottom: 1.25rem; }
.post-body h2 { font-size: 1.5rem; color: var(--fg); margin: 2.5rem 0 1rem; }
.post-body h3 { font-size: 1.25rem; color: var(--fg); margin: 2rem 0 .75rem; }
.post-body a { color: var(--mustard-dark); border-bottom: 1px solid transparent; transition: border-color var(--transition); }
.post-body a:hover { border-color: var(--mustard-dark); }
.post-not-found { text-align: center; padding: 5rem 0; }
.post-not-found p { font-size: 1.25rem; margin-bottom: 1.5rem; }

/* ============================================================
   ADMIN — LOGIN
   ============================================================ */
.admin-login {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.admin-login-box { width: 100%; max-width: 24rem; }
.admin-login-title { font-size: 1.875rem; text-align: center; margin-bottom: .5rem; }
.admin-login-sub { color: var(--muted-fg); text-align: center; font-size: .875rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: .375rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: .625rem .875rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
  font-size: .9375rem;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--mustard);
  box-shadow: 0 0 0 3px rgba(249,188,6,.15);
}
.form-textarea { resize: vertical; min-height: 5rem; }
.form-check { display: flex; align-items: center; gap: .625rem; cursor: pointer; font-size: .9375rem; }
.form-check input { width: 1rem; height: 1rem; cursor: pointer; accent-color: var(--mustard); }
.btn--full { width: 100%; justify-content: center; }
.admin-back-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--muted-fg);
  transition: color var(--transition);
}
.admin-back-link:hover { color: var(--fg); }
.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  margin-bottom: 1.25rem;
}
.alert--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ============================================================
   ADMIN — DASHBOARD
   ============================================================ */
.admin-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header-left { display: flex; align-items: center; gap: 1rem; }
.admin-header-title { font-family: var(--font-display); font-size: 1.25rem; }
.admin-user-email { font-size: .875rem; color: var(--muted-fg); }
.admin-tabs {
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  gap: 1.5rem;
}
.admin-tab {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 0;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-fg);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.admin-tab:hover { color: var(--fg); }
.admin-tab.active { border-bottom-color: var(--mustard); color: var(--fg); }
.admin-tab svg { width: 1rem; height: 1rem; }
.admin-content { padding: 2rem 1.5rem; max-width: 64rem; margin: 0 auto; }
.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.admin-section-title { font-size: 1.125rem; font-weight: 500; }
.admin-form-card {
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: var(--card);
}
.admin-form-card h3 { font-size: 1.125rem; margin-bottom: 1.5rem; }
.admin-form-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1rem; }
.admin-form-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-bottom: 1rem; }
.admin-form-actions { display: flex; gap: .75rem; padding-top: .5rem; }
.item-list { display: flex; flex-direction: column; gap: .75rem; }
.item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: 1rem;
  background: var(--card);
}
.item-thumb { width: 4rem; height: 3rem; object-fit: cover; border-radius: .25rem; flex-shrink: 0; }
.item-info { flex: 1; min-width: 0; }
.item-meta { font-size: .75rem; color: var(--muted-fg); margin-bottom: .25rem; }
.item-name { font-weight: 500; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-actions { display: flex; gap: .25rem; flex-shrink: 0; }
.btn-icon-only {
  padding: .5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: .25rem;
  display: flex;
  align-items: center;
  color: var(--muted-fg);
  transition: color var(--transition), background var(--transition);
}
.btn-icon-only:hover { background: var(--muted); color: var(--fg); }
.btn-icon-only.danger:hover { color: #dc2626; }
.btn-icon-only svg { width: 1rem; height: 1rem; }
.status-badge {
  display: inline-block;
  font-size: .75rem;
  padding: .125rem .5rem;
  border-radius: .25rem;
}
.status-badge--published { background: #dcfce7; color: #166534; }
.status-badge--draft { background: var(--muted); color: var(--muted-fg); }
.content-section { margin-bottom: 2.5rem; }
.content-section-title {
  font-size: 1.125rem;
  text-transform: capitalize;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.content-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.content-item > div { flex: 1; }
.content-item .form-label { font-size: .75rem; color: var(--muted-fg); }
.btn--sm { padding: .5rem 1rem; font-size: .8125rem; }
.image-preview { width: 4rem; height: 3rem; object-fit: cover; border-radius: .25rem; border: 1px solid var(--border); }

@media (max-width: 639px) {
  .admin-form-grid-3 { grid-template-columns: 1fr; }
  .admin-form-grid-2 { grid-template-columns: 1fr; }
}
