/*
Theme Name: Peintures Déco
Theme URI: https://peintures-deco.fr
Author: Netlinqueen
Author URI: https://netlinqueen.com
Description: Thème Bold & Tiles pour Peintures Déco — Maison, Décoration, Travaux, Immobilier. Archetype D.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: peintures-deco
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --pd-light:      #F5F3EF;
    --pd-white:      #FFFFFF;
    --pd-dark:       #111111;
    --pd-red:        #C23B22;
    --pd-red-dk:     #9E2D18;
    --pd-muted:      #7D7268;
    --pd-border:     #E2DDD8;

    --pd-font-display: 'Fraunces', Georgia, serif;
    --pd-font-body:    'Nunito Sans', system-ui, sans-serif;

    --pd-radius:     6px;
    --pd-radius-lg:  14px;
    --pd-max:        1280px;
    --pd-gutter:     clamp(20px, 5vw, 72px);
    --hh:            72px;
    --pd-transition: 0.22s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--pd-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--pd-dark);
    background-color: var(--pd-light);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
    font-family: var(--pd-font-display);
    line-height: 1.1;
    font-weight: 700;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.pd-wrap {
    width: 100%;
    max-width: var(--pd-max);
    margin: 0 auto;
    padding-left: var(--pd-gutter);
    padding-right: var(--pd-gutter);
}

/* ============================================================
   HEADER
   ============================================================ */
.pd-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--hh);
    display: flex;
    align-items: center;
    transition: background-color var(--pd-transition), box-shadow var(--pd-transition);
}

.pd-header.is-scrolled {
    background-color: var(--pd-white);
    box-shadow: 0 1px 0 var(--pd-border);
}

.pd-header-inner {
    width: 100%;
    max-width: var(--pd-max);
    margin: 0 auto;
    padding: 0 var(--pd-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.pd-logo {
    display: block;
    color: var(--pd-white);
    transition: color var(--pd-transition);
    flex-shrink: 0;
}

.pd-header.is-scrolled .pd-logo { color: var(--pd-dark); }

/* Pages avec hero sombre : logo blanc */
.single .pd-logo,
.category .pd-logo,
.tag .pd-logo,
.page .pd-logo {
    color: var(--pd-white);
}
.single .pd-header.is-scrolled .pd-logo,
.category .pd-header.is-scrolled .pd-logo,
.tag .pd-header.is-scrolled .pd-logo,
.page .pd-header.is-scrolled .pd-logo {
    color: var(--pd-dark);
}

/* NAV */
.pd-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pd-nav-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pd-nav-list li {
    list-style: none;
}

.pd-nav a {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: var(--pd-radius);
    color: rgba(255,255,255,0.85);
    transition: color var(--pd-transition), background-color var(--pd-transition);
}

.pd-header.is-scrolled .pd-nav a {
    color: var(--pd-muted);
}

.pd-nav a:hover,
.pd-header.is-scrolled .pd-nav a:hover {
    color: var(--pd-red);
    background-color: rgba(194,59,34,0.06);
}

.pd-nav a.pd-nav-contact {
    color: var(--pd-white);
    background-color: var(--pd-red);
    padding: 8px 20px;
    border-radius: var(--pd-radius);
}

.pd-nav a.pd-nav-contact:hover {
    background-color: var(--pd-red-dk);
    color: var(--pd-white);
}

/* BURGER */
.pd-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    color: var(--pd-white);
    transition: color var(--pd-transition);
}

.pd-header.is-scrolled .pd-burger,
.single .pd-header.is-scrolled .pd-burger,
.category .pd-header.is-scrolled .pd-burger,
.tag .pd-header.is-scrolled .pd-burger,
.page .pd-header.is-scrolled .pd-burger {
    color: var(--pd-dark);
}

.pd-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* MOBILE NAV OVERLAY */
.pd-nav-mobile {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: var(--pd-dark);
    flex-direction: column;
    padding: 0 var(--pd-gutter) 40px;
    gap: 8px;
}

.pd-nav-mobile.is-open { display: flex; }

/* Topbar du menu mobile : logo + croix */
.pd-nav-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
    flex-shrink: 0;
}

.pd-nav-mobile-logo {
    color: var(--pd-white);
    display: flex;
    align-items: center;
}

/* Repositionner le bouton fermeture dans la topbar */
.pd-nav-mobile .pd-close {
    position: static;
    color: var(--pd-white);
    opacity: 0.6;
    font-size: 2rem;
    line-height: 1;
    padding: 4px;
}

.pd-nav-mobile .pd-close:hover { opacity: 1; }

.pd-nav-mobile a {
    font-family: var(--pd-font-display);
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--pd-white);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color var(--pd-transition);
}

.pd-nav-mobile a:hover { color: var(--pd-red); }

.pd-nav-mobile a.pd-nav-contact {
    border: none;
    color: var(--pd-red);
    margin-top: 16px;
}

/* .pd-close géré dans .pd-nav-mobile-top */

/* Single/catégorie/page : liens nav blancs au dessus du hero */
.single .pd-header:not(.is-scrolled) .pd-nav a,
.category .pd-header:not(.is-scrolled) .pd-nav a,
.tag .pd-header:not(.is-scrolled) .pd-nav a,
.page .pd-header:not(.is-scrolled) .pd-nav a {
    color: rgba(255,255,255,0.85);
}

/* ── Responsive nav ──
   > 860px : nav desktop horizontale, burger caché
   ≤ 860px : nav cachée, burger visible, overlay mobile actif
   ============================================================ */
@media (max-width: 860px) {
    /* Nav desktop → masquée */
    .pd-nav { display: none; }

    /* Burger → visible */
    .pd-burger { display: flex; }

    /* Désactiver backdrop-filter (crée un stacking context qui casse position:fixed) */
    .pd-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .pd-header-inner { gap: 16px; }
}

@media (max-width: 480px) {
    .pd-header-inner { gap: 12px; }
}

/* ============================================================
   BOUTONS
   ============================================================ */
.pd-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background-color: var(--pd-red);
    color: var(--pd-white);
    font-family: var(--pd-font-body);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--pd-radius);
    transition: background-color var(--pd-transition), transform var(--pd-transition);
}

.pd-btn:hover {
    background-color: var(--pd-red-dk);
    transform: translateY(-1px);
}

.pd-btn--ghost {
    background-color: transparent;
    color: var(--pd-white);
    border: 2px solid rgba(255,255,255,0.6);
}

.pd-btn--ghost:hover {
    background-color: var(--pd-white);
    color: var(--pd-dark);
    border-color: var(--pd-white);
}

/* ============================================================
   HERO HOMEPAGE — IMAGE FIXE + TITRE MASSIF (ARCHETYPE D)
   ============================================================ */
.pd-hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    background-color: var(--pd-dark);
}

.pd-hero-bg {
    position: absolute;
    inset: 0;
}

.pd-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.pd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(17,17,17,0.96) 0%,
        rgba(17,17,17,0.5) 50%,
        rgba(17,17,17,0.15) 100%
    );
}

.pd-hero-body {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: var(--pd-max);
    margin: 0 auto;
    width: 100%;
    padding-left: var(--pd-gutter);
    padding-right: var(--pd-gutter);
}

.pd-hero-top {
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding-bottom: 48px;
    padding-top: var(--hh); /* compenser le header fixe */
}

.pd-hero-eyebrow {
    font-family: var(--pd-font-body);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--pd-red);
    margin-bottom: 20px;
}

.pd-hero-title {
    font-family: var(--pd-font-display);
    font-size: clamp(3.2rem, 9vw, 9.5rem);
    font-weight: 900;
    line-height: 0.92;
    color: var(--pd-white);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    max-width: 1000px;
    margin-bottom: 36px;
}

.pd-hero-title em {
    font-style: italic;
    color: var(--pd-red);
}

.pd-hero-sub {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(255,255,255,0.65);
    max-width: 540px;
    line-height: 1.65;
    margin-bottom: 32px;
}

.pd-hero-cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pd-hero-themes {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pd-hero-themes span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
}

/* STATS BAR */
.pd-statsbar {
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: stretch;
}

.pd-stat {
    flex: 1;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.pd-stat:last-child { border-right: none; }

.pd-stat-n {
    font-family: var(--pd-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--pd-red);
    line-height: 1;
}

.pd-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

@media (max-width: 640px) {
    .pd-hero-title { font-size: clamp(2.4rem, 12vw, 4rem); }
    .pd-statsbar { flex-wrap: wrap; }
    .pd-stat { flex-basis: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
}

/* ============================================================
   STREAM D'ARTICLES HOMEPAGE — CARTES ALTERNÉES (ARCHETYPE D)
   ============================================================ */
.pd-cards-section {
    padding: 80px 0 0;
    background-color: var(--pd-white);
}

.pd-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 40px;
    border-bottom: 3px solid var(--pd-dark);
    margin-bottom: 0;
}

.pd-section-head h2 {
    font-family: var(--pd-font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.pd-section-count {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pd-muted);
}

/* Carte featured (1ère) */
.pd-card-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
    border-bottom: 1px solid var(--pd-border);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.pd-card-featured:hover .pd-card-img img {
    transform: scale(1.04);
}

.pd-card-featured .pd-card-img {
    position: relative;
    overflow: hidden;
    background-color: var(--pd-border);
}

.pd-card-featured .pd-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pd-card-featured .pd-card-body {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    background-color: var(--pd-white);
}

.pd-card-cat {
    font-family: var(--pd-font-body);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pd-red);
}

.pd-card-title {
    font-family: var(--pd-font-display);
    font-weight: 700;
    color: var(--pd-dark);
    line-height: 1.2;
    transition: color var(--pd-transition);
}

.pd-card-featured .pd-card-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.pd-card-featured:hover .pd-card-title { color: var(--pd-red); }

.pd-card-excerpt {
    font-size: 0.95rem;
    color: var(--pd-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--pd-muted);
    font-weight: 600;
    margin-top: 8px;
}

.pd-card-meta::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--pd-red);
    align-self: center;
}

/* Cartes standard alternées */
.pd-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
    border-bottom: 1px solid var(--pd-border);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: background-color var(--pd-transition);
}

.pd-card:hover { background-color: var(--pd-light); }

/* Alternance : pair → image à droite */
.pd-card:nth-child(even) .pd-card-img { order: 2; }
.pd-card:nth-child(even) .pd-card-body { order: 1; }

.pd-card .pd-card-img {
    position: relative;
    overflow: hidden;
    background-color: var(--pd-border);
}

.pd-card .pd-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pd-card:hover .pd-card-img img { transform: scale(1.04); }

.pd-card .pd-card-body {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.pd-card .pd-card-title {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
}

.pd-card:hover .pd-card-title { color: var(--pd-red); }

/* Ligne "voir plus" */
.pd-cards-more {
    padding: 40px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .pd-card-featured,
    .pd-card {
        grid-template-columns: 1fr;
    }

    .pd-card-featured .pd-card-img { min-height: 240px; }
    .pd-card .pd-card-img { min-height: 200px; }

    .pd-card:nth-child(even) .pd-card-img { order: 0; }
    .pd-card:nth-child(even) .pd-card-body { order: 0; }

    .pd-card-featured .pd-card-body,
    .pd-card .pd-card-body { padding: 28px 24px; }
}

/* ============================================================
   GRILLE ARTICLES HOMEPAGE — 3 colonnes
   ============================================================ */
.pd-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 0;
}

.pd-home-card {
    display: flex;
    flex-direction: column;
    background-color: var(--pd-light);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: background-color var(--pd-transition);
}

.pd-home-card:hover { background-color: var(--pd-white); }

.pd-home-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: var(--pd-border);
    flex-shrink: 0;
}

.pd-home-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pd-home-card:hover .pd-home-card-img img { transform: scale(1.05); }

.pd-home-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.pd-home-card-title {
    font-family: var(--pd-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pd-dark);
    line-height: 1.3;
    transition: color var(--pd-transition);
}

.pd-home-card:hover .pd-home-card-title { color: var(--pd-red); }

@media (max-width: 900px) {
    .pd-home-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .pd-home-grid { grid-template-columns: 1fr; }
    .pd-home-card-img { height: 200px; }
}

/* ============================================================
   PERSONA BANDE PLEINE LARGEUR (ARCHETYPE D)
   ============================================================ */
.pd-persona-band {
    background-color: var(--pd-dark);
    overflow: hidden;
    position: relative;
}

.pd-persona-inner {
    max-width: var(--pd-max);
    margin: 0 auto;
    padding: 80px var(--pd-gutter);
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: end;
}

.pd-persona-text {
    padding-bottom: 0;
}

.pd-persona-eyebrow {
    font-family: var(--pd-font-body);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--pd-red);
    margin-bottom: 16px;
}

.pd-persona-name {
    font-family: var(--pd-font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--pd-white);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.pd-persona-role {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.45);
    font-style: italic;
    margin-bottom: 28px;
}

.pd-persona-bio {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    margin-bottom: 32px;
}

.pd-persona-bio p + p { margin-top: 12px; }

.pd-persona-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-persona-badges span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
}

.pd-persona-photo {
    position: relative;
    align-self: flex-end;
}

.pd-persona-photo img {
    width: 100%;
    max-width: 420px;
    height: 520px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: var(--pd-radius-lg) var(--pd-radius-lg) 0 0;
    filter: grayscale(15%);
}

/* Accent rouge décoratif derrière la photo */
.pd-persona-photo::before {
    content: '';
    position: absolute;
    bottom: 0; right: -16px;
    width: 80px; height: 80px;
    background-color: var(--pd-red);
    border-radius: var(--pd-radius);
    z-index: 0;
}

.pd-persona-photo img { position: relative; z-index: 1; }

@media (max-width: 900px) {
    .pd-persona-inner {
        grid-template-columns: 1fr;
        padding-bottom: 0;
    }

    .pd-persona-photo { order: -1; }
    .pd-persona-photo img { height: 300px; border-radius: var(--pd-radius-lg); }
    .pd-persona-photo::before { display: none; }
}

/* ============================================================
   CATÉGORIES — GRILLE 2×2 IMAGE DE FOND (ARCHETYPE D)
   ============================================================ */
.pd-cats-section {
    padding: 80px 0 96px;
    background-color: var(--pd-light);
}

.pd-cats-eyebrow {
    font-family: var(--pd-font-body);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--pd-red);
    margin-bottom: 12px;
}

.pd-cats-title {
    font-family: var(--pd-font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--pd-dark);
    margin-bottom: 40px;
}

.pd-cats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
}

.pd-cat-tile {
    position: relative;
    height: 360px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.pd-cat-tile-bg {
    position: absolute;
    inset: 0;
}

.pd-cat-tile-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pd-cat-tile:hover .pd-cat-tile-bg img { transform: scale(1.07); }

.pd-cat-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(17,17,17,0.92) 0%,
        rgba(17,17,17,0.35) 60%,
        rgba(17,17,17,0.1) 100%
    );
    transition: background var(--pd-transition);
}

.pd-cat-tile:hover .pd-cat-tile-overlay {
    background: linear-gradient(
        to top,
        rgba(194,59,34,0.88) 0%,
        rgba(17,17,17,0.5) 60%,
        rgba(17,17,17,0.15) 100%
    );
}

.pd-cat-tile-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 32px 36px;
    color: var(--pd-white);
}

.pd-cat-tile-name {
    font-family: var(--pd-font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1;
    margin-bottom: 8px;
}

.pd-cat-tile-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin-bottom: 14px;
}

.pd-cat-tile-count {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

@media (max-width: 640px) {
    .pd-cats-grid { grid-template-columns: 1fr; }
    .pd-cat-tile { height: 280px; }
}

/* ============================================================
   HERO ARCHIVE
   ============================================================ */
.pd-arch-hero {
    position: relative;
    height: 440px;
    overflow: hidden;
    background-color: var(--pd-dark);
    /* Pas de margin-top — header transparent recouvre le hero */
}

.pd-arch-hero-bg { position: absolute; inset: 0; }

.pd-arch-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.pd-arch-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,17,17,0.9) 0%, rgba(17,17,17,0.4) 100%);
}

.pd-arch-hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--pd-gutter);
    padding-top: var(--hh); /* compenser le header — pas de margin-top */
    max-width: var(--pd-max);
    margin: 0 auto;
    padding-bottom: 48px;
}

.pd-arch-eyebrow {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--pd-red);
    margin-bottom: 12px;
}

.pd-arch-title {
    font-family: var(--pd-font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--pd-white);
    margin-bottom: 12px;
}

.pd-arch-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.pd-arch-desc p { color: rgba(255,255,255,0.65); }

.pd-arch-count {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

/* ============================================================
   GRILLE ARCHIVE
   ============================================================ */
.pd-archive-section {
    padding: 72px 0 80px;
    background-color: var(--pd-white);
}

.pd-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.pd-arc-card {
    display: flex;
    flex-direction: column;
    background-color: var(--pd-light);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: background-color var(--pd-transition);
}

.pd-arc-card:hover { background-color: var(--pd-white); }

.pd-arc-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: var(--pd-border);
}

.pd-arc-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pd-arc-card:hover .pd-arc-card-img img { transform: scale(1.05); }

.pd-arc-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.pd-arc-cat {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pd-red);
}

.pd-arc-title {
    font-family: var(--pd-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pd-dark);
    line-height: 1.3;
    transition: color var(--pd-transition);
}

.pd-arc-card:hover .pd-arc-title { color: var(--pd-red); }

.pd-arc-meta {
    margin-top: auto;
    padding-top: 12px;
    font-size: 0.75rem;
    color: var(--pd-muted);
    font-weight: 600;
    display: flex;
    gap: 12px;
}

@media (max-width: 900px) {
    .pd-archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .pd-archive-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOC SEO ARCHIVE
   ============================================================ */
.pd-seo-section {
    padding: 80px 0;
    background-color: var(--pd-light);
    border-top: 1px solid var(--pd-border);
}

.pd-seo-inner {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 64px;
    align-items: center;
}

.pd-seo-title {
    font-family: var(--pd-font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--pd-dark);
    margin-bottom: 20px;
}

.pd-seo-intro {
    font-size: 0.95rem;
    color: var(--pd-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}

.pd-seo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.pd-seo-list li {
    font-size: 0.92rem;
    color: var(--pd-dark);
    padding-left: 20px;
    position: relative;
    line-height: 1.55;
}

.pd-seo-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--pd-red);
    font-family: monospace;
}

.pd-seo-outro {
    font-size: 0.92rem;
    color: var(--pd-muted);
    font-style: italic;
    line-height: 1.65;
}

.pd-seo-img-wrap {
    border-radius: var(--pd-radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(17,17,17,0.12);
    transition: transform var(--pd-transition);
}

.pd-seo-img-wrap:hover { transform: scale(1.02); }

.pd-seo-img-wrap img {
    width: 100%; height: 340px;
    object-fit: cover;
}

@media (max-width: 860px) {
    .pd-seo-inner {
        grid-template-columns: 1fr;
    }
    .pd-seo-img-wrap { order: -1; }
    .pd-seo-img-wrap img { height: 240px; }
}

/* ============================================================
   ARTICLE SINGLE — POST HERO
   ============================================================ */
.pd-post-hero {
    position: relative;
    height: 560px;
    overflow: hidden;
    background-color: var(--pd-dark);
}

.pd-post-hero-bg { position: absolute; inset: 0; }

.pd-post-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.pd-post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.3) 100%);
}

.pd-post-hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--pd-gutter);
    padding-top: var(--hh);
    padding-bottom: 48px;
    max-width: var(--pd-max);
    margin: 0 auto;
}

.pd-breadcrumb {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.pd-breadcrumb a { color: rgba(255,255,255,0.45); transition: color var(--pd-transition); }
.pd-breadcrumb a:hover { color: var(--pd-red); }
.pd-breadcrumb span { color: rgba(255,255,255,0.25); }

.pd-post-cat-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pd-white);
    background-color: var(--pd-red);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.pd-post-title {
    font-family: var(--pd-font-display);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--pd-white);
    line-height: 1;
    max-width: 820px;
    margin-bottom: 20px;
}

.pd-post-meta {
    display: flex;
    gap: 20px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================================
   CONTENU ARTICLE
   ============================================================ */
.pd-post-content-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 56px var(--pd-gutter) 80px;
}

.pd-featured-img {
    margin-bottom: 48px;
    border-radius: var(--pd-radius-lg);
    overflow: hidden;
}

.pd-featured-img img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.pd-ai-summary {
    background: rgba(194,59,34,0.06);
    border-left: 3px solid var(--pd-red);
    border-radius: var(--pd-radius);
    padding: 24px 28px;
    margin-bottom: 40px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--pd-dark);
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--pd-dark);
}

.entry-content h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    margin: 2em 0 0.6em;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.entry-content h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    margin: 1.6em 0 0.5em;
}

.entry-content p { margin-bottom: 1.3em; }

.entry-content ul, .entry-content ol {
    margin: 0 0 1.3em 1.5em;
    list-style: disc;
}

.entry-content li { margin-bottom: 0.4em; }

.entry-content a { color: var(--pd-red); text-decoration: underline; }

.entry-content img {
    border-radius: var(--pd-radius);
    margin: 1.5em 0;
}

.entry-content blockquote {
    border-left: 3px solid var(--pd-red);
    margin: 1.5em 0;
    padding: 16px 24px;
    font-style: italic;
    color: var(--pd-muted);
    background: rgba(194,59,34,0.04);
}

/* Tags */
.pd-post-tags {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--pd-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border: 1.5px solid var(--pd-border);
    border-radius: 100px;
    color: var(--pd-muted);
    transition: border-color var(--pd-transition), color var(--pd-transition);
}

.pd-tag:hover {
    border-color: var(--pd-red);
    color: var(--pd-red);
}

/* ============================================================
   BLOC AUTEUR
   ============================================================ */
.pd-author {
    background-color: var(--pd-dark);
    margin: 0;
    padding: 56px var(--pd-gutter);
}

.pd-author-inner {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.pd-author-photo {
    width: 88px;
    height: 88px;
    border-radius: var(--pd-radius-lg);
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--pd-red);
}

.pd-author-info { flex: 1; }

.pd-author-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pd-red);
    margin-bottom: 4px;
}

.pd-author-name {
    font-family: var(--pd-font-display);
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--pd-white);
    margin-bottom: 4px;
}

.pd-author-role {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    font-style: italic;
    margin-bottom: 14px;
}

.pd-author-bio {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
}

.pd-author-bio p { margin-bottom: 0.5em; }

@media (max-width: 600px) {
    .pd-author-inner { flex-direction: column; }
}

/* ============================================================
   ARTICLES SIMILAIRES
   ============================================================ */
.pd-related {
    padding: 72px 0 80px;
    background-color: var(--pd-light);
}

.pd-related-title {
    font-family: var(--pd-font-display);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--pd-dark);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--pd-dark);
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.pd-rel-card {
    display: flex;
    flex-direction: column;
    background-color: var(--pd-white);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: background-color var(--pd-transition);
}

.pd-rel-card:hover { background-color: var(--pd-dark); }

.pd-rel-img {
    height: 180px;
    overflow: hidden;
    background-color: var(--pd-border);
}

.pd-rel-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.pd-rel-card:hover .pd-rel-img img { transform: scale(1.06); }

.pd-rel-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.pd-rel-cat {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pd-red);
}

.pd-rel-title {
    font-family: var(--pd-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pd-dark);
    line-height: 1.3;
    transition: color var(--pd-transition);
}

.pd-rel-card:hover .pd-rel-title { color: var(--pd-white); }
.pd-rel-card:hover .pd-rel-cat { color: rgba(255,255,255,0.5); }

@media (max-width: 640px) {
    .pd-related-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGES STATIQUES — MINI HERO
   ============================================================ */
.pd-page-hero {
    position: relative;
    height: 360px;
    overflow: hidden;
    background-color: var(--pd-dark);
}

.pd-page-hero-bg { position: absolute; inset: 0; }

.pd-page-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.pd-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,17,17,0.88) 0%, rgba(17,17,17,0.35) 100%);
}

.pd-page-hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 0 var(--pd-gutter);
    padding-top: var(--hh);
    padding-bottom: 48px;
    max-width: var(--pd-max);
    margin: 0 auto;
}

.pd-page-hero-title {
    font-family: var(--pd-font-display);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--pd-white);
    line-height: 1;
    margin-bottom: 16px;
}

/* ============================================================
   PAGE CONTACT
   ============================================================ */
.pd-contact-layout {
    padding: 72px 0 96px;
    background-color: var(--pd-white);
}

.pd-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
}

.pd-contact-intro-title {
    font-family: var(--pd-font-display);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.pd-contact-intro-text {
    font-size: 0.95rem;
    color: var(--pd-muted);
    line-height: 1.75;
    margin-bottom: 32px;
}

.pd-contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-contact-detail {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--pd-dark);
}

.pd-contact-detail strong {
    font-weight: 700;
    min-width: 80px;
    color: var(--pd-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-top: 2px;
}

.pd-form-title {
    font-family: var(--pd-font-display);
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* CF7 styles */
.wpcf7-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pd-dark);
}

.wpcf7-form br { display: none; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--pd-border);
    border-radius: var(--pd-radius);
    font-family: var(--pd-font-body);
    font-size: 0.95rem;
    color: var(--pd-dark);
    background: var(--pd-light);
    transition: border-color var(--pd-transition);
    outline: none;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: var(--pd-red);
    background: var(--pd-white);
}

.wpcf7-form textarea { min-height: 140px; resize: vertical; }

.wpcf7-form .wpcf7-submit {
    width: 100%;
    padding: 14px 28px;
    background-color: var(--pd-red);
    color: var(--pd-white);
    font-family: var(--pd-font-body);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--pd-radius);
    cursor: pointer;
    transition: background-color var(--pd-transition);
}

.wpcf7-form .wpcf7-submit:hover { background-color: var(--pd-red-dk); }

@media (max-width: 768px) {
    .pd-contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================================
   PAGE MENTIONS LÉGALES / PLAN DU SITE
   ============================================================ */
.pd-legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px var(--pd-gutter) 96px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--pd-dark);
}

.pd-legal-content h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 2em 0 0.8em;
}

.pd-legal-content p { margin-bottom: 1em; }

.pd-sitemap-cats { margin-bottom: 48px; }

.pd-sitemap-cat-title {
    font-family: var(--pd-font-display);
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--pd-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pd-red);
}

.pd-sitemap-posts { display: flex; flex-direction: column; gap: 8px; }

.pd-sitemap-posts a {
    font-size: 0.92rem;
    color: var(--pd-dark);
    transition: color var(--pd-transition);
}

.pd-sitemap-posts a:hover { color: var(--pd-red); }

/* ============================================================
   FOOTER — SOMBRE, 3 COLONNES + NEWSLETTER (ARCHETYPE D)
   ============================================================ */
.pd-footer {
    background-color: var(--pd-dark);
    color: rgba(255,255,255,0.65);
    padding: 72px 0 0;
}

.pd-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pd-footer-logo {
    color: var(--pd-white);
    display: block;
    margin-bottom: 16px;
}

.pd-footer-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
}

.pd-footer-col-title {
    font-family: var(--pd-font-body);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pd-red);
    margin-bottom: 20px;
}

.pd-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pd-footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    transition: color var(--pd-transition);
}

.pd-footer-links a:hover { color: var(--pd-white); }

/* Newsletter */
.pd-newsletter-text {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
    margin-bottom: 20px;
}

.pd-newsletter-form {
    display: flex;
    gap: 0;
}

.pd-newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    background-color: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-right: none;
    border-radius: var(--pd-radius) 0 0 var(--pd-radius);
    font-family: var(--pd-font-body);
    font-size: 0.88rem;
    color: var(--pd-white);
    outline: none;
    transition: border-color var(--pd-transition);
}

.pd-newsletter-form input:focus { border-color: var(--pd-red); }
.pd-newsletter-form input::placeholder { color: rgba(255,255,255,0.25); }

.pd-newsletter-form button {
    padding: 12px 20px;
    background-color: var(--pd-red);
    color: var(--pd-white);
    font-family: var(--pd-font-body);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0 var(--pd-radius) var(--pd-radius) 0;
    cursor: pointer;
    transition: background-color var(--pd-transition);
    white-space: nowrap;
}

.pd-newsletter-form button:hover { background-color: var(--pd-red-dk); }

.pd-footer-bar {
    padding: 20px 0;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
}

@media (max-width: 900px) {
    .pd-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .pd-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .pd-footer-links {
        align-items: center;
    }
    .pd-footer-logo {
        display: flex;
        justify-content: center;
    }
    .pd-newsletter-form { flex-direction: column; }
    .pd-newsletter-form input[type="email"] {
        border-right: 1.5px solid rgba(255,255,255,0.12);
        border-radius: var(--pd-radius);
    }
    .pd-newsletter-form button { border-radius: var(--pd-radius); }
}
