/* ── VARIABLES ── */
:root {
    --red:        #B80C09;
    --red-dark:   #8A0907;
    --dark:       #2B3036;
    --muted:      #686D6C;
    --bg-light:   #f5f6f7;
    --bg-mid:     #eceef0;
    --border:     #D1D4D9;
    --white:      #ffffff;
    --content-w:  720px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }

  /* ══════════════════════════════════════════
     HERO BANNER
  ══════════════════════════════════════════ */
  .article-hero {
    position: relative;
    width: 100%;
    height: 460px;
    overflow: hidden;
    background: #1a1d20;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  /* Fond sombre avec texture subtile */
  .article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        to bottom,
        rgba(20, 22, 26, 0.35) 0%,
        rgba(20, 22, 26, 0.55) 40%,
        rgba(20, 22, 26, 0.88) 100%
      );
    z-index: 1;
  }

  /* Grille géométrique subtile en arrière-plan */
  .article-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: 0;
  }

  /* Accent rouge en haut à droite */
  .hero-accent {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184,12,9,0.22) 0%, transparent 65%);
    z-index: 1;
    pointer-events: none;
  }

  .article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin-inline: auto;
    padding: 0 2rem 3rem;
    width: 100%;
  }

  /* Fil d'Ariane */
  .breadcrumb {
    background-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.25rem;
  }

  .breadcrumb a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
  }

  .breadcrumb a:hover { color: white; }

  .breadcrumb-sep {
    font-size: 0.7rem;
    opacity: 0.4;
  }

  .breadcrumb-current {
    color: rgba(255,255,255,0.85);
  }

  /* Meta (date + temps de lecture) */
  .article-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
  }

  .meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
  }

  .meta-item svg {
    width: 14px;
    height: 14px;
    stroke: rgba(255,255,255,0.5);
    fill: none;
    flex-shrink: 0;
  }

  /* Titre principal */
  .article-hero-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.12;
    letter-spacing: -0.03em;
    max-width: 760px;
  }

  .article-hero-title .accent-word {
    color: #e8453f;
  }

  /* Tag catégorie */
  .article-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.85rem;
  }

  /* ══════════════════════════════════════════
     LAYOUT ARTICLE
  ══════════════════════════════════════════ */
  .article-layout {
    max-width: 1400px;
    margin-inline: auto;
    padding: 3.5rem 2rem 5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: start;
  }

  /* ── CONTENU PRINCIPAL ── */
  .article-body {
    min-width: 0;
  }

  /* Intro (premier paragraphe) */
  .article-body > p:first-of-type {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px solid var(--bg-mid);
  }

  .article-body h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 2.5rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--red);
  }

  .article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 2rem 0 0.75rem;
  }

  .article-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.5rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    color: var(--red);
  }

  .article-body p {
    font-size: 0.97rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.1rem;
  }

  .article-body ul {
    margin: 0.75rem 0 1.25rem 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .article-body ul li {
    font-size: 0.97rem;
    color: #4a5568;
    line-height: 1.7;
    padding-left: 1.6rem;
    position: relative;
  }

  .article-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
  }

  .article-body ul li strong {
    color: var(--dark);
    font-weight: 700;
  }

  .article-body strong {
    color: var(--dark);
    font-weight: 700;
  }

  /* Blockquote — conseil expert */
  .article-body blockquote {
    position: relative;
    background: linear-gradient(135deg, #fdf8f8, #fff3f3);
    border: 1px solid rgba(184,12,9,0.15);
    border-left: 4px solid var(--red);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem 1.25rem 1.75rem;
    margin: 1.75rem 0;
  }

  .article-body blockquote::before {
    content: '💡';
    position: absolute;
    top: -10px;
    left: 1.25rem;
    font-size: 1.1rem;
    background: white;
    padding: 0 4px;
  }

  .article-body blockquote p,
  .article-body blockquote {
    font-size: 0.93rem;
    color: #3a3a3a;
    line-height: 1.75;
    margin: 0;
  }

  .article-body blockquote strong {
    color: var(--red);
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  /* Figure / placeholder image */
  .article-body figure {
    margin: 1.75rem 0;
  }

  .article-body figure img,
  .img-placeholder {
    width: 100%;
    border-radius: 12px;
    display: block;
  }

  .img-placeholder {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-mid));
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.82rem;
    border: 2px dashed var(--border);
    border-radius: 12px;
  }

  .img-placeholder svg {
    width: 28px;
    height: 28px;
    stroke: var(--border);
    margin-right: 0.5rem;
  }

  .article-body figcaption {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    margin-top: 0.6rem;
    font-style: italic;
  }

  /* HR */
  .article-body hr {
    border: none;
    border-top: 2px solid var(--bg-mid);
    margin: 2.5rem 0;
  }

  /* CTA final */
  .article-cta-block {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1d20 100%);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    margin-top: 1rem;
  }

  .article-cta-block p {
    color: rgba(255,255,255,0.85) !important;
    font-size: 1rem !important;
    font-weight: 600;
    margin-bottom: 1.25rem !important;
  }

  .article-cta-block strong {
    color: white !important;
  }

  .btn-cta-article {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--red);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.9rem 1.8rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(184,12,9,0.35);
    transition: all 0.25s ease;
  }

  .btn-cta-article:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
  }

  .btn-cta-article svg {
    width: 17px; height: 17px;
    animation: ring 1.8s ease-in-out infinite;
    transform-origin: center;
  }

  @keyframes ring {
    0%,100% { transform: rotate(0); }
    10% { transform: rotate(-13deg); }
    20% { transform: rotate(13deg); }
    30% { transform: rotate(-13deg); }
    40% { transform: rotate(13deg); }
    50% { transform: rotate(0); }
  }

  /* ══════════════════════════════════════════
     SIDEBAR
  ══════════════════════════════════════════ */
  .article-sidebar {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Table des matières */
  .sidebar-toc {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid var(--border);
  }

  .sidebar-toc-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 1rem;
  }

  .toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .toc-list li a {
    font-size: 0.83rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    transition: color 0.2s;
    line-height: 1.4;
  }

  .toc-list li a::before {
    content: '';
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
    margin-top: 0.1rem;
    transition: background 0.2s;
  }

  .toc-list li a:hover { color: var(--dark); }
  .toc-list li a:hover::before { background: var(--red); }

  .toc-sub {
    padding-left: 1.1rem;
    margin-top: 0.25rem;
  }

  /* Bloc contact sidebar */
  .sidebar-contact {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    color: white;
  }

  .sidebar-contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
  }

  .sidebar-contact-icon svg {
    width: 20px; height: 20px;
    stroke: white; fill: none;
  }

  .sidebar-contact h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
  }

  .sidebar-contact p {
    font-size: 0.8rem;
    opacity: 0.85;
    line-height: 1.55;
    margin-bottom: 1rem;
  }

  .sidebar-contact a {
    display: block;
    background: white;
    color: var(--red);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
  }

  .sidebar-contact a:hover { opacity: 0.9; }

  /* Bloc garantie */
  .sidebar-trust {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .trust-item-side {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
  }

  .trust-check {
    width: 20px; height: 20px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }

  .trust-check svg {
    width: 10px; height: 10px;
    stroke: white; stroke-width: 2.5; fill: none;
  }

  /* ══════════════════════════════════════════
     RESPONSIVE
  ══════════════════════════════════════════ */
  @media (max-width: 1024px) {
    .article-layout {
      grid-template-columns: 1fr;
      gap: 3rem;
      padding: 2.5rem 2rem 4rem;
    }

    .article-sidebar {
      position: static;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.25rem;
    }

    .sidebar-toc { grid-column: 1 / -1; }
  }

  @media (max-width: 768px) {
    .article-hero { height: 380px; }
    .article-hero-title { font-size: 1.65rem; }

    .article-sidebar {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 600px) {
    .article-hero { height: 320px; }
    .article-hero-content { padding: 0 1.25rem 2.25rem; }
    .article-layout { padding: 2rem 1.25rem 3.5rem; }

    .article-body h2 { font-size: 1.3rem; }
    .article-body h3 { font-size: 1.1rem; }

    .breadcrumb { display: none; }
  }