/*
Theme Name: Culture Athle
Author: Culture Athle
Description: Thème magazine léger et optimisé SEO pour culture-athle.com (remplace Poseidon).
Version: 3.1.2
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: culture-athle
*/

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-condensed-800.woff2") format("woff2"); }

:root {
	--ink: #121212;
	--text: #2b2b2b;
	--muted: #6f6f6f;
	--rule: #d9d6cf;
	--paper: #fbfaf7;
	--accent: #d2600a;
	--wrap: 1200px;
	--display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--cat: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font: 400 17px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration-color: rgba(18, 18, 18, .35); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.08; margin: 0 0 .5em; font-weight: 700; }
h1, h2, .card__title { font-family: var(--display); }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text, .skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; }

/* Couleurs des rubriques, sobres */
.cat-actualites { --cat: #c4560a; }
.cat-interviews { --cat: #1e5aa8; }
.cat-legende { --cat: #8c6d0f; }
.cat-decouverte { --cat: #17735a; }
.cat-conseils-athletisme { --cat: #6a3ea6; }
.cat-videos-athletisme { --cat: #b8262f; }

.kicker { position: relative; z-index: 2; display: inline-block; font: 700 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--cat); text-decoration: none; margin-bottom: 8px; }
.kicker:hover { color: var(--ink); }

/* En-tête */
.site-header { background: var(--paper); border-bottom: 1px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { flex: none; }
.brand img { display: block; height: 54px; width: auto; mix-blend-mode: multiply; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-nav a { font: 700 17px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 6px 0; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-post-ancestor > a, .site-nav .current-category-ancestor > a { color: var(--accent); }
.search-link { display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink); }
.search-link:hover { color: var(--accent); }
.search-link svg { width: 19px; height: 19px; }

/* Fil d'Ariane */
.rank-math-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.rank-math-breadcrumb p { margin: 0; }
.rank-math-breadcrumb a { color: inherit; text-decoration: none; }
.rank-math-breadcrumb a:hover { color: var(--accent); }
.rank-math-breadcrumb .separator { margin: 0 6px; }

/* Accueil : bandeau de titre façon journal */
.masthead { padding: 26px 0 0; text-align: center; }
.masthead__line { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 8px 0; text-align: left; }
.masthead__line span:last-child { text-align: right; }
.masthead h1 { font-size: clamp(56px, 10vw, 128px); font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: -.005em; margin: 26px 0 6px; }
.masthead h1 span { display: block; margin-top: 12px; font: italic 400 clamp(19px, 2.2vw, 25px)/1.3 var(--serif); text-transform: none; letter-spacing: 0; color: var(--text); }
.masthead__intro { max-width: 720px; margin: 14px auto 22px; font: 400 17px/1.6 var(--serif); color: var(--muted); }
.masthead__nav { border-top: 1px solid var(--ink); border-bottom: 3px solid var(--ink); padding: 10px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.masthead__nav a { font: 700 16px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 4px 16px; }
.masthead__nav a + a { border-left: 1px solid var(--rule); }
.masthead__nav a:hover { color: var(--cat); }
.masthead__nav small { font: 400 13px/1 var(--sans); color: var(--muted); margin-left: 4px; letter-spacing: 0; }

/* Sections */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 3px solid var(--ink); padding-top: 10px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.section-head h2 a { text-decoration: none; color: inherit; }
.section-head h2 a:hover { color: var(--cat); }
.section-head .more { flex: none; font-size: 14px; color: var(--muted); text-decoration: none; }
.section-head .more:hover { color: var(--accent); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, .7); margin: 24px 0; padding: 56px 0; }
.section--dark .section-head { border-top-color: #fff; }
.section--dark .section-head h2, .section--dark .card__title a { color: #fff; }
.section--dark .section-head .more { color: rgba(255, 255, 255, .6); }
.section--dark .kicker { color: #d8b75a; }
.section--dark .card__meta { color: rgba(255, 255, 255, .5); }
.section--dark .card__img { background: #222; }
.section--dark .card__img img { filter: grayscale(1) contrast(1.06); }

/* À la une */
.front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 40px; }
.front__lead .card__img { aspect-ratio: 16 / 10; }
.front__lead .card__title { font-size: clamp(34px, 4vw, 50px); line-height: 1; }
.front__lead .card__excerpt { font: 400 19px/1.55 var(--serif); color: var(--text); max-width: 640px; }
.front__side { border-left: 1px solid var(--rule); padding-left: 40px; display: grid; align-content: start; }
.front__side .card { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--rule); }
.front__side .card:last-child { border-bottom: 0; margin-bottom: 0; }
.front__side .card__title { font-size: 25px; }
.latest-title { margin: 44px 0 0; padding-top: 10px; border-top: 1px solid var(--ink); font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.latest { margin-top: 18px; }

/* Cartes */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.card { position: relative; }
.card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #ebe8e1; margin-bottom: 14px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__img--empty { display: grid; place-items: center; }
.card__img--empty::after { content: "CA"; font: 800 44px/1 var(--display); color: rgba(18, 18, 18, .14); }
.card__title { font-size: 23px; font-weight: 700; line-height: 1.08; margin: 0 0 8px; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; color: var(--ink); }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__excerpt { font: 400 16px/1.5 var(--serif); color: var(--muted); margin: 0 0 8px; }
.card__meta { font-size: 13px; color: var(--muted); }

/* Mise en page avec barre latérale */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding-top: 36px; padding-bottom: 80px; }
.sidebar { font-size: 15px; }
.sidebar > div { position: sticky; top: 100px; }
.sidebar .widget { margin-bottom: 36px; }
.sidebar .widget-title, .sidebar h2 { font: 800 19px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); border-top: 3px solid var(--ink); padding-top: 10px; margin-bottom: 8px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.sidebar li a { text-decoration: none; }
.sidebar .search-form { flex-direction: column; margin: 0; }
.sidebar .search-form button { padding: 11px 16px; }

/* Archives */
.archive-head { padding: 36px 0 0; }
.archive-head .wrap > div { border-bottom: 3px solid var(--ink); padding-bottom: 24px; }
.archive-head h1 { font-size: clamp(48px, 7vw, 88px); font-weight: 800; text-transform: uppercase; line-height: .92; margin: 4px 0 14px; }
.archive-head .count { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.archive-head .term-description { max-width: 760px; font: italic 400 20px/1.5 var(--serif); color: var(--text); }
.archive-head .term-description p:last-child { margin: 0; }
.archive-list .card { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--rule); }
.archive-list .card:last-child { border-bottom: 0; }
.archive-list .card__img { margin: 0; }
.archive-list .card__title { font-size: 30px; }
.pagination { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--ink); padding-top: 20px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; text-decoration: none; font: 700 18px/1 var(--display); color: var(--ink); }
.pagination a.page-numbers:hover { color: var(--accent); }
.pagination .current { background: var(--ink); color: #fff; }

/* Article */
.entry-header { max-width: 860px; padding: 36px 0 24px; }
.entry-header h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; line-height: .98; margin: 6px 0 18px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--ink); padding-top: 12px; }
.entry-meta a { color: var(--ink); }
.entry-thumb { margin: 0 0 8px; }
.entry-thumb img { display: block; width: 100%; max-height: 620px; object-fit: cover; }
.entry-body { max-width: 720px; }
.entry-content { font: 400 19px/1.7 var(--serif); color: #222; overflow-wrap: anywhere; }
.entry-content > p:first-of-type::first-letter { float: left; font: 800 82px/.74 var(--display); color: var(--ink); margin: 9px 10px 0 0; }
.entry-content h2 { font-size: 34px; margin-top: 1.5em; }
.entry-content h3 { font: 700 22px/1.25 var(--sans); margin-top: 1.5em; }
.entry-content h4 { font: 700 19px/1.3 var(--sans); margin-top: 1.4em; }
.entry-content img { height: auto; }
.entry-content figure { margin: 1.8em 0; max-width: 100%; }
.entry-content figcaption, .entry-content .wp-caption-text { font: 400 14px/1.45 var(--sans); color: var(--muted); margin-top: 8px; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content blockquote { margin: 2em 0; padding: 0 0 0 24px; border-left: 3px solid var(--ink); font: italic 400 24px/1.4 var(--serif); color: var(--ink); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; font: 400 15px/1.5 var(--sans); display: block; overflow-x: auto; }
.entry-content td, .entry-content th { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.yt { position: relative; aspect-ratio: 16 / 9; margin: 1.8em 0; background: #000; overflow: hidden; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt__play img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s; }
.yt__play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: #e62117 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat; }
.yt__play:hover img { opacity: 1; }
.entry-content .note { margin: 1.6em 0; padding: 14px 18px; background: #f1ede4; border-left: 3px solid var(--accent); font: 400 16px/1.55 var(--sans); }
.entry-content .store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 2em; }
.entry-content .store-badges img { width: 160px; height: auto; display: block; }
.entry-content .official { font: 400 14px/1.5 var(--sans); color: var(--muted); }
.entry-content th { background: #f1ede4; font-family: var(--sans); font-weight: 700; color: var(--ink); }
.entry-tags { margin-top: 32px; font-size: 14px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; border-top: 1px solid var(--ink); padding-top: 16px; }
.post-nav__item { display: block; font: 700 20px/1.15 var(--display); text-decoration: none; color: var(--ink); }
.post-nav__item span { display: block; font: 400 13px/1.4 var(--sans); color: var(--muted); margin-bottom: 4px; }
.post-nav__item:hover { color: var(--accent); }
.post-nav__item--next { grid-column: 2; text-align: right; }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; margin-top: 48px; padding-top: 20px; border-top: 3px solid var(--ink); }
.author-box--text { grid-template-columns: 1fr; }
.author-box img { border-radius: 50%; filter: grayscale(1); }
.author-box strong { display: block; font: 700 20px/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.author-box__site { font-style: normal !important; font-family: var(--sans) !important; font-size: 14px !important; }
.author-box p { margin: 4px 0 0; font: italic 400 16px/1.5 var(--serif); color: var(--muted); }

.related-section { border-top: 1px solid var(--ink); }
.related-section .card__title { font-size: 21px; }

.page-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.page-wrap h1 { font-size: clamp(40px, 5vw, 60px); font-weight: 800; text-transform: uppercase; border-bottom: 3px solid var(--ink); padding-bottom: 14px; }

/* Recherche */
.search-form { display: flex; gap: 0; margin: 18px 0 0; max-width: 560px; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: 12px 14px; font: inherit; font-size: 16px; background: #fff; border: 1px solid var(--ink); border-radius: 0; }
.search-form input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.search-form button { padding: 0 20px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: #fff; font: 700 16px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.search-form button:hover { background: var(--accent); border-color: var(--accent); }

/* Pied de page */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .62); font-size: 15px; padding: 52px 0 28px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #f0a35e; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer-brand { font: 800 44px/.9 var(--display); text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.footer-brand span { color: #fff; }
.footer-grid h2 { color: #fff; font-size: 17px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 40px; padding-top: 18px; font-size: 13px; color: rgba(255, 255, 255, .45); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 1060px) {
	.layout { grid-template-columns: 1fr; gap: 48px; }
	.sidebar > div { position: static; }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.front { grid-template-columns: 1fr; }
	.front__side { border-left: 0; padding-left: 0; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ink); grid-template-columns: 1fr 1fr; gap: 0 28px; }
	.front__side .card { border-bottom: 0; }
	.site-header .wrap { gap: 20px; }
	.site-nav ul { gap: 4px 16px; }
	.site-nav a { font-size: 15px; }
}

@media (max-width: 760px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.site-header { position: static; }
	.site-header .wrap { flex-wrap: wrap; gap: 4px 16px; padding-top: 10px; padding-bottom: 8px; min-height: 0; }
	.brand img { height: 44px; }
	.search-link { margin-left: auto; }
	.site-nav { order: 3; width: 100%; margin: 0; }
	.site-nav ul { gap: 0 16px; }
	.masthead { padding-top: 16px; }
	.masthead__line { font-size: 12px; }
	.masthead__line span:last-child { display: none; }
	.masthead h1 { margin-top: 18px; }
	.masthead__intro { font-size: 16px; }
	.masthead__nav a { font-size: 15px; padding: 4px 10px; }
	.masthead__nav small { display: none; }
	.section { padding: 36px 0; }
	.front__side { grid-template-columns: 1fr; }
	.front__lead .card__excerpt { font-size: 17px; }
	.grid, .grid--4 { grid-template-columns: 1fr; gap: 30px; }
	.section--dark .grid--4 { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
	.section--dark .grid--4 .card__title { font-size: 19px; }
	.archive-list .card { grid-template-columns: 1fr; gap: 0; }
	.archive-list .card__img { margin-bottom: 12px; }
	.archive-list .card__title { font-size: 26px; }
	.entry-header { padding-top: 24px; }
	.entry-content { font-size: 18px; }
	.entry-content > p:first-of-type::first-letter { font-size: 66px; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em auto; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__item--next { grid-column: auto; text-align: left; }
	.layout { padding-top: 24px; padding-bottom: 56px; }
	.page-wrap { padding: 28px 16px 56px; }
}
