/* ═══════════════════════════════════════════════
   ARTICLE DE BLOG — Ettik
   Charte : Arial, tokens couleurs site
   Portée : .article et ses enfants
═══════════════════════════════════════════════ */

/* ── Tokens (si pas déjà déclarés globalement) ── */
:root {
  --texte:           #2c2f45;
  --texte-doux:      #4a506b;
  --border:          #e2eaf7;
}

/* ══════════════════════════════════════════════
   WRAPPER ARTICLE
══════════════════════════════════════════════ */
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 0 80px;
}

/* ══════════════════════════════════════════════
   IMAGE D'EN-TÊTE
══════════════════════════════════════════════ */
.article-image {
  margin-bottom: 2.5rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 51, 140, .12);
}
.article-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.image-caption {
  font-size: .78rem;
  color: var(--texte-doux);
  text-align: center;
  padding: .6rem 1rem;
  background: var(--bleu-tres-clair);
  margin: 0;
}

/* ══════════════════════════════════════════════
   CORPS DE L'ARTICLE
══════════════════════════════════════════════ */
.article-body {
  font-size: .975rem;
  line-height: 1.82;
  color: var(--texte);
  padding: 1rem 1.25rem;
}

/* ── Paragraphes ── */
.article-body p {
  margin-bottom: 1.2rem;
}
.article-body p:last-child {
  margin-bottom: 0;
}

/* ── Mise en valeur intro ── */
.article-body p.highlight {
  background: var(--jaune-clair);
  border-left: 4px solid var(--jaune);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bleu-sombre);
  margin: 1.5rem 0;
}

/* ── Titres ── */
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bleu-sombre);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 2.75rem 0 1rem;
  padding-top: .5rem;
  border-top: 2px solid var(--border);
}
.article-body h2:first-child {
  border-top: none;
  margin-top: 0;
}
.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bleu-sombre);
  letter-spacing: -.01em;
  margin: 2rem 0 .75rem;
}

/* ── Texte important ── */
.article-body span.important {
  color: var(--bleu);
  font-weight: 700;
}
.article-body strong {
  font-weight: 700;
  color: var(--bleu-sombre);
}

/* ══════════════════════════════════════════════
   LISTES
══════════════════════════════════════════════ */
.article-body ul,
.article-body ol {
  margin: .75rem 0 1.2rem;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

/* Puces niveau 1 */
.article-body ul > li {
  padding-left: 1.4rem;
  position: relative;
  font-size: .965rem;
  line-height: 1.75;
  color: var(--texte);
}
.article-body ul > li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--vert);
  flex-shrink: 0;
}

/* Liste numérotée */
.article-body ol {
  counter-reset: ol-counter;
}
.article-body ol > li {
  padding-left: 2rem;
  position: relative;
  counter-increment: ol-counter;
  font-size: .965rem;
  line-height: 1.75;
  color: var(--texte);
}
.article-body ol > li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0; top: .1em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bleu-sombre);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sous-listes imbriquées (ul ul) */
.article-body ul ul,
.article-body ul ol {
  margin: .5rem 0 .25rem 1rem;
  gap: .4rem;
}
.article-body ul ul > li::before {
  width: 5px; height: 5px;
  background: transparent;
  border: 1.5px solid var(--bleu);
  top: .68em;
}

/* Paragraphes orphelins entre li (cas du HTML existant) */
.article-body ul > p,
.article-body ol > p {
  padding-left: 0;
  font-size: .9rem;
  color: var(--texte-doux);
  font-style: italic;
  margin: -.2rem 0 .4rem;
}

/* ══════════════════════════════════════════════
   BLOCKQUOTE (dans les li)
══════════════════════════════════════════════ */
.article-body blockquote {
  border-left: 3px solid var(--bleu-clair);
  background: var(--bleu-tres-clair);
  border-radius: 0 8px 8px 0;
  margin: .75rem 0 .25rem;
  padding: 1rem 1.25rem;
  font-size: .92rem;
  line-height: 1.72;
  color: var(--texte-doux);
  font-style: normal;
}
.article-body blockquote span.important {
  color: var(--bleu);
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   SÉPARATEUR
══════════════════════════════════════════════ */
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ══════════════════════════════════════════════
   LIENS
══════════════════════════════════════════════ */
.article-body a {
  color: var(--bleu);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s;
}
.article-body a:hover {
  color: var(--bleu-sombre);
}

/* ── CTA bouton ── */
.article-body a.cta-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--jaune);
  color: var(--bleu-sombre);
  font-weight: 700;
  font-size: .92rem;
  padding: 13px 24px;
  border-radius: 6px;
  text-decoration: none;
  margin: 1.5rem 0;
  transition: background .2s, transform .15s;
}
.article-body a.cta-button:hover {
  background: #ffe76a;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════
   HERO ARTICLE — image de fond pleine largeur
══════════════════════════════════════════════ */
.article-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: flex-end;          /* contenu collé en bas du hero */
  padding: 0;
  overflow: hidden;
  background: var(--bleu-sombre); /* fallback si image absente */
}

/* ── Image de fond ── */
.article-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.article-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Dégradé de protection — garantit la lisibilité du titre ── */
.article-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(1, 0, 40, .25) 0%,     /* haut : léger voile */
      rgba(1, 0, 40, .55) 50%,
      rgba(1, 0, 40, .92) 100%    /* bas : opaque pour le titre */
    );
}

/* ── Contenu (breadcrumb + méta + titre + chapeau) ── */
.article-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 5vw 56px;        /* padding-top = espace sous la nav */
}

/* Breadcrumb */
.article-hero .breadcrumb {
  display: flex; align-items: center; gap: .45rem;
  font-size: .78rem; color: rgba(255,255,255,.5);
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.article-hero .breadcrumb a {
  color: rgba(255,255,255,.5);
  text-decoration: none; transition: color .2s;
}
.article-hero .breadcrumb a:hover { color: #fff; }
.article-hero .breadcrumb-sep    { opacity: .35; }

/* Méta (catégorie, date, temps de lecture) */
.article-meta-top {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}

/* Titre H1 */
.article-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
  max-width: 820px;
  margin-bottom: 1.1rem;
  /* Ombre portée pour lisibilité sur images claires */
  text-shadow:
    0 2px 12px rgba(1, 0, 40, .5),
    0 1px  3px rgba(1, 0, 40, .8);
}
.article-hero h1 em {
  font-style: normal;
  color: var(--vert);
}
.hero-tag {
      background: var(--bleu-clair);
      font-size: .72rem; 
      padding: 5px 14px; 
    }
/* Chapeau */
.article-chapeau {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255,255,255,.8);
  max-width: 680px;
  /* Même ombre légère pour le chapeau */
  text-shadow: 0 1px 6px rgba(1, 0, 40, .6);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .article-hero       { min-height: 360px; }
  .article-hero-inner { padding: 100px 5vw 40px; }
  .article-hero h1    { font-size: clamp(1.5rem, 6vw, 2rem); }
}



/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .article-body { padding : 20px; }
  .article-body h2 { font-size: 1.18rem; }
  .article-body h3 { font-size: .98rem; }
  .article-body blockquote { padding: .85rem 1rem; }
}