/*
Theme Name: La Nouvelle Gazette
Theme URI: https://lanouvellegazette.com/
Author: La Nouvelle Gazette
Description: Quotidien d'opinion en ligne au style de journal d'époque : papier crème, manchette à éventails Art déco, Playfair Display et Old Standard TT, croquis Art déco pour chaque article (avec l'extension La Nouvelle Gazette Auto). Polices hébergées sur le site.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: lanouvellegazette
*/

:root {
	--papier: #f2ead8;
	--papier-fonce: #ebe1c9;
	--encre: #1c1a16;
	--gris: #5b5446;
	--filet: #c9bfa6;
	--bordeaux: #7b1e22;
	--or: #a8834a;
	--titre: 'Playfair Display', Didot, 'Bodoni MT', Georgia, serif;
	--texte: 'Old Standard TT', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--papier);
	color: var(--encre);
	font-family: var(--texte);
	font-size: 18px;
	line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bordeaux); }
img, svg { max-width: 100%; height: auto; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Filets */
.filet { height: 7px; border-top: 3px solid var(--encre); border-bottom: 1px solid var(--encre); }
.filet-bas { height: 7px; border-top: 1px solid var(--encre); border-bottom: 3px solid var(--encre); }

/* En-tête */
.site-header { padding-top: 22px; }
.ligne-haut { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding-bottom: 8px; }
.ligne-haut .devise-haut { font-style: italic; text-transform: none; letter-spacing: .02em; }
.manchette { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 16px 0 12px; }
.manchette .eventail { width: 86px; flex: 0 0 auto; }
.manchette .nom { font-family: var(--titre); font-weight: 900; font-size: clamp(38px, 6.4vw, 84px); line-height: 1; white-space: nowrap; margin: 0; letter-spacing: -.005em; }
.rubriques ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; margin: 0; padding: 11px 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.rubriques .cat-le-sottisier a { color: var(--bordeaux); font-style: italic; }
.rubriques .current-cat a { color: var(--bordeaux); border-bottom: 1px solid var(--bordeaux); }
.site-header .trait { border-top: 1px solid var(--encre); }

/* Éléments communs */
.rub { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bordeaux); }
.sig { font-size: 14px; font-style: italic; color: var(--gris); }
.sig a:hover { text-decoration: underline; }
.titre { font-family: var(--titre); font-weight: 700; line-height: 1.15; margin: 6px 0 8px; }
.chapo { margin: 0; line-height: 1.5; }
.croquis { border: 1px solid var(--encre); background: #fbf7ee; line-height: 0; }
.croquis svg, .croquis img { width: 100%; height: auto; display: block; }
.croquis-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.croquis-double { outline: 1px solid var(--encre); outline-offset: 4px; }
.lire { display: inline-block; margin-top: 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--bordeaux); border-bottom: 1px solid var(--bordeaux); }
.intertitre-section { display: flex; align-items: center; gap: 18px; margin: 40px 0 0; }
.intertitre-section span { flex: 1; border-top: 1px solid var(--encre); }
.intertitre-section h2 { font-family: var(--titre); font-style: italic; font-weight: 400; font-size: 26px; margin: 0; white-space: nowrap; }

/* Une */
.une-bloc { display: grid; grid-template-columns: 2.1fr 1fr; margin-top: 30px; }
.une { padding-right: 36px; border-right: 1px solid var(--encre); }
.une h1 { font-family: var(--titre); font-weight: 900; font-size: clamp(32px, 4vw, 54px); line-height: 1.08; margin: 10px 0 18px; }
.une-corps { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.une-corps.sans-croquis { grid-template-columns: 1fr; }
.une .chapo { font-size: 19px; font-style: italic; }
.une .extrait { font-size: 16px; margin: 14px 0 0; }
.depeches { padding-left: 30px; }
.depeches h2 { font-family: var(--titre); font-weight: 900; font-size: 22px; text-align: center; margin: 0; padding-bottom: 8px; border-bottom: 3px double var(--encre); }
.depeches ul { list-style: none; margin: 0; padding: 0; }
.depeches li { padding: 12px 0; border-bottom: 1px dotted #8a8170; }
.depeches li:last-child { border-bottom: 0; }
.depeches b { font-family: var(--titre); font-weight: 700; font-size: 16px; line-height: 1.25; display: block; margin-top: 3px; }

/* Grille des chroniques */
.grille { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 3px double var(--encre); }
.carte { padding: 22px 24px; border-right: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.carte:nth-child(3n) { border-right: 0; }
.carte .croquis { margin-bottom: 12px; }
.carte h2 { font-size: 23px; }
.carte .chapo { font-size: 16px; }
.carte.billet { background: var(--papier-fonce); }
.carte.billet .titre { text-align: center; font-size: 26px; }
.carte.billet .chapo { font-size: 17px; line-height: 1.6; }
.carte .bandeau-sottisier { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--papier-fonce); border: 1px solid var(--encre); margin-bottom: 12px; }
.bandeau-sottisier b { font-family: var(--titre); font-style: italic; font-weight: 400; font-size: 40px; color: var(--bordeaux); }
.bandeau-sottisier small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.filet-billet { height: 4px; border-top: 1px solid var(--encre); border-bottom: 1px solid var(--encre); margin: 6px 0 10px; }
.vide { font-style: italic; color: var(--gris); padding: 40px 0; text-align: center; }

/* Article */
.article { max-width: 860px; margin: 46px auto 0; }
.article .kicker { text-align: center; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--bordeaux); }
.article h1 { font-family: var(--titre); font-weight: 900; font-size: clamp(34px, 5vw, 58px); line-height: 1.08; text-align: center; margin: 14px 0 20px; }
.article .chapo { font-family: var(--titre); font-style: italic; font-size: 22px; line-height: 1.5; text-align: center; max-width: 720px; margin: 0 auto; }
.signature { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 24px 0 30px; font-size: 14px; font-style: italic; flex-wrap: wrap; }
.signature span.trait { flex: 0 0 60px; border-top: 1px solid var(--encre); }
.signature .chronique { font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bordeaux); }
.article figure { margin: 0 0 34px; }
.article figure .croquis { padding: 10px; }
.article figcaption a { color: var(--gris); text-decoration: underline; }
.article figcaption { font-size: 14px; font-style: italic; color: var(--gris); text-align: center; margin-top: 14px; }
.contenu p { font-size: 19px; line-height: 1.7; margin: 0 0 18px; text-align: justify; hyphens: auto; }
.single .contenu > p:first-of-type::first-letter { font-family: var(--titre); font-weight: 900; float: left; font-size: 92px; line-height: .82; padding: 8px 10px 0 0; color: var(--bordeaux); }
.contenu h2, .contenu h3 { font-family: var(--titre); }
.contenu blockquote { border-left: 3px solid var(--bordeaux); margin: 24px 0; padding: 4px 20px; font-style: italic; }
.sources { margin-top: 40px; border: 1px solid var(--encre); outline: 1px solid var(--encre); outline-offset: 4px; padding: 22px 28px; font-size: 15px; }
.sources::before { content: "Nos sources"; display: block; font-family: var(--titre); font-weight: 700; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; text-align: center; margin-bottom: 10px; }
.sources p { margin: 0 0 8px; text-align: left; font-size: 15px; }
.sources ul { margin: 0; padding-left: 20px; line-height: 1.8; }
.sources a { color: var(--bordeaux); }
.sources a:hover { text-decoration: underline; }
.contenu p.signature-fin { text-align: right; font-style: italic; font-family: var(--titre); }
.mention-ia { font-size: 13px; font-style: italic; color: var(--gris); text-align: center; margin-top: 24px; }
.nav-article { display: flex; justify-content: space-between; gap: 30px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--encre); font-family: var(--titre); font-size: 16px; }
.nav-article div:last-child { text-align: right; }

/* Pages, rédaction, auteurs */
.page-simple { max-width: 860px; margin: 46px auto 0; }
.page-simple h1 { font-family: var(--titre); font-weight: 900; font-size: clamp(32px, 4.5vw, 52px); text-align: center; margin: 0 0 26px; }
.page-simple .contenu h2 { font-size: 26px; margin: 34px 0 12px; }
.equipe { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 20px; }
.membre { border: 1px solid var(--encre); padding: 20px; text-align: center; background: var(--papier-fonce); }
.membre .initiales { width: 88px; height: 88px; margin: 0 auto 10px; border-radius: 50%; border: 3px double var(--bordeaux); display: flex; align-items: center; justify-content: center; font-family: var(--titre); font-weight: 900; font-size: 26px; }
.membre h3 { font-family: var(--titre); margin: 6px 0 2px; font-size: 22px; }
.membre .role { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bordeaux); margin: 0 0 8px; }
.membre p { font-size: 16px; text-align: center; margin: 0; }
.profil { display: flex; gap: 28px; align-items: center; max-width: 860px; margin: 46px auto 0; padding-bottom: 24px; border-bottom: 3px double var(--encre); }
.profil .initiales { flex: 0 0 120px; height: 120px; border-radius: 50%; border: 3px double var(--bordeaux); display: flex; align-items: center; justify-content: center; font-family: var(--titre); font-weight: 900; font-size: 34px; background: var(--papier-fonce); }
.profil h1 { font-family: var(--titre); font-weight: 900; font-size: 44px; margin: 4px 0; }
.archive-tete { text-align: center; margin: 40px 0 0; }
.archive-tete h1 { font-family: var(--titre); font-weight: 900; font-size: clamp(34px, 5vw, 56px); margin: 0; }
.archive-tete p { font-style: italic; color: var(--gris); margin: 6px 0 0; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 8px 14px; margin: 34px 0 10px; padding-top: 18px; border-top: 1px solid var(--encre); font-family: var(--titre); font-size: 18px; }
.pagination .page-label { font-family: var(--texte); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.pagination .page-numbers { min-width: 1.6em; text-align: center; }
.pagination a.page-numbers:hover { color: var(--bordeaux); text-decoration: underline; }
.pagination .current { color: var(--bordeaux); font-weight: 700; border-bottom: 2px solid var(--bordeaux); }
.pagination .dots { color: var(--gris); }
.pagination .suite-page { margin: 0 0 0 18px; font-family: var(--texte); }
.lire-suite-depeches { display: block; width: max-content; margin: 14px auto 0; }

/* Pied */
.site-footer { margin-top: 60px; padding-bottom: 40px; }
.pied { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 14px; font-size: 13px; color: var(--gris); flex-wrap: wrap; }
.pied .nom-pied { font-family: var(--titre); font-weight: 900; font-size: 22px; color: var(--encre); }
.pied .mention { font-style: italic; }
.searchform { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.searchform input { font-family: var(--texte); font-size: 15px; padding: 8px 12px; border: 1px solid var(--encre); background: #fbf7ee; min-width: 260px; }
.searchform button { font-family: var(--texte); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 16px; border: 1px solid var(--encre); background: var(--encre); color: var(--papier); cursor: pointer; }
.searchform button:hover { background: var(--bordeaux); border-color: var(--bordeaux); }

/* Écrans moyens et petits */
@media (max-width: 1000px) {
	.une-bloc { grid-template-columns: 1fr; }
	.une { padding-right: 0; border-right: 0; }
	.depeches { padding-left: 0; margin-top: 30px; }
	.grille { grid-template-columns: repeat(2, 1fr); }
	.carte:nth-child(3n) { border-right: 1px solid var(--filet); }
	.carte:nth-child(2n) { border-right: 0; }
}
@media (max-width: 700px) {
	body { font-size: 17px; }
	.wrap { padding: 0 16px; }
	.ligne-haut .devise-haut, .manchette .eventail { display: none; }
	.ligne-haut { font-size: 11px; }
	.une-corps { grid-template-columns: 1fr; }
	.grille { grid-template-columns: 1fr; }
	.carte { border-right: 0 !important; padding: 20px 0; }
	.contenu p { font-size: 18px; text-align: left; }
	.equipe { grid-template-columns: 1fr; }
	.profil { flex-direction: column; text-align: center; }
	.pied { flex-direction: column; text-align: center; }
	.searchform input { min-width: 0; flex: 1; }
}
