/* ============================================================
   L'EFFET CLIQUET — Blog (listing + article)
   DA claire rosée. Variables : theme.css. Le fond WebGL et le
   header/footer sont injectés par site.js.
   ============================================================ */

/* ---------------- LISTING ---------------- */
/* Hero CENTRÉ classique : titre + sous-titre centrés, et une photo détourée
   posée en ARRIÈRE-PLAN décalée à droite (superposition douce au titre, comme
   le hero d'accueil). Photo SOUS le texte (z-index), bords fondus → directe sur
   le fond rosé, sans cadre ni ombre. */
.blog-hero { position: relative; padding: 7rem 1.5rem 1.5rem; text-align: center; }
.blog-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.blog-hero .eyebrow { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.blog-hero-title { font-size: clamp(1.8rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); margin: 0 0 1rem; }
.blog-hero .blog-intro { font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: var(--ink-body); line-height: 1.5; max-width: 620px; margin: 0 auto; }

/* Photo en arrière-plan, décalée à droite (sous le texte).
   >>> RÉGLAGES (Davy : ajuste position / taille / opacité en direct) <<< */
.blog-hero-photo {
  position: absolute;
  right: 5%;               /* << décalage horizontal (plus grand = plus à gauche) */
  top: 50%;                /* << position verticale */
  transform: translateY(-50%);
  width: min(40vh, 420px); /* << taille */
  height: auto;
  opacity: 1;              /* << opacité */
  z-index: 0;              /* SOUS le texte du titre */
  pointer-events: none;
  user-select: none;
}

@media (max-width: 760px) {
  .blog-hero { padding-top: 5.5rem; }
  /* MOBILE : photo en fond très atténué derrière le texte centré (lisibilité). */
  .blog-hero-photo { right: -8%; opacity: 0.2; width: min(70vw, 300px); }
}

.blog-list { max-width: 720px; margin: 0 auto; padding: 1.5rem 1.5rem 6rem; }
.blog-item { display: block; padding: 1.5rem 1.2rem; border-radius: 14px; text-decoration: none; border-bottom: 1px solid var(--line); transition: background 0.2s, transform 0.2s; }
.blog-item:hover { background: rgba(255, 255, 255, 0.5); transform: translateX(2px); }
.blog-item-meta { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.blog-item-title { font-size: clamp(1.05rem, 3vw, 1.35rem); font-weight: 700; color: var(--ink); margin: 0.4rem 0; line-height: 1.3; letter-spacing: -0.01em; }
.blog-item-excerpt { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ---------------- ARTICLE ---------------- */
.art { padding: 7rem 1.5rem 4rem; }
.art-wrap { max-width: 720px; margin: 0 auto; }
.art-eyebrow { display: inline-block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.art-header { padding-bottom: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.art-header h1 { font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.6rem); color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 0.8rem; }
.art-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.art-meta .date { font-style: italic; }

.art-body h2 { font-weight: 800; font-size: clamp(1.2rem, 3.5vw, 1.5rem); color: var(--ink); margin-top: 2.5rem; margin-bottom: 0.8rem; letter-spacing: -0.01em; line-height: 1.3; }
.art-body p { font-size: 1.02rem; color: var(--ink-body); line-height: 1.8; margin-bottom: 1.2rem; }
.art-body strong { color: var(--ink); font-weight: 700; }
.art-body blockquote { border-left: 3px solid var(--accent); background: rgba(255, 255, 255, 0.5); padding: 1rem 1.2rem; margin: 1.5rem 0; border-radius: 0 10px 10px 0; font-style: italic; font-size: 1.02rem; line-height: 1.7; color: var(--ink-body); }
.art-body ul { list-style: none; padding: 0; margin-bottom: 1.2rem; }
.art-body ul li { font-size: 1.02rem; color: var(--ink-body); line-height: 1.8; padding-left: 1.2rem; position: relative; }
.art-body ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.art-body a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(214, 51, 108, 0.4); }
.art-body a:hover { text-decoration-color: var(--accent); }

.art-footer { margin-top: 4rem; }
.art-sep { height: 3px; background: var(--rainbow); background-size: 200% auto; border-radius: 2px; margin-bottom: 2.5rem; animation: rainbowShift 4s ease infinite; }
.art-author { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.art-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.art-author-name { font-weight: 700; font-size: 0.95rem; color: var(--ink); line-height: 1.1; }
.art-author-role { font-size: 0.7rem; color: var(--ink-muted); margin-top: 0.2rem; }
.art-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.art-cta a { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); text-decoration: none; border: 1px solid rgba(214, 51, 108, 0.35); padding: 0.6rem 1.5rem; border-radius: 2rem; transition: all 0.2s ease; }
.art-cta a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
