/* ==========================================================================
   naturo.css — Complete stylesheet for Naturo Ghost Theme
   Naturopathe Élodie Despujols
   ========================================================================== */

/* ==========================================================================
   1. CSS Reset & Box-Sizing
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}


/* ==========================================================================
   2. CSS Custom Properties
   ========================================================================== */

:root {
  --accent: #FF1A75;
  --accent-dark: #d4005e;
  --accent-light: #fff0f5;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --heading: #1a1a1a;
  --bg: #ffffff;
  --bg-footer: #fdf9f6;
  --bg-card: #ffffff;
  --bg-hover: #fafafa;
  --border: #e8e8e8;
  --border-light: #f2f2f2;
  --font-heading: 'Questrial', sans-serif;
  --font-body: 'Lato', sans-serif;
  --container: 1200px;
  --container-narrow: 760px;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.13);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.16);
  --header-height: 80px;
  --transition: 0.22s ease;
}


/* ==========================================================================
   3. Base Typography
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title-text,
.footer-title,
.page-hero-title,
.post-title,
.page-title,
.post-card-title {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.25;
  font-weight: 400;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1.4em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  transition: color var(--transition), opacity var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
}

strong,
b {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
  font-size: 1.05em;
}

blockquote p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 0;
  margin-bottom: 1.4em;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

img {
  height: auto;
  border-radius: var(--radius-sm);
}

code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88em;
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  color: var(--accent-dark);
}

pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.88em;
  line-height: 1.6;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95em;
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
}

th {
  background: var(--bg-footer);
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--heading);
}

tr:nth-child(even) td {
  background: #fafafa;
}


/* ==========================================================================
   4. Layout — Container
   ========================================================================== */

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

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

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  min-height: calc(100vh - var(--header-height) - 300px);
}


/* ==========================================================================
   5. Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

/* Logo */
.site-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--heading);
  margin-right: auto;
}

.site-logo {
  max-height: 60px;
  width: auto;
  display: block;
}

.site-title-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--heading);
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

.site-nav .nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav .nav li {
  display: flex;
}

.site-nav .nav a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.site-nav .nav a:hover,
.site-nav .nav a:focus-visible {
  color: var(--accent);
  background-color: var(--accent-light);
}

.site-nav .nav .nav-current a {
  color: var(--accent);
  font-weight: 700;
}


/* ==========================================================================
   6. CTA Button "Prendre rendez-vous"
   ========================================================================== */

.btn-rdv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background-color: var(--accent);
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 24px;
  white-space: nowrap;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(255, 26, 117, 0.25);
  margin-left: 12px;
  flex-shrink: 0;
}

.btn-rdv:hover,
.btn-rdv:focus-visible {
  background-color: var(--accent-dark);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 26, 117, 0.35);
}

.btn-rdv:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 26, 117, 0.25);
}

/* Generic primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background-color: var(--accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 24px;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(255, 26, 117, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 26, 117, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 27px;
  background-color: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 24px;
  border: 2px solid var(--accent);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}


/* ==========================================================================
   7. Hamburger / Mobile Nav
   ========================================================================== */

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition);
  flex-shrink: 0;
}

.nav-burger:hover {
  background-color: var(--accent-light);
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--heading);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.nav-burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   8. Page Hero / Section Headers
   ========================================================================== */

.page-hero {
  padding: 72px 0 56px;
  text-align: center;
  background: linear-gradient(135deg, #fff8fb 0%, #fff5f0 50%, #fffbf8 100%);
  border-bottom: 1px solid var(--border-light);
}

.page-hero--blog {
  background: linear-gradient(135deg, #fff0f5 0%, #fff5f8 60%, #fffaf8 100%);
}

.page-hero--tag {
  position: relative;
  overflow: hidden;
}

.tag-feature-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}

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

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--heading);
  margin-bottom: 16px;
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.tag-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.tag-post-count {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}


/* ==========================================================================
   9. Post Grid
   ========================================================================== */

.posts-section {
  padding: 64px 0 80px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.no-posts {
  text-align: center;
  padding: 64px 0;
  color: var(--text-light);
  font-size: 1.1rem;
}


/* ==========================================================================
   10. Post Card
   ========================================================================== */

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.post-card-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--border-light);
}

.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.92;
}

.post-card:hover .post-card-image {
  transform: scale(1.04);
  opacity: 1;
}

.post-card-image.img-loaded {
  animation: fadeInImg 0.4s ease both;
}

@keyframes fadeInImg {
  from { opacity: 0; }
  to { opacity: 0.92; }
}

.post-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0;
}

.post-card-title a {
  color: var(--heading);
  text-decoration: none;
  transition: color var(--transition);
}

.post-card-title a:hover {
  color: var(--accent);
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 4px;
}

.post-card-meta-sep {
  font-size: 0.6rem;
}

.post-card-reading-time {
  color: var(--text-muted);
}


/* ==========================================================================
   11. Post Tag Badge
   ========================================================================== */

.post-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition);
  width: fit-content;
}

.post-tag:hover,
.post-tag:focus-visible {
  background-color: var(--accent-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.post-tag--header {
  margin-bottom: 6px;
}


/* ==========================================================================
   12. Single Post
   ========================================================================== */

.single-post {
  padding-bottom: 80px;
}

/* Post Header */
.post-header {
  padding: 64px 0 40px;
  text-align: center;
  background: linear-gradient(135deg, #fff5f8 0%, #fffaf8 100%);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
}

.post-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  line-height: 1.2;
}

.post-excerpt {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.post-author-name {
  font-weight: 700;
  color: var(--text);
}

.post-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-meta-sep {
  font-size: 0.55rem;
}

.post-date,
.post-reading-time {
  color: var(--text-muted);
}

/* Feature image */
.post-feature-image {
  margin-bottom: 0;
}

.post-feature-figure {
  margin: 0;
  max-height: 520px;
  overflow: hidden;
  border-radius: 0;
}

.post-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  max-height: 520px;
}

.post-feature-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

/* Post content area */
.post-content-wrap,
.page-content-wrap {
  padding: 56px 0 48px;
}

.post-content,
.page-content {
  font-size: 1.07rem;
  line-height: 1.85;
  color: var(--text);
}

.post-content h2,
.page-content h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin: 2.2em 0 0.7em;
  color: var(--accent);
  text-align: center;
}

.post-content h3,
.page-content h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  margin: 2em 0 0.5em;
  color: var(--accent);
  text-align: center;
}

.post-content h4,
.page-content h4 {
  font-size: 1.15rem;
  margin: 1.8em 0 0.5em;
}

.post-content p,
.page-content p {
  margin-bottom: 1.5em;
}

.post-content a,
.page-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(255, 26, 117, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition), color var(--transition);
}

.post-content a:hover,
.page-content a:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent-dark);
}

.post-content ul,
.page-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5em;
}

.post-content ul li,
.page-content ul li {
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 0.5em;
}

.post-content ul li::before,
.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.post-content ol,
.page-content ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.post-content ol li,
.page-content ol li {
  margin-bottom: 0.5em;
  padding-left: 0.4em;
}

.post-content ol li::marker {
  color: var(--accent);
  font-weight: 700;
}

.post-content img,
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2rem auto;
  display: block;
}

.post-content blockquote,
.page-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2.5rem 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}


/* ==========================================================================
   13. Ghost Content / Koenig Cards
   ========================================================================== */

.gh-content {
  --kg-width: var(--container-narrow);
}

/* Image card */
.kg-image-card {
  margin: 2.5rem 0;
}

.kg-image-card img {
  margin: 0 auto;
  border-radius: var(--radius);
  max-width: 100%;
  height: auto;
}

/* Portrait circulaire — page Me connaître */
.portrait-elodie {
  text-align: center;
  margin: 0 auto 2rem;
}

.portrait-elodie .kg-image {
  border-radius: 50%;
  width: 260px;
  height: 260px;
  object-fit: cover;
  object-position: top center;
  margin: 0 auto;
  display: block;
  box-shadow: 0 4px 20px rgba(255,26,117,0.18);
}

/* ===== RECIPE LAYOUT ===== */
.recipe-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin: 1.5rem 0 2rem;
}
.recipe-img-col img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.recipe-info-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.recipe-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: center;
  margin-bottom: 1.8rem;
  padding: 14px 20px;
  background: var(--accent-light);
  border-radius: var(--radius);
  border: 1px solid rgba(255,26,117,0.12);
}
.recipe-meta-item {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.recipe-meta-item .meta-icon {
  display: block;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 4px;
  color: var(--heading);
}
.recipe-meta-item .meta-label {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 400;
}
.recipe-ingredients-title {
  font-family: var(--font-heading);
  color: var(--accent) !important;
  font-size: 1.4rem !important;
  text-align: left !important;
  margin: 0 0 0.8rem !important;
}
.recipe-ingredients-list {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 0;
}
.recipe-ingredients-list li {
  margin-bottom: 0.4em;
  font-size: 0.97rem;
}
.recipe-prep-title {
  font-family: var(--font-heading);
  color: var(--accent) !important;
  font-size: 1.4rem !important;
  text-align: left !important;
  margin: 2rem 0 0.8rem !important;
}
.recipe-steps {
  list-style: none;
  padding: 0;
  counter-reset: steps;
  margin: 0;
}
.recipe-steps li {
  counter-increment: steps;
  display: flex;
  gap: 12px;
  margin-bottom: 0.8em;
  align-items: flex-start;
  font-size: 0.97rem;
  line-height: 1.6;
}
.recipe-steps li::before {
  content: counter(steps);
  min-width: 26px;
  height: 26px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.recipe-note {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-light);
  font-size: 0.93rem;
  font-style: italic;
}
@media (max-width: 768px) {
  .recipe-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.page-content ol,
.post-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5em;
}
.page-content ol li,
.post-content ol li {
  padding-left: 0.5em;
  margin-bottom: 0.6em;
}

/* Tags chip line */
.page-tags {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem !important;
}

.kg-image-card figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

/* Wide / Full images */
.kg-width-wide {
  width: min(1400px, calc(100vw - 48px));
  margin-left: 50%;
  transform: translateX(-50%);
  max-width: 900px;
}

.kg-width-full {
  margin-left: calc(50% - 50vw + 12px);
  margin-right: calc(50% - 50vw + 12px);
  width: calc(100vw - 24px);
  max-width: calc(100vw - 24px);
  border-radius: 0;
}

/* Gallery */
.kg-gallery-card {
  margin: 2rem 0;
}

.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kg-gallery-row {
  display: flex;
  gap: 8px;
}

.kg-gallery-image {
  flex: 1;
  margin: 0;
}

.kg-gallery-image img {
  border-radius: var(--radius-sm);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bookmark card */
.kg-bookmark-card {
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.kg-bookmark-card:hover {
  box-shadow: var(--shadow-md);
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: var(--text);
}

.kg-bookmark-content {
  flex: 1;
  padding: 16px 20px;
}

.kg-bookmark-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 6px;
}

.kg-bookmark-description {
  font-size: 0.85rem;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.kg-bookmark-icon {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.kg-bookmark-thumbnail {
  width: 160px;
  flex-shrink: 0;
  overflow: hidden;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

/* Callout card */
.kg-callout-card {
  display: flex;
  gap: 14px;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  background: var(--accent-light);
  border: 1px solid rgba(255, 26, 117, 0.15);
}

.kg-callout-emoji {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1.5;
}

.kg-callout-text {
  line-height: 1.65;
  font-size: 0.97rem;
}

/* Toggle card */
.kg-toggle-card {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.kg-toggle-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  cursor: pointer;
  background: var(--bg-footer);
  font-family: var(--font-heading);
  color: var(--heading);
}

.kg-toggle-heading-text {
  font-size: 1rem;
}

.kg-toggle-content {
  padding: 16px 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Video card */
.kg-video-card {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.kg-video-card video {
  width: 100%;
  display: block;
  margin: 0;
  border-radius: inherit;
}

/* Embed card */
.kg-embed-card {
  margin: 2rem 0;
}

.kg-embed-card iframe {
  max-width: 100%;
  border-radius: var(--radius);
}

/* Audio card */
.kg-audio-card {
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  background: var(--bg-footer);
}

/* File card */
.kg-file-card {
  margin: 2rem 0;
}

.kg-file-card-container {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.kg-file-card-container:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}

/* NFT card */
.kg-nft-card {
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Header card */
.kg-header-card {
  padding: 48px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--heading) 0%, #2d1a2a 100%);
  color: white;
  margin: 2rem 0;
  border-radius: var(--radius);
}

.kg-header-card h2 {
  color: white;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.kg-header-card p {
  opacity: 0.8;
  margin-bottom: 24px;
}

/* Products card */
.kg-product-card {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.kg-product-card-image {
  width: 120px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.kg-product-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--heading);
  margin-bottom: 8px;
}

.kg-product-card-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.kg-product-card-button {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent);
  color: white;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--transition);
}

.kg-product-card-button:hover {
  background: var(--accent-dark);
  color: white;
}


/* ==========================================================================
   14. Post Tags Section (single post)
   ========================================================================== */

.post-tags-section {
  padding: 0 0 32px;
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
  margin-top: -16px;
}

.post-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


/* ==========================================================================
   15. Share Section (single post)
   ========================================================================== */

.post-share-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.post-share-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 400;
}

.post-share-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
  border: 1px solid transparent;
}

.share-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.share-btn--facebook {
  background: #1877F2;
  color: white;
}

.share-btn--twitter {
  background: #000000;
  color: white;
}

.share-btn--linkedin {
  background: #0A66C2;
  color: white;
}


/* ==========================================================================
   16. Post Navigation (prev/next)
   ========================================================================== */

.post-navigation {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
}

.post-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.post-nav-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  background: var(--accent-light);
}

.post-nav-next {
  text-align: right;
}

.post-nav-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

.post-nav-next .post-nav-label {
  justify-content: flex-end;
}

.post-nav-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--heading);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ==========================================================================
   17. Static Page
   ========================================================================== */

.static-page {
  padding-bottom: 80px;
}

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

.container--page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

.page-content-wrap {
  padding-top: 40px;
  padding-bottom: 60px;
}

.page-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.page-excerpt {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}


/* ==========================================================================
   18. Pagination
   ========================================================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background-color var(--transition), transform var(--transition);
}

.pagination-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
}

.pagination-info {
  font-size: 0.88rem;
  color: var(--text-muted);
}


/* ==========================================================================
   19. Error Page
   ========================================================================== */

.error-page {
  padding: 100px 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-content {
  max-width: 480px;
  margin: 0 auto;
}

.error-icon {
  display: flex;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0.7;
}

.error-code {
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--border);
  line-height: 1;
  margin-bottom: 8px;
}

.error-title {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--heading);
  margin-bottom: 16px;
}

.error-message {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}


/* ==========================================================================
   20. Footer
   ========================================================================== */

.site-footer {
  background-color: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--heading);
  margin-bottom: 4px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

.footer-contact-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 400;
}

.footer-contact p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.footer-contact a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* Footer social icons */
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-light);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background-color var(--transition), transform var(--transition);
  background: var(--bg);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}

.social-link svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Footer secondary nav */
.footer-nav-sec .nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-sec .nav a {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: none;
  padding: 3px 0;
  transition: color var(--transition);
  display: inline-block;
}

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

/* Footer bottom bar */
.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-copy a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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


/* ==========================================================================
   21. Focus Styles (Accessibility)
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* ==========================================================================
   22. Ghost Subscription / Member Form
   ========================================================================== */

.gh-subscribe-section {
  padding: 72px 0;
  text-align: center;
  background: linear-gradient(135deg, #fff0f5 0%, #fff5f8 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.gh-subscribe-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--heading);
  margin-bottom: 12px;
}

.gh-subscribe-description {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.gh-subscribe-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.gh-subscribe-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 20px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.gh-subscribe-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.gh-subscribe-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 26, 117, 0.12);
}

.gh-subscribe-form button[type="submit"] {
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.gh-subscribe-form button[type="submit"]:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}


/* ==========================================================================
   23. Utility Classes
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }


/* ==========================================================================
   24. Responsive — Tablet (max 1024px)
   ========================================================================== */

@media (max-width: 1024px) {

  :root {
    --header-height: 72px;
  }

  /* Navigation becomes hamburger */
  .nav-burger {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
    z-index: 999;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .site-nav .nav li {
    display: block;
  }

  .site-nav .nav a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius);
    display: block;
  }

  .btn-rdv {
    display: block;
    text-align: center;
    margin: 12px 0 0;
    padding: 13px 24px;
    font-size: 1rem;
  }

  /* Post grid — 2 columns */
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Footer — 2 columns */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Post nav */
  .post-nav-grid {
    gap: 16px;
  }

  /* Container narrow */
  .container--narrow {
    padding: 0 24px;
  }

  /* Wide image card adjustment */
  .kg-width-wide {
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
    max-width: calc(100% + 48px);
  }
}


/* ==========================================================================
   25. Responsive — Mobile (max 768px)
   ========================================================================== */

@media (max-width: 768px) {

  :root {
    --header-height: 64px;
  }

  body {
    font-size: 16px;
  }

  /* Header */
  .site-logo {
    max-height: 48px;
  }

  .site-title-text {
    font-size: 1.15rem;
  }

  /* Post grid — 1 column */
  .post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Post card */
  .post-card-content {
    padding: 18px;
  }

  /* Page hero */
  .page-hero {
    padding: 48px 0 36px;
  }

  .posts-section {
    padding: 40px 0 56px;
  }

  /* Single post */
  .post-header {
    padding: 40px 0 28px;
  }

  .post-content-wrap,
  .page-content-wrap {
    padding: 36px 0 32px;
  }

  .post-content,
  .page-content {
    font-size: 1rem;
  }

  /* Post feature image */
  .post-feature-figure {
    max-height: 260px;
  }

  .post-feature-img {
    max-height: 260px;
  }

  /* Post meta */
  .post-meta {
    flex-direction: column;
    gap: 10px;
  }

  /* Post nav */
  .post-nav-grid {
    grid-template-columns: 1fr;
  }

  .post-nav-next {
    text-align: left;
  }

  .post-nav-next .post-nav-label {
    justify-content: flex-start;
  }

  /* Share */
  .post-share-links {
    flex-direction: column;
    align-items: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .site-footer {
    padding: 48px 0 0;
  }

  /* Pagination */
  .pagination {
    gap: 12px;
  }

  /* Error page */
  .error-page {
    padding: 64px 0;
  }

  /* Bookmark card */
  .kg-bookmark-thumbnail {
    display: none;
  }

  /* Container */
  .container,
  .container--narrow {
    padding: 0 16px;
  }

  /* Wide/full image reset on mobile */
  .kg-width-wide,
  .kg-width-full {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
    max-width: calc(100% + 32px);
    border-radius: 0;
  }

  /* Ghost subscribe form */
  .gh-subscribe-form {
    flex-direction: column;
  }

  .gh-subscribe-form input[type="email"] {
    min-width: auto;
    width: 100%;
  }

  /* Product card */
  .kg-product-card {
    flex-direction: column;
  }

  .kg-product-card-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
  }
}


/* ==========================================================================
   26. Print Styles
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .post-share-section,
  .post-navigation,
  .pagination,
  .nav-burger,
  .btn-rdv {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .post-content,
  .page-content {
    max-width: 100%;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}
