/*
Theme Name: PLAID·ACT Campagne
Theme URI: https://plaidact.org
Author: PLAID·ACT
Description: Thème one-page FSE/Gutenberg optimisé pour campagnes multisite PLAID·ACT.
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 8.1
Version: 1.1.0
Text Domain: plaidact-campaign
*/

:root {
	--plaid-dark: #091320;
	--plaid-light: #f6f8fb;
	--plaid-accent: #2f6d4b;
	--plaid-accent-soft: #2f6d4b;
	--plaid-cyan: #6de8ff;
	--plaid-hot: #ff4f5e;
	--container: 1200px;
}

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	color: var(--plaid-dark);
	background: radial-gradient(circle at top right, #fff 0%, var(--plaid-light) 52%, #edf2f9 100%);
	line-height: 1.55;
	text-rendering: optimizelegibility;
	-webkit-font-smoothing: antialiased;
}

.section {
	padding: 4rem 1.25rem;
	content-visibility: auto;
	contain-intrinsic-size: 1px 680px;
}

.wrap {
	max-width: var(--container);
	margin: 0 auto;
}

.hero {
	position: relative;
	min-height: 90vh;
	display: grid;
	place-items: center;
	overflow: hidden;
	color: #fff;
	isolation: isolate;
}

.hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background-size: cover;
	background-position: center;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(9 19 32 / 20%) 0%, rgb(9 19 32 / 72%) 100%);
}

.hero::before,
.hero::after {
	content: "";
	position: absolute;
	width: 44vmax;
	height: 44vmax;
	border-radius: 999px;
	filter: blur(34px);
	pointer-events: none;
	opacity: 0.5;
	z-index: 1;
}

.hero::before {
	top: -18vmax;
	left: -10vmax;
	background: radial-gradient(circle, rgb(255 79 94 / 80%) 0%, rgb(255 79 94 / 8%) 70%);
	animation: float-orb-1 14s ease-in-out infinite alternate;
}

.hero::after {
	bottom: -22vmax;
	right: -12vmax;
	background: radial-gradient(circle, rgb(109 232 255 / 60%) 0%, rgb(109 232 255 / 10%) 65%);
	animation: float-orb-2 18s ease-in-out infinite alternate;
}

.hero__content {
	position: relative;
	z-index: 2;
	text-align: left;
	max-width: 820px;
	padding: 2rem 0;
	animation: fade-up 950ms ease-out both;
}

.hero-title {
	font-size: clamp(2rem, 6vw, 5rem);
	line-height: 1.1;
	margin: 0;
	text-wrap: balance;
	text-shadow: 0 16px 38px rgb(0 0 0 / 30%);
}

.hero__content > p {
	font-size: clamp(1rem, 1.7vw, 1.3rem);
	max-width: 56ch;
	margin: 1.1rem 0 0;
	color: rgb(255 255 255 / 88%);
}

.hero__logo {
	margin-bottom: 1rem;
}

.hero__logo img {
	max-height: 54px;
	width: auto;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-top: 1.7rem;
}

.plaidact-card {
	padding: 1rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
}

.plaidact-button {
	display: inline-block;
	background: var(--plaid-accent);
	color: #fff;
	padding: 0.8rem 1.4rem;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
	will-change: transform;
}

.plaidact-button:hover,
.plaidact-button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgb(47 109 75 / 28%);
	background: color-mix(in srgb, var(--plaid-accent) 88%, #fff);
}

.hero__link {
	color: #fff;
	text-underline-offset: 0.3em;
	font-weight: 600;
}

.report-highlight {
	background: linear-gradient(135deg, #101d31 0%, #162b46 55%, #1f3e66 100%);
	color: #fff;
}

.report-highlight__card {
	border-radius: 16px;
	padding: 2rem;
	background: rgb(255 255 255 / 8%);
	backdrop-filter: blur(3px);
	border: 1px solid rgb(255 255 255 / 15%);
	box-shadow: 0 18px 40px rgb(0 0 0 / 18%);
}

.report-highlight__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8rem;
	opacity: 0.85;
	margin: 0 0 0.25rem;
}

.report-highlight__button {
	box-shadow: 0 8px 20px rgb(255 79 94 / 45%);
}

.report-highlight__hint {
	opacity: 0.8;
	font-style: italic;
}

.hero-partners {
	margin-top: 2.5rem;
}

.hero-partners__inner {
	padding: 1.1rem;
	border-radius: 18px;
	background: linear-gradient(135deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 8%));
	border: 1px solid rgb(255 255 255 / 24%);
	backdrop-filter: blur(7px);
	box-shadow: 0 14px 45px rgb(0 0 0 / 22%);
}

.hero-partners__title {
	margin: 0 0 0.9rem;
	font-size: 0.92rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgb(255 255 255 / 80%);
}

.campaign-footer {
	background: linear-gradient(165deg, #091320 0%, #111f36 100%);
	color: #fff;
}

.campaign-footer__inner {
	display: grid;
	gap: 1.2rem;
}

.campaign-footer__menu ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.campaign-footer__menu a,
.campaign-footer__meta a {
	color: #fff;
	text-decoration: none;
}

.campaign-footer__menu a:hover,
.campaign-footer__meta a:hover {
	text-decoration: underline;
}

.campaign-footer__meta p {
	margin: 0.2rem 0;
	opacity: 0.9;
}

.campaign-footer__meta a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.campaign-footer__meta a::after {
	content: "↗";
	font-size: 0.9em;
}

.hero-partners__grid,
.partners-section__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
	gap: 0.8rem;
	align-items: center;
}

.partner-logo-card {
	position: relative;
	overflow: hidden;
	min-height: 84px;
	padding: 0.85rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e5e7eb;
	display: grid;
	place-items: center;
	transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.partner-logo-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(130deg, rgb(255 79 94 / 0%) 0%, rgb(255 79 94 / 10%) 100%);
	opacity: 0;
	transition: opacity 250ms ease;
}

.partner-logo-card:hover {
	transform: translateY(-4px) scale(1.01);
	box-shadow: 0 10px 28px rgb(9 19 32 / 12%);
	border-color: rgb(255 79 94 / 28%);
}

.partner-logo-card:hover::after {
	opacity: 1;
}

.partner-logo-card img {
	max-height: 42px;
	width: auto;
	object-fit: contain;
	filter: saturate(1.02) contrast(1.02);
}

.partner-logo-card--hero {
	background: rgb(255 255 255 / 95%);
}

@keyframes float-orb-1 {
	0% {
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(7vmax, 5vmax, 0);
	}
}

@keyframes float-orb-2 {
	0% {
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(-9vmax, -4vmax, 0);
	}
}

@keyframes fade-up {
	0% {
		opacity: 0;
		transform: translateY(28px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@supports (animation-timeline: view()) {
	.section:not(.hero) .wrap,
	.section:not(.hero) .plaidact-card {
		animation: fade-up linear both;
		animation-timeline: view();
		animation-range: entry 12% cover 28%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero::before,
	.hero::after,
	.hero__content {
		animation: none;
	}

	.partner-logo-card {
		transition: none;
	}
}


.hero__share {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	z-index: 3;
	text-decoration: none;
	background: rgb(9 19 32 / 70%);
	color: #fff;
	padding: 0.6rem 0.9rem;
	border-radius: 999px;
	font-weight: 600;
}

.hero-newsletter {
	padding-top: 1.2rem;
}

.hero__mail-share {
	margin-top: 1rem;
}

.hero__share-list {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	z-index: 3;
	display: flex;
	gap: 0.45rem;
	flex-wrap: wrap;
	justify-content: flex-end;
	max-width: min(90vw, 540px);
}

.hero__share-link {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 999px;
	background: rgb(9 19 32 / 70%);
	color: #fff;
	text-decoration: none;
	font-size: 0.72rem;
	font-weight: 700;
}

.hero__share-tooltip {
	position: absolute;
	bottom: 125%;
	left: 50%;
	transform: translate(-50%, 8px);
	background: #fff;
	color: #091320;
	padding: 0.25rem 0.45rem;
	border-radius: 6px;
	font-size: 0.72rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease, transform 180ms ease;
	white-space: nowrap;
}

.hero__share-link:hover .hero__share-tooltip,
.hero__share-link:focus-visible .hero__share-tooltip {
	opacity: 1;
	transform: translate(-50%, 0);
}

.partner-logo-card {
	min-height: 102px;
	padding: 1.1rem;
}

.partner-logo-card img {
	max-height: 56px;
}

.plaidact-card--petition,
.plaidact-card--send-mail,
.plaidact-card--social {
	border-radius: 18px;
	padding: 1.3rem;
	box-shadow: 0 14px 36px rgb(9 19 32 / 8%);
	background: linear-gradient(180deg, #fff 0%, #fdfefe 100%);
	border: 1px solid #e7edf5;
}

.plaidact-card__title {
	margin-top: 0;
	margin-bottom: 0.4rem;
}

.plaidact-form-grid,
.plaidact-form-inline {
	display: grid;
	gap: 0.7rem;
	margin-top: 1rem;
}

.plaidact-form-inline {
	grid-template-columns: minmax(220px, 1fr) auto;
}

.plaidact-form-grid input,
.plaidact-form-inline input {
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 0.72rem 0.8rem;
}

.plaidact-progress {
	height: 10px;
	background: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
}

.plaidact-progress span {
	display: block;
	height: 100%;
	background: var(--plaid-accent, #2f6d4b);
}

.plaidact-social-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
}

.plaidact-social-card {
	padding: 1rem;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.plaidact-social-card:hover,
.plaidact-social-card:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgb(9 19 32 / 10%);
}

.partners-section__title,
.plaidact-card__title,
.report-highlight__card h2 {
	position: relative;
	display: inline-block;
}

.partners-section__title::after,
.plaidact-card__title::after,
.report-highlight__card h2::after {
	content: "";
	display: block;
	height: 3px;
	width: 68%;
	margin-top: 0.2rem;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--plaid-accent), var(--plaid-hot));
}

.plaidact-social-card__platform {
	margin: 0 0 0.6rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #475569;
}

@media (max-width: 680px) {
	.plaidact-form-inline {
		grid-template-columns: 1fr;
	}

	.hero__share-list {
		position: static;
		margin-top: 1.2rem;
		justify-content: flex-start;
	}
}
