/* ============================================================
   YLLY — Single Post (Article de blog)
   Figma: NovCast > Détail article (node 811:3183)
   ============================================================ */

/* ── Variables locales ───────────────────────────────────── */
.yl-article {
    --article-max:    1440px;
    --article-pad-h:  clamp(24px, 5vw, 70px);
    --article-main:   923px;
    --article-gap:    70px;
    --article-sidebar: 297px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.yl-article__hero {
    background-color: #fff;
    padding-block: 40px 0;
}
.yl-article__hero-inner {
    align-items: center;
    display: flex;
    gap: 42px;
    justify-content: space-between;
    margin-inline: auto;
    max-width: var(--article-max);
    padding-block: 39px;
    padding-inline: clamp(24px, 6vw, 90px);
}
.yl-article__hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 615px;
}
.yl-article__cat-tag {
    align-items: center;
    background-color: #fff;
    border: 0.75px solid #f2f1f6;
    border-radius: 70px;
    color: #0f172b;
    display: inline-flex;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    gap: 8px;
    padding: 6px 18px 6px 10px;
}
.yl-article__cat-tag-dot {
    background-color: #d63500;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
    height: 8px;
    width: 8px;
}
.yl-article__title {
    color: #091121;
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0;
}
.yl-article__excerpt {
    color: #000;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.7;
    margin: 0;
    max-width: 500px;
}
.yl-article__hero-right {
    border-radius: 14px;
    flex-shrink: 0;
    height: 440px;
    overflow: hidden;
    width: clamp(300px, 42%, 700px);
}
.yl-article__hero-img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

/* ── Meta bar ─────────────────────────────────────────────── */
.yl-article__meta-bar {
    background-color: #fff;
    border-bottom: 1px solid #f2f1f6;
    position: sticky;
    top: 0;
    z-index: 10;
}
.yl-article__meta-bar-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-inline: auto;
    max-width: var(--article-max);
    padding-block: 14px;
    padding-inline: clamp(24px, 6vw, 90px);
}
.yl-article__meta-left {
    align-items: center;
    display: flex;
    gap: 20px;
}
.yl-article__author {
    align-items: center;
    display: flex;
    gap: 9px;
}
.yl-article__author-avatar {
    border-radius: 50%;
    display: block;
    height: 35px;
    object-fit: cover;
    width: 35px;
}
.yl-article__author-name {
    color: #0f172b;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.yl-article__meta-item {
    align-items: center;
    color: #0f172b;
    display: flex;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    gap: 4px;
    white-space: nowrap;
}
.yl-article__meta-item--date {
    color: #555;
    font-weight: 500;
}
.yl-article__meta-icon {
    flex-shrink: 0;
    height: 14px;
    width: 14px;
}
.yl-article__meta-right {
    align-items: center;
    display: flex;
    gap: 12px;
}
.yl-article__btn {
    align-items: center;
    border: none;
    border-radius: 44px;
    cursor: pointer;
    display: inline-flex;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
    height: 40px;
    letter-spacing: -0.01em;
    padding: 0 22px;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}
.yl-article__btn:hover { transform: translateY(-1px); opacity: 0.88; }
.yl-article__btn--ai {
    background-color: #f2f1f6;
    color: #851dad;
}
.yl-article__btn--share {
    background-color: #d63500;
    color: #fff;
}
.yl-article__btn-icon {
    flex-shrink: 0;
    height: 18px;
    width: 18px;
}

/* ── Résumé de l'article ──────────────────────────────────── */
.yl-article__resume {
    margin-bottom: 48px;
    background-color: #251c45;
    border-radius: 14px;
    overflow: hidden;
    padding: 32px;
    position: relative;
}

.yl-article__resume-glow {
    background: #4f39f6;
    border-radius: 50%;
    filter: blur(41px);
    height: 300px;
    opacity: 0.2;
    pointer-events: none;
    position: absolute;
    right: -100px;
    top: -150px;
    width: 300px;
}

.yl-article__resume-head {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 21px;
    position: relative;
}

.yl-article__resume-icon {
    display: inline-flex;
    flex-shrink: 0;
    transform: rotate(30deg);
}

.yl-article__resume-icon svg {
    display: block;
}

.yl-article__resume-label {
    color: #ffffff;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.48px;
    line-height: 1;
    margin: 0;
}

.yl-article__resume-body {
    color: #ffffff;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.048px;
    line-height: 1.8;
    position: relative;
}

.yl-article__resume-body ul {
    display: flex;
    flex-direction: column;
    gap: 25px;
    list-style: disc;
    margin: 0;
    padding-left: 24px;
}

.yl-article__resume-body li {
    padding-left: 4px;
}

.yl-article__resume-body strong {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Layout 2 colonnes ────────────────────────────────────── */
.yl-article__layout {
    display: grid;
    gap: var(--article-gap);
    grid-template-columns: minmax(0, var(--article-main)) var(--article-sidebar);
    margin-inline: auto;
    max-width: var(--article-max);
    padding-block: 40px 80px;
    padding-inline: clamp(24px, 6vw, 70px);
}

/* ── Contenu article ──────────────────────────────────────── */
.yl-article__content {
    color: #1a1a2e;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
}
.yl-article__content h2 {
    color: #0f172b;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 2.5em 0 0.8em;
    scroll-margin-top: 80px;
}
.yl-article__content h3 {
    color: #0f172b;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 2em 0 0.6em;
    scroll-margin-top: 80px;
}
.yl-article__content p { margin: 0 0 1.4em; }
.yl-article__content p:last-child { margin-bottom: 0; }
.yl-article__content a { color: #d63500; text-decoration: underline; text-underline-offset: 3px; }
.yl-article__content a:hover { color: #b82d00; }
.yl-article__content ul,
.yl-article__content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.yl-article__content li { margin-bottom: 0.5em; }
.yl-article__content blockquote {
    border-left: 3px solid #d63500;
    color: #333;
    font-style: italic;
    margin: 1.8em 0;
    padding: 12px 0 12px 20px;
}
.yl-article__content img {
    border-radius: 12px;
    display: block;
    height: auto;
    max-width: 100%;
}
.yl-article__content figure { margin: 2em 0; }
.yl-article__content figcaption {
    color: #888;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}
.yl-article__content strong { font-weight: 700; }
.yl-article__content code {
    background: #f2f1f6;
    border-radius: 4px;
    font-size: 0.9em;
    padding: 2px 6px;
}
.yl-article__content pre {
    background: #f2f1f6;
    border-radius: 8px;
    overflow-x: auto;
    padding: 20px;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.yl-article__sidebar {
    /* Colonne entière collante (retour design 11/09/2026) : sommaire et CTA
       défilent ensemble et ne peuvent plus se chevaucher. */
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    position: sticky;
    top: 96px;
}

/* Table des matières */
.yl-article__toc {
    background-color: #f2f1f6;
    border: 1px solid #e3e1ed;
    border-radius: 9px;
    flex-shrink: 0;
    padding: 21px;
}
.yl-article__toc-label {
    color: #0f172b;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
    text-transform: uppercase;
}
.yl-article__toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.yl-article__toc-nav a {
    color: #0f172b;
    display: block;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    padding: 2px 0;
    text-decoration: none;
    transition: opacity 0.15s;
}
.yl-article__toc-nav a:hover { opacity: 0.75; }
.yl-article__toc-nav .toc-sub {
    color: #0f172b;
    font-size: 12px;
    padding-left: 14px;
}
.yl-article__toc-nav .toc-sub a { color: #0f172b; }
.yl-article__toc-nav .toc-item--active > a { text-decoration: underline; }

/* CTA card sidebar */
.yl-article__sidebar-cta {
    background-color: #f2f1f6;
    flex-shrink: 0;
    border: 1px solid #e3e1ed;
    border-radius: 9px;
    overflow: hidden;
    padding: 21px;
}
.yl-article__sidebar-cta-head {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}
.yl-article__sidebar-cta-avatar {
    border-radius: 6.75px;
    flex-shrink: 0;
    height: 56px;
    overflow: hidden;
    width: 56px;
}
.yl-article__sidebar-cta-avatar img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.yl-article__sidebar-cta-text { flex: 1; }
.yl-article__sidebar-cta-title {
    color: #0f172b;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 8px;
}
.yl-article__sidebar-cta-body {
    color: #0f172b;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}
.yl-article__sidebar-cta-btn {
    background-color: #d63500;
    border-radius: 44px;
    color: #fff;
    display: inline-block;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 22px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.yl-article__sidebar-cta-btn:hover { background-color: #b82d00; color: #fff; }

/* ── Modales ─────────────────────────────────────────────── */
.yl-modal {
    align-items: center;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}
.yl-modal[hidden] { display: none; }
.yl-modal__backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}
.yl-modal__box {
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
    max-height: 90vh;
    max-width: 540px;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    width: calc(100% - 40px);
    z-index: 1;
}
.yl-modal__head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}
.yl-modal__title {
    color: #0f172b;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
}
.yl-modal__close {
    align-items: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: #555;
    cursor: pointer;
    display: flex;
    height: 36px;
    justify-content: center;
    transition: background-color 0.15s;
    width: 36px;
}
.yl-modal__close:hover { background-color: #f2f1f6; }
.yl-modal__close svg { height: 20px; width: 20px; }
.yl-modal__section { margin-bottom: 24px; }
.yl-modal__section:last-child { margin-bottom: 0; }
.yl-modal__label {
    color: #0f172b;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 12px;
}

/* Tabs format */
.yl-modal__tabs {
    display: flex;
    gap: 8px;
}
.yl-modal__tab {
    background-color: #f2f1f6;
    border: none;
    border-radius: 44px;
    color: #555;
    cursor: pointer;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    transition: background-color 0.15s, color 0.15s;
}
.yl-modal__tab.is-active {
    background-color: #d63500;
    color: #fff;
}
.yl-modal__tab:hover:not(.is-active) { background-color: #e3e1ed; }

/* Assistants grid */
.yl-modal__assistants {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}
.yl-modal__assistant {
    align-items: center;
    background-color: #f2f1f6;
    border: 1.5px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 14px;
    text-align: left;
    transition: border-color 0.15s, background-color 0.15s;
}
.yl-modal__assistant:hover { border-color: #d63500; }
.yl-modal__assistant:nth-child(5) { grid-column: 1; }
.yl-modal__assistant-avatar {
    align-items: center;
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex-shrink: 0;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    width: 38px;
}
.yl-modal__assistant-avatar--chatgpt   { background-color: #10a37f; }
.yl-modal__assistant-avatar--claude    { background-color: #c7580a; }
.yl-modal__assistant-avatar--perplexity { background-color: #20b2aa; }
.yl-modal__assistant-avatar--grok      { background-color: #333; }
.yl-modal__assistant-avatar--gemini    { background: linear-gradient(135deg, #4285f4, #ea4335); }
.yl-modal__assistant-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.yl-modal__assistant-info strong {
    color: #0f172b;
    font-size: 14px;
    font-weight: 600;
}
.yl-modal__assistant-info span {
    color: #666;
    font-size: 12px;
    font-weight: 400;
}

/* Modale Partager */
.yl-modal__copy-row {
    align-items: center;
    background-color: #f2f1f6;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 16px;
}
.yl-modal__copy-url {
    color: #444;
    flex: 1;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.yl-modal__copy-btn {
    background: none;
    border: none;
    color: #0f172b;
    cursor: pointer;
    flex-shrink: 0;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    transition: color 0.15s;
}
.yl-modal__copy-btn:hover { color: #d63500; }
.yl-modal__copy-btn.is-copied { color: #16a34a; }
.yl-modal__share-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
}
.yl-modal__share-item {
    align-items: center;
    background-color: #f2f1f6;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s;
}
.yl-modal__share-item:hover { background-color: #e3e1ed; }
.yl-modal__share-icon {
    align-items: center;
    border-radius: 50%;
    display: flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}
.yl-modal__share-icon svg { height: 22px; width: 22px; }
.yl-modal__share-icon--linkedin  { background-color: #0a66c2; color: #fff; }
.yl-modal__share-icon--twitter   { background-color: #000; color: #fff; }
.yl-modal__share-icon--facebook  { background-color: #1877f2; color: #fff; }
.yl-modal__share-icon--whatsapp  { background-color: #25d366; color: #fff; }
.yl-modal__share-icon--email     { background-color: #e3e1ed; color: #333; }
.yl-modal__share-icon--rss       { background-color: #f26522; color: #fff; }
.yl-modal__share-name {
    color: #0f172b;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
}
.yl-modal__share-sub {
    color: #888;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 11px;
    line-height: 1.3;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1200px) {
    .yl-article { --article-gap: 40px; --article-sidebar: 260px; }
}
@media (max-width: 900px) {
    .yl-article__hero-inner { flex-direction: column; gap: 32px; }
    .yl-article__hero-left { max-width: 100%; }
    .yl-article__hero-right { height: 300px; width: 100%; }
    .yl-article__layout { grid-template-columns: 1fr; }
    .yl-article__sidebar { order: -1; }
    .yl-article__sidebar { max-height: none; overflow: visible; position: static; }
    .yl-modal__assistants { grid-template-columns: 1fr; }
    .yl-modal__assistant:nth-child(5) { grid-column: auto; }
}
@media (max-width: 640px) {
    .yl-article__meta-bar-inner { gap: 12px; }
    .yl-article__meta-item--date { display: none; }
    .yl-article__btn span { display: none; }
    .yl-modal__share-grid { grid-template-columns: repeat(2, 1fr); }
    .yl-modal__tabs { flex-wrap: wrap; }
    .yl-article__resume { padding: 24px; }
    .yl-article__resume-label { font-size: 20px; }
    .yl-article__resume-body { font-size: 15px; }
}

/* Articles liés — ajouté le 28/08/2026 */
.yl-article__related{background:var(--color-surface-default,#f2f1f6);padding:64px 24px}
.yl-article__related-inner{margin:0 auto;max-width:1240px}
.yl-article__related-title{font-size:1.75rem;font-weight:700;letter-spacing:-.01em;margin:0 0 28px;text-align:center}
.yl-article__related-grid{display:grid;gap:24px;grid-template-columns:repeat(3,1fr)}
@media (max-width:992px){.yl-article__related-grid{grid-template-columns:1fr}}
