/*
 * Home page: carousel of the latest videos, all sections tiles.
 */
.feu-main:has(.feu-hero) { padding-top: 0; }
.feu-hero { padding-block: clamp(1.5rem, 4vw, 3.5rem) 1.5rem; overflow: hidden; }
.feu-hero__track { display: flex; margin-inline: -12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.feu-hero__track::-webkit-scrollbar { display: none; }
.feu-hero__slide { flex: 0 0 100%; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; scroll-snap-align: start; padding: 4px 12px 2rem; }
.feu-hero__text { display: grid; gap: .9rem; justify-items: start; }
.feu-hero__title { margin: 0; font-size: clamp(2rem, 1.3rem + 2vw, 2.9rem); text-wrap: balance; font-weight: 600; line-height: 1.05; }
.feu-hero__title a { color: var(--wp--preset--color--text); text-decoration: none; }
.feu-hero__title a:hover { color: var(--wp--preset--color--brand); }
.feu-hero__detail { margin: 0; color: var(--wp--preset--color--muted); }
.feu-hero__excerpt { margin: 0; color: var(--wp--preset--color--text-secondary); font-size: var(--wp--preset--font-size--lg); line-height: 1.55; max-width: 46ch; }
.feu-hero__controls { display: flex; align-items: center; justify-content: center; gap: .6rem; }
.feu-hero__arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--feu-border-strong); border-radius: 50%; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--brand); cursor: pointer; transition: background-color .2s ease, transform .2s var(--feu-ease); }
.feu-hero__arrow:hover { background: var(--wp--preset--color--fill); transform: translateY(-1px); }
.feu-hero__arrow svg { width: 18px; height: 18px; }
.feu-hero__toggle[hidden] { display: none; }
.feu-hero__dots { display: flex; gap: 19px; padding-inline: .4rem; }   /* room for each dot's 44px target */
/* a 9px dot in a 25px target (the transparent border) */
.feu-hero__dot { width: 25px; height: 25px; padding: 0; border: 8px solid transparent; border-radius: 999px; background: var(--feu-border-strong); background-clip: content-box;   /* after the shorthand, which resets it */ cursor: pointer; transition: width .3s var(--feu-ease), background-color .3s ease; }
.feu-hero__dot { position: relative; }
.feu-hero__dot::before { content: ""; position: absolute; inset: -18px -18px; }   /* the target a finger finds: 44px around the 25px one */
.feu-hero__dot[aria-current="true"] { width: 42px; background-color: var(--wp--preset--color--brand); }
.feu-icon-play, .feu-hero.is-paused .feu-icon-pause { display: none; }
.feu-hero.is-paused .feu-icon-play { display: block; }

/* all sections */
.feu-rubriques { background: color-mix(in srgb, var(--wp--preset--color--fill) 70%, var(--wp--preset--color--bg)); }
.feu-rubriques__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.feu-rubriques__tile {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; 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--brand); text-decoration: none;
	transition: transform .25s var(--feu-ease), box-shadow .25s var(--feu-ease), border-color .25s ease;
}
.feu-rubriques__tile:hover { transform: translateY(-2px); border-color: var(--wp--preset--color--gold); box-shadow: 0 10px 24px var(--feu-shadow); }
.feu-rubriques__name { display: grid; gap: .15rem; font-family: var(--wp--preset--font-family--heading); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.feu-rubriques__name small { font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--xs); font-weight: 500; color: var(--wp--preset--color--muted); }
.feu-rubriques__arrow { color: var(--wp--preset--color--gold-text); transition: transform .25s var(--feu-ease); }
.feu-rubriques__tile:hover .feu-rubriques__arrow { transform: translateX(4px); }

@media (max-width: 1000px) {
	.feu-hero__slide { grid-template-columns: minmax(0, 1fr); }
	.feu-rubriques__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.feu-hero { padding-top: 1rem; }
	.feu-hero__excerpt, .feu-hero .feu-btn { display: none; }
	.feu-rubriques__grid { grid-template-columns: minmax(0, 1fr); }
}

/* "Votre dernière vidéo": the last video this reader started (feu.js) */
.feu-resume { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: .75rem 1rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-left: 3px solid var(--feu-border-strong); border-radius: var(--feu-radius-lg); }
.feu-resume[hidden] { display: none; }
.feu-resume__info { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; color: var(--wp--preset--color--text); }
.feu-resume__img img { display: block; width: 128px; height: 72px; object-fit: cover; border-radius: var(--feu-radius-sm); }
.feu-resume__text { display: grid; gap: .15rem; min-width: 0; }
.feu-resume__title { font-family: var(--wp--preset--font-family--heading); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.feu-resume__date { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--xs); }
.feu-resume__actions { display: flex; align-items: center; gap: .6rem; flex: none; }
.feu-resume__go { min-height: 44px; }
.feu-resume__hide { flex: none; min-height: 44px; padding: 0 .9rem; border: 0; border-radius: 999px; background: none; color: var(--wp--preset--color--text-secondary); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.feu-resume__hide:hover { color: var(--wp--preset--color--brand); }
@media (prefers-reduced-motion: no-preference) { .feu-resume:not([hidden]) { animation: feu-unfold .3s var(--feu-ease) both; } }
@media (max-width: 640px) {
	.feu-resume { flex-wrap: wrap; }
	.feu-resume__info { flex-basis: 100%; align-items: flex-start; }
	.feu-resume__actions { width: 100%; justify-content: space-between; }
	.feu-resume__img img { width: 96px; height: 54px; }
	.feu-resume__title { font-size: 1.05rem; }
}
