/* =====================================================
   GRACE IVOIRE — blog.css  |  Éditorial Magazine
   Or #d4af37 · Noir #000 · Blanc #fff
===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

/* ── PAGE WRAPPER ────────────────── */
.gi-blog-page {
  background: #000;
  color: #fff;
  min-height: 100vh;
}

/* ── HERO ────────────────────────── */
.gi-blog-hero {
  position: relative;
  padding: 90px 40px 70px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(212,175,55,.1);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,175,55,.07) 0%, transparent 70%);
}

.gi-blog-hero-deco {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(100px, 18vw, 240px);
  font-weight: 300; letter-spacing: .15em;
  color: rgba(212,175,55,.03);
  pointer-events: none; white-space: nowrap;
  user-select: none;
}

.gi-blog-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 10px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: #d4af37;
  margin-bottom: 20px;
}
.gi-blog-eyebrow::before,
.gi-blog-eyebrow::after {
  content: ''; width: 32px; height: 1px; background: #d4af37;
}

.gi-blog-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6vw, 86px);
  font-weight: 300; line-height: 1.05;
  color: #fff; margin: 0 auto 18px;
  max-width: 800px;
}
.gi-blog-hero-title em {
  font-style: italic; color: #d4af37;
}

.gi-blog-hero-sub {
  font-size: 15px; font-weight: 300;
  color: rgba(255,255,255,.45);
  max-width: 500px; margin: 0 auto;
  line-height: 1.7;
}

/* ── ARTICLE FEATURED ────────────── */
.gi-blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px;
  min-height: 520px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.gi-blog-featured-img {
  position: relative; overflow: hidden;
  display: block;
}
.gi-blog-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.gi-blog-featured:hover .gi-blog-featured-img img {
  transform: scale(1.04);
}
.gi-blog-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.3), transparent);
  pointer-events: none;
}

.gi-blog-featured-body {
  padding: 60px 50px;
  display: flex; flex-direction: column; justify-content: center;
  background: #080808;
}

.gi-blog-featured-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 3.2vw, 50px);
  font-weight: 400; line-height: 1.15;
  margin: 16px 0 20px; color: #fff;
}
.gi-blog-featured-title a {
  color: inherit; text-decoration: none;
  transition: color .25s;
}
.gi-blog-featured-title a:hover { color: #d4af37; }

.gi-blog-featured-excerpt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-style: italic; font-weight: 300;
  color: rgba(255,255,255,.55); line-height: 1.75;
  margin-bottom: 32px;
}

/* ── META (catégorie, date, temps) ── */
.gi-blog-meta {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.gi-blog-cat {
  font-size: 9px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: #000;
  background: #d4af37; padding: 4px 12px;
  border-radius: 20px; text-decoration: none;
  transition: background .2s;
}
.gi-blog-cat:hover { background: #f0d060; }
.gi-blog-date,
.gi-blog-read {
  font-size: 11px; color: rgba(255,255,255,.35);
  font-family: 'DM Sans', sans-serif;
}
.gi-blog-date::before { content: '·'; margin-right: 12px; color: rgba(255,255,255,.2); }

/* ── CTA ─────────────────────────── */
.gi-blog-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #d4af37;
  text-decoration: none;
  padding: 14px 28px; border: 1px solid rgba(212,175,55,.3);
  border-radius: 4px;
  transition: all .25s; width: fit-content;
}
.gi-blog-cta:hover {
  background: #d4af37; color: #000;
  border-color: #d4af37;
  gap: 14px;
}
.gi-blog-cta i { transition: transform .25s; }
.gi-blog-cta:hover i { transform: translateX(3px); }

/* ── SECTION GRILLE ─────────────── */
.gi-blog-section {
  max-width: 1400px; margin: 0 auto;
  padding: 70px 40px 90px;
}

.gi-blog-section-header {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 48px;
}
.gi-blog-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: #d4af37;
  white-space: nowrap;
}
.gi-blog-section-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(212,175,55,.3), transparent);
}

/* ── GRILLE 3 COLONNES ───────────── */
.gi-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── CARTE ARTICLE ───────────────── */
.gi-blog-card {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.22,.61,.36,1),
              border-color .35s, box-shadow .35s;
}
.gi-blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,.2);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

.gi-blog-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
  background: #111;
}
.gi-blog-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.gi-blog-card:hover .gi-blog-card-img-wrap img {
  transform: scale(1.07);
}
.gi-blog-card-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
}
.gi-blog-card-no-img i { font-size: 36px; color: rgba(212,175,55,.12); }

.gi-blog-card-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: center; justify-content: center;
}
.gi-blog-card:hover .gi-blog-card-overlay { opacity: 1; }
.gi-blog-card-read-cta {
  font-size: 13px; font-weight: 700;
  letter-spacing: .12em; color: #fff;
  background: rgba(212,175,55,.9);
  color: #000;
  padding: 10px 24px; border-radius: 30px;
  transform: translateY(8px);
  transition: transform .3s;
}
.gi-blog-card:hover .gi-blog-card-read-cta { transform: translateY(0); }

.gi-blog-card-body {
  padding: 22px 22px 18px;
  display: flex; flex-direction: column; flex: 1;
}

.gi-blog-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400; line-height: 1.3;
  margin: 12px 0 10px; flex: 1;
}
.gi-blog-card-title a {
  color: #fff; text-decoration: none;
  transition: color .2s;
}
.gi-blog-card-title a:hover { color: #d4af37; }

.gi-blog-card-excerpt {
  font-size: 13px; color: rgba(255,255,255,.45);
  line-height: 1.65; margin-bottom: 18px;
  font-family: 'DM Sans', sans-serif;
}

.gi-blog-card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.gi-blog-author {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: rgba(255,255,255,.4);
  font-family: 'DM Sans', sans-serif;
}
.gi-blog-author-img {
  width: 22px; height: 22px; border-radius: 50%;
  object-fit: cover; border: 1px solid rgba(212,175,55,.2);
}
.gi-blog-read-time {
  font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(212,175,55,.5);
  font-family: 'DM Sans', sans-serif;
}

/* ── ÉTAT VIDE ───────────────────── */
.gi-blog-empty {
  text-align: center; padding: 120px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.gi-blog-empty i { font-size: 48px; color: rgba(212,175,55,.2); }
.gi-blog-empty h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 300; color: #fff;
}
.gi-blog-empty p { color: rgba(255,255,255,.4); font-size: 15px; }

/* ── PAGINATION ──────────────────── */
.gi-blog-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 0 40px 80px;
}

/* ── RESPONSIVE ──────────────────── */
@media (max-width: 1100px) {
  .gi-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .gi-blog-featured { grid-template-columns: 1fr; min-height: auto; }
  .gi-blog-featured-img { aspect-ratio: 16/9; }
  .gi-blog-featured-body { padding: 40px; }
}

@media (max-width: 768px) {
  .gi-blog-hero { padding: 60px 24px 50px; }
  .gi-blog-section { padding: 50px 24px 60px; }
  .gi-blog-featured { padding: 0 24px; }
  .gi-blog-featured-body { padding: 28px 24px; }
  .gi-blog-featured-title { font-size: 28px; }
  .gi-blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .gi-blog-pagination { padding-bottom: 60px; }
}

/* =====================================================
   SINGLE POST — Page article
===================================================== */

/* ── HERO ────────────────────────── */
.gi-post-hero {
  position: relative;
  height: clamp(420px, 60vh, 680px);
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.gi-post-hero--no-img {
  height: auto;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,175,55,.06) 0%, transparent 70%);
  padding: 100px 40px 60px;
  border-bottom: 1px solid rgba(212,175,55,.1);
}
.gi-post-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.gi-post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.5) 50%,
    rgba(0,0,0,.15) 100%
  );
}
.gi-post-hero-content {
  position: relative; z-index: 2;
  max-width: 860px;
  padding: 0 60px 60px;
  display: flex; flex-direction: column; gap: 16px;
}
.gi-post-hero--no-img .gi-post-hero-content {
  padding: 0; max-width: 860px; margin: 0 auto; width: 100%;
}
.gi-post-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 400; line-height: 1.1;
  color: #fff; margin: 0;
}
.gi-post-hero-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.5);
  font-family: 'DM Sans', sans-serif;
  flex-wrap: wrap;
}
.gi-post-author-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(212,175,55,.4);
}
.gi-post-author-name { color: rgba(255,255,255,.8); font-weight: 500; }
.gi-post-meta-sep { color: rgba(255,255,255,.2); }

/* ── LAYOUT CONTENU + SIDEBAR ─────── */
.gi-post-layout {
  max-width: 1320px; margin: 0 auto;
  padding: 64px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 72px;
  align-items: start;
}

/* ── CONTENU ARTICLE ─────────────── */
.gi-post-content {
  min-width: 0;
}
.gi-post-content h2,
.gi-post-content h3,
.gi-post-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400; color: #fff; line-height: 1.25;
  margin: 40px 0 16px;
}
.gi-post-content h2 { font-size: clamp(26px, 2.5vw, 38px); }
.gi-post-content h3 { font-size: clamp(20px, 2vw, 28px); }
.gi-post-content p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,.7);
  line-height: 1.85; margin-bottom: 20px;
}
.gi-post-content a {
  color: #d4af37; text-decoration: underline;
  text-decoration-color: rgba(212,175,55,.3);
  transition: text-decoration-color .2s;
}
.gi-post-content a:hover { text-decoration-color: #d4af37; }
.gi-post-content img {
  width: 100%; border-radius: 10px;
  margin: 28px 0; display: block;
}
.gi-post-content ul,
.gi-post-content ol {
  padding-left: 0; margin: 16px 0 24px; list-style: none;
}
.gi-post-content ul li,
.gi-post-content ol li {
  font-size: 15px; color: rgba(255,255,255,.65);
  padding: 10px 0 10px 28px; position: relative;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-family: 'DM Sans', sans-serif; line-height: 1.6;
}
.gi-post-content ul li::before {
  content: '✦'; color: #d4af37; font-size: 8px;
  position: absolute; left: 0; top: 14px;
}
.gi-post-content ol { counter-reset: li; }
.gi-post-content ol li::before {
  counter-increment: li;
  content: counter(li, decimal-leading-zero);
  color: #d4af37; font-size: 11px; font-weight: 700;
  position: absolute; left: 0; top: 12px;
}
.gi-post-content blockquote {
  border-left: 3px solid #d4af37;
  margin: 32px 0; padding: 16px 24px;
  background: rgba(212,175,55,.04);
  border-radius: 0 8px 8px 0;
}
.gi-post-content blockquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-style: italic;
  color: rgba(255,255,255,.75);
}

/* ── TAGS ────────────────────────── */
.gi-post-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 40px 0 0; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.gi-post-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  color: rgba(255,255,255,.4); background: rgba(255,255,255,.05);
  padding: 6px 14px; border-radius: 20px;
  text-decoration: none; transition: all .2s;
}
.gi-post-tag:hover { color: #d4af37; background: rgba(212,175,55,.08); }

/* ── NAV PREV/NEXT ───────────────── */
.gi-post-nav {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.gi-post-nav-btn {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: #fff;
  padding: 16px 20px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.07);
  background: #0a0a0a; flex: 1; max-width: 48%;
  transition: border-color .25s, background .25s;
}
.gi-post-nav-btn:hover {
  border-color: rgba(212,175,55,.3);
  background: rgba(212,175,55,.04);
}
.gi-post-nav-btn--next { justify-content: flex-end; text-align: right; }
.gi-post-nav-btn i { color: #d4af37; flex-shrink: 0; }
.gi-post-nav-label {
  display: block; font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-bottom: 4px;
}
.gi-post-nav-title {
  display: block; font-size: 13px; color: rgba(255,255,255,.7);
  line-height: 1.4;
}

/* ── SIDEBAR ─────────────────────── */
.gi-post-sidebar {
  position: sticky; top: 110px;
  display: flex; flex-direction: column; gap: 24px;
}
.gi-post-sidebar-block {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 22px;
}
.gi-post-sidebar-label {
  font-size: 9px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: #d4af37;
  margin-bottom: 16px;
}
.gi-post-sidebar-author {
  display: flex; gap: 14px; align-items: flex-start;
}
.gi-post-sidebar-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(212,175,55,.3);
}
.gi-post-sidebar-author-name {
  font-weight: 600; font-size: 14px; color: #fff; margin-bottom: 6px;
}
.gi-post-sidebar-author-bio {
  font-size: 12px; color: rgba(255,255,255,.4);
  line-height: 1.6; margin: 0;
}

/* Liste articles sidebar */
.gi-post-sidebar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.gi-post-sidebar-item { display: flex; gap: 12px; align-items: flex-start; }
.gi-post-sidebar-thumb {
  width: 56px; height: 56px; border-radius: 8px;
  overflow: hidden; flex-shrink: 0; display: block;
}
.gi-post-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gi-post-sidebar-thumb:hover img { transform: scale(1.08); }
.gi-post-sidebar-item-body { flex: 1; min-width: 0; }
.gi-post-sidebar-item-cat {
  font-size: 9px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #d4af37; display: block; margin-bottom: 4px;
}
.gi-post-sidebar-item-title {
  font-size: 13px; color: rgba(255,255,255,.75);
  text-decoration: none; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.gi-post-sidebar-item-title:hover { color: #d4af37; }

/* CTA sidebar */
.gi-post-sidebar-cta {
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(212,175,55,.06), rgba(212,175,55,.02));
  border-color: rgba(212,175,55,.15);
}
.gi-post-sidebar-cta i { font-size: 28px; color: rgba(212,175,55,.5); }
.gi-post-sidebar-cta-text {
  font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.5;
}

/* ── ARTICLES SIMILAIRES ─────────── */
.gi-post-related {
  max-width: 1320px; margin: 0 auto;
  padding: 0 40px 100px;
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 60px;
}
.gi-post-related-header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 40px;
}

/* ── RESPONSIVE ──────────────────── */
@media (max-width: 1100px) {
  .gi-post-layout { grid-template-columns: 1fr; gap: 48px; }
  .gi-post-sidebar { position: static; }
}
@media (max-width: 768px) {
  .gi-post-hero-content { padding: 0 24px 40px; }
  .gi-post-layout { padding: 40px 24px 60px; }
  .gi-post-related { padding: 40px 24px 60px; }
  .gi-post-nav { flex-direction: column; }
  .gi-post-nav-btn { max-width: 100%; }
}