/*
Theme Name: JdT Newspaper
Description: Thème enfant GeneratePress reproduisant l'apparence de journaldutextile.com (anciennement thème Newspaper de tagDiv). Écrit par Visibel Médias, aucun fichier du thème premium.
Template: generatepress
Version: 1.0.2
Text Domain: jdt-newspaper
*/

:root {
	--jdt-red: #ec3535;
	--jdt-ink: #000;
	--jdt-text: #111;
	--jdt-muted: #767676;
	--jdt-line: #eaeaea;
	--jdt-grey: #eaeaea;
	--jdt-serif: 'PT Serif', Georgia, serif;
	--jdt-sans: 'Work Sans', Arial, sans-serif;
	--jdt-roboto: 'Roboto', Arial, sans-serif;
	--jdt-w: 1440px;
}

body { font-family: var(--jdt-sans); color: var(--jdt-text); background: #fff; font-size: 15px; line-height: 1.7; }
a { color: var(--jdt-ink); text-decoration: none; }
a:hover { color: var(--jdt-red); }
.site.grid-container { max-width: none; padding: 0; }
.site-content { display: block; padding: 0; }
.jdt-wrap { max-width: var(--jdt-w); margin: 0 auto; padding: 0 20px; }
.jdt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
img { display: block; max-width: 100%; height: auto; }

/* ---------- En-tête ---------- */
.jdt-head { background: #fff; position: relative; }
.jdt-head-top { position: relative; display: flex; justify-content: center; align-items: center; min-height: 128px; }
.jdt-logo { font-family: var(--jdt-serif); font-style: italic; font-weight: 700; color: var(--jdt-red); font-size: 100px; line-height: 1.2; letter-spacing: -5px; margin: 0; }
.jdt-logo a { color: inherit; }
.jdt-search { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; }
.jdt-search summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.jdt-search summary::-webkit-details-marker { display: none; }
.jdt-search form { position: absolute; top: 34px; left: 0; z-index: 30; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.15); padding: 14px; display: flex; gap: 6px; width: 320px; }
.jdt-search input[type=search] { flex: 1; border: 1px solid #e1e1e1; padding: 8px 10px; font-size: 13px; }
.jdt-search button { background: var(--jdt-ink); color: #fff; border: 0; padding: 0 14px; font-size: 12px; font-weight: 600; cursor: pointer; }
.jdt-nav ul { list-style: none; margin: 0; padding: 0 0 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 26px; }
.jdt-nav a { font-family: var(--jdt-sans); font-size: 13px; font-weight: 600; color: var(--jdt-ink); }
.jdt-nav a:hover, .jdt-nav .current-menu-item > a, .jdt-nav .current-category > a { color: var(--jdt-red); }

/* ---------- Étiquettes, méta ---------- */
.jdt-badge { display: inline-block; background: var(--jdt-ink); color: #fff; font-family: var(--jdt-sans); font-size: 10px; font-weight: 600; line-height: 1; padding: 4px 5px 3px; text-transform: capitalize; }
a.jdt-badge:hover { color: #fff; background: var(--jdt-red); }
.jdt-badge.red { background: var(--jdt-red); text-transform: uppercase; }
.jdt-meta { font-family: var(--jdt-sans); font-size: 11px; color: var(--jdt-ink); }
.jdt-meta b { font-weight: 600; }
.jdt-meta time { color: var(--jdt-muted); }
.jdt-meta .sep { color: var(--jdt-muted); margin: 0 4px; }

/* ---------- Accueil : à la une ---------- */
.jdt-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 20px auto 40px; }
.jdt-hero-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; }
.jdt-breaking { position: absolute; top: -14px; left: 32px; z-index: 3; background: var(--jdt-red); color: #fff; font-family: var(--jdt-serif); font-style: italic; font-weight: 700; font-size: 17px; padding: 3px 12px; }
.jdt-tile { position: relative; overflow: hidden; background: #ddd; min-height: 210px; }
.jdt-hero-main .jdt-tile { height: 100%; min-height: 423px; }
.jdt-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.jdt-tile:hover img { transform: scale(1.04); }
.jdt-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.7)); pointer-events: none; }
.jdt-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 22px 18px; color: #fff; }
.jdt-tile-body h3 { font-family: var(--jdt-roboto); color: #fff; font-weight: 500; font-size: 17px; line-height: 1.25; margin: 8px 0 6px; }
.jdt-hero-main .jdt-tile-body { padding: 0 26px 26px; }
.jdt-hero-main .jdt-tile-body h3 { font-size: 27px; line-height: 1.2; }
.jdt-tile-body a { color: #fff; }
.jdt-tile-body .jdt-meta, .jdt-tile-body .jdt-meta time { color: #fff; }
.jdt-tile .jdt-cover { position: absolute; inset: 0; z-index: 1; }

/* Vignette de remplacement (article sans image) */
.jdt-ph { display: block; width: 100%; aspect-ratio: 696 / 388; background: #f2f2f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zm-1 7V3.5L18.5 9zM8 13h8v1.5H8zm0 3h8v1.5H8zm0-6h3v1.5H8z'/%3E%3C/svg%3E") center / 22% no-repeat; }
.jdt-tile .jdt-ph { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; background-size: 64px; }
.jdt-thumb.tall .jdt-ph { aspect-ratio: 696 / 464; }
.jdt-row .jdt-ph { aspect-ratio: 324 / 235; }
.jdt-related .jdt-ph { aspect-ratio: 218 / 150; }
.jdt-small .jdt-ph { width: 140px; aspect-ratio: 218 / 150; background-size: 34px; }
.jdt-latest .jdt-ph { width: 60px; height: 42px; aspect-ratio: auto; background-size: 18px; }

/* ---------- Accueil : sections ---------- */
.jdt-sec { margin: 0 auto 56px; }
.jdt-sec-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--jdt-red); padding-bottom: 6px; margin-bottom: 26px; }
.jdt-sec-head h2 { font-family: var(--jdt-sans); font-weight: 700; font-size: 26px; letter-spacing: -1px; line-height: 1; margin: 0; color: var(--jdt-ink); }
.jdt-sec-head a.more { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--jdt-red); display: inline-flex; align-items: center; gap: 8px; }
.jdt-sec-head a.more::after { content: '\2192'; font-size: 14px; color: var(--jdt-muted); }
.jdt-with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.jdt-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.jdt-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.jdt-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.jdt-thumb { display: block; position: relative; background: #f2f2f2; overflow: hidden; }
.jdt-thumb img { width: 100%; aspect-ratio: 696 / 388; object-fit: cover; }
.jdt-thumb.tall img { aspect-ratio: 696 / 464; }
.jdt-thumb .jdt-badge { position: absolute; left: 0; bottom: 0; }
.jdt-card h3 { font-family: var(--jdt-serif); font-weight: 700; font-size: 22px; line-height: 1.15; margin: 18px 0 10px; }
.jdt-card .jdt-meta { padding-bottom: 14px; border-bottom: 1px solid var(--jdt-line); }
.jdt-links { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; }
.jdt-links li { border-bottom: 1px solid var(--jdt-line); padding: 14px 0; }
.jdt-links a { font-family: var(--jdt-sans); font-weight: 600; font-size: 14px; line-height: 1.3; }
.jdt-links .jdt-meta { display: block; margin-top: 4px; }
.jdt-flex h3 { font-family: var(--jdt-roboto); font-weight: 400; font-size: 21px; line-height: 1.25; margin: 10px 0 6px; }
.jdt-flex .jdt-meta { display: flex; align-items: center; }
.jdt-flex .jdt-excerpt { font-size: 12px; line-height: 1.6; color: #555; margin: 10px 0 0; }
.jdt-small { display: grid; grid-template-columns: 140px 1fr; gap: 18px; margin-top: 24px; align-items: start; }
.jdt-small img { width: 140px; aspect-ratio: 218 / 150; object-fit: cover; background: #f2f2f2; }
.jdt-small h4 { font-family: var(--jdt-sans); font-weight: 600; font-size: 13px; line-height: 1.35; margin: 0 0 6px; }
.jdt-ad { display: block; text-align: center; }
.jdt-ad img { margin: 0 auto; width: 300px; }
.jdt-ad-label { display: inline-block; background: var(--jdt-red); color: #fff; font-family: var(--jdt-serif); font-style: italic; font-weight: 700; font-size: 17px; padding: 3px 12px; margin-bottom: 0; }

/* ---------- Catégorie ---------- */
.jdt-arch-title { font-family: var(--jdt-serif); font-weight: 700; font-size: 42px; text-align: center; margin: 30px 0 22px; line-height: 1.1; }
.jdt-arch-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.jdt-arch-tiles .jdt-tile { min-height: 280px; }
.jdt-arch-tiles .jdt-tile-body h3 { font-family: var(--jdt-serif); font-weight: 700; font-size: 20px; line-height: 1.2; }
.jdt-arch-desc { font-family: 'Open Sans', Arial, sans-serif; font-style: italic; font-size: 13px; line-height: 1.75; color: #555; margin: 0 0 28px; }
.jdt-row { display: grid; grid-template-columns: 324px 1fr; gap: 26px; margin-bottom: 40px; align-items: center; }
.jdt-row .jdt-thumb img { aspect-ratio: 324 / 235; }
.jdt-row h2 { font-family: var(--jdt-serif); font-weight: 700; font-size: 24px; line-height: 1.2; margin: 0 0 10px; }
.jdt-row .jdt-meta { display: flex; gap: 20px; align-items: center; margin-bottom: 10px; }
.jdt-row .jdt-meta .cat { font-weight: 600; text-transform: uppercase; font-size: 10px; }
.jdt-row .jdt-excerpt { font-size: 13px; line-height: 1.6; margin: 0; }
.jdt-pages { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 50px; }
.jdt-pages .page-numbers { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e1e1e1; font-size: 13px; padding: 0 8px; }
.jdt-pages .current { background: var(--jdt-ink); color: #fff; border-color: var(--jdt-ink); }

/* ---------- Article ---------- */
.jdt-single-hero { position: relative; min-height: 450px; display: flex; align-items: flex-end; justify-content: center; text-align: center; background: #222 center / cover no-repeat; margin-top: 20px; }
.jdt-single-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.jdt-single-hero-in { position: relative; padding: 0 40px 34px; max-width: 900px; }
.jdt-single-hero .cat { font-family: var(--jdt-sans); text-transform: uppercase; font-size: 13px; font-weight: 600; color: #ccc; letter-spacing: .5px; }
.jdt-single-hero h1 { font-family: var(--jdt-serif); font-weight: 700; color: #fff; font-size: 38px; line-height: 1.2; margin: 10px 0 0; }
.jdt-single-hero.noimg { background: #f5f5f5; min-height: 260px; }
.jdt-single-hero.noimg::before { display: none; }
.jdt-single-hero.noimg h1 { color: var(--jdt-ink); }
.jdt-single-hero.noimg .cat { color: var(--jdt-muted); }
.jdt-byline { display: flex; justify-content: center; gap: 30px; font-size: 12px; font-weight: 600; padding: 18px 0; margin: 0 auto 40px; max-width: 1150px; border-bottom: 1px solid var(--jdt-line); }
.jdt-byline span { color: var(--jdt-ink); }
.jdt-byline .lbl { color: var(--jdt-ink); font-weight: 600; margin-right: 8px; }
.jdt-byline .sep { width: 1px; background: #ccc; }
.jdt-single { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; max-width: 1150px; margin: 0 auto; padding: 0 20px; }
.jdt-content { font-size: 15px; line-height: 1.75; color: var(--jdt-ink); }
.jdt-content h2 { font-family: var(--jdt-serif); font-weight: 400; font-size: 24px; line-height: 1.35; margin: 36px 0 16px; }
.jdt-content h3 { font-family: var(--jdt-serif); font-weight: 400; font-size: 20px; line-height: 1.35; margin: 28px 0 12px; }
.jdt-content h4 { font-family: var(--jdt-serif); font-weight: 700; font-size: 17px; }
.jdt-content p { margin: 0 0 22px; }
.jdt-content a { color: var(--jdt-red); }
.jdt-content ul, .jdt-content ol { margin: 0 0 22px 22px; }
.jdt-content li { margin-bottom: 8px; }
.jdt-content img { margin: 10px auto 24px; }
.jdt-content figure { margin: 0 0 24px; }
.jdt-content figcaption { font-size: 12px; color: var(--jdt-muted); text-align: center; }
.jdt-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.jdt-content th, .jdt-content td { border: 1px solid #e1e1e1; padding: 8px 10px; }
.jdt-content blockquote { border-left: 3px solid var(--jdt-red); margin: 0 0 24px; padding: 4px 0 4px 20px; font-family: var(--jdt-serif); font-style: italic; font-size: 18px; }
.jdt-bref { border: 1px solid #e1e1e1; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.06); padding: 18px 26px 4px 14px; margin: 0 40px 28px; background: #fcfcfc; }
.jdt-content .jdt-bref h2 { font-family: var(--jdt-sans); font-weight: 600; font-size: 11px; margin: 0 0 10px; }
.jdt-content .jdt-bref ul { font-size: 13px; margin-left: 28px; }
.jdt-content .jdt-bref li { margin-bottom: 14px; }
.jdt-share { border: 1px solid var(--jdt-line); box-shadow: 0 2px 10px rgba(0,0,0,.06); padding: 20px; text-align: center; margin-bottom: 30px; }
.jdt-share h3 { font-family: var(--jdt-sans); font-size: 11px; font-weight: 600; text-transform: uppercase; margin: 0 0 14px; }
.jdt-share .btns { display: flex; justify-content: center; gap: 4px; }
.jdt-share a { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; background: var(--jdt-red); color: #fff; }
.jdt-share a.more { background: #fff; color: var(--jdt-ink); border: 1px solid var(--jdt-line); }
.jdt-share svg { width: 12px; height: 12px; fill: currentColor; }
.jdt-side-head { font-family: var(--jdt-sans); font-weight: 700; font-size: 24px; letter-spacing: -1px; padding-bottom: 6px; border-bottom: 2px solid var(--jdt-red); margin: 0 0 18px; line-height: 1.1; }
.jdt-latest { list-style: none; margin: 0; padding: 0; }
.jdt-latest li { display: grid; grid-template-columns: 60px 1fr; gap: 10px; margin-bottom: 16px; align-items: start; }
.jdt-latest img { width: 60px; height: 42px; object-fit: cover; background: #f2f2f2; }
.jdt-latest a { font-family: var(--jdt-serif); font-weight: 700; font-size: 12px; line-height: 1.35; }
.jdt-sticky { position: sticky; top: 20px; }
.jdt-author { display: grid; grid-template-columns: 70px 1fr; gap: 18px; border-top: 1px solid var(--jdt-line); border-bottom: 1px solid var(--jdt-line); padding: 26px 0; margin: 40px 0; }
.jdt-author .av { width: 70px; height: 70px; border-radius: 50%; background: #e9e9e9; color: var(--jdt-muted); font-family: var(--jdt-serif); font-weight: 700; font-size: 28px; display: flex; align-items: center; justify-content: center; }
.jdt-author .name { font-family: var(--jdt-serif); font-weight: 700; font-size: 20px; line-height: 1.1; }
.jdt-author .url { font-size: 11px; font-style: italic; color: #444; }
.jdt-author p { font-size: 13px; margin: 6px 0 0; }
.jdt-related { background: #f5f5f5; padding: 0 0 50px; margin-top: 60px; }
.jdt-related-head { position: relative; text-align: center; padding: 30px 0 30px; background: #fff; }
.jdt-related-head .bg { font-family: var(--jdt-sans); font-weight: 700; font-size: 70px; color: #f4f4f4; letter-spacing: -2px; line-height: 1; }
.jdt-related-head h2 { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-30%); font-family: var(--jdt-sans); font-weight: 700; font-size: 26px; letter-spacing: -1px; margin: 0; }
.jdt-related .jdt-grid4 { margin-top: -10px; }
.jdt-related .jdt-thumb img { aspect-ratio: 218 / 150; }
.jdt-related h3 { font-family: var(--jdt-sans); font-weight: 600; font-size: 14px; line-height: 1.3; margin: 14px 0 8px; }

/* ---------- Pages, recherche ---------- */
.jdt-page { max-width: 1150px; margin: 30px auto 60px; padding: 0 20px; }
.jdt-page h1 { font-family: var(--jdt-serif); font-weight: 700; font-size: 38px; margin: 0 0 26px; }
.jdt-form { display: grid; gap: 12px; max-width: 640px; margin: 10px 0 34px; }
.jdt-form input, .jdt-form textarea { border: 1px solid #e1e1e1; padding: 10px 12px; font: inherit; font-size: 14px; width: 100%; }
.jdt-form button { justify-self: start; background: var(--jdt-red); color: #fff; border: 0; padding: 12px 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; cursor: pointer; }

/* ---------- Pied de page ---------- */
.jdt-foot { background: var(--jdt-grey); padding: 34px 0 0; margin-top: 0; }
.jdt-foot-logo { font-family: var(--jdt-serif); font-style: italic; font-weight: 700; font-size: 42px; letter-spacing: -2px; line-height: 1.2; color: var(--jdt-ink); border-bottom: 2px solid var(--jdt-ink); padding-bottom: 2px; margin: 0 0 28px; }
.jdt-foot-logo a { color: inherit; }
.jdt-foot-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.3fr 1.2fr; gap: 30px; }
.jdt-foot h4 { font-family: var(--jdt-sans); font-weight: 700; font-size: 24px; letter-spacing: -1px; line-height: 1; margin: 0 0 18px; color: var(--jdt-ink); }
.jdt-foot .about { font-family: var(--jdt-serif); font-size: 15px; line-height: 1.55; }
.jdt-foot ul { list-style: none; margin: 0; padding: 0; }
.jdt-foot .info a { font-weight: 600; font-size: 14px; display: block; margin-bottom: 9px; line-height: 1.25; }
.jdt-social { display: flex; gap: 8px; flex-wrap: wrap; }
.jdt-social a { width: 38px; height: 38px; background: var(--jdt-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.jdt-social a:hover { background: var(--jdt-red); color: #fff; }
.jdt-social svg { width: 14px; height: 14px; fill: currentColor; }
.jdt-nl { display: grid; gap: 8px; margin-bottom: 18px; }
.jdt-nl input { border: 0; background: #fff; padding: 12px 14px; font-size: 13px; }
.jdt-nl button { background: var(--jdt-ink); color: #fff; border: 0; padding: 13px; font-size: 11px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.jdt-nl button:hover { background: var(--jdt-red); }
.jdt-partners a { display: block; font-size: 14px; padding: 4px 8px; }
.jdt-copy { border-top: 1px solid #d6d6d6; margin-top: 40px; padding: 20px 0; text-align: center; font-size: 13px; font-weight: 600; }
.jdt-copy a { color: var(--jdt-red); }

/* ---------- Responsive ---------- */
@media (max-width: 1018px) {
	.jdt-logo { font-size: 70px; letter-spacing: -3px; }
	.jdt-with-side, .jdt-single { grid-template-columns: 1fr; }
	.jdt-hero { grid-template-columns: 1fr; }
	.jdt-arch-tiles, .jdt-grid4 { grid-template-columns: repeat(2, 1fr); }
	.jdt-foot-grid { grid-template-columns: 1fr 1fr; }
	.jdt-sticky { position: static; }
}
@media (max-width: 767px) {
	.jdt-head-top { flex-direction: column; min-height: 0; padding: 18px 0 8px; }
	.jdt-search { position: static; transform: none; order: 2; margin-top: 6px; }
	.jdt-logo { font-size: 42px; letter-spacing: -2px; }
	.jdt-hero-side, .jdt-grid3, .jdt-grid2, .jdt-links, .jdt-arch-tiles, .jdt-grid4, .jdt-foot-grid { grid-template-columns: 1fr; }
	.jdt-hero-main .jdt-tile { min-height: 300px; }
	.jdt-hero-main .jdt-tile-body h3 { font-size: 22px; }
	.jdt-row { grid-template-columns: 1fr; }
	.jdt-single-hero h1 { font-size: 28px; }
	.jdt-bref { margin: 0 0 24px; }
	.jdt-related-head .bg { font-size: 44px; }
}
