/*
Theme Name: PAS6DIFFERENT
Theme URI: https://pas6different.be/
Author: François Levaux
Description: Thème de blog magazine, noir et blanc, construit autour du logo PAS6DIFFERENT. Article à la une, derniers articles, colonne latérale, newsletter, mode sombre automatique.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pas6different
*/

:root {
  --bg: #f2f2f0;
  --card: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #4a4a4f;
  --line: #dcdcd8;
  --black: #0b0b0c;
  --white: #ffffff;
  --accent: #1f6feb;
  --accent-fg: #ffffff;
  --mast-bg: #ffffff;
  --mast-ink: #0b0b0c;
  --mast-line: #dcdcd8;
  --f-display: 'Archivo', 'Arial Black', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --card: #1b1b1e;
    --ink: #f4f4f2;
    --ink-2: #b0b0b6;
    --line: #2d2d32;
    --accent: #5b9bff;
    --accent-fg: #06101f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); }
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; clip-path: none; width: auto; height: auto; overflow: visible; z-index: 100000; top: 8px; left: 8px; padding: 12px 16px; background: var(--white); color: var(--black); }

/* Buttons and chips */
.btn, .news input[type="submit"], .news button, .search-form button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 2px; border: 2px solid transparent; font: 800 13px/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary, .search-form button { background: var(--black); color: var(--white); }
.btn-primary:hover, .search-form button:hover { background: var(--accent); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-white, .news input[type="submit"], .news button { background: var(--white); color: var(--black); }
.btn-white:hover, .news input[type="submit"]:hover, .news button:hover { background: var(--accent); color: #fff; }
.chip { display: inline-block; padding: 6px 16px 6px 9px; background: var(--black); color: var(--white); font: 800 11px/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.chip.c-une { background: var(--accent); color: #fff; }
.feature .chip { background: var(--white); color: var(--black); }
.feature .chip.c-une { background: var(--accent); color: #fff; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.slab { display: inline-block; margin: 0; padding: 8px 28px 8px 14px; background: var(--ink); color: var(--bg); font: 900 15px/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }

/* Utility bar */
.util { background: var(--black); color: #c9c9ce; font-size: 13px; }
.util .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding-block: 8px; }
.util ul { display: flex; gap: 18px; }
.util a { text-decoration: none; }
.util a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Masthead (logo shown as supplied, on white) */
.mast { background: var(--mast-bg); color: var(--mast-ink); border-bottom: 1px solid var(--mast-line); }
.mast .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 14px; }
.logo-link { display: block; line-height: 0; }
.logo-link img, .plate img { display: block; width: min(300px, 72vw); height: auto; }
.mast .tag { font: 800 12px/1.3 var(--f-display); letter-spacing: 0.2em; text-transform: uppercase; }
.mast .tag span { display: block; font: 500 13px/1.4 var(--f-body); letter-spacing: 0; text-transform: none; color: #4a4a4f; margin-top: 2px; }
@media (max-width: 599px) { .mast .tag { display: none; } }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--black); color: var(--white); }
.admin-bar .nav { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .nav { top: calc(46px + env(safe-area-inset-top, 0px)); } }
.nav .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }
.nav-row { display: flex; width: 100%; align-items: center; justify-content: space-between; }
.nav-label { font: 800 13px/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; }
.menu-btn { margin-block: 8px; background: none; border: 2px solid #3a3a40; color: #fff; border-radius: 2px; padding: 10px 14px; font: 800 12px/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.links { display: none; flex-basis: 100%; padding-bottom: 12px; }
.links.open { display: block; }
.links ul { display: flex; flex-direction: column; width: 100%; }
.links .sub-menu { display: none; }
.links a { display: block; padding: 13px 4px; text-decoration: none; font: 800 14px/1.2 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; border-top: 1px solid #26262b; }
.links a:hover, .links .current-menu-item > a, .links .current-menu-ancestor > a { color: var(--accent); }
@media (min-width: 900px) {
  .nav-row { display: none; }
  .links, .links.open { display: block; flex: 1; flex-basis: auto; padding: 0; }
  .links ul { flex-direction: row; justify-content: space-between; }
  .links a { border: 0; padding: 17px 10px; font-size: 13px; box-shadow: inset 0 0 0 0 var(--accent); }
  .links a:hover, .links .current-menu-item > a { color: #fff; box-shadow: inset 0 -4px 0 0 var(--accent); }
}

/* Hero */
.hero { padding-block: clamp(24px, 4vw, 40px) clamp(40px, 6vw, 64px); }
.hero-grid { display: grid; gap: 28px; }
.feature { position: relative; display: flex; align-items: flex-end; min-height: 440px; overflow: hidden; color: #fff; background: #0b0b0c; isolation: isolate; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 36px) 100%, 0 100%); }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; }
.scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0) 78%); }
.feature .body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(20px, 4vw, 40px); padding-bottom: clamp(36px, 5vw, 56px); max-width: 700px; }
.feature h1 { font: 800 clamp(28px, 4.6vw, 46px)/1.08 var(--f-display); letter-spacing: -0.015em; text-wrap: balance; }
.feature h1 a { text-decoration: none; }
.by { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--white); color: var(--black); font: 900 12px/1 var(--f-display); flex: none; clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.latest { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.latest-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.latest-head span { font-size: 13px; color: var(--ink-2); }
.item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--line); text-decoration: none; }
.item:last-of-type { border-bottom: 0; padding-bottom: 0; }
.thumb { position: relative; width: 104px; aspect-ratio: 1; overflow: hidden; background: #111; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
.thumb svg, .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item .txt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.item h3 { font: 800 18px/1.22 var(--f-display); letter-spacing: -0.01em; text-wrap: balance; }
.item:hover h3 { color: var(--accent); }
.meta { font-size: 13px; color: var(--ink-2); }
.more-link { align-self: flex-start; font: 800 13px/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-bottom: 3px solid var(--accent); padding-bottom: 4px; }
.more-link:hover { color: var(--accent); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 36px; }
  .feature { min-height: 540px; }
}

/* Main + sidebar */
.main-grid { display: grid; gap: 32px; padding-bottom: clamp(64px, 9vw, 104px); }
@media (min-width: 960px) { .main-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; } }
.col { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--line); min-width: 0; }
.story { padding: clamp(24px, 5vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.story h2 { font: 900 clamp(32px, 5.6vw, 52px)/1 var(--f-display); letter-spacing: -0.02em; text-transform: uppercase; text-wrap: balance; }
.author { display: flex; align-items: center; gap: 14px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; background: var(--black); color: var(--white); clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.author strong { display: block; font: 800 16px/1.2 var(--f-display); }
.author span { font-size: 13px; color: var(--ink-2); }
.quote { margin: 0; padding: 4px 0 4px 20px; border-left: 6px solid var(--accent); font: 800 clamp(20px, 3vw, 27px)/1.25 var(--f-display); letter-spacing: -0.01em; text-wrap: balance; }
.bio { display: flex; flex-direction: column; gap: 16px; max-width: 66ch; color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.bio p:first-child { color: var(--ink); }
.hash { font: 700 13px/1.4 var(--f-display); letter-spacing: 0.1em; color: var(--ink-2); }
.side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.side .panel { padding: 24px; }
.side h3, .widget-title { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); font: 900 17px/1.2 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; }
.widget ul { list-style: none; }
.widget li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; font-weight: 700; }
.widget a:hover { color: var(--accent); }
.cats a { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); font: 700 15px/1.2 var(--f-body); }
.cats li:last-child a { border-bottom: 0; }
.cats .ic { display: grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: var(--bg); flex: none; clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.cats svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cats .arrow { margin-left: auto; color: var(--ink-2); transition: transform 0.15s ease; }
.cats a:hover { color: var(--accent); }
.cats a:hover .arrow { transform: translateX(3px); color: var(--accent); }
.follow p { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.follow .social { flex-direction: column; align-items: stretch; }
@media (prefers-reduced-motion: reduce) { .cats .arrow { transition: none; } }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1 1 auto; min-width: 0; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 2px; background: var(--card); color: var(--ink); font: 400 15px/1 var(--f-body); }

/* Listing pages */
.page-head { padding-block: clamp(32px, 5vw, 56px) 28px; }
.page-head h1 { font: 900 clamp(32px, 6vw, 56px)/1 var(--f-display); letter-spacing: -0.02em; text-transform: uppercase; text-wrap: balance; }
.page-head p { margin-top: 12px; color: var(--ink-2); max-width: 60ch; }
.cards { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #111; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); }
.card-media .cover { z-index: 0; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; }
.card h2 { font: 800 20px/1.2 var(--f-display); letter-spacing: -0.01em; text-wrap: balance; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card .ex { color: var(--ink-2); font-size: 15px; }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-block; padding: 10px 14px; border: 2px solid var(--ink); font: 800 13px/1 var(--f-display); text-decoration: none; }
.page-numbers.current, a.page-numbers:hover { background: var(--ink); color: var(--bg); }
.no-results { padding: clamp(24px, 5vw, 48px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* Single post and pages */
.post-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }
.post-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-pad { padding: clamp(20px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.post-title { font: 900 clamp(30px, 5vw, 48px)/1.05 var(--f-display); letter-spacing: -0.02em; text-wrap: balance; }
.byline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.byline .avatar { background: var(--black); color: var(--white); }
.entry { font-size: 18px; line-height: 1.75; max-width: 70ch; }
.entry > * + * { margin-top: 1.25em; }
.entry h2, .entry h3, .entry h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; margin-top: 1.8em; }
.entry h2 { font-size: 30px; }
.entry h3 { font-size: 24px; }
.entry h4 { font-size: 20px; }
.entry a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry ul, .entry ol { padding-left: 1.4em; list-style: revert; }
.entry li + li { margin-top: 0.4em; }
.entry blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 6px solid var(--accent); font: 800 22px/1.3 var(--f-display); }
.entry img { height: auto; }
.entry figure { max-width: 100%; }
.entry figcaption, .wp-caption-text { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.entry pre { overflow-x: auto; padding: 16px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.entry iframe, .entry video { max-width: 100%; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { display: block; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { padding: 6px 10px; border: 2px solid var(--ink); font: 800 12px/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.post-tags a:hover { background: var(--ink); color: var(--bg); }
.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--bg); }
.author-box strong { display: block; font: 800 17px/1.2 var(--f-display); }
.author-box p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.post-nav .nav-links { display: grid; gap: 12px; }
@media (min-width: 640px) { .post-nav .nav-links { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: 16px; border: 2px solid var(--ink); text-decoration: none; font: 800 15px/1.25 var(--f-display); }
.post-nav a:hover { background: var(--ink); color: var(--bg); }
.post-nav .nav-next { text-align: right; }
.post-nav .meta-nav { display: block; margin-bottom: 4px; font: 700 11px/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }

/* Comments */
.comments { padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.comments h2 { font: 900 22px/1.2 var(--f-display); letter-spacing: 0.04em; text-transform: uppercase; }
.comment-list { display: flex; flex-direction: column; gap: 20px; }
.comment-list .children { margin: 16px 0 0 20px; display: flex; flex-direction: column; gap: 16px; list-style: none; }
.comment-body { padding: 16px; background: var(--bg); }
.comment-meta { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.comment-author .avatar { display: none; }
.comment-form { display: flex; flex-direction: column; gap: 14px; }
.comment-form label { display: block; margin-bottom: 4px; font: 800 12px/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 2px; background: var(--card); color: var(--ink); font: 400 16px/1.4 var(--f-body); }
.comment-form .submit { background: var(--black); color: var(--white); border: 2px solid transparent; padding: 13px 20px; font: 800 13px/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.comment-form .submit:hover { background: var(--accent); }

/* Newsletter band */
.news { position: relative; margin-top: -36px; padding-top: 36px; background: var(--black); color: #fff; overflow: hidden; isolation: isolate; clip-path: polygon(0 36px, 100% 0, 100% 100%, 0 100%); }
.news-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.news .wrap { display: grid; gap: 32px; padding-block: clamp(48px, 7vw, 80px); align-items: center; }
.news h2 { font: 900 clamp(32px, 5.4vw, 54px)/1 var(--f-display); letter-spacing: -0.02em; text-transform: uppercase; text-wrap: balance; max-width: 16ch; }
.news p { color: #c9c9ce; margin-top: 12px; max-width: 46ch; }
.news-form { min-width: 0; }
.news-form form { display: flex; flex-wrap: wrap; gap: 8px; }
.news-form p { margin: 0; max-width: none; }
.news label { flex-basis: 100%; font: 800 12px/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: #c9c9ce; }
.news input[type="email"], .news input[type="text"] { flex: 1 1 220px; min-width: 0; padding: 14px 16px; border-radius: 2px; border: 2px solid #fff; background: #fff; color: #0b0b0c; font: 400 15px/1 var(--f-body); }
@media (min-width: 900px) { .news .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; } }

/* Footer */
.site-footer { background: var(--black); color: #c9c9ce; border-top: 1px solid #26262b; }
.site-footer .wrap { padding-block: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; }
.plate { display: block; padding: 8px 12px; line-height: 0; }
.plate img { width: min(220px, 60vw); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { text-decoration: none; font-size: 14px; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .copy { flex-basis: 100%; font-size: 13px; color: #8c8c94; }
