/* ═══════════════════════════════════════════════════════════════════════════
   LA VIBRANCE — Thème minimal
   Typo : Bricolage Grotesque · Fond blanc · Accents colorés
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --c-magenta: #D504D9;
  --c-orange:  #F24C27;
  --c-bleu:    #1400FF;
  --c-vert:    #0BBF4A;
  --c-rose:    #F25CBE;

  /* Neutres */
  --c-ink:    #111111;
  --c-ink-2:  #444444;
  --c-ink-3:  #888888;
  --c-border: #E5E5E5;
  --c-bg:     #FFFFFF;

  /* Customizer overrides (injectées dans wp_head) */
  --lvt-accent:   var(--c-bleu);
  --lvt-accent-2: var(--c-orange);
  --lvt-content-width: 1180px;
  --lvt-logo-height: 40px;

  /* Typo */
  --font: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Rythme */
  --radius: 0px;
  --gap: 24px;
}

/* ── Reset minimal ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lvt-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 20px; }
p  { margin: 0 0 1em; }

/* ── Conteneurs ─────────────────────────────────────────────────────────── */
.lvt-wrap {
  max-width: var(--lvt-content-width);
  margin: 0 auto;
  padding: 0 24px;
}
.lvt-wrap--narrow { max-width: 760px; }

@media (max-width: 600px) {
  .lvt-wrap { padding: 0 16px; }
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.lvt-header {
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.lvt-header-inner {
  max-width: var(--lvt-content-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lvt-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.lvt-logo img,
.lvt-logo-default {
  height: var(--lvt-logo-height);
  width: auto;
  display: block;
}
.lvt-logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--c-ink);
}

.lvt-nav { flex: 1; display: flex; justify-content: center; }
.lvt-nav-list {
  display: flex;
  gap: 32px;
  align-items: center;
}
.lvt-nav-list a {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.lvt-nav-list a:hover,
.lvt-nav-list .current-menu-item > a {
  color: var(--lvt-accent);
  border-bottom-color: var(--lvt-accent);
}

/* Sous-menus */
.lvt-nav-list li { position: relative; }
.lvt-nav-list ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  min-width: 200px;
  padding: 8px 0;
  display: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.lvt-nav-list li:hover > ul { display: block; }
.lvt-nav-list ul a {
  display: block;
  padding: 8px 16px;
  border-bottom: none;
  font-weight: 500;
}

/* Toggle mobile */
.lvt-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.lvt-nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--c-ink);
  transition: transform .2s, opacity .2s;
}
.lvt-mobile-nav {
  display: none;
  border-top: 1px solid var(--c-border);
}
.lvt-mobile-nav-list a {
  display: block;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-border);
}
.lvt-mobile-nav-list ul { padding-left: 16px; }

body.lvt-nav-open .lvt-mobile-nav { display: block; }
body.lvt-nav-open .lvt-nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.lvt-nav-open .lvt-nav-toggle-bar:nth-child(2) { opacity: 0; }
body.lvt-nav-open .lvt-nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .lvt-nav { display: none; }
  .lvt-nav-toggle { display: flex; }
}

/* ── Main / Pages ───────────────────────────────────────────────────────── */
.lvt-main { min-height: 50vh; }

.lvt-page { padding: 40px 0 64px; }
.lvt-page--front { padding: 0; }

.lvt-page-header {
  max-width: var(--lvt-content-width);
  margin: 0 auto 32px;
  padding: 0 24px;
}
.lvt-page-title { margin-bottom: 4px; }

.lvt-page-layout {
  max-width: var(--lvt-content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}
.lvt-page-sidebar { position: sticky; top: 100px; }

@media (max-width: 900px) {
  .lvt-page-layout { grid-template-columns: 1fr; }
}

/* ── Contenu / typographie article ─────────────────────────────────────── */
.lvt-content { font-size: 17px; line-height: 1.7; }
.lvt-content h2, .lvt-content h3 { margin-top: 1.6em; }
.lvt-content a { text-decoration: underline; text-underline-offset: 2px; }
.lvt-content img { margin: 1.5em 0; }
.lvt-content blockquote {
  border-left: 3px solid var(--lvt-accent);
  padding-left: 20px;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--c-ink-2);
}

/* ── Liste d'articles ───────────────────────────────────────────────────── */
.lvt-posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.lvt-post-card { border: 1px solid var(--c-border); }
.lvt-post-card-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--c-border); }
.lvt-post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lvt-post-card-body { padding: 18px; }
.lvt-post-card-title { font-size: 18px; margin-bottom: 8px; }
.lvt-post-card-title a { color: var(--c-ink); text-decoration: none; }
.lvt-post-card-title a:hover { color: var(--lvt-accent); }
.lvt-post-card-excerpt { font-size: 14px; color: var(--c-ink-2); }
.lvt-post-card-date { font-size: 12px; color: var(--c-ink-3); text-transform: uppercase; letter-spacing: .06em; }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.lvt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--c-ink);
  transition: background .15s, color .15s, border-color .15s;
}
.lvt-btn--primary { background: var(--lvt-accent); color: #fff; border-color: var(--lvt-accent); }
.lvt-btn--primary:hover { background: var(--c-ink); border-color: var(--c-ink); text-decoration: none; color: #fff; }
.lvt-btn--ghost { background: transparent; color: var(--c-ink); }
.lvt-btn--ghost:hover { background: var(--c-ink); color: #fff; text-decoration: none; }

/* ── 404 ────────────────────────────────────────────────────────────────── */
.lvt-404 { text-align: center; padding: 80px 0; }
.lvt-404-title { font-size: 96px; color: var(--lvt-accent); margin-bottom: 0; }
.lvt-404-text { font-size: 18px; color: var(--c-ink-2); margin-bottom: 32px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.lvt-footer { border-top: 1px solid var(--c-border); margin-top: 60px; }

.lvt-footer-widgets { background: #FAFAFA; padding: 48px 0; }
.lvt-footer-widgets-inner {
  max-width: var(--lvt-content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.lvt-footer-widget-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-ink-3);
  margin-bottom: 14px;
}

.lvt-footer-bottom { padding: 20px 0; }
.lvt-footer-bottom-inner {
  max-width: var(--lvt-content-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.lvt-footer-text { font-size: 13px; color: var(--c-ink-3); }
.lvt-footer-nav-list { display: flex; gap: 20px; }
.lvt-footer-nav-list a { font-size: 13px; color: var(--c-ink-3); }
.lvt-footer-nav-list a:hover { color: var(--c-ink); }

/* ── Accents colorés ponctuels (classes utilitaires) ───────────────────── */
.lvt-text-magenta { color: var(--c-magenta); }
.lvt-text-orange  { color: var(--c-orange); }
.lvt-text-bleu    { color: var(--c-bleu); }
.lvt-text-vert    { color: var(--c-vert); }
.lvt-text-rose    { color: var(--c-rose); }

.lvt-empty { color: var(--c-ink-3); text-align: center; padding: 40px 0; }

/* ── Compatibilité LV Social ────────────────────────────────────────────── */
/* LV Social utilise ses propres variables --lv-*. On les fait pointer vers
   la palette du thème pour une cohérence visuelle totale sans dupliquer le CSS. */
.lvs-wrap, .lvs-profile-page, .lvs-search-page, .lvs-vitrine, .lvs-notifs-page {
  --lv-bg: #FFFFFF;
  --lv-surface: #FFFFFF;
  --lv-ink: var(--c-ink);
  --lv-ink-2: var(--c-ink-2);
  --lv-ink-3: var(--c-ink-3);
  --lv-border: var(--c-border);
  --lv-font: var(--font);
  --lv-info: var(--lvt-accent);
}
