* {
    scroll-behavior: smooth;
    border: none;
}

/* Reset style */
.entry-content div.container-encadre-full-text-title {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ─── Typo commune ─── */
h1 {
    margin: 12px 0 24px !important;
}

h2,
.h2 {
    margin: 80px 0 24px !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

h3 {
    margin: 40px 0 24px !important;
}

/* ─── Hero ─── */
.hero-section {
    padding: 4rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    min-height: calc(100vh - 8rem);
}

.hero-content {
    padding-right: 2rem;
}

.entry-title {
    margin: 0 0 1rem;
    font-size: 2.5rem;
    line-height: 1.2;
}

.post-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tags li {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: #EDF9FA;
    border-radius: 20px;
    color: #666;
    margin-top: 0;
}

.post-dates {
    font-size: 0.875rem;
    display: flex;
    gap: 1rem;
    color: var(--color-grey-dark);
    margin: 0 0 40px !important;
    opacity: 0.8;
}

.post-dates time {
    display: block;
}

.post-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-grey-dark);
    margin: 2rem 0 0;
}

.hero-image {
    aspect-ratio: 16 / 9;
    /* ratio cible fixe, indépendant de l'image */
    width: 100%;
    overflow: hidden;
    /* coupe ce qui dépasse */
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* remplit le conteneur sans déformer */
    border-radius: 8px;
}

/* ─── Layout principal contenu + sidebar ─── */
.page-main {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    column-gap: 80px;
    margin: 80px auto 240px;
}

.page-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    min-width: 280px;
}

.page-sidebar * {
    text-align: left !important;
}

/* ─── Contenu (formatage article template) ─── */
.entry-content p a {
    text-decoration: none;
    background-color: #E4F0F4;
    color: var(--color-main);
    padding: 4px 8px;
    border-radius: 16px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    transition: background-color .24s ease-in-out, color .24s ease-in-out;
}

.entry-content p a:hover {
    background-color: var(--color-main);
    color: white !important;
}

.note,
p.note {
    padding: 24px !important;
    background-color: #E4F0F4 !important;
    border-radius: 24px !important;
    margin: 32px 0 !important;
}

.note * {
    color: var(--color-main) !important;
    margin: 0 !important;
}

.note *:nth-child(2) {
    margin-top: 16px !important;
}

/* ─── Tables ─── */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 1rem !important;
}

.entry-content table h1,
.entry-content table h2,
.entry-content table h3,
.entry-content table h4 {
    font-size: 1rem !important;
}

.entry-content table th,
.entry-content table td {
    padding: 12px 16px;
    text-align: center;
    vertical-align: middle;
    border: 1.2px solid #EDF9FA;
}

.entry-content table th {
    font-weight: 700;
}

.entry-content table tr td:first-child {
    position: sticky;
    left: 0;
    background-color: #ffffff;
}

.entry-content .pas_sticky tr td:first-child {
    position: static;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-image {
        order: -1;
    }

    .post-dates {
        display: block;
    }

    .post-dates .publish-date {
        margin-bottom: 0.5rem;
    }

    .entry-title {
        font-size: 2rem;
    }

    .page-main {
        display: block;
        padding: 0 16px;
    }

    .page-sidebar {
        position: static;
        margin-top: 4rem;
        display: none;
    }

    .entry-content table {
        min-width: 600px;
        font-size: 16px !important;
    }

    .entry-content table h1,
    .entry-content table h2,
    .entry-content table h3,
    .entry-content table h4 {
        font-size: 14px !important;
    }

    .entry-content .table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}