/* ============================================================
   ADH — blog.css   |   Page Insights
   Palette : noir #0B0B0B / blanc / bronze #C9784A
   Typo    : Cormorant Garamond + Inter
   Principe : zéro carte, zéro ombre, typographie + lignes fines
   ============================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --black:         #0B0B0B;
  --black-2:       #161616;
  --white:         #FFFFFF;
  --sand:          #F5F5F3;
  --bronze:        #C9784A;
  --bronze-l:      #D98F63;
  --bronze-d:      #B0663C;
  --ink:           #1A1916;
  --ink-mid:       #4A4844;
  --ink-dim:       #8A8880;
  --line:          rgba(26, 25, 22, 0.09);
  --line-dark:     rgba(255, 255, 255, 0.09);
  --serif:         'Cormorant Garamond', Georgia, serif;
  --sans:          'Inter', system-ui, sans-serif;
  --nav-h:         76px;
  --max-w:         1200px;
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
img    { display: block; max-width: 100%; }
a      { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font: inherit; padding: 0; }

.bg-br { display: block; }
@media (max-width: 640px) { .bg-br { display: none; } }

/* ── Reveal (scroll) ───────────────────────────────────── */
.bl-r {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}
.bl-r--d1 { transition-delay:  90ms; }
.bl-r--d2 { transition-delay: 180ms; }
.bl-r--d3 { transition-delay: 270ms; }
.bl-r--d4 { transition-delay: 360ms; }
.bl-r.is-visible { opacity: 1; transform: none; }

/* ── Méta commune : catégorie + date ──────────────────── */
.bg-eyebrow {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bronze-l);
  display: block;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.bg-cat {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--bronze);
}

.bg-date {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

.bg-sep {
  font-size: 0.72rem;
  color: var(--ink-dim);
  opacity: 0.5;
}

/* ── Lien typographique (sans bouton) ─────────────────── */
.bg-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--bronze);
  transition: color .22s ease;
}
.bg-link__arr {
  transition: transform .24s var(--ease);
}
.bg-link:hover            { color: var(--bronze-d); }
.bg-link:hover .bg-link__arr { transform: translateX(5px); }

.bg-link--sm {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* ════════════════════════════════════════════════════════
   NAV — identique au reste du site
   ════════════════════════════════════════════════════════ */
.iv-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid rgba(201, 120, 74, 0.14);
  transition: box-shadow .35s ease;
}
.iv-nav.is-scrolled { box-shadow: 0 2px 28px rgba(0,0,0,.30); }

.iv-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.iv-nav__logo-img {
  height: 34px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(57%) sepia(45%) saturate(500%)
          hue-rotate(340deg) brightness(100%);
}

/* ══════════════════════════════════════════════════════════════
   COMPOSANT LOGO — scope strict header/footer
   ══════════════════════════════════════════════════════════════ */

.site-header .site-logo--combo,
.site-footer .site-logo--combo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-header .site-logo__picto,
.site-footer .site-logo__picto {
  height: clamp(26px, 2.2vw, 34px);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transform: translateY(-1px);
}

.site-header .site-logo__picto img,
.site-footer .site-logo__picto img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.9;
  filter: none;
}

.iv-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.iv-nav__link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 198, 194, .65);
  transition: color .20s ease;
}
.iv-nav__link:hover         { color: #fff; }
.iv-nav__link--active       { color: rgba(201, 120, 74, .90); }
.iv-nav__link--active:hover { color: var(--bronze-l); }

.iv-nav__cta {
  font-size: 0.70rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze);
  padding: 9px 22px;
  border: 1px solid rgba(201, 120, 74, .32);
  border-radius: 2px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.iv-nav__cta:hover {
  background: var(--bronze);
  color: var(--black);
  border-color: var(--bronze);
}

/* Burger */
.iv-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.iv-nav__burger span {
  display: block;
  width: 22px; height: 1px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease;
}
.iv-nav__burger.is-open span:first-child { transform: translateY(6px) rotate(45deg); }
.iv-nav__burger.is-open span:last-child  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.iv-nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--black-2);
  border-top: 1px solid rgba(201,120,74,.12);
  padding: 24px clamp(24px,5vw,60px);
  gap: 20px;
}
.iv-nav__mobile.is-open { display: flex; }
.iv-nav__mobile-link {
  font-size: .8125rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(200,198,194,.65);
  transition: color .2s;
}
.iv-nav__mobile-link:hover { color: #fff; }

/* ── Contact : masqué par défaut, visible uniquement sur page-contact ── */
.nav-contact { display: none; }

.iv-nav__mobile-cta {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bronze);
  padding: 12px 0;
  border-top: 1px solid rgba(201,120,74,.18);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .iv-nav__links  { display: none; }
  .iv-nav__burger { display: flex; }
}

/* ════════════════════════════════════════════════════════
   1 — HERO · fond noir profond
   ════════════════════════════════════════════════════════ */
.bg-hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  /* padding-top : nav + espace éditorial */
  padding-top:    calc(var(--nav-h) + clamp(96px, 12vw, 148px));
  padding-bottom: clamp(104px, 13vw, 164px);
  padding-left:   clamp(24px, 6vw, 80px);
  padding-right:  clamp(24px, 6vw, 80px);
}

/* ── Pictogramme ADH — arrière-plan droit ─────────────── */
.bg-hero__picto {
  position: absolute;
  right: -8vw;
  top:   50%;
  transform: translateY(-50%);
  width: clamp(250px, 30vw, 420px);   /* -30% */
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.bg-hero__picto img {
  width: 100%;
  height: auto;
  opacity: 0.044;
  filter: brightness(0) invert(1)
          sepia(1) saturate(2.5)
          hue-rotate(340deg)
          blur(0.6px);
}

/* ── Voile gradient — protège la lisibilité du texte ──── */
.bg-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--black)            35%,
    rgba(11,11,11,0.80)     58%,
    rgba(11,11,11,0.12)    100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ── Contenu — au-dessus du picto + voile ─────────────── */
.bg-hero__inner {
  position: relative;
  z-index: 2;
  /* Pas de max-width ici : le titre contrôle sa propre largeur */
}

/* ── Trait bronze — signature avant l'eyebrow ─────────── */
.bg-hero__rule {
  width: 40px;
  height: 1px;
  background: var(--bronze);
  opacity: 0.52;
  margin-bottom: clamp(18px, 2.5vw, 28px);
}

/* ── Titre principal — 2 lignes garanties par span display:block ─ */
.bg-hero__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.0vw, 3.6rem);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.020em;
  color: #fff;
  margin-bottom: clamp(24px, 3.5vw, 40px);
  /* Pas de max-width : chaque span est une ligne indépendante */
}

/* Chaque span = une ligne stricte, indépendante du wrapping */
.bg-hero__line {
  display: block;
  white-space: nowrap; /* interdit le retour à la ligne au sein d'un span */
}

/* ── Sous-texte ───────────────────────────────────────── */
.bg-hero__sub {
  font-family: var(--sans);
  font-size: clamp(0.875rem, 1.05vw, 0.960rem);
  font-weight: 300;
  color: rgba(190, 188, 184, .56);
  line-height: 1.74;
  max-width: 440px;
}

/* ════════════════════════════════════════════════════════
   2 — ARTICLE MIS EN AVANT · fond sable
   ════════════════════════════════════════════════════════ */
.bg-featured {
  background: var(--sand);
  padding: clamp(72px, 10vw, 120px) clamp(24px, 6vw, 80px);
}

.bg-featured__inner {
  max-width: 900px;
}

/* Ligne fine au-dessus */
.bg-featured__rule {
  width: clamp(28px, 4vw, 40px);
  height: 1px;
  background: var(--bronze);
  opacity: .45;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.bg-featured__meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.bg-featured__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: clamp(20px, 3vw, 30px);
  max-width: 780px;
}

.bg-featured__body {
  font-family: var(--sans);
  font-size: clamp(.88rem, 1.1vw, .975rem);
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.74;
  max-width: 540px;
  margin-bottom: clamp(28px, 4vw, 42px);
}

/* ════════════════════════════════════════════════════════
   3 — FILTRES · texte pur, points séparateurs
   ════════════════════════════════════════════════════════ */
.bg-filters {
  background: rgba(245, 245, 243, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top:    1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px clamp(24px, 6vw, 80px);
  position: sticky;
  top: var(--nav-h);
  z-index: 10;
}

.bg-filters__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.bg-filters__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
}

.bg-dot {
  font-size: .75rem;
  color: var(--ink-dim);
  opacity: .4;
  padding: 0 10px;
  user-select: none;
}

.bg-f {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink-dim);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .20s ease, border-color .20s ease, opacity .20s ease;
  white-space: nowrap;
  /* Focus visible : discret, cohérent avec la charte */
  outline: none;
  border-radius: 0;
}
.bg-f:hover {
  color: var(--bronze);
  opacity: 1;
}
.bg-f:focus-visible {
  outline: 1px solid rgba(201, 120, 74, .45);
  outline-offset: 3px;
  border-radius: 1px;
}
/* État actif — aria-pressed="true" ou classe utilitaire */
.bg-f--on,
.bg-f[aria-pressed="true"] {
  color: var(--bronze);
  font-weight: 500;
  border-bottom-color: var(--bronze);
  opacity: 1;
}
.bg-f--on:hover,
.bg-f[aria-pressed="true"]:hover {
  color: var(--bronze-d);
  border-bottom-color: var(--bronze-d);
}

/* ════════════════════════════════════════════════════════
   4 — GRILLE ARTICLES · séparateurs fins, zéro carte
   ════════════════════════════════════════════════════════ */
.bg-list {
  background: var(--sand);
  padding: clamp(56px, 8vw, 100px) clamp(24px, 6vw, 80px);
}

.bg-list__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.bg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* séparateur vertical par padding + border-right */
}

/* Chaque article — séparateur top + padding vertical */
.bg-item {
  padding: clamp(40px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 14px);
  /* Transition pour le fade-in au changement de filtre */
  transition: opacity .20s ease, transform .20s ease;
}

/* État intermédiaire pendant le changement de filtre (fade-out + entrée) */
.bg-item.is-filtering {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

/* Colonne gauche : border-right comme séparateur vertical */
.bg-item:nth-child(odd) {
  padding-right: clamp(40px, 6vw, 72px);
  border-right: 1px solid var(--line);
}
/* Colonne droite : padding-left symétrique */
.bg-item:nth-child(even) {
  padding-left: clamp(40px, 6vw, 72px);
}

/* Masquage filtre — hidden natif + pas de mise en page résiduelle */
.bg-item[hidden] {
  display: none !important;
}

.bg-item__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.bg-item__title {
  font-family: var(--serif);
  font-size: clamp(1.38rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.20;
  letter-spacing: -0.013em;
  color: var(--ink);
  transition: color .22s ease;
}
.bg-item:hover .bg-item__title { color: var(--bronze-d); }

.bg-item__body {
  font-family: var(--sans);
  font-size: clamp(.84rem, 1vw, .92rem);
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.68;
}

/* Message vide */
.bg-empty {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 300;
  color: var(--ink-dim);
  padding: clamp(40px, 6vw, 64px) 0;
}

/* ════════════════════════════════════════════════════════
   5 — CTA FINAL · fond noir
   ════════════════════════════════════════════════════════ */
.bg-cta {
  background: var(--black);
  padding: clamp(120px, 16vw, 200px) clamp(24px, 6vw, 80px);
}

.bg-cta__inner {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Trait bronze */
.bg-cta__rule {
  width: clamp(24px, 3vw, 32px);
  height: 1px;
  background: var(--bronze);
  opacity: .48;
  margin-bottom: clamp(28px, 4vw, 44px);
  flex-shrink: 0;
}

.bg-cta__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: #fff;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.bg-cta__sub {
  font-family: var(--sans);
  font-size: clamp(.88rem, 1.05vw, .965rem);
  font-weight: 300;
  color: rgba(190, 188, 184, .58);
  line-height: 1.72;
  margin-bottom: clamp(40px, 5.5vw, 58px);
}

/* CTA — texte + flèche uniquement, zéro bouton */
.bg-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding-bottom: 4px;
  transition: color .24s ease, border-color .24s ease;
}
.bg-cta__link .bg-link__arr {
  transition: transform .24s var(--ease);
}
.bg-cta__link:hover {
  color: #fff;
  border-color: rgba(255,255,255,.50);
}
.bg-cta__link:hover .bg-link__arr { transform: translateX(5px); }

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
.iv-footer {
  background: var(--black-2);
  padding: clamp(32px, 4.5vw, 48px) clamp(24px, 6vw, 80px);
  border-top: 1px solid rgba(255,255,255,.06);
}
.iv-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  flex-wrap: wrap;
}
.iv-footer__logo-img {
  height: 22px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(57%) sepia(45%) saturate(500%)
          hue-rotate(340deg) brightness(100%);
  opacity: .55;
}
.iv-footer__tagline {
  font-size: .72rem;
  font-weight: 300;
  color: rgba(255,255,255,.30);
  letter-spacing: .04em;
}
.iv-footer__copy {
  font-size: .70rem;
  font-weight: 300;
  color: rgba(255,255,255,.20);
  margin-left: auto;
}

/* ════════════════════════════════════════════════════════
   SQUELETTES DE CHARGEMENT (skeletons)
   ════════════════════════════════════════════════════════ */
@keyframes bg-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.bg-skeleton {
  display: block;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(26,25,22,.07) 25%,
    rgba(26,25,22,.13) 50%,
    rgba(26,25,22,.07) 75%
  );
  background-size: 800px 100%;
  animation: bg-shimmer 1.6s ease-in-out infinite;
}

/* Variantes squelettes — bloc featured */
.bg-skeleton--rule  { width: 40px;  height: 1px;  margin-bottom: 40px; opacity: .4; }
.bg-skeleton--meta  { width: 180px; height: 10px; margin-bottom: 20px; }
.bg-skeleton--title { width: 72%;   height: 3.2rem; margin-bottom: 24px; border-radius: 3px; }
.bg-skeleton--body  { width: 52%;   height: 10px; margin-bottom: 10px; }

/* Variantes squelettes — lignes corps article */
.bg-skeleton--line        { height: 12px; margin-bottom: 12px; }
.bg-skeleton--w100        { width: 100%; }
.bg-skeleton--w90         { width: 90%; }
.bg-skeleton--w80         { width: 80%; }
.bg-skeleton--w60         { width: 60%; }

/* Articles squelettes dans la grille */
.bg-item--skeleton {
  pointer-events: none;
  opacity: .5;
}

/* Chargement fond sable (même que .bg-featured) : shimmer sur fond sable */
.bg-featured .bg-skeleton {
  background: linear-gradient(
    90deg,
    rgba(26,25,22,.06) 25%,
    rgba(26,25,22,.11) 50%,
    rgba(26,25,22,.06) 75%
  );
  background-size: 800px 100%;
  animation: bg-shimmer 1.6s ease-in-out infinite;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */

/* Tablette */
@media (max-width: 860px) {
  .bg-grid {
    grid-template-columns: 1fr;
  }
  .bg-item:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }
  .bg-item:nth-child(even) {
    padding-left: 0;
  }
  /* Picto plus discret sur tablette */
  .bg-hero__picto {
    width: clamp(180px, 28vw, 300px);
    right: -40px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  /* Picto masqué sur mobile — priorité lecture */
  .bg-hero__picto { display: none; }
  .bg-hero__veil  { display: none; }
  .bg-hero__title {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }
  .bg-featured__title {
    font-size: clamp(1.8rem, 7.5vw, 2.6rem);
  }
  .bg-cta__title {
    font-size: clamp(2rem, 8.5vw, 3rem);
  }
  .bg-cta__inner { max-width: 100%; }
  .iv-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .iv-footer__copy { margin-left: 0; }
}
