/* ============================================
   Pages & Articles Display — Page détail (3 colonnes)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700;800;900&family=Crimson+Pro:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

.pad-detail,
.pad-reader-body,
.pad-sitehead,
.pad-sitefoot {
    --padd-ink:      #111111;
    --padd-text:     #2a2a2a;
    --padd-muted:    #707070;
    --padd-border:   #e3e3e3;
    --padd-soft:     #f6f6f6;
    --padd-red:      #d8141b;
    --padd-dark:     #2b2e33;
    --padd-sans:     'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    --padd-serif:    'Crimson Pro', Georgia, 'Times New Roman', serif;
}

.pad-detail,
.pad-detail *,
.pad-detail *::before,
.pad-detail *::after {
    box-sizing: border-box;
}

/* ── Conteneur ── */
.pad-detail {
    background: #ffffff;
    color: var(--padd-ink);
    font-family: var(--padd-sans);
    padding: 0 0 40px;
}

/* Conteneur de la vue (sous l'en-tête du site) */
.pad-shell {
    width: 100%;
    background: #ffffff;
    padding-top: 8px;
}
.pad-shell .pad-detail {
    max-width: var(--pad-max, 1480px);
    margin: 0 auto;
    padding: 0 24px 48px;
    container-type: inline-size;
    container-name: pad;
}
body.pad-no-header,
body.pad-header-plugin { margin: 0; background: #ffffff; }

/* Pleine largeur : sortir du conteneur étroit du thème */
body.pad-full-width { overflow-x: clip; }
.pad-shell--full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}
.wp-site-blocks > .pad-shell { margin-block-start: 0; }

/* Fil d'Ariane (pages enfants) */
.pad-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 8px;
    font-size: 14px;
    color: var(--padd-muted);
    min-width: 0;
}
.pad-crumbs a { color: var(--padd-ink) !important; font-weight: 600; }
.pad-crumbs a:hover { text-decoration: underline !important; }
.pad-crumbs [aria-current] {
    max-width: 32ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pad-detail a {
    text-decoration: none;
    box-shadow: none;
}

/* ── Barre retour ── */
.pad-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--padd-border);
}

.pad-detail-site {
    color: var(--padd-ink) !important;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.01em;
    text-align: right;
}

.pad-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 12px;
    border: 1px solid var(--padd-border);
    border-radius: 6px;
    background: #fff;
    color: var(--padd-ink) !important;
    font-family: var(--padd-sans);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease;
}
.pad-back:hover {
    background: var(--padd-soft);
    border-color: #cfcfcf;
}

/* ── Grille 3 colonnes ── */
.pad-detail-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: stretch;
}

.pad-col { min-width: 0; }

.pad-panel {
    background: #fff;
    border: 1px solid var(--padd-border);
    border-radius: 8px;
    overflow: hidden;
}

/* ── Colonne gauche : Articles publiés (hauteur = colonne centrale) ── */
.pad-col-left {
    position: relative;
    min-height: 420px;
}

.pad-col-left .pad-panel-published {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

.pad-published-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 20px 16px;
    border-bottom: 1px solid var(--padd-border);
    flex-shrink: 0;
}

.pad-detail .pad-published-title {
    margin: 0;
    padding: 0;
    font-family: var(--padd-sans);
    font-size: 30px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--padd-ink);
    text-transform: none;
}

.pad-count-badge {
    flex-shrink: 0;
    min-width: 42px;
    height: 42px;
    padding: 0 8px;
    border-radius: 21px;
    background: var(--padd-red);
    color: #fff;
    font-family: var(--padd-sans);
    font-size: 17px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.pad-published-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cfcfcf transparent;
}
.pad-published-list::-webkit-scrollbar { width: 6px; }
.pad-published-list::-webkit-scrollbar-track { background: transparent; }
.pad-published-list::-webkit-scrollbar-thumb { background: #cfcfcf; border-radius: 3px; }

.pad-published-item {
    margin: 0;
    padding: 0;
    list-style: none;
}
.pad-published-item + .pad-published-item a {
    border-top: 1px solid #efefef;
}

.pad-published-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px 13px 17px;
    border-left: 3px solid transparent;
    color: var(--padd-ink);
    transition: background .18s ease;
}
.pad-published-item a:hover { background: var(--padd-soft); }
.pad-published-item.is-current a {
    background: var(--padd-soft);
    border-left-color: var(--padd-red);
}

.pad-published-thumb {
    width: 56px !important;
    height: 56px !important;
    max-width: none !important;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--padd-border);
    background: var(--padd-soft);
    margin: 0 !important;
}

.pad-published-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pad-published-name {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--padd-ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pad-published-date {
    font-size: 13px;
    color: var(--padd-muted);
    font-weight: 400;
}

/* ── Colonne centrale ── */
.pad-col-main {
    padding: 4px 6px 0;
}

.pad-article-head {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--padd-border);
}

.pad-article-photo {
    flex-shrink: 0;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--padd-border);
    background: var(--padd-soft);
}
.pad-article-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    display: block;
    margin: 0 !important;
}

.pad-article-headtext { min-width: 0; flex: 1; }

.pad-detail .pad-article-title {
    margin: 0 0 12px;
    padding: 0;
    font-family: var(--padd-sans);
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--padd-ink);
    text-transform: none;
}

.pad-article-views {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 18px;
    font-size: 15.5px;
    color: var(--padd-muted);
}
.pad-article-views svg { color: var(--padd-muted); flex-shrink: 0; }
.pad-views-count {
    color: var(--padd-red);
    font-weight: 800;
    font-size: 17px;
}

.pad-recent-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pad-recent-thumb,
.pad-recent-more {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pad-recent-thumb {
    display: block;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--padd-border);
    transition: transform .18s ease, box-shadow .18s ease;
}
.pad-recent-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px #bdbdbd;
}
.pad-recent-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    border-radius: 50%;
}

.pad-recent-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfcfcf;
    background: var(--padd-soft);
    color: var(--padd-ink) !important;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    padding-bottom: 3px;
    transition: background .18s ease;
}
.pad-recent-more:hover { background: #ececec; }
.pad-recent-more.is-all { font-size: 22px; }

.pad-recent-thumb[hidden],
.pad-recent-thumb.is-hidden { display: none; }

@keyframes pad-pop {
    from { opacity: 0; transform: scale(.6); }
    to   { opacity: 1; transform: scale(1); }
}
.pad-recent-thumb.is-new { animation: pad-pop .28s ease both; }

/* Méta (catégorie, date, auteur) */
.pad-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 22px 0 6px;
    font-family: var(--padd-sans);
    font-size: 13.5px;
    color: var(--padd-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.pad-article-cat {
    color: var(--padd-ink);
    font-weight: 700;
}
.pad-dot { color: #b5b5b5; }

/* Corps éditorial */
.pad-article-body {
    font-family: var(--padd-serif);
    font-size: 20px;
    line-height: 1.62;
    color: var(--padd-text);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    font-kerning: normal;
}
.pad-article-body > * { max-width: 100%; }

.pad-article-body p {
    margin: 0 0 1.05em;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.pad-article-body h2,
.pad-article-body h3,
.pad-article-body h4 {
    font-family: var(--padd-serif);
    font-weight: 700;
    color: var(--padd-ink);
    line-height: 1.25;
    text-align: left;
    margin: 1.5em 0 .55em;
}
.pad-article-body h2 { font-size: 1.45em; }
.pad-article-body h3 { font-size: 1.25em; }
.pad-article-body h4 { font-size: 1.1em; }

.pad-article-body a {
    color: var(--padd-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pad-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.pad-article-body figure,
.pad-article-body .wp-block-image {
    margin: 1.6em 0;
}
.pad-article-body figure img,
.pad-article-body p > img {
    display: block;
    width: 100%;
    height: auto;
}

.pad-article-body figcaption,
.pad-article-body .wp-caption-text {
    font-family: var(--padd-sans);
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--padd-muted);
    text-align: left;
    margin-top: 8px;
}

.pad-article-body .wp-caption { max-width: 100%; }

.pad-article-body blockquote {
    margin: 1.6em 0;
    padding: .2em 0 .2em 1.1em;
    border-left: 3px solid var(--padd-ink);
    font-style: italic;
    color: var(--padd-ink);
    text-align: left;
}

.pad-article-body ul,
.pad-article-body ol {
    margin: 0 0 1.05em 1.3em;
    text-align: left;
}
.pad-article-body li {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.pad-article-body iframe,
.pad-article-body video {
    max-width: 100%;
}

/* Actions bas de l'article */
.pad-article-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--padd-border);
}

.pad-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: 6px;
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease;
}

.pad-btn-dark {
    background: #2b2e33;
    border: 1px solid #2b2e33;
    color: #fff !important;
}
.pad-btn-dark:hover { background: #111; border-color: #111; }

.pad-btn-ghost {
    background: #fff;
    border: 1px solid #e3e3e3;
    color: #111 !important;
}
.pad-btn-ghost:hover { background: #f6f6f6; border-color: #cfcfcf; }

/* ── Colonne droite : Les articles à suivre ── */
.pad-col-right {
    position: relative;
    min-height: 420px;
}

/* Hauteur = colonne centrale, liste défilante */
.pad-col-right .pad-panel-follow {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

.pad-detail .pad-follow-head {
    flex-shrink: 0;
    margin: 0;
    padding: 18px 20px;
    background: var(--padd-dark);
    color: #fff;
    font-family: var(--padd-sans);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.pad-follow-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cfcfcf transparent;
}
.pad-follow-list::-webkit-scrollbar { width: 6px; }
.pad-follow-list::-webkit-scrollbar-track { background: transparent; }
.pad-follow-list::-webkit-scrollbar-thumb { background: #cfcfcf; border-radius: 3px; }

.pad-follow-item {
    margin: 0;
    padding: 0;
    list-style: none;
}
.pad-follow-item + .pad-follow-item a { border-top: 1px solid #efefef; }

.pad-follow-item a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    color: var(--padd-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.32;
    transition: background .18s ease;
}
.pad-follow-item a:hover { background: var(--padd-soft); }
.pad-follow-item a:hover span { text-decoration: underline; text-underline-offset: 3px; }

.pad-check {
    flex-shrink: 0;
    color: var(--padd-ink);
    margin-top: 1px;
}

.pad-follow-empty {
    margin: 0;
    padding: 18px 20px;
    color: var(--padd-muted);
    font-size: 15px;
}

/* Focus visible */
.pad-detail a:focus-visible,
.pad-btn:focus-visible {
    outline: 2px solid var(--padd-ink);
    outline-offset: 2px;
}

/* ── Responsive (selon la largeur réelle de la vue, même dans un thème étroit) ── */
@container pad (max-width: 1200px) {
    .pad-detail-grid { grid-template-columns: 260px minmax(0, 1fr) 270px; gap: 22px; }
    .pad-article-photo { width: 170px; height: 170px; }
    .pad-detail .pad-published-title { font-size: 26px; }
}

@container pad (max-width: 960px) {
    .pad-detail-grid { grid-template-columns: minmax(0, 1fr); }
    .pad-col-main  { order: 1; padding: 0; }
    .pad-col-right { order: 2; }
    .pad-col-left  { order: 3; min-height: 0; }
    .pad-col-left .pad-panel-published { position: static; }
    .pad-published-list { max-height: 460px; }
    .pad-col-right { min-height: 0; }
    .pad-col-right .pad-panel-follow { position: static; }
    .pad-follow-list { max-height: 460px; }
}

@media (max-width: 640px) {
    .pad-shell .pad-detail { padding: 0 16px 40px; }
}
@container pad (max-width: 600px) {
    .pad-detail-site { font-size: 15px; }
    .pad-detail-topbar { flex-wrap: wrap; }
    .pad-crumbs { justify-content: flex-start; }
    .pad-article-head { flex-direction: column; align-items: flex-start; gap: 18px; }
    .pad-article-photo { width: 150px; height: 150px; }
    .pad-recent-thumb, .pad-recent-more { width: 46px; height: 46px; }
    .pad-article-body { font-size: 18.5px; text-align: left; }
    .pad-article-actions { flex-direction: column-reverse; align-items: stretch; }
    .pad-article-actions .pad-btn { justify-content: center; }
}

/* ============================================
   Lecteur « Élargir la page » (nouvel onglet)
   ============================================ */
.pad-reader-body {
    margin: 0;
    background: #fff;
    color: var(--padd-ink);
    font-family: var(--padd-sans);
}

.pad-reader-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid var(--padd-border);
}

.pad-reader-site {
    color: var(--padd-ink);
    font-weight: 900;
    font-size: 18px;
    text-decoration: none;
}

.pad-reader-tools { display: flex; gap: 10px; }
.pad-reader-tools .pad-btn { padding: 9px 16px; font-size: 14px; }

.pad-reader {
    max-width: 820px;
    margin: 0 auto;
    padding: 36px 24px 80px;
}

.pad-reader .pad-article-meta { margin-top: 0; }

.pad-reader-title {
    margin: 10px 0 26px;
    font-family: var(--padd-sans);
    font-size: clamp(30px, 4.4vw, 48px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.pad-reader-hero {
    margin: 0 0 30px;
}
.pad-reader-hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.pad-reader .pad-article-body { font-size: 21px; }

@media (max-width: 640px) {
    .pad-reader-bar { padding: 10px 14px; }
    .pad-reader { padding: 24px 16px 60px; }
    .pad-reader .pad-article-body { font-size: 18.5px; text-align: left; }
}

@media print {
    .pad-reader-bar { display: none; }
    .pad-reader { padding: 0; max-width: none; }
}

body.pad-with-header .pad-detail-topbar {
    padding-top: 20px;
}

/* ── Bas de page : Articles à savoir (recommandations personnalisées) ── */
.pad-know {
    margin-top: 48px;
    padding-top: 30px;
    border-top: 1px solid var(--padd-border);
}

.pad-know-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 24px;
    margin-bottom: 22px;
}

.pad-detail .pad-know-title {
    margin: 0;
    padding: 0;
    font-family: var(--padd-sans);
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--padd-ink);
    text-transform: none;
}

.pad-know-sub {
    margin: 0;
    color: var(--padd-muted);
    font-size: 15px;
}

.pad-know-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.pad-know-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--padd-border);
    border-radius: 8px;
    background: #fff;
    color: var(--padd-ink) !important;
    transition: border-color .18s ease, background .18s ease;
}
.pad-know-card:hover {
    border-color: #c9c9c9;
    background: var(--padd-soft);
}
.pad-know-card:hover .pad-know-name {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pad-know-img {
    flex-shrink: 0;
    width: 112px;
    height: 84px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--padd-soft);
}
.pad-know-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    display: block;
    margin: 0 !important;
}

.pad-know-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.pad-know-reason {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--padd-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pad-know-name {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.28;
    color: var(--padd-ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pad-know-meta {
    font-size: 13px;
    color: var(--padd-muted);
}

.pad-know-card[hidden],
.pad-know-card.is-hidden { display: none; }
.pad-know-card.is-new { animation: pad-fade-up .3s ease both; }
@keyframes pad-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.pad-know-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}
.pad-know-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 6px;
    background: var(--padd-dark);
    border: 1px solid var(--padd-dark);
    color: #fff !important;
    font-family: var(--padd-sans);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: background .2s ease;
}
.pad-know-more:hover { background: #111; }
.pad-know-more-count {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 12px;
    background: var(--padd-red);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pad-know-more.is-all svg { transform: rotate(-90deg); }

@container pad (max-width: 1060px) {
    .pad-know-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container pad (max-width: 600px) {
    .pad-know-grid { grid-template-columns: minmax(0, 1fr); }
    .pad-know-img { width: 92px; height: 72px; }
    .pad-detail .pad-know-title { font-size: 25px; }
}

/* Navigateurs sans requêtes de conteneur */
@supports not (container-type: inline-size) {
    @media (max-width: 1000px) {
        .pad-detail-grid { grid-template-columns: minmax(0, 1fr); }
        .pad-col-main  { order: 1; padding: 0; }
        .pad-col-right { order: 2; min-height: 0; }
        .pad-col-left  { order: 3; min-height: 0; }
        .pad-col-left .pad-panel-published,
        .pad-col-right .pad-panel-follow { position: static; }
        .pad-published-list, .pad-follow-list { max-height: 460px; }
        .pad-know-grid { grid-template-columns: minmax(0, 1fr); }
    }
}

/* ============================================
   Vignettes de remplacement (contenus sans image en avant)
   ============================================ */
.pad-ph {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: hsl(var(--pad-ph-h, 0) 42% 91%) !important;
    color: hsl(var(--pad-ph-h, 0) 45% 28%);
    font-family: var(--padd-sans);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    user-select: none;
}
.pad-published-thumb.pad-ph { font-size: 22px; }
.pad-article-photo .pad-ph { width: 100%; height: 100%; font-size: 84px; }
.pad-recent-thumb .pad-ph { width: 100%; height: 100%; font-size: 20px; border-radius: 50%; }
.pad-know-img .pad-ph { width: 100%; height: 100%; font-size: 32px; }
.pad-article-photo img,
.pad-recent-thumb img { width: 100% !important; height: 100% !important; }

/* Sous-pages dans la liste des pages publiées */
.pad-published-item.is-depth-1 a { padding-left: 29px; }
.pad-published-item.is-depth-2 a { padding-left: 41px; }
.pad-published-item.is-depth-3 a { padding-left: 53px; }
.pad-published-item[class*="is-depth-"] .pad-published-thumb { width: 44px !important; height: 44px !important; }

/* Pagination interne (<!--nextpage-->) */
.pad-pagelinks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 1.4em 0 0;
    font-family: var(--padd-sans);
    font-size: 15px;
}
.pad-pagelinks a,
.pad-pagelinks .post-page-numbers {
    min-width: 34px;
    padding: 6px 10px;
    border: 1px solid var(--padd-border);
    border-radius: 6px;
    text-align: center;
    text-decoration: none !important;
}
.pad-pagelinks .current { background: var(--padd-dark); color: #fff; border-color: var(--padd-dark); }

/* ============================================
   En-tête intégré du plugin
   ============================================ */
.pad-sitehead {
    position: relative;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid var(--padd-border);
    font-family: var(--padd-sans);
}
.pad-sitehead *,
.pad-sitefoot * { box-sizing: border-box; }
.pad-sitehead-inner {
    max-width: var(--pad-max, 1480px);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.pad-sitehead-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-right: auto;
}
.pad-sitehead-brand .custom-logo-link { display: block; line-height: 0; }
.pad-sitehead-brand .custom-logo { max-height: 56px; width: auto; height: auto; }
.pad-sitehead-icon img { width: 40px; height: 40px; border-radius: 8px; display: block; }
.pad-sitehead-text { display: flex; flex-direction: column; min-width: 0; }
.pad-sitehead-name {
    color: var(--padd-ink) !important;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-decoration: none !important;
}
.pad-sitehead-tagline {
    color: var(--padd-muted);
    font-size: 14px;
    line-height: 1.3;
    margin-top: 2px;
}
.pad-sitehead-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pad-sitehead-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.pad-sitehead-menu > li { position: relative; }
.pad-sitehead-menu a {
    display: block;
    padding: 9px 14px;
    border-radius: 6px;
    color: var(--padd-ink) !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .18s ease;
}
.pad-sitehead-menu a:hover,
.pad-sitehead-menu .current-menu-item > a,
.pad-sitehead-menu .current_page_item > a { background: var(--padd-soft); }
.pad-sitehead-menu .current-menu-item > a,
.pad-sitehead-menu .current_page_item > a { box-shadow: inset 0 -3px 0 var(--padd-red); border-radius: 6px 6px 0 0; }
.pad-sitehead-menu .sub-menu,
.pad-sitehead-menu .children {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 6px !important;
    background: #fff;
    border: 1px solid var(--padd-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.pad-sitehead-menu li:hover > .sub-menu,
.pad-sitehead-menu li:focus-within > .sub-menu,
.pad-sitehead-menu li:hover > .children,
.pad-sitehead-menu li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.pad-sitehead-menu .sub-menu a { font-weight: 600; font-size: 15px; }

.pad-sitehead-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--padd-border);
    border-radius: 6px;
    background: #fff;
    color: var(--padd-ink);
    font: 700 15px/1 var(--padd-sans);
    cursor: pointer;
}
.pad-sitehead a:focus-visible,
.pad-sitehead-toggle:focus-visible { outline: 2px solid var(--padd-ink); outline-offset: 2px; }

@media (max-width: 900px) {
    .pad-sitehead-inner { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
    .pad-sitehead-toggle { display: inline-flex; }
    .pad-sitehead-nav { display: none; width: 100%; }
    .pad-sitehead.is-open .pad-sitehead-nav { display: block; }
    .pad-sitehead-menu { flex-direction: column; align-items: stretch; padding: 6px 0 4px; }
    .pad-sitehead-menu .sub-menu,
    .pad-sitehead-menu .children {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 14px !important;
    }
    .pad-sitehead-name { font-size: 20px; }
    .pad-sitehead-tagline { display: none; }
}

/* Pied de page intégré */
.pad-sitefoot {
    border-top: 1px solid var(--padd-border);
    background: var(--padd-soft);
    font-family: var(--padd-sans);
    color: var(--padd-muted);
    font-size: 14px;
}
.pad-sitefoot-inner {
    max-width: var(--pad-max, 1480px);
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
}
.pad-sitefoot a { color: var(--padd-ink) !important; text-decoration: none !important; font-weight: 600; }
.pad-sitefoot-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
