/*
Theme Name: Dubois
Description: Journal de création en « une de journal » : Studio (musique), Chambre noire (photographie) et la rubrique des écrits. Fond blanc, titres Playfair Display, texte Source Serif 4.
Version: 1.0.2
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: dubois
*/

/* ---- Polices (hébergées dans le thème, aucun appel à Google) ---- */
@font-face {
	font-family: 'Playfair Display';
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url('assets/fonts/playfair-display-latin-wght-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Playfair Display';
	font-style: italic;
	font-weight: 400 900;
	font-display: swap;
	src: url('assets/fonts/playfair-display-latin-wght-italic.woff2') format('woff2');
}
@font-face {
	font-family: 'Source Serif 4';
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url('assets/fonts/source-serif-4-latin-wght-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Source Serif 4';
	font-style: italic;
	font-weight: 200 900;
	font-display: swap;
	src: url('assets/fonts/source-serif-4-latin-wght-italic.woff2') format('woff2');
}

/* ---- Base ---- */
:root {
	--ink: #171717;
	--soft: #333333;
	--muted: #555555;
	--rule: #d9d9d9;
	--ph: #e8e8e8;
	--ph-line: #cfcfcf;
	--accent: #a3281e;
	--serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #ffffff;
	color: var(--ink);
	font-family: var(--serif);
	font-size: 18px;
	line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}
h1, h2, h3, h4 { font-weight: 700; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
	width: 1px; word-wrap: normal;
}
.skip-link { position: absolute; left: -9999px; top: 8px; }
.skip-link:focus { left: 8px; background: #fff; padding: 8px 12px; z-index: 100; border: 1px solid var(--ink); }

.wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 48px);
}

/* ---- Bandeau, titre, menu ---- */
.topstrip {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	padding: 14px 0; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.masthead {
	border-top: 4px solid var(--ink);
	border-bottom: 1px solid var(--ink);
	padding: 20px 0 16px;
	text-align: center;
}
.site-title {
	margin: 0;
	font-family: var(--display);
	font-weight: 900;
	font-size: clamp(64px, 13vw, 148px);
	line-height: 0.95;
	letter-spacing: -0.02em;
}
.site-title a:hover { text-decoration: none; }
.site-title .dot { margin-left: 0.02em; }
.tagline {
	margin: 12px 0 0; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.mainnav {
	position: relative;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 8px;
	padding: 6px 0;
	border-bottom: 4px double var(--ink);
}
.nav-list { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.nav-list a {
	display: block; padding: 12px 18px;
	font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}
.nav-list .is-current > a,
.nav-list .current-menu-item > a,
.nav-list .current-menu-ancestor > a,
.nav-list .current-menu-parent > a,
.nav-list .current-post-ancestor > a {
	font-weight: 700;
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px;
}
.search-toggle summary {
	list-style: none; cursor: pointer;
	width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.search-toggle summary::-webkit-details-marker { display: none; }
.search-panel {
	position: absolute; right: 0; top: 100%; z-index: 20;
	width: min(420px, 100%); padding: 12px; background: #fff; border: 1px solid var(--ink);
}

/* ---- Formulaire de recherche ---- */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1 1 auto; min-width: 0; }
.search-field {
	width: 100%; height: 48px; padding: 0 14px;
	border: 1px solid var(--ink); background: #fff; color: var(--ink); font-family: inherit; font-size: 16px; border-radius: 0;
}
.search-submit, .foot-news button, .foot-news input[type="submit"] {
	height: 48px; padding: 0 22px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
	font-family: inherit; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; cursor: pointer; border-radius: 0;
}

/* ---- Éléments communs ---- */
.kicker {
	margin: 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--accent);
}
.kicker a:hover { text-decoration: underline; }
.meta { margin: 0; font-size: 13px; color: var(--muted); }
.section-label {
	margin: 0 0 4px; padding-top: 10px; border-top: 3px solid var(--ink);
	font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
}
.section-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.15; }
.section-head {
	display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px;
	padding-bottom: 8px; border-bottom: 1px solid var(--ink);
}
.section-head a { font-size: 14px; }
.empty { padding: 36px 0 64px; color: var(--soft); max-width: 640px; }

/* ---- Scène principale : la une ---- */
.front { display: flex; flex-wrap: wrap; gap: 40px 32px; padding: 36px 0 48px; }
.une { flex: 2 1 560px; min-width: 0; }
.une-title {
	margin: 10px 0 14px; font-family: var(--display); font-weight: 700;
	font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -0.01em;
}
.dek { margin: 0 0 22px; font-size: 21px; line-height: 1.5; color: var(--soft); max-width: 640px; }
.une .dek { max-width: none; font-size: 20px; margin-bottom: 20px; }
.une-fig, .entry-fig { margin: 0; }
.une-fig img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.une-fig figcaption, .entry-fig figcaption {
	margin-top: 8px; font-size: 14px; font-style: italic; color: var(--muted);
}
.player {
	margin-top: 22px; padding: 16px 0;
	border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.player figure { margin: 0; }
.player audio { display: block; width: 100%; height: 48px; }
.une-links, .track-links {
	display: flex; flex-wrap: wrap; gap: 4px 28px; padding-top: 6px; font-size: 15px;
}
.une-links a, .track-links a { display: inline-block; padding: 10px 0; }
.une-links .strong, .track-links .strong { font-weight: 600; }

.side-col { flex: 1 1 300px; min-width: 0; }
@media (min-width: 1040px) {
	.side-col { border-left: 1px solid var(--ink); padding-left: 32px; }
}
.item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.item-text { flex: 1 1 0; min-width: 0; }
.item-title {
	margin: 6px 0 8px; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15;
}
.item-excerpt { margin: 0 0 8px; font-size: 16px; line-height: 1.5; color: var(--soft); }
.item-thumb { flex: none; width: 104px; }
.item-thumb img { width: 104px; height: 104px; object-fit: cover; }

/* ---- Pellicule (photos) ---- */
.pellicule { border-top: 4px double var(--ink); padding: 36px 0 48px; }
.pellicule-grid { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; }
.pellicule-grid figure { flex: 1 1 220px; min-width: 0; margin: 0; }
.pellicule-grid img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.pellicule-grid figcaption { margin-top: 8px; font-size: 14px; font-style: italic; color: var(--muted); }

/* ---- Précédemment (liste chronologique) ---- */
.precedemment { border-top: 1px solid var(--ink); padding: 32px 0 48px; }
.precedemment .section-title { margin-bottom: 8px; }
.row {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px;
	padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.row-date { flex: 0 0 130px; font-size: 14px; color: var(--muted); }
.row-cat { flex: 0 0 140px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.row-title { flex: 1 1 260px; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.25; }
.all-link { display: inline-block; padding: 16px 0 0; font-size: 15px; font-weight: 600; }

/* ---- Pages intérieures ---- */
.page-head { padding: 36px 0 24px; border-bottom: 1px solid var(--ink); }
.page-title {
	margin: 8px 0 0; font-family: var(--display); font-weight: 900;
	font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.01em;
}
.page-desc { margin-top: 12px; color: var(--soft); font-size: 20px; max-width: 640px; }
.page-desc p { margin: 0; }
.listing { padding: 8px 0 48px; }

.photo-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 32px 24px; padding: 28px 0 48px;
}
.photo { margin: 0; }
.photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.photo figcaption { margin-top: 8px; font-size: 15px; }
.photo figcaption a { font-style: italic; }
.photo figcaption .meta { margin-top: 2px; }

.track { display: flex; flex-wrap: wrap; gap: 16px 24px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.track-thumb { flex: none; width: 160px; }
.track-thumb img { width: 160px; height: 160px; object-fit: cover; }
.track-body { flex: 1 1 320px; min-width: 0; }
.track-title { margin: 4px 0 8px; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.12; }
.track-body .dek { font-size: 18px; margin-bottom: 0; }
.track .player { margin-top: 14px; }

.text-item { display: flex; flex-wrap: wrap; gap: 16px 24px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.text-body { flex: 1 1 320px; min-width: 0; }
.text-title { margin: 4px 0 8px; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.12; }
.text-body .dek { font-size: 18px; margin-bottom: 8px; }
.text-thumb { flex: none; width: 200px; order: 2; }
.text-thumb img { width: 200px; height: 150px; object-fit: cover; }

.navigation.pagination .nav-links {
	display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding: 24px 0 0; font-size: 15px;
}
.navigation.pagination .page-numbers.current { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ---- Article / page ---- */
.entry { padding: 36px 0 64px; }
.entry-head, .entry-fig, .entry-content, .post-nav { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-title {
	margin: 8px 0 10px; font-family: var(--display); font-weight: 700;
	font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.01em;
}
.entry-fig { margin-top: 24px; margin-bottom: 8px; max-width: 1000px; }
.entry-fig img { width: 100%; height: auto; }
.entry-content { margin-top: 28px; font-size: 19px; line-height: 1.7; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--display); line-height: 1.2; margin-top: 1.6em; }
.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 24px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
	margin-left: 0; margin-right: 0; padding: 12px 0;
	border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
	font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1.4;
}
.entry-content blockquote p { margin: 0.4em 0; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 14px; font-style: italic; color: var(--muted); margin-top: 8px; }
.entry-content .wp-block-audio {
	padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.entry-content .wp-block-audio audio { display: block; width: 100%; height: 48px; }
.entry-content .wp-block-file { font-size: 16px; }
.entry-content .wp-block-file a:not(.wp-block-file__button) { font-weight: 600; }
.entry-content .wp-block-file .wp-block-file__button {
	background: var(--ink); color: #fff; border-radius: 0; text-decoration: none;
	font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 18px;
}
.entry-content .wp-block-gallery { gap: 12px; }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--ink); font-size: 15px; }
.post-nav a { display: inline-block; padding: 8px 0; max-width: 46%; }
@media (max-width: 600px) { .post-nav a { max-width: 100%; } }

/* ---- Pied de page ---- */
.site-footer { border-top: 4px solid var(--ink); padding: 36px 0 28px; margin-top: 8px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.foot-brand { flex: 1 1 240px; min-width: 0; }
.foot-title { margin: 0; font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; }
.foot-tag { margin: 10px 0 0; font-size: 15px; color: var(--soft); }
.foot-news { flex: 2 1 320px; min-width: 0; }
.foot-news .label {
	display: block; margin: 0 0 8px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
}
.foot-news input[type="email"], .foot-news input[type="text"] {
	height: 48px; padding: 0 14px; border: 1px solid var(--ink); background: #fff;
	font-family: inherit; font-size: 16px; color: var(--ink); border-radius: 0;
}
.foot-links { flex: 1 1 160px; display: flex; flex-direction: column; font-size: 16px; }
.foot-links a { padding: 8px 0; }
.copyright { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
