/* ============================================================
   ARTICLE — page de detail
   Extrait de templates/post/show.html.twig
   ============================================================ */

/* ── Article Header ─────────────────────────────── */
.iz-article-header {
    position: relative;
    padding: 6rem 0 4rem;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.iz-article-header__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.05);
}

.iz-article-header__bg--default {
    background: linear-gradient(135deg, #0A0E1A 0%, #1C2333 100%);
}

.iz-article-header__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,14,26,0.97) 0%, rgba(10,14,26,0.8) 50%, rgba(10,14,26,0.6) 100%);
}

.iz-article-header__container {
    position: relative;
    z-index: 2;
}

.iz-article-header__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.iz-article-header__date {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}

.iz-article-header__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.04em;
    max-width: 800px;
    margin: 0;
}

/* ── Article Layout ─────────────────────────────── */
.iz-article-layout { padding: 4rem 0 6rem; background: #f6f8fc; }
.iz-article-layout .col-lg-8,
.iz-article-layout .col-lg-4 { min-width: 0; }

/* ── Article Card ───────────────────────────────── */
.iz-article-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(10,14,26,0.08);
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(20, 35, 65, .07);
}

/* ── Article Content ────────────────────────────── */
.iz-article-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 64px 68px 70px;
    font-size: 1.04rem;
    line-height: 1.88;
    color: #445066;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.iz-article-content > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.iz-article-content > h1:first-child { display: none; }

.iz-article-content h1,
.iz-article-content h2,
.iz-article-content h3,
.iz-article-content h4,
.iz-article-content h5,
.iz-article-content h6,
.iz-article-content p,
.iz-article-content li,
.iz-article-content blockquote {
    white-space: normal !important;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.iz-article-content p,
.iz-article-content li,
.iz-article-content blockquote {
    text-align: justify !important;
    text-justify: inter-word;
    text-align-last: left;
}

.iz-article-content h1, .iz-article-content h2, .iz-article-content h3, .iz-article-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: #0A0E1A;
    margin-top: 2.7rem;
    margin-bottom: 1.05rem;
    letter-spacing: -.035em;
    line-height: 1.22;
}

.iz-article-content h2 { font-size: 1.72rem; }
.iz-article-content h3 { font-size: 1.38rem; }
.iz-article-content h4 { font-size: 1.1rem; }

.iz-article-content p { margin-top: 0; margin-bottom: 1.45rem; }
.iz-article-content > p:first-of-type { color: #2d3a51; font-size: 1.12rem; line-height: 1.85; }

.iz-article-content a {
    color: #1557FF;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.iz-article-content a:hover { color: #0046EE; }

.iz-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 8px 32px rgba(10,14,26,0.1);
}

.iz-article-content pre {
    background: #000000;
    color: white;
    padding: 1em;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.iz-article-content code:not(pre code) {
    background: rgba(21,87,255,0.08);
    color: #1557FF;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875em;
}

.iz-article-content blockquote {
    border-left: 4px solid #1557FF;
    padding: 16px 24px;
    margin: 1.5rem 0;
    background: rgba(21,87,255,0.04);
    border-radius: 0 8px 8px 0;
    color: #4B5563;
    font-style: italic;
    font-size: 1.05rem;
}

.iz-article-content ul, .iz-article-content ol {
    padding: 20px 22px 20px 46px;
    margin-top: 1rem;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(21,87,255,.08);
    border-radius: 12px;
    background: #f8faff;
}

.iz-article-content li { margin-bottom: 7px; padding-left: 4px; }
.iz-article-content li:last-child { margin-bottom: 0; }
.iz-article-content li::marker { color: #1557ff; font-weight: 800; }

.iz-article-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 2px 12px rgba(10,14,26,0.06);
}

.iz-article-content table th {
    background: #0A0E1A;
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.875rem;
}

.iz-article-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(10,14,26,0.06);
    font-size: 0.9rem;
}

.iz-article-content table tr:hover td { background: rgba(21,87,255,0.02); }

/* ── Share Buttons ──────────────────────────────── */
.iz-article-share {
    padding: 28px 48px;
    border-top: 1px solid rgba(10,14,26,0.07);
    background: #F8F9FF;
}

.iz-article-share__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0A0E1A;
    margin-bottom: 16px;
}

.iz-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.iz-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.iz-share-btn--facebook { background: #3b5998; color: #fff; }
.iz-share-btn--twitter { background: #000; color: #fff; }
.iz-share-btn--linkedin { background: #0077b5; color: #fff; }
.iz-share-btn--pinterest { background: #bd081c; color: #fff; }

.iz-share-btn:hover {
    opacity: 0.85;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ── Article Nav ────────────────────────────────── */
.iz-article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid rgba(10,14,26,0.07);
}

.iz-article-nav__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.iz-article-nav__item--prev { border-right: 1px solid rgba(10,14,26,0.07); }

.iz-article-nav__item:hover {
    background: #F8F9FF;
    color: inherit;
}

.iz-article-nav__arrow {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(21,87,255,0.08);
    color: #1557FF;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.iz-article-nav__item:hover .iz-article-nav__arrow {
    background: #1557FF;
    color: #fff;
    box-shadow: 0 4px 16px rgba(21,87,255,0.35);
}

.iz-article-nav__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.iz-article-nav__info--right { text-align: right; }

.iz-article-nav__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--iz-text-muted);
}

.iz-article-nav__ttl {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0A0E1A;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────── */
.iz-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}

.iz-widget {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(10,14,26,0.07);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(10,14,26,0.04);
}

.iz-widget__header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(10,14,26,0.06);
}

.iz-widget__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0A0E1A;
    margin: 0;
    letter-spacing: -0.01em;
}

.iz-widget__body { padding: 20px; }

/* Search */
.iz-search-box {
    display: flex;
    border: 2px solid rgba(10,14,26,0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.iz-search-box:focus-within { border-color: #1557FF; }

.iz-search-box input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 0.875rem;
    background: transparent;
    color: #0A0E1A;
    outline: none;
}

.iz-search-box input::placeholder { color: var(--iz-text-muted); }

.iz-search-box button {
    background: #1557FF;
    border: none;
    padding: 0 16px;
    color: #fff;
    cursor: pointer;
    font-size: 0.875rem;
    transition: opacity 0.2s;
}

.iz-search-box button:hover { opacity: 0.85; }

/* Category tag */
.iz-category-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(21,87,255,0.06);
    border: 1px solid rgba(21,87,255,0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1557FF;
    text-decoration: none;
    transition: all 0.2s;
}

.iz-category-tag:hover {
    background: rgba(21,87,255,0.12);
    color: #1557FF;
}

/* Recent posts */
.iz-recent-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.iz-recent-item__link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.iz-recent-item__link:hover { color: inherit; }

.iz-recent-item__img-wrap {
    width: 64px; height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.iz-recent-item__img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.iz-recent-item__link:hover .iz-recent-item__img-wrap img { transform: scale(1.05); }

.iz-recent-item__content { flex: 1; min-width: 0; }

.iz-recent-item__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0A0E1A;
    line-height: 1.4;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.iz-recent-item__link:hover .iz-recent-item__title { color: #1557FF; }

.iz-recent-item__date {
    font-size: 0.75rem;
    color: var(--iz-text-muted);
    font-weight: 500;
}

/* CTA Widget */
.iz-widget--cta {
    background: linear-gradient(135deg, #0A0E1A, #111827);
    border-color: rgba(21,87,255,0.15);
}

.iz-widget__cta-content {
    padding: 28px 24px;
    text-align: center;
}

.iz-widget__cta-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: #1557FF;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(21,87,255,0.4);
}

.iz-widget--cta h5 {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

.iz-widget--cta p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .iz-article-layout { padding: 2rem 0 4rem; }
    .iz-article-content { padding: 36px 24px 42px; font-size: 1rem; line-height: 1.82; }
    .iz-article-share { padding: 20px; }
    .iz-article-nav { grid-template-columns: 1fr; }
    .iz-article-nav__item--prev { border-right: none; border-bottom: 1px solid rgba(10,14,26,0.07); }
    .iz-article-nav__item { padding: 20px; }
    .iz-share-btn span { display: none; }
    .iz-share-btn { padding: 9px 14px; }
}
