/* ============================================
   THEME 7 - CRAFT
   Style épuré, tons pastels, typographie élégante
   ============================================ */

/* VARIABLES */
:root {
  --bg-soft: #F6F5FF;
  --panel: #F3ECF7;
  --ink: #2D2F43;
  --muted: #6E6F7F;
  --accent: #A24F6C;
  --accent-light: #C76B8A;
  --teal: #5B9A9A;
  --line: rgba(45,47,67,0.12);
  --white: #fff;
  --shadow-sm: 0 4px 12px rgba(45,47,67,0.06);
  --shadow-md: 0 10px 30px rgba(45,47,67,0.08);
  --shadow-lg: 0 15px 40px rgba(45,47,67,0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-full: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.2;
}

.font-serif {
  font-family: Georgia, "Times New Roman", serif;
}

.font-script {
  font-family: "Brush Script MT", "Segoe Script", cursive;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
body > header {
  background: var(--white);
  height: 88px;
  border-bottom: 1px solid var(--line);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-section .logo {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  letter-spacing: 4px;
  color: var(--ink);
  font-weight: 400;
  text-transform: uppercase;
}

/* Navigation desktop */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-desktop a:hover {
  color: var(--ink);
}

.nav-desktop a.active,
.nav-desktop a:focus {
  color: var(--accent);
}

/* Burger menu */
.burger-menu {
  display: none;
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 10002;
  width: 48px;
  height: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
}

.burger-menu span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Sidebar mobile */
.sidebar-mobile {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--white);
  z-index: 10001;
  padding: 100px 32px 40px;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  overflow-y: auto;
}

.sidebar-mobile.active {
  right: 0;
}

.sidebar-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-mobile nav a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s;
}

.sidebar-mobile nav a:hover {
  color: var(--accent);
}

/* Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 47, 67, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(162, 79, 108, 0.3);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(91, 154, 154, 0.3);
}

/* ============================================
   BADGE
   ============================================ */
.badge {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============================================
   SECTIONS (base)
   ============================================ */
section {
  width: 100%;
  padding: 100px 0;
}

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

.section-panel {
  background: var(--panel);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-script {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 42px;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 20px;
}

.section-title-underline {
  display: inline-block;
  position: relative;
}

.section-title-underline::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--accent);
}

.section-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   CARDS (generic)
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}

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

.card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  margin-bottom: 12px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================
   HOME: HERO
   ============================================ */
.hero {
  background: var(--panel);
  padding: 180px 60px 140px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: rgba(180, 200, 255, 0.15);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: rgba(162, 79, 108, 0.08);
  border-radius: 50%;
}

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

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-script {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 64px;
  color: var(--accent);
  margin-bottom: 28px;
  line-height: 1;
}

.hero-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 42px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================
   HOME: CATEGORIES
   ============================================ */
.categories-section {
  padding: 100px 60px;
  background: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  max-width: 1360px;
  margin: 0 auto;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 46px 32px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, var(--border-color-1, #D4A5C4), var(--border-color-2, #E8B8D5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.category-card:nth-child(1) { --border-color-1: #D4A5C4; --border-color-2: #E8B8D5; }
.category-card:nth-child(2) { --border-color-1: #A5D4D4; --border-color-2: #B8E8E8; }
.category-card:nth-child(3) { --border-color-1: #E8C8A5; --border-color-2: #F5DDB8; }
.category-card:nth-child(4) { --border-color-1: #D4A5C4; --border-color-2: #E8B8D5; }

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
}

.category-card:nth-child(1) .category-icon { background: #FAE8F3; }
.category-card:nth-child(2) .category-icon { background: #E8F5F5; }
.category-card:nth-child(3) .category-icon { background: #FFF5E8; }
.category-card:nth-child(4) .category-icon { background: #FAE8F3; }

.category-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  margin-bottom: 12px;
}

.category-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.category-link {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   HOME: FEATURED
   ============================================ */
.featured-section {
  padding: 100px 60px;
  background: var(--bg-soft);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 500px;
}

.featured-main-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
}

.featured-main-content .badge {
  background: var(--accent);
  color: var(--white);
  border: none;
  margin-bottom: 16px;
}

.featured-main-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  margin-bottom: 12px;
}

.featured-main-content p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.featured-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.featured-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.featured-card-content h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.featured-card-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================
   HOME: ABOUT
   ============================================ */
.about-section {
  padding: 100px 60px;
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-text h2 {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 8px;
}

.about-text h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ============================================
   HOME: NEWSLETTER
   ============================================ */
.newsletter-section {
  padding: 100px 60px;
  background: var(--panel);
}

.newsletter-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-icon {
  width: 70px;
  height: 70px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-md);
}

.newsletter-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.newsletter-box h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  margin-bottom: 16px;
}

.newsletter-box > p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}

.newsletter-input {
  flex: 1;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 14px;
  background: var(--white);
  font-family: inherit;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-note {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 70px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo .logo-text {
  font-size: 22px;
  letter-spacing: 3px;
}

footer h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.footer-tagline {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 16px;
}

footer h5 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-email {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: all 0.3s;
}

.footer-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  background: var(--white);
}

.social-icon:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--ink);
  stroke: none;
}

.social-icon:hover svg {
  fill: var(--white);
}

/* Footer bottom */
.footer-bottom {
  max-width: 1200px;
  margin: 50px auto 0;
  padding: 24px 60px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============================================
   BREADCRUMB (SEO invisible)
   ============================================ */
.breadcrumb-seo {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================
   ARTICLE / POST STYLES
   ============================================ */
main {
  padding-top: 88px;
}

.post {
  background: var(--white);
  width: 100%;
}

.post header {
  position: relative;
  height: 450px;
  margin-top: -88px;
  padding-top: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.featured-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.post header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(45, 47, 67, 0.55);
  z-index: 2;
}

.post header h1,
.post header .meta {
  position: relative;
  z-index: 3;
}

.post header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 auto 20px;
  max-width: 800px;
  padding: 0 30px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.post .meta {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.post .content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 30px;
}

.post .content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  margin: 48px 0 20px;
  color: var(--ink);
}

.post .content h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  margin: 36px 0 16px;
  color: var(--ink);
}

.post .content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--ink);
}

.post .content ul,
.post .content ol {
  margin: 24px 0;
  padding-left: 24px;
}

.post .content ul {
  list-style: disc;
}

.post .content ol {
  list-style: decimal;
}

.post .content li {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.post .content img {
  max-width: 100%;
  height: auto;
}

.post .content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--muted);
}

.post .content a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  transition: all 0.3s;
}

.post .content a:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

/* ============================================
   TABLES
   ============================================ */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 32px 0;
  border-radius: var(--radius-md);
}

.post .content table,
.page table,
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table thead {
  background: var(--accent);
  color: var(--white);
}

table tbody {
  background: var(--white);
}

table thead th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

table tbody tr:last-child {
  border-bottom: none;
}

table tbody tr:hover {
  background: var(--bg-soft);
}

table tbody td {
  padding: 16px 20px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

table tbody td code {
  font-size: 13px;
  background: var(--panel);
  padding: 2px 6px;
  border-radius: 4px;
}

table th,
table td {
  border-right: 1px solid var(--line);
}

table th:last-child,
table td:last-child {
  border-right: none;
}

/* ============================================
   FIGURES & IMAGES
   ============================================ */
.post .content figure,
.page figure,
figure {
  margin: 40px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

figure img {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}

figcaption {
  padding: 14px 20px;
  font-size: 14px;
  text-align: center;
  font-style: italic;
  color: var(--white);
  background: var(--accent);
}

/* ============================================
   PAGE GENERIC (blog listing, catégories, etc.)
   ============================================ */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 30px;
}

.page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 20px;
}

.page .intro {
  text-align: center;
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ============================================
   BLOG LISTING
   ============================================ */
.blog-section {
  padding: 100px 60px;
  background: var(--bg-soft);
}

.blog-listing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-listing a {
  text-decoration: none;
  display: block;
}

/* Card blog avec image de fond (style immersif) */
.blog-card {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  cursor: pointer;
}

.blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.5s ease;
}

.blog-card:hover::after {
  transform: scale(1.05);
}

.blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45,47,67,0.85) 0%, rgba(45,47,67,0.4) 50%, transparent 100%);
  z-index: 2;
  transition: background 0.4s ease;
}

.blog-card:hover::before {
  background: linear-gradient(to top, rgba(45,47,67,0.95) 0%, rgba(45,47,67,0.6) 60%, rgba(45,47,67,0.2) 100%);
}

.blog-card > * {
  position: relative;
  z-index: 3;
}

.blog-card-date {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-date {
  transform: translateY(-5px);
}

.blog-card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 15px rgba(0,0,0,0.4);
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-title {
  transform: translateY(-5px);
}

.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease;
}

.blog-card:hover .blog-card-excerpt {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-hero {
  background: var(--panel);
  padding: 160px 60px 90px;
  text-align: center;
}

.contact-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  font-weight: 400;
  margin-bottom: 20px;
}

.contact-hero p {
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.contact-section {
  padding: 100px 60px;
  background: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form-wrapper {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 50px 46px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 600;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 14px;
  background: var(--white);
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-textarea {
  border-radius: 24px;
  resize: vertical;
  min-height: 160px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent);
}

.checkbox-group label {
  font-size: 14px;
  color: var(--muted);
}

.checkbox-group a {
  color: var(--accent);
  text-decoration: underline;
}

.form-submit {
  width: 100%;
  padding: 18px 32px;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(45, 47, 67, 0.2);
}

.form-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
  letter-spacing: 0.5px;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 14px;
}

.alert-success {
  background: rgba(91, 154, 154, 0.15);
  border: 1px solid var(--teal);
  color: var(--teal);
}

.alert-error {
  background: rgba(162, 79, 108, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.alert ul {
  margin: 8px 0 0 20px;
  list-style-type: disc;
}

.alert li {
  margin: 4px 0;
}

.contact-info h2 {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 46px;
  color: var(--accent);
  margin-bottom: 12px;
}

.contact-info h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 24px;
}

.contact-info > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
  stroke-width: 1.5;
  fill: none;
}

.contact-item-text h4 {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-item-text p {
  font-size: 15px;
  color: var(--ink);
}

.contact-item-text a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  transition: color 0.3s;
}

.contact-item-text a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-divider {
  height: 1px;
  background: var(--line);
  margin: 36px 0;
}

.contact-social h4 {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RECIPE VOTE BOX
   ============================================ */
.recipe-vote-wrap {
  max-width: 760px;
  width: calc(100% - 2rem);
  margin: 0 auto 2rem;
  padding: 2rem 2.5rem;
  background: var(--panel);
  border-radius: var(--radius-md);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.recipe-vote-wrap .rv-left {
  flex: 0.5;
  text-align: center;
  padding-right: 2.5rem;
  border-right: 1px solid var(--line);
}

.recipe-vote-wrap .rv-score {
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
}

.recipe-vote-wrap .rv-stars-row {
  font-size: 1.3rem;
  letter-spacing: 2px;
  line-height: 1;
  margin: 0.4rem 0 0.25rem;
}

.rv-icon--filled {
  color: var(--accent);
}

.rv-icon--partial {
  background: linear-gradient(90deg, var(--accent) 50%, var(--muted) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rv-icon--blank {
  color: var(--muted);
}

.recipe-vote-wrap .rv-total {
  font-size: 0.78rem;
  color: var(--muted);
}

.recipe-vote-wrap .rv-right {
  flex: 1;
  text-align: center;
}

.recipe-vote-wrap .rv-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.2rem;
}

.recipe-vote-wrap .rv-subheading {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.recipe-vote-wrap .rv-picker {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  direction: rtl;
}

.recipe-vote-wrap .rv-picker input {
  display: none;
}

.recipe-vote-wrap .rv-picker label {
  font-size: 2.2rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1;
}

.recipe-vote-wrap .rv-picker label:hover,
.recipe-vote-wrap .rv-picker label:hover ~ label,
.recipe-vote-wrap .rv-picker input:checked ~ label {
  color: var(--accent);
}

.recipe-vote-wrap .rv-picker label:hover {
  transform: scale(1.2);
}

.recipe-vote-wrap .rv-send {
  --rv-accent: var(--accent);
  --rv-accent-soft: rgba(162, 79, 108, 0.2);
  --rv-muted: var(--muted);
  display: inline-block;
  padding: 0.65rem 2.2rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.recipe-vote-wrap .rv-send:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.recipe-vote-wrap .rv-send:active {
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- 1200px --- */
@media (max-width: 1200px) {
  .container {
    padding: 0 40px;
  }

  .nav-content {
    padding: 0 40px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    padding: 0 40px;
  }

  .footer-bottom {
    padding: 24px 40px 0;
  }

  .blog-listing {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-section {
    padding: 80px 40px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- 900px --- */
@media (max-width: 900px) {
  .container {
    padding: 0 30px;
  }

  .nav-content {
    padding: 0 30px;
  }

  body > header {
    height: 70px;
  }

  main {
    padding-top: 70px;
  }

  .nav-desktop {
    display: none;
  }

  .burger-menu {
    display: flex;
    top: 13px;
    right: 20px;
  }

  section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 38px;
  }

  .section-script {
    font-size: 34px;
  }

  .footer-content {
    padding: 0 30px;
  }

  .footer-bottom {
    padding: 24px 30px 0;
  }

  .blog-section {
    padding: 70px 30px;
  }

  .blog-listing {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-card {
    min-height: 320px;
  }

  .post header {
    height: 350px;
    margin-top: -70px;
    padding-top: 70px;
  }

  .post header h1 {
    font-size: 34px;
  }

  .post .content {
    padding: 50px 30px;
  }

  .post .content h2 {
    font-size: 26px;
  }

  .page {
    padding: 50px 30px;
  }

  .page h1 {
    font-size: 34px;
  }

  table thead th,
  table tbody td {
    padding: 12px 14px;
    font-size: 14px;
  }

  figure {
    margin: 30px 0;
  }

  figcaption {
    padding: 12px 16px;
    font-size: 13px;
  }

  .hero {
    padding: 140px 30px 100px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-script {
    font-size: 44px;
  }

  .categories-section,
  .featured-section,
  .about-section,
  .newsletter-section {
    padding: 70px 30px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-main {
    min-height: 400px;
  }

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

  .contact-hero {
    padding: 130px 30px 70px;
  }

  .contact-hero h1 {
    font-size: 42px;
  }

  .contact-section {
    padding: 70px 30px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* --- 600px --- */
@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .nav-content {
    padding: 0 20px;
  }

  body > header {
    height: 64px;
  }

  main {
    padding-top: 64px;
  }

  .logo-text {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .burger-menu {
    top: 10px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 32px;
  }

  .section-script {
    font-size: 28px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 11px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px 20px 0;
  }

  .post header {
    height: 280px;
    margin-top: -64px;
    padding-top: 64px;
  }

  .post header h1 {
    font-size: 28px;
  }

  .post .content {
    padding: 40px 20px;
  }

  .post .content h2 {
    font-size: 24px;
  }

  .post .content p,
  .post .content li {
    font-size: 16px;
  }

  .blog-section {
    padding: 50px 20px;
  }

  .blog-card {
    min-height: 280px;
    padding: 24px;
  }

  .blog-card-title {
    font-size: 18px;
  }

  .page {
    padding: 40px 20px;
  }

  .page h1 {
    font-size: 28px;
  }

  table {
    font-size: 13px;
  }

  table thead th,
  table tbody td {
    padding: 10px 12px;
  }

  table thead th {
    font-size: 12px;
  }

  figure {
    margin: 24px 0;
    border-radius: var(--radius-sm);
  }

  figcaption {
    padding: 10px 14px;
    font-size: 12px;
  }

  .hero {
    padding: 120px 20px 80px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-script {
    font-size: 36px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .categories-section,
  .featured-section,
  .about-section,
  .newsletter-section {
    padding: 50px 20px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .featured-main {
    min-height: 300px;
  }

  .featured-card {
    flex-direction: column;
  }

  .about-text h2 {
    font-size: 36px;
  }

  .about-text h3 {
    font-size: 28px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-box h3 {
    font-size: 26px;
  }

  .contact-hero {
    padding: 110px 20px 50px;
  }

  .contact-hero h1 {
    font-size: 32px;
  }

  .contact-section {
    padding: 50px 20px;
  }

  .contact-form-wrapper {
    padding: 36px 28px;
  }

  .contact-info h2 {
    font-size: 36px;
  }

  .contact-info h3 {
    font-size: 28px;
  }

  .recipe-vote-wrap {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.25rem;
    text-align: center;
    margin: 0 auto 2rem;
  }

  .recipe-vote-wrap .rv-left {
    padding-right: 0;
    border-right: none;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
  }

  .recipe-vote-wrap .rv-picker label {
    font-size: 1.8rem;
  }
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.25rem;
  }
}

/* =============================================
   AUTHOR BOX
   ============================================= */
.author-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 760px;
    width: calc(100% - 2rem);
    margin: 0 auto 2rem;
    padding: 2rem 2.5rem;
    background: var(--panel);
    border-radius: var(--radius-md);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.author-box-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.author-box-info {
    flex: 1;
    min-width: 0;
}
.author-box-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text, #1F2937);
    margin-bottom: 0.25rem;
}
.author-box-bio {
    font-size: 0.875rem;
    color: var(--text-light, #6B7280);
    line-height: 1.5;
    margin: 0;
}