/*
 * Single posts and pages: two-column layout, title block, video player, reading typography (from the prototype's
 * prose.css), tags, previous / next, sidebar boxes, comments.
 */
.feu-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.feu-article { min-width: 0; max-width: 780px; }
.feu-article__head { margin-bottom: 1.5rem; }
.feu-article__title { margin: 0 0 .8rem; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.3rem); font-weight: 600; line-height: 1.05; }
.feu-article__meta { margin: 0; color: var(--wp--preset--color--muted); }
/* links under the title look like links (« Toutes ses vidéos »): brand colour, 10:1 in light, 11:1 in dark */
.feu-article__meta .feu-speaker { color: var(--wp--preset--color--brand); text-decoration: underline; text-underline-offset: .2em; }
.feu-article__image { margin: 0 0 1.8rem; }
.feu-article__image img { width: 100%; height: auto; border-radius: var(--feu-radius-lg); }

/* video player (assets/js/feu.js swaps in the YouTube iframe on click) */
.feu-player { margin: 0 0 1.8rem; }
.feu-player__btn, .feu-player iframe { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--feu-radius-lg); overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 20px 44px var(--feu-shadow-strong); }
/* pinned to the 16:9 box: YouTube's 4:3 pictures (640×480, 480×360) would keep their own shape, and cover crops their
 * baked-in black bands exactly, as YouTube does. Two classes: a player in the text would get .feu-prose img's height */
.feu-player .feu-player__btn img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--feu-ease), filter .3s ease; }
.feu-player .feu-player__btn:hover img { transform: scale(1.02); filter: brightness(.94); }
.feu-player__btn .feu-thumb__play { width: 76px; height: 76px; }
.feu-player__btn:hover .feu-thumb__play { transform: translate(-50%, -50%) scale(1.08); }
.feu-player__btn .feu-thumb__play svg { width: 30px; height: 30px; }

/* reading typography */
.feu-prose { font-size: var(--wp--preset--font-size--lg); line-height: 1.75; color: color-mix(in srgb, var(--wp--preset--color--text) 86%, var(--wp--preset--color--bg)); overflow-wrap: break-word; }
.feu-prose > * { margin-block: 0; }
.feu-prose > * + * { margin-block-start: 1.25em; }
.feu-prose > :is(h2, h3, h4) { margin-block-start: 1.9em; }
.feu-prose > :is(h2, h3, h4) + * { margin-block-start: .7em; }
.feu-prose :is(h2, h3, h4, h5, h6) { color: var(--wp--preset--color--text); line-height: 1.2; }
.feu-prose h2 { font-size: 2rem; }
.feu-prose h3 { font-size: 1.6rem; }
.feu-prose h4 { font-size: 1.3rem; }
.feu-prose a { color: var(--wp--preset--color--brand); text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.feu-prose a:hover { text-decoration-color: currentColor; }
.feu-prose :is(strong, b) { font-weight: 600; color: var(--wp--preset--color--text); }
.feu-prose :is(ul, ol) { padding-inline-start: 1.5em; }
.feu-prose li + li { margin-block-start: .45em; }
.feu-prose li::marker { color: var(--wp--preset--color--gold-text); }
.feu-prose blockquote { margin-inline: 0; padding: .2em 0 .2em 1.25em; border-inline-start: 3px solid var(--wp--preset--color--gold); font-family: var(--wp--preset--font-family--heading); font-size: 1.3rem; font-style: italic; color: var(--wp--preset--color--text); }
.feu-prose hr { border: 0; border-top: 1px solid var(--feu-border-strong); margin-block: 2.5em; }
.feu-prose img { height: auto; border-radius: var(--feu-radius-lg); }
.feu-prose figure { margin-inline: 0; }
.feu-prose figcaption { margin-top: .6em; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--sm); text-align: center; }
.feu-prose .feu-lead { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.35rem, 1.15rem + .7vw, 1.7rem); line-height: 1.4; color: var(--wp--preset--color--text); }
.feu-prose iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--feu-radius-lg); }
.feu-prose .wp-block-embed__wrapper { position: static; }
.feu-prose .wp-block-embed { margin-inline: 0; }
/* pasted font sizes, fonts and black text in old posts and pages */
.feu-prose [style*="font-size"] { font-size: inherit !important; }
.feu-prose [style*="font-family"] { font-family: inherit !important; }
.feu-prose [style*="color: #000000"], .feu-prose [style*="color:#000000"] { color: inherit !important; }

/* tags, previous / next */
.feu-article .feu-chips { margin: 2rem 0 0; }
.feu-adjacent { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 2rem; }
.feu-adjacent__link { display: grid; gap: .35rem; padding: 1.1rem 1.3rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: var(--feu-radius-lg); color: var(--wp--preset--color--text); text-decoration: none; transition: border-color .2s ease, transform .2s var(--feu-ease); }
.feu-adjacent__link:hover { border-color: var(--wp--preset--color--gold); transform: translateY(-2px); }
.feu-adjacent__link--next { text-align: right; }
.feu-adjacent__meta { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--xs); }
.feu-adjacent__title { font-family: var(--wp--preset--font-family--heading); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }

/* sidebar */
.feu-article__aside { display: grid; gap: 1.5rem; position: sticky; top: 1.5rem; grid-column: 2; grid-row: 1; }
/* comments come after the sidebar in the page (phones: related videos first); on large screens they sit under the article */
.feu-article__comments { grid-column: 1; min-width: 0; max-width: 780px; }
.feu-article-layout:has(> .feu-article__comments) .feu-article__aside { grid-row: 1 / span 2; }
.feu-article__comments .feu-comments { margin-top: 0; }   /* the layout's gap is the space above */
.feu-box { padding: 1.3rem 1.4rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: var(--feu-radius-lg); }
.feu-box--sand { background: var(--wp--preset--color--fill); border-color: transparent; }
.feu-box .feu-eyebrow { margin-bottom: 1rem; }
.feu-mini-list { display: grid; gap: 1rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.feu-mini-list li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: .8rem; align-items: start; }
.feu-mini-list .feu-thumb { border-radius: var(--feu-radius-sm); }
.feu-mini-list__title { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; font-weight: 600; line-height: 1.2; color: var(--wp--preset--color--text); text-decoration: none; }
.feu-mini-list__title:hover { color: var(--wp--preset--color--brand); }
.feu-mini-list__date { display: block; margin-top: .25rem; font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--muted); }
.feu-section-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.feu-section-list a { font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; font-weight: 500; color: var(--wp--preset--color--brand); text-decoration: none; }
.feu-section-list a:hover, .feu-section-list a[aria-current] { text-decoration: underline; text-underline-offset: .2em; }
.feu-section-list a[aria-current] { font-weight: 700; }

/* comments */
.feu-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--feu-border-strong); }
.feu-comments__title { margin: 0 0 1.2rem; font-size: 1.8rem; font-weight: 500; }
.feu-comments__list, .feu-comments__list .children { list-style: none; margin: 0; padding: 0; }
.feu-comments__list .children { margin-left: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--wp--preset--color--border); }
.feu-comments__list .comment-body { margin-bottom: 1rem; padding: 1rem 1.2rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: var(--feu-radius-lg); }
.feu-comments__list .comment-author { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.feu-comments__list .comment-author img { border-radius: 50%; }
.feu-comments__list .comment-author .says { display: none; }
.feu-comments__list .comment-metadata { font-size: var(--wp--preset--font-size--xs); }
.feu-comments__list .comment-metadata a { color: var(--wp--preset--color--muted); text-decoration: none; }
.feu-comments__list .reply a { font-size: var(--wp--preset--font-size--sm); font-weight: 600; }
.comment-form { display: grid; gap: 1rem; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: .35rem; font-size: var(--wp--preset--font-size--sm); font-weight: 600; }
.comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
	width: 100%; padding: .75rem 1rem; border: 1px solid var(--feu-border-strong); border-radius: var(--feu-radius); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--text); font: inherit;
}
.comment-form :is(input, textarea):focus { outline: none; border-color: var(--wp--preset--color--gold); box-shadow: 0 0 0 3px rgb(201 162 74 / .25); }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }
.comment-form input[type="checkbox"] { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--wp--preset--color--brand); }
.comment-notes, .logged-in-as { font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--muted); }

@media (max-width: 1000px) {
	.feu-article-layout { grid-template-columns: minmax(0, 1fr); }
	.feu-article { max-width: none; }
	.feu-article__aside { position: static; }
	.feu-article__aside, .feu-article__comments, .feu-article-layout:has(> .feu-article__comments) .feu-article__aside { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) {
	.feu-prose { font-size: 1.0625rem; line-height: 1.7; }
	.feu-player__btn .feu-thumb__play { width: 58px; height: 58px; }
	.feu-adjacent__link--next { text-align: left; }
}
