/* ================================================================
   assurance-blog.info — CSS Article (single.php) v2
   Compatible GeneratePress — Responsive mobile-first
   À REMPLACER entièrement dans ab-article.css
   ================================================================ */

/* ----------------------------------------------------------------
   0. RESET — Neutraliser GeneratePress sur les pages article
   (desktop uniquement pour ne pas casser le mobile qui fonctionne)
   ---------------------------------------------------------------- */

/*
 * GeneratePress utilise un système de grille CSS avec les classes
 * .grid-container et .grid-parent qui placent le contenu et la
 * sidebar en colonnes. On force tout en display:block sur desktop.
 */

/* Forcer tous les wrappers GP en bloc simple */
.ab-article-page .grid-container,
.ab-article-page .grid-parent,
.ab-article-page #content.site-content,
.ab-article-page .site-content,
.ab-article-page #primary.content-area,
.ab-article-page .content-area,
.ab-article-page #main.site-main,
.ab-article-page .site-main,
.ab-article-page .inside-article,
.ab-article-page .entry-content,
.ab-article-page .entry-header,
.ab-article-page .entry-footer {
    display:   block !important;
    float:     none !important;
    width:     100% !important;
    max-width: 100% !important;
    padding:   0 !important;
    margin:    0 !important;
    border:    none !important;
    box-shadow: none !important;
}

/* GeneratePress Premium ajoute parfois .hfeed .hentry */
.ab-article-page .hentry {
    margin: 0 !important;
}

/* Forcer nos sections à être pleine largeur dans le flux */
.ab-article-page .ab-breadcrumb-bar,
.ab-article-page .ab-article-hero,
.ab-article-page .ab-article-wrap,
.ab-article-page .ab-section,
.ab-article-page .ab-cta {
    display:   block !important;
    width:     100% !important;
    max-width: 100% !important;
    float:     none !important;
    clear:     both;
    box-sizing: border-box;
}

/* Masquer le titre natif WordPress/GeneratePress */
.ab-article-page .entry-header,
.ab-article-page .page-header,
.ab-article-page .post-image {
    display: none !important;
}

/* ----------------------------------------------------------------
   1. BREADCRUMB
   ---------------------------------------------------------------- */
.ab-breadcrumb-bar {
    background:    #f5f3ef;
    border-bottom: 1px solid #ECEEF1;
    padding:       10px 0;
    width:         100%;
}

.ab-breadcrumb {
    display:     flex;
    flex-wrap:   wrap;
    align-items: center;
    gap:         4px 8px;
    font-size:   .8rem;
    color:       rgba(34,34,34,.6);
    padding:     0 16px;
    max-width:   1280px;
    margin:      0 auto;
}

.ab-breadcrumb a {
    color:           rgba(34,34,34,.6);
    text-decoration: none;
    transition:      color .2s;
}
.ab-breadcrumb a:hover { color: #2563ff; }

.ab-breadcrumb__sep    { color: #ccc; font-size: .9rem; }

.ab-breadcrumb__current {
    color:         #222;
    font-weight:   500;
    overflow:      hidden;
    text-overflow: ellipsis;
    white-space:   nowrap;
    max-width:     220px;
}

@media (min-width: 640px) {
    .ab-breadcrumb__current { max-width: 400px; }
}

/* ----------------------------------------------------------------
   2. ARTICLE HERO
   ---------------------------------------------------------------- */
.ab-article-hero {
    background:  #141414;
    padding:     48px 0 40px;
    position:    relative;
    overflow:    hidden;
    width:       100%;
}

.ab-article-hero--has-image { min-height: 360px; }

@media (min-width: 768px) {
    .ab-article-hero { padding: 72px 0 56px; }
    .ab-article-hero--has-image { min-height: 460px; }
}

.ab-article-hero__bg {
    position:            absolute;
    inset:               0;
    background-size:     cover;
    background-position: center;
}

.ab-article-hero__overlay {
    position:   absolute;
    inset:      0;
    background: linear-gradient(160deg, rgba(20,20,20,.93) 0%, rgba(20,20,20,.7) 100%);
    z-index:    1;
}

.ab-article-hero .ab-container,
.ab-article-hero__inner {
    position: relative;
    z-index:  2;
}

.ab-article-hero .ab-container {
    max-width:     1280px;
    margin:        0 auto;
    padding-left:  16px;
    padding-right: 16px;
    box-sizing:    border-box;
    width:         100%;
}

@media (min-width: 640px) {
    .ab-article-hero .ab-container {
        padding-left:  24px;
        padding-right: 24px;
    }
}

.ab-article-hero__inner { max-width: 820px; }

.ab-article-hero__cats {
    display:   flex;
    flex-wrap: wrap;
    gap:       8px;
    margin-bottom: 16px;
}

.ab-article-cat-badge {
    display:         inline-block;
    background:      #2563ff;
    color:           #fff;
    font-size:       .72rem;
    font-weight:     700;
    letter-spacing:  .06em;
    text-transform:  uppercase;
    padding:         4px 12px;
    border-radius:   4px;
    text-decoration: none;
}
.ab-article-cat-badge:hover { background: #1a4fd0; color: #fff; }

.ab-article-hero__title {
    font-size:   clamp(1.4rem, 5vw, 2.6rem);
    font-weight: 800;
    color:       #fff;
    line-height: 1.15;
    margin:      0 0 16px;
    word-break:  break-word;
}

.ab-article-hero__excerpt {
    font-size:  1rem;
    color:      rgba(255,255,255,.6);
    line-height: 1.7;
    margin:     0 0 24px;
    max-width:  640px;
}

/* Méta auteur */
.ab-article-meta {
    display:         flex;
    flex-wrap:       wrap;
    align-items:     center;
    justify-content: space-between;
    gap:             16px;
    padding-top:     20px;
    border-top:      1px solid rgba(255,255,255,.12);
}

.ab-article-meta__author {
    display:     flex;
    align-items: center;
    gap:         12px;
    min-width:   0;
}

.ab-article-meta__avatar {
    width:        40px;
    height:       40px;
    border-radius: 50%;
    object-fit:   cover;
    border:       2px solid rgba(255,255,255,.2);
    flex-shrink:  0;
}

.ab-article-meta__author-name {
    display:         block;
    font-weight:     600;
    color:           #fff;
    text-decoration: none;
    font-size:       .9rem;
    transition:      color .2s;
}
.ab-article-meta__author-name:hover { color: #9ECF59; }

.ab-article-meta__details {
    display:   flex;
    flex-wrap: wrap;
    gap:       4px 8px;
    font-size: .78rem;
    color:     rgba(255,255,255,.5);
    margin-top: 3px;
}

.ab-article-meta__updated { font-style: italic; }

/* Boutons partage (hero) */
.ab-article-share {
    display:     flex;
    align-items: center;
    gap:         8px;
    flex-shrink: 0;
}

.ab-article-share__label {
    font-size: .78rem;
    color:     rgba(255,255,255,.5);
}

.ab-share-btn {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           34px;
    height:          34px;
    border-radius:   50%;
    background:      rgba(255,255,255,.12);
    color:           #fff;
    text-decoration: none;
    transition:      background .2s, transform .2s;
    flex-shrink:     0;
}
.ab-share-btn:hover           { transform: translateY(-2px); color: #fff; }
.ab-share-btn--fb:hover       { background: #1877f2; }
.ab-share-btn--tw:hover       { background: #000; }
.ab-share-btn--li:hover       { background: #0077b5; }

/* ----------------------------------------------------------------
   3. CORPS ARTICLE + SIDEBAR
   ---------------------------------------------------------------- */
.ab-article-wrap {
    background:  #fff;
    padding:     40px 0 0;
    width:       100%;
    display:     block !important;
}

/* Container général */
.ab-article-wrap .ab-container,
.ab-section .ab-container,
.ab-article-hero .ab-container,
.ab-breadcrumb-bar .ab-container {
    max-width:     1280px;
    margin:        0 auto;
    padding-left:  16px;
    padding-right: 16px;
    box-sizing:    border-box;
    width:         100%;
    display:       block !important;
}

@media (min-width: 640px) {
    .ab-article-wrap .ab-container,
    .ab-section .ab-container {
        padding-left:  24px;
        padding-right: 24px;
    }
}

/*
 * Grille article + sidebar :
 * - 1 colonne sur mobile (par défaut)
 * - 2 colonnes uniquement sur desktop >= 1024px
 * Le grid ne s'applique QU'AUX ENFANTS DIRECTS de .ab-article-grid
 */
.ab-article-grid {
    display:               block; /* mobile : empilé */
    width:                 100%;
}

/* Enfants directs en bloc sur mobile */
.ab-article-grid > .ab-article-content,
.ab-article-grid > .ab-article-sidebar {
    display: block;
    width:   100%;
}

/* 2 colonnes sur desktop */
@media (min-width: 1024px) {
    .ab-article-grid {
        display:               grid !important;
        grid-template-columns: 1fr 320px;
        gap:                   48px;
        align-items:           start;
    }
}

@media (min-width: 1200px) {
    .ab-article-grid {
        grid-template-columns: 1fr 340px;
        gap:                   56px;
    }
}

/* ----------------------------------------------------------------
   4. PROSE — contenu article
   ---------------------------------------------------------------- */
.ab-prose {
    font-size:   1rem;
    line-height: 1.85;
    color:       rgba(34,34,34,.72);
    word-break:  break-word;
    overflow-wrap: break-word;
}

.ab-prose > * + * { margin-top: 18px; }
.ab-prose > *:first-child { margin-top: 0; }

.ab-prose h2 {
    font-size:      clamp(1.15rem, 2.5vw, 1.55rem);
    font-weight:    700;
    color:          #222;
    margin-top:     44px;
    margin-bottom:  14px;
    padding-bottom: 10px;
    border-bottom:  2px solid #ECEEF1;
    scroll-margin-top: 88px;
    line-height:    1.25;
}

.ab-prose h3 {
    font-size:      1.05rem;
    font-weight:    700;
    color:          #222;
    margin-top:     32px;
    margin-bottom:  10px;
    scroll-margin-top: 88px;
    line-height:    1.3;
}

.ab-prose h4 {
    font-size:    .97rem;
    font-weight:  700;
    color:        #222;
    margin-top:   24px;
    margin-bottom: 8px;
}

.ab-prose p { margin-bottom: 14px; }
.ab-prose p:last-child { margin-bottom: 0; }

.ab-prose a {
    color:                #2563ff;
    text-decoration:      underline;
    text-underline-offset: 2px;
    transition:           color .2s;
}
.ab-prose a:hover { color: #141414; }

.ab-prose strong { font-weight: 700; color: #222; }
.ab-prose em     { font-style: italic; }

.ab-prose ul,
.ab-prose ol {
    padding-left: 22px;
    margin:       14px 0;
}

.ab-prose ul li { list-style: disc; }
.ab-prose ol li { list-style: decimal; }

.ab-prose li {
    color:        rgba(34,34,34,.72);
    margin-bottom: 6px;
    line-height:  1.75;
    padding-left: 4px;
}

.ab-prose blockquote {
    border-left: 4px solid #2563ff;
    background:  #eff6ff;
    padding:     16px 20px;
    border-radius: 0 8px 8px 0;
    margin:      24px 0;
    color:       #222;
    font-style:  italic;
}

.ab-prose blockquote p { margin: 0; color: #222; }

/* Tables dans le contenu */
.ab-prose table {
    width:           100%;
    border-collapse: collapse;
    font-size:       .88rem;
    margin:          20px 0;
    display:         block;
    overflow-x:      auto;
    -webkit-overflow-scrolling: touch;
}

.ab-prose table th {
    background:   #141414;
    color:        #fff;
    padding:      11px 14px;
    text-align:   left;
    font-weight:  600;
    white-space:  nowrap;
}

.ab-prose table td {
    padding:       10px 14px;
    border-bottom: 1px solid #ECEEF1;
    color:         rgba(34,34,34,.72);
    vertical-align: middle;
}

.ab-prose table tr:last-child td { border-bottom: none; }
.ab-prose table tr:hover td { background: rgba(37,99,255,.03); }

/* Images */
.ab-prose img {
    max-width:    100%;
    height:       auto;
    border-radius: 8px;
    margin:       20px 0;
    display:      block;
}

.ab-prose hr {
    border:    none;
    border-top: 1px solid #ECEEF1;
    margin:    36px 0;
}

/* Blocs HTML injectés (nos sections avec classes ab-*) */
.ab-prose .ab-alert-box,
.ab-prose .ab-features-grid,
.ab-prose .ab-table-wrapper,
.ab-prose .ab-process,
.ab-prose .ab-faq {
    margin-top:    32px;
    margin-bottom: 32px;
}

/* ----------------------------------------------------------------
   5. TAGS
   ---------------------------------------------------------------- */
.ab-article-tags {
    display:     flex;
    flex-wrap:   wrap;
    align-items: center;
    gap:         8px;
    padding:     20px 0;
    border-top:  1px solid #ECEEF1;
    margin-top:  32px;
}

.ab-article-tags__label {
    font-size:   .8rem;
    font-weight: 600;
    color:       rgba(34,34,34,.6);
}

.ab-tag-chip {
    display:         inline-block;
    padding:         4px 12px;
    background:      #f5f3ef;
    border:          1px solid #ECEEF1;
    border-radius:   100px;
    font-size:       .78rem;
    color:           rgba(34,34,34,.6);
    text-decoration: none;
    transition:      background .2s, color .2s, border-color .2s;
}
.ab-tag-chip:hover {
    background:    #2563ff;
    color:         #fff;
    border-color:  #2563ff;
}

/* ----------------------------------------------------------------
   6. PARTAGE BAS D'ARTICLE
   ---------------------------------------------------------------- */
.ab-share-bottom {
    padding:    24px 0;
    border-top: 1px solid #ECEEF1;
    margin-top: 8px;
}

.ab-share-bottom__label {
    font-size:     .88rem;
    color:         rgba(34,34,34,.6);
    margin:        0 0 12px;
}

.ab-share-bottom__btns {
    display:   flex;
    flex-wrap: wrap;
    gap:       10px;
}

.ab-share-pill {
    display:         inline-flex;
    align-items:     center;
    gap:             8px;
    padding:         9px 18px;
    border-radius:   6px;
    font-size:       .85rem;
    font-weight:     600;
    text-decoration: none;
    transition:      background .2s, color .2s, transform .2s;
}
.ab-share-pill:hover { transform: translateY(-1px); }

.ab-share-pill--fb { background: rgba(24,119,242,.1); color: #1877f2; }
.ab-share-pill--fb:hover { background: #1877f2; color: #fff; }

.ab-share-pill--tw { background: rgba(0,0,0,.07); color: #000; }
.ab-share-pill--tw:hover { background: #000; color: #fff; }

.ab-share-pill--li { background: rgba(0,119,181,.1); color: #0077b5; }
.ab-share-pill--li:hover { background: #0077b5; color: #fff; }

/* ----------------------------------------------------------------
   7. BOX AUTEUR
   ---------------------------------------------------------------- */
.ab-author-box {
    display:       flex;
    gap:           20px;
    padding:       24px;
    background:    #f5f3ef;
    border-radius: 10px;
    border:        1px solid #ECEEF1;
    margin-top:    40px;
    align-items:   flex-start;
}

@media (max-width: 600px) {
    .ab-author-box {
        flex-direction: column;
        align-items:    center;
        text-align:     center;
    }
}

.ab-author-box__avatar {
    width:         72px;
    height:        72px;
    border-radius: 50%;
    object-fit:    cover;
    flex-shrink:   0;
    border:        3px solid #fff;
    box-shadow:    0 2px 8px rgba(0,0,0,.08);
}

.ab-author-box__body {
    flex: 1;
    min-width: 0;
}

.ab-author-box__label {
    display:        block;
    font-size:      .7rem;
    font-weight:    700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color:          #2563ff;
    margin-bottom:  4px;
}

.ab-author-box__name {
    display:         block;
    font-size:       1rem;
    font-weight:     700;
    color:           #222;
    text-decoration: none;
    transition:      color .2s;
}
.ab-author-box__name:hover { color: #2563ff; }

.ab-author-box__role {
    display:   block;
    font-size: .8rem;
    color:     rgba(34,34,34,.6);
    margin-top: 3px;
}

.ab-author-box__bio {
    font-size:   .86rem;
    color:       rgba(34,34,34,.65);
    line-height: 1.7;
    margin:      10px 0 0;
}

.ab-author-box__link {
    display:         inline-block;
    margin-top:      10px;
    font-size:       .83rem;
    font-weight:     600;
    color:           #2563ff;
    text-decoration: none;
    transition:      color .2s;
}
.ab-author-box__link:hover { color: #141414; }

/* ----------------------------------------------------------------
   8. SIDEBAR
   ---------------------------------------------------------------- */
/* Mobile : sidebar en bas, visible */
.ab-article-sidebar {
    display:        flex;
    flex-direction: column;
    gap:            20px;
}

/* Desktop : sticky */
@media (min-width: 1024px) {
    .ab-article-sidebar {
        position:  sticky;
        top:       88px;
    }
}

/* Table des matières */
.ab-toc-card {
    background:    #f5f3ef;
    border-radius: 8px;
    padding:       20px;
    border:        1px solid #ECEEF1;
}

/* Masqué sur mobile, visible sur desktop */
@media (max-width: 1023px) {
    .ab-toc-card { display: none; }
}

.ab-toc-card__title {
    font-size:   .88rem;
    font-weight: 700;
    color:       #222;
    margin:      0 0 14px;
    display:     flex;
    align-items: center;
    gap:         8px;
}

.ab-toc-nav .ab-toc-loading {
    font-size: .82rem;
    color:     rgba(34,34,34,.5);
    margin:    0;
}

.ab-toc-nav ol,
.ab-toc-nav ul {
    list-style: none;
    padding:    0;
    margin:     0;
    display:    flex;
    flex-direction: column;
    gap:        2px;
}

.ab-toc-nav a {
    display:      block;
    padding:      6px 10px;
    font-size:    .83rem;
    color:        rgba(34,34,34,.65);
    text-decoration: none;
    border-radius: 4px;
    border-left:  2px solid transparent;
    transition:   background .2s, color .2s, border-color .2s;
    line-height:  1.4;
}

.ab-toc-nav a:hover,
.ab-toc-nav a.is-active {
    background:    rgba(37,99,255,.07);
    color:         #2563ff;
    border-color:  #2563ff;
}

/* Sous-niveau h3 */
.ab-toc-nav ol ol a {
    padding-left: 20px;
    font-size:    .79rem;
}

/* Sidebar CTA */
.ab-sidebar-cta {
    background:    #141414;
    border-radius: 8px;
    padding:       22px;
    text-align:    center;
}

.ab-sidebar-cta__icon {
    font-size:     2rem;
    display:       block;
    margin-bottom: 10px;
}

.ab-sidebar-cta__title {
    font-size:   .95rem;
    font-weight: 700;
    color:       #fff;
    margin:      0 0 8px;
}

.ab-sidebar-cta__text {
    font-size:   .82rem;
    color:       rgba(255,255,255,.55);
    line-height: 1.6;
    margin:      0 0 16px;
}

.ab-sidebar-cta__btn {
    width:           100%;
    justify-content: center;
    display:         flex !important;
}

.ab-sidebar-cta__checks {
    list-style:     none;
    padding:        0;
    margin:         12px 0 0;
    display:        flex;
    flex-direction: column;
    gap:            5px;
}

.ab-sidebar-cta__checks li {
    font-size: .78rem;
    color:     rgba(255,255,255,.5);
}

/* Mini auteur sidebar */
.ab-sidebar-author {
    display:       flex;
    align-items:   center;
    gap:           12px;
    background:    #f5f3ef;
    border-radius: 8px;
    padding:       16px;
    border:        1px solid #ECEEF1;
}

.ab-sidebar-author__avatar {
    width:         48px;
    height:        48px;
    border-radius: 50%;
    object-fit:    cover;
    flex-shrink:   0;
}

.ab-sidebar-author__name {
    font-size:   .88rem;
    font-weight: 700;
    color:       #222;
    margin:      0 0 2px;
}

.ab-sidebar-author__role,
.ab-sidebar-author__exp {
    font-size:  .74rem;
    color:      rgba(34,34,34,.6);
    margin:     0;
    line-height: 1.4;
}

/* ----------------------------------------------------------------
   9. ARTICLES LIÉS
   ---------------------------------------------------------------- */

/* S'assurer que la section est bien en bloc pleine largeur */
.ab-article-page .ab-section.ab-section--light,
.ab-article-page .ab-section.ab-internal-links,
.ab-article-page .ab-section.ab-section--dark {
    display:   block !important;
    width:     100% !important;
    max-width: 100% !important;
}

.ab-related-grid {
    display:               grid;
    grid-template-columns: 1fr;
    gap:                   20px;
}

@media (min-width: 640px) {
    .ab-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .ab-related-grid { grid-template-columns: repeat(3, 1fr); }
}

.ab-related-card {
    background:    #fff;
    border-radius: 8px;
    overflow:      hidden;
    border:        1px solid #ECEEF1;
    display:       flex;
    flex-direction: column;
    transition:    box-shadow .25s, transform .25s;
}

.ab-related-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,.1);
    transform:  translateY(-3px);
}

.ab-related-card__img-wrap {
    display:       block;
    aspect-ratio:  16 / 9;
    overflow:      hidden;
}

.ab-related-card__img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    transition: transform .4s ease;
    display:    block;
}

.ab-related-card__img-wrap:hover .ab-related-card__img {
    transform: scale(1.04);
}

.ab-related-card__body {
    padding: 18px 20px;
    flex:    1;
    display: flex;
    flex-direction: column;
    gap:     8px;
}

.ab-related-card__cat {
    font-size:      .7rem;
    font-weight:    700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color:          #2563ff;
}

.ab-related-card__title {
    font-size:   .95rem;
    font-weight: 700;
    line-height: 1.35;
    margin:      0;
}

.ab-related-card__title a {
    color:           #222;
    text-decoration: none;
    transition:      color .2s;
}
.ab-related-card__title a:hover { color: #2563ff; }

.ab-related-card__excerpt {
    font-size:   .83rem;
    color:       rgba(34,34,34,.6);
    line-height: 1.6;
    margin:      0;
    flex:        1;
}

.ab-related-card__meta {
    display:   flex;
    gap:       8px;
    font-size: .76rem;
    color:     rgba(34,34,34,.5);
    margin-top: auto;
    padding-top: 10px;
    border-top:  1px solid #ECEEF1;
}

/* ----------------------------------------------------------------
   10. RESPONSIVE — AJUSTEMENTS MOBILES
   ---------------------------------------------------------------- */
@media (max-width: 767px) {

    /* Hero */
    .ab-article-hero { padding: 36px 0 28px; }
    .ab-article-hero__title { font-size: 1.4rem; }
    .ab-article-hero__excerpt { font-size: .92rem; display: none; }

    /* Méta : empilé */
    .ab-article-meta {
        flex-direction: column;
        align-items:    flex-start;
        gap:            12px;
    }

    /* Partage : petits boutons */
    .ab-article-share__label { display: none; }

    /* Contenu */
    .ab-prose { font-size: .93rem; }
    .ab-prose h2 { font-size: 1.15rem; margin-top: 32px; }
    .ab-prose h3 { font-size: 1rem; }

    /* Tables */
    .ab-prose table {
        font-size: .78rem;
    }
    .ab-prose table th,
    .ab-prose table td {
        padding: 8px 10px;
    }

    /* Partage bas */
    .ab-share-bottom__btns { flex-direction: column; }
    .ab-share-pill { justify-content: center; }

    /* Articles liés */
    .ab-related-grid { grid-template-columns: 1fr; }

    /* Sections */
    .ab-article-wrap { padding: 28px 0 0; }
}

@media (max-width: 480px) {

    .ab-article-hero .ab-container { padding-left: 14px; padding-right: 14px; }
    .ab-article-hero__title { font-size: 1.25rem; }

    /* Breadcrumb */
    .ab-breadcrumb { font-size: .74rem; }
    .ab-breadcrumb__current { max-width: 160px; }

    /* Grid internes */
    .ab-internal-links__grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   11. BARRE DE PROGRESSION LECTURE
   ---------------------------------------------------------------- */
#ab-reading-progress {
    position:       fixed;
    top:            0;
    left:           0;
    height:         3px;
    background:     #2563ff;
    width:          0%;
    z-index:        9999;
    transition:     width .1s linear;
    pointer-events: none;
}

/* ----------------------------------------------------------------
   12. FIXES DESKTOP — GeneratePress grid override
   Correctifs spécifiques desktop (>= 768px) qui n'affectent
   pas le mobile (déjà fonctionnel)
   ---------------------------------------------------------------- */
@media (min-width: 768px) {

    /*
     * GeneratePress utilise .grid-container > .grid-parent en
     * display:grid avec colonnes pour content + sidebar.
     * On force le retour en display:block pour toute la page article.
     */
    .ab-article-page .grid-container {
        display: block !important;
        grid-template-columns: none !important;
    }

    .ab-article-page .grid-parent {
        display: block !important;
        grid-column: unset !important;
        float: none !important;
        width: 100% !important;
    }

    /* S'assurer que le contenu principal prend 100% de la largeur */
    .ab-article-page #primary.content-area,
    .ab-article-page .content-area {
        width:         100% !important;
        max-width:     100% !important;
        padding:       0 !important;
        margin:        0 !important;
        float:         none !important;
        grid-column:   unset !important;
    }

    /* Nos sections pleine largeur ne doivent pas être dans une grid GP */
    .ab-article-page .ab-section,
    .ab-article-page .ab-article-hero,
    .ab-article-page .ab-breadcrumb-bar,
    .ab-article-page .ab-article-wrap {
        grid-column: 1 / -1 !important;
        width:       100% !important;
        float:       none !important;
    }

    /* Sections internes (related, CTA, internal links) */
    .ab-article-page .ab-section .ab-container {
        max-width:     1280px;
        margin-left:   auto !important;
        margin-right:  auto !important;
        padding-left:  24px !important;
        padding-right: 24px !important;
    }
}