/*
Theme Name: Rive Étudiante
Theme URI: https://riveetudiante.fr/
Author: Rive Étudiante
Description: Thème politique blanc, or → violet du logo, plus vivant.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rive-etudiante
Tags: accessibility-ready, custom-logo, featured-images, translation-ready
*/

:root {
	--rive-paper: #ffffff;
	--rive-ink: #2a1f3d;
	--rive-mute: #6b5a7a;
	--rive-line: rgba(91, 61, 204, 0.12);
	--rive-gold: #d4a84b;
	--rive-rose: #c48a9a;
	--rive-violet: #6a3de8;
	--rive-grad: linear-gradient(105deg, #e0b85a 0%, #e0b85a 12%, #d4a06a 28%, #c48a9a 48%, #9a6bc4 72%, #6a3de8 100%);
	--rive-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--rive-wide: 1120px;
	--rive-measure: 38rem;
	--rive-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background:
		radial-gradient(1200px 480px at 0% -10%, rgba(224, 184, 90, 0.22), transparent 60%),
		radial-gradient(900px 520px at 100% 0%, rgba(106, 61, 232, 0.16), transparent 55%),
		#fff;
	color: var(--rive-ink);
	font-family: var(--rive-sans);
	font-size: 17px;
	line-height: 1.47;
	letter-spacing: -0.011em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--rive-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	transition: opacity 0.2s var(--rive-ease);
}
a:hover { opacity: 0.65; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--rive-violet);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -40rem;
	background: #fff;
	padding: 0.5rem 1rem;
	z-index: 100;
}
.skip-link:focus { top: 1rem; }

.rive-wrap {
	width: min(100% - 2.5rem, var(--rive-wide));
	margin-inline: auto;
}

.rive-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: saturate(180%) blur(18px);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	border-bottom: 1px solid var(--rive-line);
}

.rive-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 96px;
	padding: 0.65rem 0;
}

.rive-brand {
	display: flex;
	align-items: center;
	gap: 0;
}

.rive-brand img,
.rive-brand .custom-logo {
	height: 78px;
	width: auto;
	max-width: 280px;
}

.rive-brand-mark { display: none; }

.rive-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rive-nav a {
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--rive-ink);
}
.rive-nav a:hover { color: var(--rive-violet); opacity: 1; }

.rive-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--rive-grad);
	color: #fff !important;
	text-decoration: none;
	padding: 0.7rem 1.25rem;
	border-radius: 980px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	border: 0;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(106, 61, 232, 0.22);
	transition: transform 0.2s var(--rive-ease), box-shadow 0.2s var(--rive-ease);
}
.rive-cta:hover { opacity: 1; color: #fff !important; transform: translateY(-1px); }

.rive-hero {
	padding: 7.5rem 0 6.5rem;
	text-align: center;
}

.rive-kicker {
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	background: var(--rive-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin: 0 0 1.25rem;
	font-weight: 700;
}

.rive-hero h1 {
	font-weight: 700;
	font-size: clamp(2.6rem, 2rem + 3.2vw, 4.4rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
	margin: 0 auto 1.35rem;
	max-width: 14ch;
	background: var(--rive-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.rive-lede {
	max-width: 34rem;
	margin: 0 auto 2.2rem;
	font-size: 21px;
	line-height: 1.38;
	font-weight: 400;
	color: var(--rive-mute);
	letter-spacing: -0.02em;
}

.rive-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.85rem 1.1rem;
}

.rive-ghost {
	display: inline-flex;
	align-items: center;
	padding: 0.7rem 1.25rem;
	border-radius: 980px;
	border: 1.5px solid transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		var(--rive-grad) border-box;
	color: var(--rive-violet);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}
.rive-ghost:hover { opacity: 1; color: #4a28c4; }

.rive-section {
	padding: 5.5rem 0;
	border-top: 1px solid var(--rive-line);
}

.rive-section-head {
	text-align: center;
	margin-bottom: 3.2rem;
}

.rive-section h2,
.rive-section-head h2 {
	font-weight: 600;
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
	letter-spacing: -0.03em;
	line-height: 1.12;
	margin: 0;
}

.rive-poles {
	display: grid;
	gap: 0;
}

.rive-pole {
	padding: 2.4rem 0;
	border-top: 1px solid var(--rive-line);
	background: transparent;
}

.rive-pole:last-child { border-bottom: 1px solid var(--rive-line); }

.rive-pole h3 {
	margin: 0 0 1.1rem;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	background: var(--rive-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.rive-pole h3 a { text-decoration: none; color: inherit; }

.rive-pole ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: item;
}

.rive-pole li {
	counter-increment: item;
	display: grid;
	grid-template-columns: 2.2rem 1fr;
	gap: 0.6rem;
	padding: 0.85rem 0;
	border-top: 1px solid var(--rive-line);
	font-size: 17px;
	letter-spacing: -0.016em;
	line-height: 1.4;
}

.rive-pole li::before {
	content: counter(item, decimal-leading-zero);
	background: var(--rive-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 12px;
	font-weight: 700;
	padding-top: 0.28rem;
}

.rive-pole li a {
	text-decoration: none;
	color: var(--rive-ink);
}
.rive-pole li a:hover { opacity: 0.55; }

.rive-people {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.2rem 1.4rem;
}

.rive-person {
	text-decoration: none;
	color: inherit;
	background: transparent;
	border: 0;
}

.rive-person img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
	width: 100%;
	background: linear-gradient(160deg, #f6e7c4, #efe4f8);
	border-radius: 18px;
}

.rive-person-body {
	padding: 0.85rem 0 0;
	text-align: center;
}
.rive-person-body strong {
	display: block;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: -0.01em;
}
.rive-person-body span {
	display: block;
	color: var(--rive-mute);
	font-size: 13px;
	margin-top: 0.2rem;
}

.rive-ufr-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
	margin-top: 0;
}

.rive-ufr-card {
	padding: 1.15rem 0;
	border-top: 1px solid var(--rive-line);
	text-decoration: none;
	color: inherit;
	font-size: 17px;
	letter-spacing: -0.02em;
	background: transparent;
}
.rive-ufr-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--rive-line); }
.rive-ufr-card small { display: none; }

.rive-bio {
	display: grid;
	grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
	gap: 4.5rem;
	align-items: start;
	padding: 5rem 0 7rem;
}

.rive-bio-photo img { background: #f5f5f7; }
.rive-bio-photo figcaption {
	font-size: 12px;
	color: var(--rive-mute);
	margin-top: 0.85rem;
	letter-spacing: 0.02em;
}

.rive-bio h1 {
	font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
	letter-spacing: -0.035em;
	font-weight: 600;
	line-height: 1.08;
	margin: 0 0 0.6rem;
}

.rive-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
	margin: 1.4rem 0 2rem;
}
.rive-socials a {
	text-decoration: none;
	font-size: 13px;
	color: var(--rive-mute);
	border: 0;
	padding: 0;
}

.rive-press { list-style: none; padding: 0; }
.rive-press li { margin: 0.7rem 0; }

.rive-form {
	max-width: 28rem;
	margin: 0 auto;
	background: transparent;
	border: 0;
	padding: 0;
}
.rive-form-title {
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	margin: 0 0 2rem;
	text-align: center;
}
.rive-field { margin: 0 0 1.4rem; }
.rive-field label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rive-mute);
	margin-bottom: 0.4rem;
}
.rive-field input,
.rive-field select,
.rive-field textarea {
	width: 100%;
	font: inherit;
	font-size: 17px;
	padding: 0.55rem 0;
	border: 0;
	border-bottom: 1px solid var(--rive-line);
	border-radius: 0;
	background: transparent;
}
.rive-field input:focus,
.rive-field select:focus,
.rive-field textarea:focus {
	outline: none;
	border-bottom-color: var(--rive-ink);
}
.rive-form-ok { color: var(--rive-mute); text-align: center; }
.req { color: var(--rive-violet); }

.rive-btn {
	background: var(--rive-grad);
	color: #fff;
	border: 0;
	border-radius: 980px;
	padding: 0.75rem 1.5rem;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.rive-footer {
	border-top: 1px solid var(--rive-line);
	padding: 3.5rem 0 4rem;
	color: var(--rive-mute);
	font-size: 12px;
	text-align: center;
	letter-spacing: 0.02em;
}
.rive-footer p { margin: 0.4rem 0; }
.rive-footer a { color: var(--rive-mute); text-decoration: none; }
.rive-footer strong { color: var(--rive-ink); font-weight: 600; }

.rive-breadcrumb {
	font-size: 12px;
	color: var(--rive-mute);
	padding-top: 2.5rem;
	letter-spacing: 0.02em;
}
.rive-breadcrumb a { text-decoration: none; color: inherit; }

article.rive-claim {
	padding: 2rem 0 7rem;
	max-width: var(--rive-measure);
	margin-inline: auto;
}
article.rive-claim h1 {
	font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
	letter-spacing: -0.03em;
	font-weight: 600;
	line-height: 1.15;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

@media (max-width: 800px) {
	.rive-hero { padding: 4.5rem 0 4rem; }
	.rive-section { padding: 3.5rem 0; }
	.rive-people { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 0.8rem; }
	.rive-ufr-grid { grid-template-columns: 1fr; }
	.rive-ufr-card:nth-last-child(-n+2) { border-bottom: 0; }
	.rive-ufr-card:last-child { border-bottom: 1px solid var(--rive-line); }
	.rive-bio { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 5rem; }
	.rive-header-inner { min-height: 72px; flex-wrap: wrap; padding: 0.5rem 0; }
	.rive-brand img,
	.rive-brand .custom-logo { height: 58px; max-width: 210px; }
	.rive-nav ul { gap: 0 1rem; }
	.rive-nav a { font-size: 11px; }
}
