/*
Theme Name: LAB.O3
Theme URI: https://labo3.tn/
Author: LAB.O3
Author URI: https://labo3.tn/
Description: Thème WordPress sur mesure pour LAB.O3 — prothèses oculaires en Tunisie. Design éditorial, esthétique d'atelier, galerie immersive, en-tête fixe, micro-animations.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: labo3
Tags: minimal, editorial, healthcare, custom-colors, custom-menu, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* =========================================================
   1. RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

/* =========================================================
   2. DESIGN TOKENS
   ========================================================= */
:root {
  /* Warm, sun-bleached Tunisian palette */
  --bg: #F6F1E8;            /* warm parchment */
  --bg-alt: #ECE4D2;        /* soft sand */
  --bg-deep: #1B1813;       /* near-black warm */
  --ink: #1F1A14;           /* deep walnut */
  --ink-soft: #4A4239;
  --ink-mute: #8B8275;
  --line: #DDD2BC;
  --accent: #B65A2C;        /* terracotta — Mediterranean clay */
  --accent-deep: #8E3F1B;
  --accent-soft: #E8C9B3;
  --iris: #2D5775;          /* iris blue, used sparingly */
  --gold: #C49449;
  --white: #FFFFFF;

  /* Type */
  --font-serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 144px;

  /* Layout */
  --container: 1280px;
  --container-wide: 1440px;
  --container-narrow: 760px;
  --radius: 2px;
  --header-h: 80px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
  color: var(--ink);
}
h1 { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -0.03em; font-weight: 400; }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 400; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
.lede { font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.5; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  display: inline-block;
}

a.read-more, .link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: gap .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
a.read-more:hover, .link:hover { gap: 16px; color: var(--accent); border-color: var(--accent); }
a.read-more::after, .link::after { content: "→"; font-family: var(--font-sans); }

blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.25;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  padding: 0;
  margin: 0;
  text-wrap: balance;
}
blockquote::before { content: "« "; color: var(--accent); }
blockquote::after { content: " »"; color: var(--accent); }

/* =========================================================
   4. LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--space-7) 0; }
.section--tight { padding: var(--space-6) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-deep); color: #E8DFCC; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #FAF6EC; }
.section--dark .eyebrow { color: var(--gold); }

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

/* =========================================================
   5. HEADER (sticky)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 232, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(246, 241, 232, 0.92);
  border-bottom-color: var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.site-brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 38%, #4A6B8A 0%, #1F3A55 35%, #0A1218 70%, #000 100%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1), 0 1px 4px rgba(0,0,0,.08);
}
.site-brand__mark::before {
  content: "";
  position: absolute;
  top: 7px; left: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  filter: blur(.6px);
}
.site-brand__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(180,200,220,.4) 0%, transparent 50%);
  pointer-events: none;
}
.site-brand__name { letter-spacing: 0.02em; line-height: 1; }
.site-brand__name strong { font-weight: 600; color: var(--accent); }

.primary-nav { display: flex; align-items: center; gap: var(--space-5); }
.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--space-5);
  font-size: 0.95rem;
  font-weight: 500;
}
.primary-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color .25s var(--ease);
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--ink); }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  transition: background .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "→";
  font-family: var(--font-sans);
  transition: transform .3s var(--ease);
}
.btn:hover { background: var(--accent); color: var(--bg); transform: translateY(-1px); }
.btn:hover::after { transform: translateX(4px); }
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--accent); color: var(--bg); }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .25s var(--ease);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-4) var(--space-5) var(--space-5);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.15);
  }
  .primary-nav.is-open ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .primary-nav.is-open ul li {
    border-bottom: 1px solid var(--line);
  }
  .primary-nav.is-open ul li:last-child { border-bottom: 0; }
  .primary-nav.is-open ul a {
    display: block;
    padding: var(--space-3) 0;
    font-size: 1.125rem;
  }
  .primary-nav.is-open .btn {
    margin-top: var(--space-3);
    justify-content: center;
  }
}

/* =========================================================
   6. HERO — full-bleed editorial
   ========================================================= */
.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
}
.hero__copy {
  padding: var(--space-7) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  max-width: 720px;
  margin-left: auto;
}
.hero__copy h1 {
  margin-bottom: var(--space-4);
  text-wrap: balance;
}
.hero__copy h1 .stroke {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}
.hero__lede {
  font-size: clamp(1.1rem, 1.3vw, 1.3rem);
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
  max-width: 44ch;
  line-height: 1.55;
}
.hero__cta { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }

.hero__visual {
  position: relative;
  background: var(--bg-deep);
  overflow: hidden;
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(.95);
}
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27,24,19,0) 60%, rgba(27,24,19,.55) 100%),
    linear-gradient(90deg, rgba(246,241,232,.3) 0%, transparent 25%);
  pointer-events: none;
}

.hero__caption {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  color: rgba(255,255,255,.85);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__caption::before {
  content: "";
  width: 32px; height: 1px;
  background: currentColor;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.hero__meta-item {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.hero__meta-item strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-family: var(--font-serif);
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1;
}

@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; min-height: auto; }
  .hero__copy { padding: var(--space-6) var(--space-5); max-width: none; margin-left: 0; }
  .hero__visual { aspect-ratio: 4/5; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
}

/* Marquee — Tunisian governorates */
.marquee {
  background: var(--bg-deep);
  color: var(--bg);
  overflow: hidden;
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.marquee__track {
  display: flex;
  gap: var(--space-6);
  animation: marquee 50s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee__item {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-style: italic;
  color: rgba(255,255,255,.55);
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
}
.marquee__item::after {
  content: "✦";
  color: var(--accent);
  font-style: normal;
  font-size: 0.7em;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   7. CARDS / GRIDS
   ========================================================= */
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* Service card */
.svc-card {
  background: var(--white);
  padding: var(--space-5);
  border: 1px solid var(--line);
  position: relative;
  transition: border-color .3s var(--ease), transform .4s var(--ease), background .3s var(--ease);
  overflow: hidden;
}
.svc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.svc-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: var(--space-3);
  letter-spacing: 0.02em;
}
.svc-card h3 { margin-bottom: var(--space-2); font-size: 1.5rem; }
.svc-card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.95rem; }

/* Post card — replaced by LABO3 BLOG-POLISH-V2 */

/* =========================================================
   8. SECTIONS
   ========================================================= */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.section-head__title { max-width: 720px; }
.section-head h2 { margin-bottom: var(--space-3); text-wrap: balance; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 50ch; }
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: start; }
}

/* Process / steps */
.process { display: grid; gap: 0; }
.process__item {
  position: relative;
  padding: var(--space-4) 0 var(--space-4) var(--space-7);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-5);
  align-items: start;
  transition: padding-left .4s var(--ease);
}
.process__item:last-child { border-bottom: 1px solid var(--line); }
.process__item:hover { padding-left: calc(var(--space-7) + 12px); }
.process__num {
  position: absolute;
  left: 0; top: var(--space-4);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent);
}
.process__item h4 {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 400;
  margin: 0;
}
.process__item p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}
@media (max-width: 720px) {
  .process__item { grid-template-columns: 1fr; gap: var(--space-2); padding-left: var(--space-6); }
  .process__num { top: var(--space-4); }
}

/* Split — image + text */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
  pointer-events: none;
}
@media (max-width: 880px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: var(--space-5); direction: ltr; }
}

/* =========================================================
   9. GALLERY
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.gallery__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(31,26,20,.35) 100%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item__caption {
  position: absolute;
  left: 16px; bottom: 12px;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 2;
}
.gallery__item:hover .gallery__item__caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery--editorial {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: var(--space-3);
}
.gallery--editorial .gallery__item:nth-child(1) { grid-column: span 6; grid-row: span 3; aspect-ratio: auto; }
.gallery--editorial .gallery__item:nth-child(2) { grid-column: span 6; grid-row: span 2; aspect-ratio: auto; }
.gallery--editorial .gallery__item:nth-child(3) { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
.gallery--editorial .gallery__item:nth-child(4) { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
.gallery--editorial .gallery__item:nth-child(5) { grid-column: span 4; grid-row: span 3; aspect-ratio: auto; }
.gallery--editorial .gallery__item:nth-child(6) { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.gallery--editorial .gallery__item { aspect-ratio: auto; }
@media (max-width: 880px) {
  .gallery--editorial { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery--editorial .gallery__item { grid-column: span 1 !important; grid-row: span 1 !important; aspect-ratio: 1; }
}

.wp-block-gallery, .gallery { margin: var(--space-5) 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 12, 8, 0.94);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: var(--space-5);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  transition: background .25s var(--ease), transform .25s var(--ease);
  border: 1px solid rgba(255,255,255,.15);
}
.lightbox__close:hover, .lightbox__nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.05);
}
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* =========================================================
   10. CITIES SERVED — Tunisia
   ========================================================= */
.cities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: var(--space-5);
}
.cities__item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-4) var(--space-3);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink-soft);
  transition: background .3s var(--ease), color .3s var(--ease);
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: 0.01em;
  min-height: 88px;
}
.cities__item:hover {
  background: var(--ink);
  color: var(--bg);
}
.cities__item--primary {
  background: var(--accent);
  color: var(--bg);
}
.cities__item--primary:hover {
  background: var(--accent-deep);
  color: var(--bg);
}

/* =========================================================
   11. SINGLE / PAGE CONTENT
   ========================================================= */
.entry-header { padding: var(--space-7) 0 var(--space-5); }
.entry-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  margin-bottom: var(--space-3);
}
.entry-meta a { color: var(--accent); }

.entry-featured {
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  margin-bottom: var(--space-6);
  overflow: hidden;
}
.entry-featured img { width: 100%; height: 100%; object-fit: cover; }

.entry-content { font-size: 1.0625rem; line-height: 1.78; color: var(--ink); }
.entry-content > * + * { margin-top: var(--space-3); }
.entry-content h2 { margin-top: var(--space-6); margin-bottom: var(--space-3); }
.entry-content h3 { margin-top: var(--space-5); margin-bottom: var(--space-3); }
.entry-content p { margin-bottom: var(--space-4); }
.entry-content p:first-of-type { font-size: 1.25rem; line-height: 1.55; color: var(--ink-soft); }
.entry-content ul, .entry-content ol { margin: 0 0 var(--space-4) var(--space-4); }
.entry-content li { margin-bottom: var(--space-2); }
.entry-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  transition: color .2s var(--ease);
}
.entry-content a:hover { color: var(--accent); }
.entry-content figure { margin: var(--space-5) 0; }
.entry-content figcaption {
  font-size: 0.85rem; color: var(--ink-mute);
  margin-top: var(--space-2); text-align: center;
  font-style: italic;
}
.entry-content blockquote {
  margin: var(--space-6) 0;
  padding-left: var(--space-4);
  border-left: 2px solid var(--accent);
  font-size: 1.5rem;
}

/* =========================================================
   12. ARCHIVE / INDEX
   ========================================================= */
.archive-header {
  padding: var(--space-7) 0 var(--space-5);
  border-bottom: 1px solid var(--line);
}
.archive-header h1 { margin-bottom: var(--space-2); }
.archive-header p { color: var(--ink-soft); margin: 0; }

.posts-grid { padding: var(--space-6) 0 var(--space-7); }

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-5) 0;
  margin-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.pagination .page-numbers {
  min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  font-size: 0.92rem;
  transition: all .25s var(--ease);
  padding: 0 14px;
  border-radius: 999px;
}
.pagination .page-numbers:hover, .pagination .page-numbers.current {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

/* =========================================================
   13. CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-7);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-5); } }

.info-block { margin-bottom: var(--space-5); }
.info-block h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: var(--space-2); font-weight: 500;
}
.info-block p { margin: 0; color: var(--ink); font-size: 1.05rem; }
.info-block a { color: var(--ink); border-bottom: 1px solid var(--line); transition: border-color .2s var(--ease); }
.info-block a:hover { border-bottom-color: var(--accent); }

.form-row { margin-bottom: var(--space-4); }
.form-row label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(182,90,44,.12);
}
.form-row textarea { min-height: 140px; resize: vertical; }

/* =========================================================
   14. FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-deep);
  color: #B5AC9A;
  padding: var(--space-7) 0 var(--space-5);
  margin-top: var(--space-7);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "LAB.O3";
  position: absolute;
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 500;
  color: rgba(255,255,255,.025);
  letter-spacing: -0.04em;
  pointer-events: none;
  white-space: nowrap;
}
.site-footer .container { position: relative; }
.site-footer h4 {
  font-family: var(--font-sans);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  font-weight: 500;
}
.site-footer a { color: #B5AC9A; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .site-brand { color: #fff; font-size: 1.75rem; }
.footer-brand .site-brand__name strong { color: var(--accent); }
.footer-brand p { color: #8A8275; max-width: 36ch; margin-top: var(--space-3); font-size: 0.95rem; line-height: 1.55; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }

.footer-bottom {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6F6759;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-bottom a { color: #6F6759; }

/* =========================================================
   15. 404
   ========================================================= */
.error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-7) 0;
}
.error-404 .big {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(7rem, 22vw, 16rem);
  line-height: 0.9;
  color: var(--accent);
  margin: 0 0 var(--space-3);
  font-weight: 400;
}

/* =========================================================
   16. UTILITIES & MOTION
   ========================================================= */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-5 { margin-top: var(--space-5); }
.mb-5 { margin-bottom: var(--space-5); }

.alignleft { float: left; margin: 0 var(--space-4) var(--space-3) 0; }
.alignright { float: right; margin: 0 0 var(--space-3) var(--space-4); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: var(--container-wide); margin-left: auto; margin-right: auto; }
.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

/* Reveal-on-scroll — only hide once JS is ready, to avoid stuck-invisible content */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Comments */
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: var(--space-2); }


/* =========================================================
   17. PLACEHOLDERS — sober fallback when no image is set
   ========================================================= */
.hero__placeholder, .split__placeholder {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.25) 0%, transparent 60%),
    linear-gradient(135deg, #3A2E22 0%, #1F1A14 60%, #0E0A06 100%);
  position: relative;
}
.hero__placeholder::before, .split__placeholder::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 38%, #5A7A98 0%, #2D5775 30%, #0F1A26 65%, #000 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 20px 60px rgba(0,0,0,.4);
}
.hero__placeholder::after, .split__placeholder::after {
  content: "";
  position: absolute;
  top: calc(50% - 24px); left: calc(50% - 12px);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.85) 0%, rgba(255,255,255,.2) 50%, transparent 80%);
  filter: blur(1px);
}
.split__placeholder { aspect-ratio: 4/5; }

.gallery__item--placeholder { cursor: default; }
.gallery__item__caption--static {
  opacity: 1;
  transform: none;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.gallery__item--placeholder::after { display: none; }
.gallery__item--placeholder:hover img { transform: none; }

/* LABO3 TESTIMONIAL FIX */
.section--dark blockquote{color:#FAF6EC;}
.section--dark blockquote::before,.section--dark blockquote::after{color:var(--gold);}
.section--dark .testimonial-cite{color:rgba(255,255,255,.55) !important;}
/* LABO3 TESTIMONIAL FIX END */

/* LABO3 COOKIE FIX */
.cookieadmin_re_consent,.cookieadmin_re_consent_btn,#cookieadmin_re_consent{display:none !important;}
/* LABO3 COOKIE FIX END */

/* LABO3 CONTACT-CSS START */
.contact-status{padding:1rem 1.25rem;border-radius:6px;margin-bottom:1.5rem;font-size:0.95rem;border-left:4px solid;}
.contact-status--ok{background:#E9F5EE;color:#1d5f33;border-color:#3aa161;}
.contact-status--err{background:#FBE9E7;color:#7d2f1d;border-color:#c5421f;}
.contact-status--warn{background:#FFF6E0;color:#7a5a13;border-color:#d6a225;}
.contact-status--info{background:#EEF2FA;color:#1d3a66;border-color:#3a73c5;}
/* LABO3 CONTACT-CSS END */

/* LABO3 NAV-CTA START */
.site-header .primary-nav .btn{background:var(--accent);color:#fff;box-shadow:none;border:0;padding:11px 22px;font-weight:600;letter-spacing:0.02em;font-size:0.88rem;white-space:nowrap;flex-shrink:0;border-radius:999px;}
.site-header .primary-nav .btn::after{display:none;content:none;}
.site-header .primary-nav .btn:hover{background:var(--accent-deep);color:#fff;box-shadow:none;transform:translateY(-1px);}
.site-header .primary-nav .btn:focus-visible{outline:2px solid var(--accent-deep);outline-offset:3px;}
@media (max-width:920px){.site-header .primary-nav.is-open .btn{align-self:stretch;text-align:center;justify-content:center;padding:13px 22px;}}
/* LABO3 NAV-CTA END */


/* LABO3 BLOG-POLISH-V3 START */
/* Archive: 1 article per row, editorial side-by-side layout. Scoped to .posts-grid so home-page .grid--3 cards stay 3-up. */
.posts-grid .grid--3 {
  grid-template-columns: 1fr !important;
  gap: var(--space-7) 0 !important;
  max-width: 1080px;
  margin: 0 auto;
}

.posts-grid .post-card {
  display: grid !important;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-6);
  align-items: center;
  text-decoration: none !important;
  color: inherit !important;
  padding: 0;
}

.posts-grid .post-card .post-card__media {
  aspect-ratio: 4 / 3 !important;
  width: 100% !important;
  background: var(--bg-alt) !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 6px !important;
  display: block !important;
  position: relative;
}
.posts-grid .post-card .post-card__media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform .8s var(--ease);
}
.posts-grid .post-card:hover .post-card__media img { transform: scale(1.04); }

.posts-grid .post-card .post-card__copy { display: block; }

.posts-grid .post-card .post-card__meta {
  display: flex !important;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 var(--space-3) 0 !important;
}
.posts-grid .post-card .post-card__meta::after {
  content: "" !important;
  flex: 1; height: 1px; background: var(--line);
}

.posts-grid .post-card h3 {
  display: block !important;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem) !important;
  line-height: 1.18 !important;
  font-weight: 500 !important;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 var(--space-3) 0 !important;
  transition: color .3s var(--ease);
}
.posts-grid .post-card:hover h3 { color: var(--accent); }

.posts-grid .post-card p {
  display: block !important;
  font-size: 1.05rem !important;
  line-height: 1.6 !important;
  color: var(--ink-soft);
  margin: 0 !important;
}

.posts-grid .post-card .post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-4);
  font-size: 0.85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.posts-grid .post-card:hover .post-card__more { gap: 14px; color: var(--accent); }
.posts-grid .post-card .post-card__more::after { content: "→"; }

/* Archive header: keep editorial */
.archive-header {
  padding: var(--space-7) 0 var(--space-6);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.archive-header .container { max-width: var(--container-narrow); }
.archive-header h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); margin: var(--space-2) 0 var(--space-3); letter-spacing:-.025em; }
.archive-header p { color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; margin: 0 auto; }

.posts-grid { padding: var(--space-6) 0 var(--space-7); }

/* Mobile: stack image above text */
@media (max-width: 800px) {
  .posts-grid .post-card {
    grid-template-columns: 1fr !important;
    gap: var(--space-4);
  }
  .posts-grid .grid--3 { gap: var(--space-6) 0 !important; }
}

/* Pagination unchanged */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: var(--space-7); }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); font-size: .9rem;
  transition: all .25s var(--ease);
}
.pagination .page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Single post (unchanged) */
.single .entry-featured { aspect-ratio: 5/4 !important; border-radius: 4px; margin-bottom: var(--space-6); }
.single .entry-header { padding-top: var(--space-7); }
.single .entry-content > p:first-of-type {
  font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: var(--space-5);
}
.single .entry-content { font-size: 1.0625rem; line-height: 1.78; }
.single .entry-content h2 { font-size: 1.6rem; margin-top: var(--space-6); }
.single .entry-content h3 { font-size: 1.2rem; margin-top: var(--space-5); }
/* LABO3 BLOG-POLISH-V3 END */

/* LABO3 PAGE-HEADER-ALIGN START */
/* À propos + Contact: match the centered, bordered editorial header used on /blog/ */
.page-template-page-about .entry-header,
.page-template-page-contact .entry-header {
  padding: var(--space-7) 0 var(--space-6);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-template-page-about .entry-header .container,
.page-template-page-contact .entry-header .container {
  max-width: var(--container-narrow);
}
.page-template-page-about .entry-header h1,
.page-template-page-contact .entry-header h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem) !important;
  margin: var(--space-2) 0 var(--space-3);
  letter-spacing: -0.025em;
}
.page-template-page-about .entry-header .lede,
.page-template-page-contact .entry-header .lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 auto;
}
/* eyebrow centered: keep its decorative ::before line, just center the inline-flex */
.page-template-page-about .entry-header .eyebrow,
.page-template-page-contact .entry-header .eyebrow { justify-content: center; }
/* LABO3 PAGE-HEADER-ALIGN END */
