/* ==========================================================================
   Hill Camp v5
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #111;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --------------------------------------------------------------------------
   HEADER — non sticky, fond noir complet (logo + nav)
   -------------------------------------------------------------------------- */
.site-header {
    /* position: sticky retiré — header fixe au top uniquement */
    position: relative;
    z-index: 100;
}

.site-header__top { background: #000; text-align: center; }

/* Logo pages intérieures — 2× plus grand que v4 (44px → 88px) */
.site-logo { display: inline-block; padding: 14px 24px 12px; }
.site-logo img { height: 88px; width: auto; display: inline-block; }
.site-logo .logo-text {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 6rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1;
    font-style: italic;
    display: inline-block;
}

/* Logo GRAND homepage */
.home .site-logo { padding: 36px 24px 28px; }
.home .site-logo img { height: 360px; }
.home .site-logo .logo-text { font-size: 22rem; }

/* Nav — fond noir, texte blanc */
.site-header__nav {
    background: #000;
    border-bottom: none;
}
.primary-nav { display: flex; justify-content: center; }
.primary-nav ul { display: flex; }
.primary-nav ul li a {
    display: block;
    padding: 14px 24px;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
    transition: opacity 0.15s;
}
.primary-nav ul li a:hover { opacity: 0.55; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

/* --------------------------------------------------------------------------
   SECTION LABELS
   -------------------------------------------------------------------------- */
.section-label {
    display: block;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #111;
    border-top: 1px solid #111;
    padding-top: 8px;
    margin-bottom: 20px;
}
.section-label a { color: inherit; }
.section-label a:hover { opacity: 0.5; }

/* --------------------------------------------------------------------------
   CATEGORY BADGE
   -------------------------------------------------------------------------- */
.post-category-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #111;
    color: #fff;
    padding: 2px 6px;
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   HOMEPAGE — LATEST HERO
   -------------------------------------------------------------------------- */
.latest-section { padding: 28px 0 36px; }

.latest-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0 32px;
}

.article-hero .post-thumbnail {
    display: block; overflow: hidden; aspect-ratio: 16/11; margin-bottom: 12px;
}
.article-hero .post-thumbnail img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease;
}
.article-hero .post-thumbnail:hover img { transform: scale(1.03); }
.article-hero h2 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.article-hero h2 a:hover { opacity: 0.6; }
.article-hero .post-excerpt { font-size: clamp(0.95rem, 1.2vw, 1.2rem); color: #444; line-height: 1.4; margin-bottom: 8px; }
.article-hero .post-meta { font-size: 0.68rem; color: #999; }

/* Grille 2×2 droite */
.latest-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-content: start;
}
.latest-list .list-item .post-thumbnail {
    display: block; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 8px;
}
.latest-list .list-item .post-thumbnail img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease;
}
.latest-list .list-item .post-thumbnail:hover img { transform: scale(1.05); }
.latest-list .list-item h3 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.latest-list .list-item h3 a:hover { opacity: 0.6; }
.latest-list .list-item .post-meta { font-size: 0.68rem; color: #999; }

/* --------------------------------------------------------------------------
   HOMEPAGE — DISCIPLINE SECTIONS
   -------------------------------------------------------------------------- */
.discipline-section { padding: 28px 0 36px; }

.discipline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
}
.discipline-card .post-thumbnail {
    display: block; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 10px;
}
.discipline-card .post-thumbnail img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease;
}
.discipline-card .post-thumbnail:hover img { transform: scale(1.04); }
.discipline-card h3 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 5px;
}
.discipline-card h3 a:hover { opacity: 0.6; }
.discipline-card .post-meta { font-size: 0.68rem; color: #999; }

/* --------------------------------------------------------------------------
   HOMEPAGE — CATEGORIES
   -------------------------------------------------------------------------- */
.categories-block { padding: 28px 0 52px; }
.categories-big-text {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -0.035em;
    color: #111;
}
.categories-big-text a { color: inherit; transition: opacity 0.15s; }
.categories-big-text a:hover { opacity: 0.35; }

/* --------------------------------------------------------------------------
   ARCHIVE / CATEGORY
   -------------------------------------------------------------------------- */
.archive-header { padding: 28px 0 24px; }
.archive-title {
    display: block;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    border-top: 1px solid #111; padding-top: 8px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 20px;
    padding-bottom: 0;
}
.archive-card .post-thumbnail {
    display: block; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 8px;
}
.archive-card .post-thumbnail img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease;
}
.archive-card .post-thumbnail:hover img { transform: scale(1.04); }
.archive-card .post-date { font-size: 0.68rem; color: #999; display: block; margin-bottom: 5px; }
.archive-card h2 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 5px;
}
.archive-card h2 a:hover { opacity: 0.6; }
.archive-card .post-author { font-size: 0.68rem; color: #999; }

.archive-description-block { padding: 36px 0; }
.archive-description-label {
    display: block;
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
    border-top: 1px solid #111; padding-top: 8px; margin-bottom: 20px;
}
.archive-description-block p {
    font-size: 1.8rem;
    line-height: 1.4;
    color: #111;
    max-width: 100%;
    font-weight: 400;
}

.pagination {
    display: flex; align-items: center; gap: 4px;
    padding: 16px 0 32px;
}
.pagination .page-numbers {
    display: flex; align-items: center; justify-content: center;
    min-width: 28px; height: 28px; padding: 0 4px;
    font-size: 0.85rem; color: #111; transition: opacity 0.15s;
}
.pagination .page-numbers:hover { opacity: 0.5; }
.pagination .page-numbers.current { font-weight: 700; text-decoration: underline; }
.pagination .next.page-numbers { margin-left: auto; font-weight: 500; }

/* --------------------------------------------------------------------------
   SINGLE POST
   -------------------------------------------------------------------------- */
.single-post .site-main { padding-bottom: 60px; }

/* Image hero — largeur limitée (pas pleine largeur), ratio 4/3, fond noir */
.post-hero-image {
    background: #000;
    width: 100%;
    padding: 32px 0 0;
}
.post-hero-image img {
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Header noir — colonne 860px */
.post-header {
    background: #000;
    color: #fff;
    padding: 28px 0 32px;
}
.post-header-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 40px;
}

.post-header .post-category-badge { background: #fff; color: #000; margin-bottom: 14px; }

/* Tags en haut de l'article — dans le header noir */
.post-header-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.post-header-tags a {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid #444;
    padding: 3px 8px;
    color: #ccc;
    transition: all 0.15s;
}
.post-header-tags a:hover { border-color: #fff; color: #fff; }

/* H1 — 1.5× plus grand : clamp(2.55rem, 4.5vw, 3.9rem) */
.post-header h1 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(2.55rem, 4.5vw, 3.9rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 18px;
}

.post-header .post-excerpt-intro {
    font-size: 1rem;
    color: #999;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 680px;
}

.post-header .post-meta-full {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem; color: #666; flex-wrap: wrap;
}
.post-header .post-meta-full a { color: #888; }
.post-header .post-meta-full .sep { color: #333; }

/* Contenu article — 860px, aligné avec le header */
.post-content {
    max-width: 860px;
    margin: 36px auto 0;
    padding: 0 40px;
}

.post-content p {
    font-size: 1.3rem; line-height: 1.4; color: #1a1a1a; margin-bottom: 1.5em;
}
.post-content h2 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600; letter-spacing: -0.025em;
    line-height: 1.12; margin: 2.4em 0 0.8em; color: #111;
}
.post-content h3 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 700; letter-spacing: -0.015em;
    line-height: 1.2; margin: 2em 0 0.7em; color: #111;
}
.post-content ul, .post-content ol { margin-bottom: 1.5em; padding-left: 1.5em; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { font-size: 1.1rem; line-height: 1.75; margin-bottom: 0.4em; color: #1a1a1a; }
.post-content blockquote {
    border-left: 3px solid #111; padding: 14px 0 14px 24px;
    margin: 2em 0; font-size: 1.15rem; font-style: italic; color: #444;
}
.post-content img { width: 100%; height: auto; margin: 2em 0; }
.post-content figcaption, .post-content .wp-caption-text {
    font-size: 0.75rem; color: #aaa; text-align: center;
    margin-top: -1.6em; margin-bottom: 2em;
}

/* Embeds Instagram */
.post-content .wp-block-embed,
.post-content .wp-block-embed__wrapper,
.post-content figure.wp-block-embed { margin: 2em 0; max-width: 100%; }
.post-content .wp-block-embed-instagram .wp-block-embed__wrapper { display: flex; justify-content: center; }
.post-content .wp-block-embed-instagram iframe,
.post-content .wp-block-embed__wrapper iframe { max-width: 100%; }

/* Tables */
.post-content table, .wp-block-table table {
    width: 100%; border-collapse: collapse; margin: 2em 0;
    border: 2px solid #111;
    font-size: 0.9rem; font-family: 'Instrument Sans', sans-serif;
}
.post-content table th, .wp-block-table table th {
    background: #111; color: #fff; padding: 10px 14px;
    text-align: left; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.03em;
}
.post-content table td, .wp-block-table table td {
    padding: 10px 14px; border-bottom: 1px solid #e8e8e8; vertical-align: top;
}
.post-content table tr:last-child td, .wp-block-table table tr:last-child td { border-bottom: none; }
.post-content table tr:nth-child(even) td, .wp-block-table table tr:nth-child(even) td { background: #f8f8f8; }
.has-small-font-size table, .wp-block-table.has-small-font-size table { font-size: 0.8rem; }

/* Tags bas d'article */
.post-tags {
    max-width: 860px; margin: 36px auto 0; padding: 20px 40px 0;
    border-top: 1px solid #e0e0e0; display: flex; flex-wrap: wrap; gap: 6px;
}
.post-tags a {
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    border: 1px solid #ccc; padding: 5px 10px; color: #555; transition: all 0.15s;
}
.post-tags a:hover { background: #111; color: #fff; border-color: #111; }

/* --------------------------------------------------------------------------
   RELATED POSTS — 4 colonnes pleine largeur
   -------------------------------------------------------------------------- */
.related-posts {
    margin: 56px auto 0;
    padding: 28px 40px 0;
    max-width: 1520px;
}
.related-posts .section-label { margin-bottom: 20px; }
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
}
.related-post-card .post-thumbnail {
    display: block; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 10px;
}
.related-post-card .post-thumbnail img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease;
}
.related-post-card .post-thumbnail:hover img { transform: scale(1.05); }
.related-post-card h4 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
}
.related-post-card h4 a:hover { opacity: 0.6; }

/* --------------------------------------------------------------------------
   FOOTER — fond noir avec logo
   -------------------------------------------------------------------------- */
.site-footer { background: #000; color: #fff; padding: 96px 0 32px; text-align: center; }
.site-footer__inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.footer-logo { display: inline-block; margin-bottom: 20px; }
.footer-logo img {
    height: 88px;
    width: auto;
    display: inline-block;
}
.footer-logo .logo-text {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 6rem; font-weight: 400; font-style: italic;
    letter-spacing: 0.05em; color: #fff; line-height: 1;
}

.footer-tagline {
    font-size: 0.85rem; color: #888; line-height: 1.65;
    max-width: 420px; margin: 0 auto 32px;
}
.footer-tagline a { color: #ccc; }
.footer-tagline a:hover { color: #fff; }

.footer-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.footer-cats a {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: #fff; border: 1px solid #444; padding: 6px 14px; transition: border-color 0.15s;
}
.footer-cats a:hover { border-color: #fff; }
.footer-bottom { padding-top: 20px; font-size: 0.72rem; color: #555; }

/* --------------------------------------------------------------------------
   PAGE STATIQUE
   -------------------------------------------------------------------------- */
.page-content { max-width: 860px; margin: 40px auto 60px; padding: 0 40px; }
.page-content h1 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(2.55rem, 4.5vw, 3.9rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 28px;
}
.page-content h2 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600; letter-spacing: -0.02em;
    line-height: 1.12; margin: 2.4em 0 0.8em; color: #111;
}
.page-content h3 {
    font-family: 'Instrument Sans', sans-serif;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 600; letter-spacing: -0.015em;
    line-height: 1.2; margin: 2em 0 0.7em; color: #111;
}
.page-content p { font-size: 1.3rem; line-height: 1.4; color: #1a1a1a; margin-bottom: 1.5em; }

/* --------------------------------------------------------------------------
   SEARCH & 404
   -------------------------------------------------------------------------- */
.search-form-wrapper { padding: 36px 0 28px; border-bottom: 1px solid #e0e0e0; margin-bottom: 28px; }
.search-form { display: flex; max-width: 560px; }
.search-form input[type="search"] {
    flex: 1; padding: 11px 14px; font-size: 0.95rem;
    border: 1px solid #111; border-right: none; outline: none;
}
.search-form button {
    padding: 11px 20px; background: #111; color: #fff; border: 1px solid #111;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; cursor: pointer; transition: opacity 0.15s;
}
.search-form button:hover { opacity: 0.75; }
.error-404-content { padding: 80px 24px; text-align: center; max-width: 500px; margin: 0 auto; }
.error-number { font-family: 'Bebas Neue', sans-serif; font-size: 10rem; line-height: 1; color: #f0f0f0; }
.error-404-content h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 12px; }
.error-404-content p { font-size: 0.95rem; color: #666; margin-bottom: 24px; }
.btn { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: #111; color: #fff; padding: 12px 24px; transition: opacity 0.15s; }
.btn:hover { opacity: 0.75; }

/* --------------------------------------------------------------------------
   GUTENBERG
   -------------------------------------------------------------------------- */
.wp-block-image { margin: 2em 0; }
.wp-block-quote { border-left: 3px solid #111; padding: 14px 0 14px 24px; margin: 2em 0; }
.wp-block-quote p { font-style: italic; color: #444; font-size: 1.1rem; }
.wp-block-separator { border: none; border-top: 1px solid #e0e0e0; margin: 2.5em 0; }
.wp-block-embed { margin: 2em 0; }
.wp-block-embed-instagram { margin: 2em auto; max-width: 540px; }
.wp-block-embed-instagram .wp-block-embed__wrapper { position: relative; }
.wp-block-embed-instagram .wp-block-embed__wrapper iframe { max-width: 100% !important; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .related-posts-grid { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .latest-grid { grid-template-columns: 1fr; }
    .article-hero { margin-bottom: 24px; }
    .post-header { padding: 24px 0 28px; }
    .post-header-inner { padding: 0 20px; }
    .post-content { padding: 0 20px; }
    .post-tags { padding: 20px 20px 0; }
    .related-posts { padding: 28px 20px 0; }
    .nav-toggle { display: flex; flex-direction: column; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
    .site-header__nav { position: relative; }
    .primary-nav { justify-content: flex-start; }
    .primary-nav ul { display: none; flex-direction: column; width: 100%; }
    .primary-nav ul.is-active { display: flex; }
    .primary-nav ul li a { padding: 12px 24px; border-bottom: 1px solid #222; }
}

@media (max-width: 600px) {
    .home .site-logo { padding: 20px 16px 16px; }
    .home .site-logo img { height: 160px; }
    .home .site-logo .logo-text { font-size: 9rem; }
    .latest-list { grid-template-columns: 1fr; }
    .discipline-grid, .archive-grid, .related-posts-grid { grid-template-columns: 1fr 1fr; }
    .categories-big-text { font-size: clamp(1.6rem, 8vw, 2.5rem); }
}

@media (max-width: 420px) {
    .discipline-grid, .archive-grid, .related-posts-grid { grid-template-columns: 1fr; }
}
