/*
Theme Name: Film Féministe — Hello Child
Theme URI: https://film-feministe.fr/
Description: Thème enfant Hello Elementor pour Film Féministe. En-tête, pied de page, archives et recherche sans Elementor Pro.
Author: Film Féministe
Template: hello-elementor
Version: 1.5.6
Text Domain: film-feministe-hello
*/

@font-face {
	font-family: "Tan Nimbus";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/tan-nimbus.woff2") format("woff2");
}

@font-face {
	font-family: Karla;
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/karla-normal.woff2") format("woff2");
}

@font-face {
	font-family: Karla;
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/karla-italic.woff2") format("woff2");
}

@font-face {
	font-family: Rubik;
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/rubik-normal.woff2") format("woff2");
}

:root {
	--fff-bg: #171717;
	--fff-surface: rgba(174, 171, 171, .22);
	--fff-surface-strong: #2d2d2d;
	--fff-text: #f5f5f5;
	--fff-muted: #b8b8b8;
	--fff-border: #b3b3b3;
	--fff-accent: #ffffff;
	--fff-link-hover: #bb76ff;
	--fff-header-height: 94px;
	--fff-container: 1120px;
	--fff-radius: 4px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #181818;
	color: var(--fff-text);
	font-family: Karla, Arial, Helvetica, sans-serif;
	font-size: 17px;
	line-height: 1.85;
}

h1 {
	font-family: "Tan Nimbus", Karla, sans-serif;
}

h2,
h3,
h4,
h5,
h6 {
	font-family: Rubik, Karla, sans-serif;
}

button,
input,
select,
textarea {
	font-family: Karla, Arial, Helvetica, sans-serif;
}

body.admin-bar .fff-site-header {
	top: 32px;
}

a {
	color: inherit;
}

body a:not(.elementor-button):not(.fff-blog__button) {
	color: inherit;
	font-weight: 700;
	text-decoration: none;
	transition: color .2s ease;
}

body a:not(.elementor-button):not(.fff-blog__button):hover,
body a:not(.elementor-button):not(.fff-blog__button):focus-visible {
	color: var(--fff-link-hover);
	text-decoration: none;
}

body .elementor-button,
body a.elementor-button,
body .fff-blog__button,
body button:not(.fff-nav-toggle):not(.fff-submenu-toggle),
body input[type="button"],
body input[type="submit"] {
	border: 1px solid #f5f5f5;
	background-color: #181818;
	color: #f5f5f5;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

body .elementor-button:hover,
body .elementor-button:focus-visible,
body a.elementor-button:hover,
body a.elementor-button:focus-visible,
body .fff-blog__button:hover,
body .fff-blog__button:focus-visible,
body button:not(.fff-nav-toggle):not(.fff-submenu-toggle):hover,
body button:not(.fff-nav-toggle):not(.fff-submenu-toggle):focus-visible,
body input[type="button"]:hover,
body input[type="button"]:focus-visible,
body input[type="submit"]:hover,
body input[type="submit"]:focus-visible {
	border-color: #fff;
	background-color: #fff;
	color: #181818;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
	transform: translateY(-2px);
}

/* Elementor widgets may carry per-widget colours that otherwise override
 * the site-wide button style. Keep the global palette authoritative. */
body .elementor .elementor-button,
body .elementor a.elementor-button,
body .elementor button.elementor-button,
body .elementor input[type="button"].elementor-button,
body .elementor input[type="submit"].elementor-button {
	background-color: #181818 !important;
	color: #f5f5f5 !important;
	font-weight: 700;
}

body .elementor .elementor-button:hover,
body .elementor .elementor-button:focus-visible,
body .elementor a.elementor-button:hover,
body .elementor a.elementor-button:focus-visible,
body .elementor button.elementor-button:hover,
body .elementor button.elementor-button:focus-visible,
body .elementor input[type="button"].elementor-button:hover,
body .elementor input[type="button"].elementor-button:focus-visible,
body .elementor input[type="submit"].elementor-button:hover,
body .elementor input[type="submit"].elementor-button:focus-visible {
	background-color: #ffffff !important;
	color: #181818 !important;
	border-color: #ffffff !important;
}

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: #fff;
	color: #111;
}

.fff-container,
.fff-content-shell {
	width: min(calc(100% - 40px), var(--fff-container));
	margin-inline: auto;
}

.fff-site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: #050505;
	border-bottom: 1px solid #222;
}

.fff-site-header__inner {
	display: flex;
	min-height: var(--fff-header-height);
	align-items: center;
	justify-content: space-between;
	gap: 38px;
}

.fff-brand {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	text-decoration: none;
}

.fff-brand img {
	display: block;
	width: clamp(116px, 9vw, 126px);
	max-height: 72px;
	object-fit: contain;
}

.fff-nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	padding: 9px;
	border: 1px solid #5a5a5a;
	border-radius: var(--fff-radius);
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.fff-nav-toggle__line {
	display: block;
	width: 100%;
	height: 2px;
	margin: 4px 0;
	background: currentColor;
}

.fff-primary-nav {
	margin-left: auto;
}

.fff-primary-nav ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

.fff-primary-nav > ul {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.4vw, 38px);
}

.fff-primary-nav li {
	position: relative;
}

.fff-primary-nav a {
	display: block;
	padding: 13px 0;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

.fff-primary-nav a:hover,
.fff-primary-nav a:focus-visible,
.fff-primary-nav .current-menu-item > a,
.fff-primary-nav .current-menu-ancestor > a {
	text-decoration: none;
}

.fff-primary-nav a:hover,
.fff-primary-nav a:focus-visible,
.fff-site-footer__links a:hover,
.fff-site-footer__links a:focus-visible,
.fff-entry-content a:not(.elementor-button):hover,
.fff-entry-content a:not(.elementor-button):focus-visible,
.fff-card__title a:hover,
.fff-card__title a:focus-visible,
.fff-card__link:hover,
.fff-card__link:focus-visible {
	color: var(--fff-link-hover);
}

.fff-primary-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin: 0 0 3px 8px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg);
}

.fff-primary-nav .sub-menu {
	position: absolute;
	top: calc(100% - 2px);
	left: -18px;
	z-index: 30;
	min-width: 230px;
	padding: 10px 18px;
	visibility: hidden;
	background: #0d0d0d;
	border: 1px solid #303030;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.fff-primary-nav .sub-menu .sub-menu {
	top: -11px;
	left: calc(100% + 18px);
}

.fff-primary-nav li:hover > .sub-menu,
.fff-primary-nav li:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

.fff-primary-nav .sub-menu a {
	padding: 10px 0;
}

.fff-content-shell {
	padding-block: clamp(42px, 6vw, 76px);
}

body.elementor-page .fff-content-shell--singular {
	width: 100%;
	max-width: none;
	padding: 0;
}

.fff-article-header {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
	padding-top: clamp(42px, 6vw, 76px);
}

.fff-article-header .fff-entry-title {
	margin: 0 auto clamp(26px, 4vw, 42px);
	color: #fff;
	font-family: "Tan Nimbus", Karla, sans-serif;
	font-size: clamp(34px, 4vw, 46px);
	font-weight: 400;
	line-height: 1.25;
	text-align: center;
}

.fff-film-header {
	padding-bottom: clamp(26px, 4vw, 42px);
}

.fff-film-header .fff-entry-title {
	margin-bottom: 0;
}

.fff-article-featured {
	margin: 0 auto clamp(34px, 5vw, 56px);
}

.fff-article-featured__image {
	display: block;
	width: 100%;
	max-height: 630px;
	border-radius: var(--fff-radius);
	object-fit: cover;
}

.fff-page-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 375px);
	align-items: center;
	gap: 32px;
	margin-bottom: clamp(34px, 5vw, 58px);
}

.fff-page-header--compact {
	grid-template-columns: 1fr;
}

.fff-page-title {
	margin: 0;
	color: #fff;
	font-family: "Tan Nimbus", Karla, sans-serif;
	font-size: clamp(34px, 4vw, 40px);
	font-weight: 400;
	line-height: 1.4;
}

.fff-archive-description {
	max-width: 760px;
	margin-top: 18px;
	color: var(--fff-muted);
}

.fff-search-form {
	display: flex;
	width: 100%;
}

.fff-search-form__field {
	min-width: 0;
	min-height: 50px;
	flex: 1 1 auto;
	padding: 10px 16px;
	border: 1px solid #dedede;
	border-radius: var(--fff-radius) 0 0 var(--fff-radius);
	background: #f2f2f2;
	color: #202020;
	font: inherit;
}

.fff-search-form__submit {
	min-width: 58px;
	min-height: 50px;
	padding: 10px 18px;
	border: 1px solid #000;
	border-radius: 0 var(--fff-radius) var(--fff-radius) 0;
	background: #000;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.fff-search-form__submit:hover,
.fff-search-form__submit:focus-visible {
	background: #292929;
}

.fff-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 30px;
	row-gap: 35px;
}

.fff-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	background: var(--fff-surface);
	border: 2px solid var(--fff-border);
	border-radius: var(--fff-radius);
	box-shadow: 0 0 10px rgba(0, 0, 0, .15);
}

.fff-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0b0b0b;
}

.fff-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.fff-card:hover .fff-card__media img {
	transform: scale(1.025);
}

.fff-card__placeholder {
	display: grid;
	height: 100%;
	place-items: center;
	padding: 30px;
	color: var(--fff-muted);
	text-align: center;
}

.fff-card__year {
	position: absolute;
	top: 18px;
	right: 18px;
	padding: 5px 13px;
	background: #050505;
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.fff-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
}

.fff-card__type {
	margin: 0 0 9px;
	color: var(--fff-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.fff-card__title {
	margin: 0 0 14px;
	font-family: Rubik, Karla, sans-serif;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
}

.fff-card__title a {
	color: #fff;
	text-decoration: none;
}

.fff-card__title a:hover,
.fff-card__title a:focus-visible {
	text-decoration: none;
}

.fff-card__excerpt {
	margin: 0 0 22px;
	color: #dedede;
	font-size: 15px;
}

.fff-card__link {
	margin-top: auto;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
	text-decoration: none;
	text-transform: uppercase;
}

.fff-card__link:hover,
.fff-card__link:focus-visible {
	text-decoration: none;
}

.fff-pagination {
	margin-top: 42px;
}

.fff-pagination .nav-links,
.fff-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.fff-pagination .nav-links > .page-numbers,
.fff-pagination ul.page-numbers a,
.fff-pagination ul.page-numbers span {
	display: inline-grid;
	min-width: 42px;
	height: 42px;
	place-items: center;
	padding-inline: 12px;
	background: #050505;
	border: 1px solid #505050;
	border-radius: var(--fff-radius);
	color: #fff;
	text-decoration: none;
}

.fff-pagination .nav-links > .page-numbers.current,
.fff-pagination ul.page-numbers .current,
.fff-pagination .nav-links > a.page-numbers:hover,
.fff-pagination .nav-links > a.page-numbers:focus-visible,
.fff-pagination ul.page-numbers a:hover,
.fff-pagination ul.page-numbers a:focus-visible {
	background: #fff;
	color: #111;
}

.fff-empty-state {
	padding: 34px;
	background: var(--fff-surface);
	border: 1px solid var(--fff-border);
}

.fff-entry-title {
	margin-top: 0;
	font-family: "Tan Nimbus", Karla, sans-serif;
	font-size: clamp(34px, 4vw, 40px);
	font-weight: 400;
	line-height: 1.4;
}

.fff-entry-content a {
	text-decoration: none;
}

.fff-site-footer {
	padding: 42px 0 26px;
	background: #050505;
	border-top: 1px solid #292929;
}

.fff-site-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	align-items: center;
	justify-content: space-between;
	gap: 0;
}

.fff-site-footer__logo img {
	display: block;
	width: clamp(180px, 22vw, 240px);
	max-width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
}

.fff-site-footer__links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: 0;
}

.fff-site-footer__links > a { justify-self: end; }
.fff-site-footer__links > .fff-instagram-link { justify-self: center; }

.fff-site-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: #fff;
	text-decoration: none;
}

.fff-site-footer__links a:hover,
.fff-site-footer__links a:focus-visible {
	text-decoration: none;
}

.fff-site-footer__copyright {
	margin: 30px 0 0;
	padding-top: 22px;
	border-top: 1px solid #292929;
	color: var(--fff-muted);
	font-size: 14px;
	text-align: center;
}

@media (max-width: 980px) {
	.fff-site-header__inner {
		min-height: 82px;
	}

	.fff-nav-enabled .fff-nav-toggle {
		display: block;
	}

	.fff-primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		max-height: calc(100vh - 82px);
		max-height: calc(100dvh - 82px);
		overflow: auto;
		visibility: visible;
		background: #050505;
		border-top: 1px solid #292929;
		opacity: 1;
		transform: none;
		transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
	}

	.fff-nav-enabled .fff-primary-nav {
		visibility: hidden;
		opacity: 0;
		transform: translateY(-6px);
	}

	.fff-nav-enabled .fff-primary-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: translateY(0);
	}

	.fff-primary-nav > ul {
		display: block;
		width: min(calc(100% - 40px), var(--fff-container));
		padding: 12px 0 24px;
		margin-inline: auto;
	}

	.fff-primary-nav a {
		padding: 13px 0;
	}

	.fff-primary-nav .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 22px;
		visibility: visible;
		background: transparent;
		border: 0;
		opacity: 1;
		transform: none;
	}

	.fff-primary-nav .sub-menu .sub-menu {
		padding-left: 18px;
	}
	.fff-nav-enabled .fff-primary-nav .sub-menu { display: none; }
	.fff-nav-enabled .fff-primary-nav .fff-submenu-open > .sub-menu { display: block; }
	.fff-nav-enabled .fff-primary-nav .menu-item-has-children > a { padding-right: 52px; }
	.fff-nav-enabled .fff-primary-nav .menu-item-has-children > a::after { display: none; }
	.fff-nav-enabled .fff-submenu-toggle {
		display: inline-flex;
		position: absolute;
		top: 0;
		right: 0;
		width: 44px;
		height: 44px;
		align-items: center;
		justify-content: center;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: #fff;
		font-size: 22px;
		cursor: pointer;
	}
	.fff-submenu-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
	.fff-primary-nav { overscroll-behavior: contain; }
	body.admin-bar .fff-primary-nav { max-height: calc(100dvh - 128px); }

	.fff-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.fff-submenu-toggle { display: none; }
.fff-site-header .fff-nav-toggle,
.fff-site-header .fff-nav-toggle:hover,
.fff-site-header .fff-nav-toggle:focus,
.fff-site-header .fff-nav-toggle:active,
.fff-site-header .fff-submenu-toggle,
.fff-site-header .fff-submenu-toggle:hover,
.fff-site-header .fff-submenu-toggle:focus,
.fff-site-header .fff-submenu-toggle:active {
	background: transparent;
	color: #fff;
	box-shadow: none;
	-webkit-tap-highlight-color: transparent;
}
.fff-site-footer__logo { flex-shrink: 0; max-width: 100%; }
.fff-site-footer__links .fff-instagram-link { min-width: 44px; justify-content: center; }
.fff-instagram-link svg { flex-shrink: 0; }
.fff-primary-nav a, .fff-site-footer__links a { overflow-wrap: anywhere; }
.fff-submenu-toggle:focus-visible, .fff-nav-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (min-width: 981px) and (max-width: 1180px) {
	.fff-site-header__inner { gap: 18px; }
	.fff-primary-nav > ul { gap: 16px; }
	.fff-primary-nav a { font-size: 14px; }
}

@media (min-width: 981px) {
	.fff-primary-nav > ul > li:nth-last-child(-n+2) > .sub-menu {
		right: 0;
		left: auto;
	}

	.fff-primary-nav > ul > li:nth-last-child(-n+2) > .sub-menu .sub-menu {
		right: calc(100% + 18px);
		left: auto;
	}
}

@media (max-width: 700px) {
	.fff-container,
	.fff-content-shell {
		width: min(calc(100% - 28px), var(--fff-container));
	}

	.fff-primary-nav > ul {
		width: min(calc(100% - 28px), var(--fff-container));
	}

	.fff-brand img {
		width: 116px;
		max-height: 64px;
	}

	.fff-page-header {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.fff-grid {
		grid-template-columns: 1fr;
	}

	.fff-card__body {
		padding: 21px;
	}

	.fff-site-footer__main {
		display: flex;
		align-items: center;
		flex-direction: column;
		text-align: center;
		gap: 32px;
	}

	.fff-site-footer__links {
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		gap: 12px;
	}
}

@media (max-width: 782px) {
	body.admin-bar .fff-site-header {
		top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}

/* Ancien CSS additionnel Astra, conservé pour la bascule vers le thème enfant. */
.wpcf7-form > p {
	color: #fff;
}

.entry-content p {
	margin-bottom: 0 !important;
}

.wpcf7-form-control {
	margin-top: 5px;
}

.wpcf7-form-control.wpcf7-submit:hover {
	background: #fff;
	border-color: #fff;
	color: #181818;
}

.entry-meta {
	display: none;
}
