/* ═══════════════════════════════════════
   PAGE DÉTAIL ARTICLE — Design Premium
═══════════════════════════════════════ */

/* ── Fil d'Ariane ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.breadcrumb__link {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb__link:hover { color: #fff; }
.breadcrumb__sep { color: rgba(255,255,255,0.35); font-size: 12px; }
.breadcrumb__current {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--jaune);
  font-weight: 500;
}

/* ══════════════════════════════════════
   HERO ARTICLE
══════════════════════════════════════ */
.article-hero {
  position: relative;
  background: linear-gradient(145deg, #021e3a 0%, #042C53 50%, #0d4a8a 100%);
  padding: 64px 0 80px;
  overflow: hidden;
}

/* Cercles déco */
.article-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(55,138,221,0.12);
  pointer-events: none;
}
.article-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(245,200,66,0.06);
  pointer-events: none;
}

.article-hero__inner {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.article-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: rgba(245,200,66,0.15);
  color: var(--jaune);
  border: 1px solid rgba(245,200,66,0.35);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.article-hero__title {
  font-family: var(--font-body);
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.article-hero__excerpt {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin: 0 0 36px;
  max-width: 680px;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.article-hero__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-hero__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #185FA5, #378ADD);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(55,138,221,0.3);
}

.article-hero__author-name {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.article-hero__date {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

.article-hero__stats { display: flex; gap: 20px; align-items: center; }

.article-hero__read-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.07);
  padding: 5px 12px;
  border-radius: 100px;
}

/* ══════════════════════════════════════
   IMAGE COVER
══════════════════════════════════════ */
.article-cover-wrap {
  max-width: 1000px;
  margin: -44px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.article-cover {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(4,44,83,0.22), 0 4px 16px rgba(4,44,83,0.10);
}

.article-cover__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

/* ══════════════════════════════════════
   LAYOUT ARTICLE + SIDEBAR
══════════════════════════════════════ */
.article-layout {
  padding-top: 64px;
  padding-bottom: 80px;
}

.article-layout__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

/* ══════════════════════════════════════
   CONTENU ÉDITORIAL
══════════════════════════════════════ */
.article-content {
  font-family: var(--font-body);
  color: #1e293b;
  line-height: 1.85;
  font-size: 16px;
}

/* Premier paragraphe mis en avant */
.article-content > p:first-child {
  font-size: 18px;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 2px solid #f1f5f9;
}

.article-content h2 {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: #042C53;
  margin: 44px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--jaune);
  line-height: 1.3;
}
.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: #185FA5;
  margin: 32px 0 12px;
}

.article-content p {
  font-size: 16px;
  margin: 0 0 22px;
  color: #334155;
}

.article-content ul, .article-content ol {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
}

.article-content ul li {
  font-size: 15.5px;
  color: #334155;
  margin-bottom: 10px;
  padding-left: 28px;
  position: relative;
  line-height: 1.7;
}
.article-content ul li::before {
  content: '';
  position: absolute;
  left: 6px; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--jaune);
  flex-shrink: 0;
}

.article-content ol { counter-reset: ol-counter; }
.article-content ol li {
  font-size: 15.5px;
  color: #334155;
  margin-bottom: 10px;
  padding-left: 44px;
  position: relative;
  line-height: 1.7;
  counter-increment: ol-counter;
}
.article-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #042C53, #185FA5);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 28px;
  text-align: center;
}

.article-content strong { font-weight: 700; color: #042C53; }
.article-content em { font-style: italic; color: #185FA5; }

.article-content a {
  color: #185FA5;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content a:hover { color: #042C53; }

/* Blockquote */
.article-content blockquote,
.article-quote {
  border-left: 4px solid var(--jaune);
  background: linear-gradient(135deg, #fffdf0, #fff9e6);
  padding: 20px 24px 20px 28px;
  border-radius: 0 14px 14px 0;
  margin: 32px 0;
  font-size: 17px;
  font-style: italic;
  color: #042C53;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   BANNIÈRE CTA "DÉPOSER MON CV"
══════════════════════════════════════ */
.article-cta-cv {
  margin: 48px 0;
  background: linear-gradient(135deg, #042C53 0%, #185FA5 60%, #378ADD 100%);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.article-cta-cv::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.article-cta-cv__icon {
  width: 56px; height: 56px;
  background: rgba(245,200,66,0.15);
  border: 2px solid rgba(245,200,66,0.35);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #F5C842;
}

.article-cta-cv__body { flex: 1; }

.article-cta-cv__title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}

.article-cta-cv__sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  margin: 0;
  line-height: 1.5;
}

.article-cta-cv__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.article-cta-cv__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}

.article-cta-cv__btn--primary {
  background: #F5C842;
  color: #042C53;
  box-shadow: 0 4px 16px rgba(245,200,66,0.4);
}
.article-cta-cv__btn--primary:hover {
  background: #e6b800;
  transform: translateY(-2px);
}

.article-cta-cv__btn--secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.article-cta-cv__btn--secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   PARTAGE
══════════════════════════════════════ */
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 2px solid #f1f5f9;
}

.article-share__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.article-share__btn:hover { opacity: 0.85; transform: translateY(-1px); }
.article-share__btn--fb { background: #1877f2; color: #fff; }
.article-share__btn--wa { background: #25d366; color: #fff; }

/* ══════════════════════════════════════
   NAVIGATION RETOUR
══════════════════════════════════════ */
.article-nav { margin-top: 32px; }

.article-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  padding: 10px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  transition: all 0.2s;
}
.article-nav__back:hover {
  color: #185FA5;
  border-color: #bfdbfe;
  background: #eff6ff;
  gap: 12px;
}

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.sidebar-card {
  background: #fff;
  border: 1.5px solid #e8eef6;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(4,44,83,0.05);
}

/* Carte CTA services */
.sidebar-card--cta {
  background: linear-gradient(145deg, #042C53 0%, #185FA5 100%);
  border: none;
  box-shadow: 0 8px 32px rgba(4,44,83,0.22);
}

.sidebar-card__title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #042C53;
  margin: 0 0 12px;
}
.sidebar-card--cta .sidebar-card__title { color: rgba(255,255,255,0.7); }

.sidebar-card__text {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin: 0 0 18px;
}

.sidebar-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--jaune);
  color: var(--bleu-fonce);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.sidebar-card__btn:hover { background: #e6b800; transform: translateY(-1px); }

/* Carte CV sidebar */
.sidebar-card--cv {
  background: linear-gradient(145deg, #fffdf0 0%, #fff9e6 100%);
  border-color: rgba(245,200,66,0.4);
}

.sidebar-card--cv .sidebar-card__title { color: #78350F; }

.sidebar-card--cv .sidebar-cv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #042C53, #185FA5);
  color: #F5C842;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(4,44,83,0.2);
  margin-top: 10px;
}
.sidebar-card--cv .sidebar-cv-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.sidebar-card--cv .sidebar-cv-btn--order {
  background: linear-gradient(135deg, #92400e, #b45309);
  color: #FEF3C7;
  box-shadow: 0 4px 16px rgba(146,64,14,0.25);
}

/* Articles similaires */
.sidebar-articles { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }

.sidebar-article { padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.sidebar-article:last-child { border-bottom: none; padding-bottom: 0; }

.sidebar-article__link {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  line-height: 1.5;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.sidebar-article__link:hover { color: #185FA5; }

.sidebar-article__date {
  font-family: var(--font-body);
  font-size: 11px;
  color: #94a3b8;
}

/* Images dans le contenu */
.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 28px auto;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(4,44,83,0.10);
}

.article-content figure { margin: 32px 0; text-align: center; }
.article-content figure img { margin: 0 auto 10px; }
.article-content figcaption { font-size: 12px; color: #94a3b8; font-style: italic; }

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

/* ── Tablette large ── */
@media (max-width: 1024px) {
  .article-layout__inner { grid-template-columns: 1fr 280px; gap: 32px; }
  .article-hero { padding: 52px 0 68px; }
}

/* ── Tablette / Mobile landscape ── */
@media (max-width: 900px) {
  .article-layout__inner { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }

  .article-cover-wrap { margin-top: -20px; padding: 0 16px; }
  .article-cover { border-radius: 14px; }

  .article-layout { padding-top: 36px; padding-bottom: 56px; }

  .article-cta-cv {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 28px 20px;
    gap: 16px;
  }
  .article-cta-cv__icon { display: none; }
  .article-cta-cv__actions { width: 100%; flex-direction: column; gap: 10px; }
  .article-cta-cv__btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 14px; }

  .article-share { flex-wrap: wrap; gap: 8px; }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  /* Hero */
  .article-hero { padding: 36px 0 52px; }
  .article-hero__inner { padding: 0 4px; }
  .article-hero__title { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
  .article-hero__excerpt { font-size: 15px; line-height: 1.65; margin-bottom: 24px; }
  .article-hero__tag { font-size: 9px; padding: 4px 12px; margin-bottom: 14px; }
  .article-hero__meta { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; }
  .article-hero__stats { gap: 10px; flex-wrap: wrap; }
  .article-hero__read-time { font-size: 12px; padding: 4px 10px; }
  .article-hero__author-name { font-size: 13px; }

  /* Breadcrumb : cache la partie milieu si trop long */
  .breadcrumb { flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
  .breadcrumb__current { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

  /* Cover */
  .article-cover-wrap { margin-top: -16px; padding: 0 12px; }
  .article-cover { border-radius: 10px; }
  .article-cover__img { aspect-ratio: 16 / 9; }

  /* Layout */
  .article-layout { padding-top: 28px; padding-bottom: 40px; }
  .article-layout__inner { gap: 32px; }

  /* Contenu */
  .article-content { font-size: 15px; line-height: 1.8; }
  .article-content > p:first-child { font-size: 15px; line-height: 1.75; margin-bottom: 20px; padding-bottom: 20px; }
  .article-content h2 { font-size: 18px; margin: 32px 0 12px; padding-left: 12px; border-left-width: 3px; }
  .article-content h3 { font-size: 16px; margin: 24px 0 10px; }
  .article-content p { font-size: 15px; margin-bottom: 18px; }
  .article-content ul li,
  .article-content ol li { font-size: 15px; margin-bottom: 8px; }
  .article-content ol li { padding-left: 38px; }
  .article-content ol li::before { width: 24px; height: 24px; font-size: 11px; line-height: 24px; }
  .article-content blockquote,
  .article-quote { padding: 16px 16px 16px 20px; font-size: 15px; margin: 24px 0; }

  /* CTA CV bannière */
  .article-cta-cv { padding: 22px 16px; border-radius: 14px; margin: 32px 0; }
  .article-cta-cv__title { font-size: 17px; }
  .article-cta-cv__sub { font-size: 13px; }
  .article-cta-cv__btn { padding: 13px 16px; font-size: 14px; border-radius: 10px; }

  /* Partage */
  .article-share { margin-top: 32px; padding-top: 20px; gap: 8px; }
  .article-share__btn { font-size: 12px; padding: 7px 14px; }

  /* Retour */
  .article-nav { margin-top: 24px; }
  .article-nav__back { font-size: 13px; padding: 9px 14px; }

  /* Sidebar */
  .sidebar-card { padding: 18px; border-radius: 14px; }
  .sidebar-card__title { font-size: 11px; }
  .sidebar-card--cv .sidebar-cv-btn { font-size: 13px; padding: 11px 14px; }
  .sidebar-article__link { font-size: 13px; }
}

/* ── Très petit mobile (≤ 380px) ── */
@media (max-width: 380px) {
  .article-hero__title { font-size: 20px; }
  .article-hero__excerpt { font-size: 14px; }
  .article-hero__stats { gap: 6px; }
  .article-cta-cv { padding: 18px 14px; }
  .article-cta-cv__title { font-size: 16px; }
  .article-cta-cv__btn { font-size: 13px; padding: 12px 14px; }
  .article-share__btn { font-size: 11px; padding: 6px 12px; }
}
