/* ==========================================================================
   UBV – University Best Voice
   Direction : une scène de concert. Nuit aubergine, lumière orange du logo,
   une seule typographie (Archivo) en deux voix : italique serrée pour la scène,
   romaine pour la lecture.
   ========================================================================== */

:root {
	--nuit: #1c0a26;
	--velours: #2c1137;
	--prune: #46194f;
	--flamme: #ff4d17;
	--ambre: #ffa61a;
	--lueur: #ffe3c4;
	--blanc: #ffffff;
	--papier: #fbf5f1;
	--encre: #24102d;
	--gris: #6b5a72;
	--gris-clair: #b9a9bf;
	--ligne: #ebdfe7;
	--succes: #138a52;
	--erreur: #c62828;

	--grad: linear-gradient(100deg, #ff3b12 0%, #ff7614 55%, #ffad1c 100%);

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(64px, 9vw, 120px);
	--radius: 20px;
	--radius-sm: 12px;

	--ff: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--t-xs: 0.8125rem;
	--t-sm: 0.9375rem;
	--t-base: 1.0625rem;
	--t-md: 1.3125rem;
	--t-lg: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
	--t-xl: clamp(2rem, 1.3rem + 2.6vw, 3rem);
	--t-2xl: clamp(2.6rem, 1.4rem + 4.6vw, 4.6rem);
	--t-hero: clamp(3rem, 1.2rem + 7vw, 6.6rem);
}

/* ----- Base --------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
	margin: 0;
	font-family: var(--ff);
	font-size: var(--t-base);
	line-height: 1.6;
	color: var(--encre);
	background: var(--blanc);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; font-weight: 800; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ambre); color: var(--nuit); }

:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text,
.sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 12px 18px; background: var(--ambre); color: var(--nuit); border-radius: 999px; font-weight: 700;
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }

/* La voix de scène : italique serrée, très grasse. */
.stage-type {
	font-style: italic;
	font-weight: 850;
	font-stretch: 72%;
	letter-spacing: -0.01em;
	word-spacing: .06em;
	line-height: .95;
}

/* ----- Boutons ------------------------------------------------------------ */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 52px; padding: 0 1.6em;
	border: 2px solid transparent; border-radius: 999px;
	font-weight: 750; font-size: var(--t-base); line-height: 1; text-decoration: none;
	cursor: pointer; transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: var(--nuit); box-shadow: 0 10px 30px -12px rgba(255, 77, 23, .7); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--blanc); }
.btn-ghost:hover { border-color: var(--blanc); background: rgba(255, 255, 255, .06); }
.btn-dark { background: var(--nuit); color: var(--blanc); }
.btn-dark:hover { background: var(--prune); }
.btn-line { border-color: var(--encre); color: var(--encre); }
.btn-line:hover { background: var(--encre); color: var(--blanc); }
.btn-sm { min-height: 42px; padding: 0 1.15em; font-size: var(--t-sm); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.link-arrow {
	display: inline-flex; align-items: center; gap: .4em;
	font-weight: 700; text-decoration: none; color: inherit;
	border-bottom: 2px solid var(--flamme); padding-bottom: 2px;
}
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ----- En-tête ------------------------------------------------------------ */

.site-header {
	position: sticky; top: 0; z-index: 100;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	color: var(--blanc);
}
/* Le flou est porté par un calque à part : sur l'en-tête lui-même, il enfermerait
   le menu mobile (position fixe) dans les 76 px de hauteur de l'en-tête. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(28, 10, 38, .92);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand .logo { width: 150px; height: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
	display: block; padding: 10px 12px; border-radius: 999px;
	font-size: var(--t-sm); font-weight: 600; text-decoration: none; color: rgba(255, 255, 255, .82);
	transition: color .2s ease, background-color .2s ease;
}
.main-nav a:hover { color: var(--blanc); background: rgba(255, 255, 255, .07); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--ambre); }
.header-cta { flex: none; }

.nav-mobile-cta { display: none !important; }
.nav-toggle {
	display: none; margin-left: auto;
	width: 48px; height: 48px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .08); color: var(--blanc); cursor: pointer;
	align-items: center; justify-content: center;
}
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.header-cta { display: none; }
	.main-nav {
		position: fixed; inset: 76px 0 0 0; z-index: 99;
		background: var(--nuit); padding: 24px var(--gutter) 40px;
		display: flex; flex-direction: column; justify-content: space-between;
		overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .25s ease, transform .25s ease, visibility 0s .25s;
	}
	.admin-bar .main-nav { top: 122px; }
	.nav-open .main-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav a {
		padding: 14px 0; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
		font-size: 1.75rem; font-style: italic; font-weight: 800; font-stretch: 75%; color: var(--blanc);
	}
	.main-nav a:hover { background: none; color: var(--ambre); }
	.nav-mobile-cta { display: flex !important; margin-top: 32px; }
	.main-nav a.nav-mobile-cta { padding: 0 1.6em; border: 0; border-radius: 999px; color: var(--nuit); font-size: var(--t-md); font-style: normal; font-stretch: 100%; }
	.nav-open { overflow: hidden; }
}

/* ----- Égaliseur (le motif signature) -------------------------------------- */

.eq {
	display: flex; align-items: flex-end; gap: 4px;
	height: 56px; overflow: hidden; pointer-events: none;
}
.eq i {
	flex: 1 1 0; min-width: 3px; height: 100%;
	background: linear-gradient(0deg, var(--flamme), var(--ambre));
	border-radius: 3px 3px 0 0;
	transform-origin: bottom; transform: scaleY(.18);
	animation: eq 1.6s ease-in-out infinite alternate;
	opacity: .9;
}
.eq i:nth-child(3n)   { animation-duration: 1.1s; animation-delay: -.4s; }
.eq i:nth-child(3n+1) { animation-duration: 1.9s; animation-delay: -1.1s; }
.eq i:nth-child(4n)   { animation-duration: 1.35s; animation-delay: -.7s; }
.eq i:nth-child(5n)   { animation-duration: 2.3s; animation-delay: -1.5s; }
.eq i:nth-child(7n)   { animation-duration: .95s; animation-delay: -.2s; }
@keyframes eq {
	0%   { transform: scaleY(.12); }
	50%  { transform: scaleY(.55); }
	100% { transform: scaleY(.95); }
}

/* ----- Accueil : la scène -------------------------------------------------- */

.hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--nuit); color: var(--blanc);
	padding-top: clamp(40px, 7vw, 88px);
}
/* Faisceau de projecteur venu du haut. */
.hero::before {
	content: ""; position: absolute; z-index: -1;
	top: -10%; left: 50%; width: 140%; height: 120%;
	transform: translateX(-35%);
	background:
		radial-gradient(ellipse 30% 55% at 50% 0%, rgba(255, 166, 26, .32), transparent 70%),
		radial-gradient(ellipse 60% 70% at 60% 30%, rgba(124, 39, 120, .55), transparent 70%);
}
.hero-grid {
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
	align-items: end; gap: clamp(32px, 5vw, 72px);
}
.hero-text { padding-bottom: clamp(32px, 6vw, 88px); }
.hero-season {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
	font-size: var(--t-sm); font-weight: 600; color: var(--lueur);
}
.hero-season .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--flamme); box-shadow: 0 0 0 6px rgba(255, 77, 23, .22); }
.hero-season .dot.is-live { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 23, .55); } 100% { box-shadow: 0 0 0 14px rgba(255, 77, 23, 0); } }

.hero-title {
	margin: 0 0 28px; font-size: var(--t-hero);
	text-wrap: balance;
}
.hero-title .glow {
	display: block;
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
	padding-right: .08em;
}
.hero-lead { max-width: 34em; margin: 0 0 32px; font-size: var(--t-md); line-height: 1.5; color: rgba(255, 255, 255, .8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-deadline { margin: 18px 0 0; font-size: var(--t-sm); color: var(--gris-clair); }

.hero-stage { position: relative; align-self: end; }
.hero-photo {
	position: relative; margin: 0;
	aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; overflow: hidden;
	background: var(--prune);
	box-shadow: 0 -30px 80px -30px rgba(255, 120, 20, .55);
}
.hero-photo::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(28, 10, 38, .75));
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-mic {
	position: absolute; left: -22px; bottom: 56px; z-index: 2;
	display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
	background: var(--grad); color: var(--nuit);
	box-shadow: 0 14px 40px -10px rgba(255, 77, 23, .8);
}
.hero-mic .icon { width: 40px; height: 40px; stroke-width: 1.6; }
.hero .eq { position: relative; z-index: 1; height: clamp(40px, 6vw, 72px); margin-top: -1px; }

@media (max-width: 860px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-text { padding-bottom: 0; }
	.hero-stage { max-width: 380px; width: 82%; margin-inline: auto; }
	.hero-mic { width: 64px; height: 64px; left: -12px; bottom: 32px; }
	.hero-mic .icon { width: 30px; height: 30px; }
}

/* Faits clés sous la scène. */
.facts { background: var(--velours); color: var(--blanc); }
.facts ul {
	display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none;
}
.facts li { padding: 28px 24px; border-left: 1px solid rgba(255, 255, 255, .1); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font-size: var(--t-lg); font-style: italic; font-weight: 850; font-stretch: 75%; color: var(--ambre); line-height: 1.1; }
.facts span { font-size: var(--t-sm); color: rgba(255, 255, 255, .72); }
@media (max-width: 720px) {
	.facts ul { grid-template-columns: 1fr; }
	.facts li { padding: 18px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
	.facts li:first-child { border-top: 0; }
}

/* Annonce de la finale. */
.finale-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.finale-poster { margin: 0; }
.finale-poster img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--velours); box-shadow: 0 40px 80px -40px rgba(70, 25, 79, .6); }
.finale-when {
	display: inline-block; margin: 0 0 18px; padding: 8px 16px; border-radius: 999px;
	background: var(--nuit); color: var(--ambre); font-weight: 750; font-size: var(--t-sm);
}
.finale-tv { display: flex; gap: 12px; align-items: center; margin: 0 0 28px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--papier); }
.finale-tv .icon { color: var(--flamme); width: 28px; height: 28px; }
@media (max-width: 860px) { .finale-grid { grid-template-columns: 1fr; } .finale-poster { max-width: 480px; } }

/* ----- Sections ------------------------------------------------------------ */

.section { padding-block: var(--section); }
.section-alt { background: var(--papier); }
.section-dark { background: var(--nuit); color: var(--blanc); }
.section-dark .section-lead { color: rgba(255, 255, 255, .72); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head > div { max-width: 640px; }
.section-title { margin: 0 0 12px; font-size: var(--t-2xl); text-wrap: balance; }
.section-lead { margin: 0; font-size: var(--t-md); line-height: 1.5; color: var(--gris); }

/* Le projet. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-media { position: relative; margin: 0; }
.split-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); background: var(--ligne); }
.split-media figcaption { margin-top: 10px; font-size: var(--t-xs); color: var(--gris); }
.prose-lg { font-size: var(--t-md); line-height: 1.55; }
.goals { margin: 28px 0 32px; padding: 0; list-style: none; }
.goals li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--ligne); font-weight: 600; }
.goals li:last-child { border-bottom: 1px solid var(--ligne); }
.goals .icon { color: var(--flamme); margin-top: 2px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Déroulement : une vraie séquence, donc numérotée. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 28px 0 0; counter-increment: step; }
.steps li::before {
	content: counter(step);
	display: block; margin-bottom: 20px;
	font-size: 5.5rem; font-style: italic; font-weight: 900; font-stretch: 70%; line-height: .8;
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps li::after {
	content: ""; position: absolute; top: 2.2rem; left: 4.4rem; right: 28px; height: 2px;
	background: repeating-linear-gradient(90deg, var(--flamme) 0 6px, transparent 6px 12px); opacity: .5;
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: var(--t-lg); }
.steps p { color: var(--gris); margin: 0; }
@media (max-width: 860px) {
	.steps { grid-template-columns: 1fr; gap: 36px; }
	.steps li { padding: 0 0 0 84px; }
	.steps li::before { position: absolute; left: 0; top: -4px; font-size: 4.2rem; }
	.steps li::after { display: none; }
}

/* ----- Candidats / finalistes --------------------------------------------- */

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(14px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
.person { position: relative; }
.person-photo {
	position: relative; aspect-ratio: 4 / 5; overflow: hidden;
	border-radius: var(--radius); background: var(--prune);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.person-photo .initials {
	position: absolute; inset: 0; display: grid; place-items: center;
	font-size: 3.5rem; font-style: italic; font-weight: 850; font-stretch: 72%; color: rgba(255, 255, 255, .5);
}
.person a.person-link { text-decoration: none; color: inherit; }
.person a.person-link:hover .person-photo img { transform: scale(1.04); }
.person-body { padding: 14px 4px 0; }
.person-name { margin: 0 0 4px; font-size: var(--t-md); font-weight: 750; line-height: 1.25; }
.person-meta { margin: 0; font-size: var(--t-sm); color: var(--gris); }
.section-dark .person-meta { color: var(--gris-clair); }
.person-badge {
	position: absolute; top: 12px; left: 12px; z-index: 1;
	padding: 6px 12px; border-radius: 999px;
	background: var(--grad); color: var(--nuit);
	font-size: var(--t-xs); font-weight: 750;
}
.person-votes { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.person-count { font-size: var(--t-sm); color: var(--gris); }
.person-count strong { font-size: var(--t-md); color: var(--encre); font-weight: 800; }
/* Classement en direct. */
.podium-title { margin: 0 0 18px; font-size: var(--t-md); font-weight: 750; }
.podium { margin-bottom: clamp(40px, 6vw, 64px) !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.podium .person-photo { aspect-ratio: 1; box-shadow: 0 0 0 3px var(--ambre); }
.podium li:first-child .person-photo { box-shadow: 0 0 0 3px var(--flamme), 0 24px 50px -24px rgba(255, 77, 23, .7); }
.person-badge.rank-2 { background: #d9d2dc; }
.person-badge.rank-3 { background: #e0a46a; }
.person-bar { display: block; height: 6px; margin: 12px 4px 0; border-radius: 999px; background: var(--ligne); overflow: hidden; }
.person-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
@media (max-width: 560px) {
	.podium { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
	.podium .person-name { font-size: var(--t-sm); }
	.podium .person-meta, .podium .person-votes .btn { display: none; }
}

@media (max-width: 560px) {
	.people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.person-name { font-size: var(--t-base); }
	.person-votes { flex-direction: column; align-items: stretch; }
}

/* ----- Vidéos ------------------------------------------------------------- */

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 32px); margin: 0; padding: 0; list-style: none; }
.video-card h3 { margin: 14px 0 4px; font-size: var(--t-md); font-weight: 700; line-height: 1.3; }
.video-card p { margin: 0; color: var(--gris); font-size: var(--t-sm); }
.yt {
	position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
	border-radius: var(--radius-sm); overflow: hidden; background: var(--nuit); cursor: pointer;
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s ease; }
.yt:hover img { opacity: 1; }
.yt-play {
	position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
	display: grid; place-items: center; background: var(--grad); color: var(--nuit);
	box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5);
}
.yt-play .icon { width: 28px; height: 28px; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ----- Partenaires -------------------------------------------------------- */

.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.logos li a, .logos li > span {
	display: grid; place-items: center; height: 120px; padding: 22px;
	border: 1px solid var(--ligne); border-radius: var(--radius-sm); background: var(--blanc);
	text-decoration: none; font-weight: 700; text-align: center; color: var(--gris);
	transition: border-color .2s ease;
}
.logos li a:hover { border-color: var(--flamme); }
.logos img { max-height: 72px; width: auto; object-fit: contain; }
.partner-group + .partner-group { margin-top: 48px; }
.partner-group h2 { font-size: var(--t-md); margin-bottom: 18px; }

/* ----- Appel à candidatures ----------------------------------------------- */

.callout { background: var(--velours); position: relative; overflow: hidden; isolation: isolate; text-align: center; padding-block: clamp(72px, 10vw, 128px) 0; }
.callout::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(ellipse 50% 70% at 50% 100%, rgba(255, 110, 20, .35), transparent 70%);
}
.callout h2 { max-width: 15em; margin: 0 auto 20px; font-size: var(--t-2xl); text-wrap: balance; }
.callout p { max-width: 36em; margin: 0 auto 32px; color: rgba(255, 255, 255, .75); font-size: var(--t-md); }
.callout .btn { margin-bottom: clamp(48px, 7vw, 80px); }
.callout.no-eq { padding-bottom: clamp(72px, 10vw, 128px); }
.callout.no-eq .btn { margin-bottom: 0; }

/* ----- FAQ ---------------------------------------------------------------- */

.faq { border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
	display: flex; justify-content: space-between; align-items: center; gap: 20px;
	padding: 22px 0; cursor: pointer; list-style: none;
	font-size: var(--t-md); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: ""; flex: none; width: 14px; height: 14px; margin-right: 6px;
	border-right: 2.5px solid var(--flamme); border-bottom: 2.5px solid var(--flamme);
	transform: rotate(45deg) translateY(-4px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-4px); }
.faq .answer { padding: 0 0 24px; max-width: 64ch; color: var(--gris); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ----- Pages intérieures -------------------------------------------------- */

.page-head {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--nuit); color: var(--blanc);
	padding-top: clamp(56px, 8vw, 104px);
}
.page-head::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(ellipse 45% 80% at 85% 0%, rgba(124, 39, 120, .6), transparent 70%);
}
.page-title { margin: 0 0 16px; font-size: var(--t-2xl); font-style: italic; font-weight: 850; font-stretch: 72%; line-height: .98; max-width: 14em; text-wrap: balance; }
.page-intro { max-width: 40em; margin: 0; font-size: var(--t-md); color: rgba(255, 255, 255, .76); }
.page-head .eq { height: 40px; margin-top: clamp(40px, 6vw, 72px); }

.prose { max-width: 70ch; }
.prose h2 { font-size: var(--t-xl); margin-top: 1.6em; }
.prose h3 { font-size: var(--t-lg); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius-sm); }

/* Historique : une chronologie, donc numérotée. */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px; background: var(--ligne); }
.timeline > li { position: relative; padding: 0 0 56px 88px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline-mark {
	position: absolute; left: 0; top: 0;
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	background: var(--nuit); color: var(--ambre);
	font-size: 1.6rem; font-style: italic; font-weight: 900; font-stretch: 72%;
}
.timeline > li:last-child .timeline-mark { background: var(--grad); color: var(--nuit); }
.timeline-when { margin: 0 0 4px; font-size: var(--t-sm); font-weight: 700; color: var(--flamme); }
.timeline h3 { font-size: var(--t-lg); margin-bottom: 12px; }
.timeline p { color: var(--gris); }
.timeline .prizes { margin: 16px 0 0; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--papier); list-style: none; }
.timeline .prizes li { padding: 4px 0; }
.timeline .prizes strong { color: var(--encre); }
@media (max-width: 560px) {
	.timeline::before { left: 21px; }
	.timeline > li { padding-left: 64px; }
	.timeline-mark { width: 44px; height: 44px; font-size: 1.3rem; }
}

.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 0; }
.photo-row img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--ligne); }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.team img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--ligne); }
.team h3 { margin: 16px 0 2px; font-size: var(--t-md); text-align: center; }
.team p { margin: 0; text-align: center; color: var(--gris); font-size: var(--t-sm); }

/* Récompenses / conditions. */
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.info-block h2 { font-size: var(--t-xl); }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 12px; padding: 10px 0; }
.ticks .icon { color: var(--succes); margin-top: 3px; }
.prize-amount { margin: 0 0 8px; font-size: var(--t-2xl); font-style: italic; font-weight: 900; font-stretch: 72%; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }

/* ----- Formulaires -------------------------------------------------------- */

.form-card {
	padding: clamp(24px, 4vw, 48px); border-radius: var(--radius);
	background: var(--blanc); border: 1px solid var(--ligne);
	box-shadow: 0 30px 60px -40px rgba(70, 25, 79, .35);
}
.form-card h2 { font-size: var(--t-xl); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label, .field legend { display: block; margin-bottom: 6px; font-size: var(--t-sm); font-weight: 650; }
.field .req { color: var(--flamme); }
.field .hint { display: block; margin-top: 6px; font-size: var(--t-xs); color: var(--gris); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="search"],
.field input[type="number"],
.field select,
.field textarea {
	width: 100%; min-height: 52px; padding: 12px 16px;
	border: 1.5px solid var(--ligne); border-radius: var(--radius-sm); background: var(--papier);
	font-size: 1rem; transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--flamme); background: var(--blanc); box-shadow: 0 0 0 4px rgba(255, 77, 23, .14); }
.field input[type="file"] { width: 100%; padding: 14px; border: 1.5px dashed var(--gris-clair); border-radius: var(--radius-sm); background: var(--papier); font-size: var(--t-sm); }
.field-or { display: flex; align-items: center; gap: 12px; margin: 4px 0; font-size: var(--t-sm); font-weight: 650; color: var(--gris); }
.field-or::before, .field-or::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-sm); }
.check input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--flamme); }
.hp { position: absolute !important; left: -9999px !important; }
.form-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions small { color: var(--gris); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin-bottom: 24px; border-radius: var(--radius-sm); }
.notice p { margin: 0; }
.notice .icon { margin-top: 2px; }
.notice-success { background: #e7f6ee; color: #0d5c37; }
.notice-error { background: #fdecec; color: #8e1c1c; }
.notice ul { margin: 6px 0 0; padding-left: 1.1em; }

/* ----- Contact ------------------------------------------------------------ */

.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { margin: 0 0 32px; padding: 0; list-style: none; }
.contact-list li { border-top: 1px solid var(--ligne); }
.contact-list li:last-child { border-bottom: 1px solid var(--ligne); }
.contact-list a, .contact-list span.row { display: flex; gap: 16px; align-items: center; padding: 18px 0; text-decoration: none; }
.contact-list .ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--papier); color: var(--flamme); }
.contact-list small { display: block; color: var(--gris); font-size: var(--t-xs); }
.contact-list strong { font-weight: 700; word-break: break-word; }
.contact-list a:hover strong { color: var(--flamme); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.socials a {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid currentColor; text-decoration: none; opacity: .85; transition: opacity .2s, background-color .2s, color .2s;
}
.socials a:hover { opacity: 1; background: var(--ambre); border-color: var(--ambre); color: var(--nuit); }

/* ----- Votes -------------------------------------------------------------- */

.vote-bar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	padding: 22px 26px; margin-bottom: 32px; border-radius: var(--radius);
	background: var(--nuit); color: var(--blanc);
}
.countdown { display: flex; gap: 10px; margin: 0; }
.countdown div { min-width: 64px; text-align: center; }
.countdown b { display: block; font-size: 2rem; font-style: italic; font-weight: 900; font-stretch: 72%; line-height: 1; color: var(--ambre); font-variant-numeric: tabular-nums; }
.countdown span { font-size: var(--t-xs); color: var(--gris-clair); }
.vote-status { margin: 0; font-weight: 650; }
.vote-status small { display: block; font-weight: 400; color: var(--gris-clair); }

.search-box { position: relative; max-width: 420px; margin-bottom: 28px; }
.search-box .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gris); }
.search-box input { padding-left: 48px !important; }
.no-results { padding: 40px 0; color: var(--gris); }

dialog.vote-dialog {
	width: min(480px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: var(--radius);
	color: var(--encre); background: var(--blanc);
	box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .55);
}
dialog.vote-dialog::backdrop { background: rgba(28, 10, 38, .75); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.vote-dialog-head { display: flex; gap: 16px; align-items: center; padding: 22px 22px 0; }
.vote-dialog-head img, .vote-dialog-head .initials { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--prune); }
.vote-dialog-head h2 { margin: 0; font-size: var(--t-md); }
.vote-dialog-head p { margin: 0; color: var(--gris); font-size: var(--t-sm); }
.vote-dialog-close { margin-left: auto; align-self: flex-start; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--papier); cursor: pointer; display: grid; place-items: center; flex: none; }
.vote-dialog-body { padding: 22px; }
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 16px; border: 0; padding: 0; }
.packs label { position: relative; }
.packs input { position: absolute; opacity: 0; inset: 0; }
.packs span {
	display: grid; place-items: center; min-height: 52px; border-radius: var(--radius-sm);
	border: 1.5px solid var(--ligne); font-weight: 750; cursor: pointer; transition: all .15s ease;
}
.packs input:checked + span { border-color: var(--flamme); background: #fff1ea; color: var(--flamme); }
.packs input:focus-visible + span { outline: 3px solid var(--ambre); outline-offset: 2px; }
.vote-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; margin-bottom: 16px; border-top: 1px solid var(--ligne); }
.vote-total strong { font-size: var(--t-lg); font-weight: 850; }
.vote-dialog .btn { width: 100%; }
.vote-dialog .fine { margin: 12px 0 0; font-size: var(--t-xs); color: var(--gris); text-align: center; }
.vote-error { color: var(--erreur); font-size: var(--t-sm); margin: 10px 0 0; }

/* Fiche candidat. */
.profile { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.profile .person-photo { border-radius: 999px 999px var(--radius) var(--radius); }
.profile-facts { margin: 0 0 24px; padding: 0; list-style: none; }
.profile-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.profile-facts span { color: var(--gris); }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile .person-photo { max-width: 360px; } }

/* ----- Galerie ------------------------------------------------------------ */

.gallery-page .wp-block-gallery,
.gallery-page .gallery,
.gallery-page .gallery-grid {
	display: block !important; columns: 3 260px; column-gap: 12px; margin: 0 0 40px; padding: 0; list-style: none;
}
.gallery-page .wp-block-gallery > figure,
.gallery-page .wp-block-image,
.gallery-page .gallery-item,
.gallery-page .gallery-grid li {
	display: block; width: 100% !important; margin: 0 0 12px !important; break-inside: avoid;
}
.gallery-page .wp-block-gallery img,
.gallery-page .gallery img,
.gallery-page .gallery-grid img { width: 100% !important; height: auto !important; border-radius: var(--radius-sm); cursor: zoom-in; background: var(--ligne); }
.gallery-page h2 { font-size: var(--t-xl); margin: 48px 0 20px; }
.gallery-page h2:first-child { margin-top: 0; }

.lightbox {
	position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
	background: rgba(15, 5, 20, .95); padding: 56px 12px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; border-radius: 8px; }
.lightbox button {
	position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .1); color: var(--blanc); cursor: pointer; display: grid; place-items: center; font-size: 1.6rem;
}
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--gris-clair); font-size: var(--t-sm); }

/* ----- Pied de page ------------------------------------------------------- */

.site-footer { background: var(--nuit); color: rgba(255, 255, 255, .78); font-size: var(--t-sm); }
.site-footer .eq { height: 28px; opacity: .55; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: clamp(48px, 7vw, 80px); }
.footer-brand .logo { width: 170px; margin-bottom: 18px; }
.footer-brand p { max-width: 30em; }
.site-footer h2 { margin: 0 0 16px; font-size: var(--t-sm); font-weight: 750; color: var(--blanc); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 5px 0; }
.site-footer a { text-decoration: none; color: inherit; }
.site-footer a:hover { color: var(--ambre); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--gris-clair); font-size: var(--t-xs); }
.footer-bottom a { text-decoration: underline; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float {
	position: fixed; right: 16px; bottom: 16px; z-index: 90;
	display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
	background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45);
	transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }

/* ----- Divers ------------------------------------------------------------- */

.empty { padding: 40px; border: 1.5px dashed var(--gris-clair); border-radius: var(--radius); text-align: center; color: var(--gris); }
.center { text-align: center; }
.mt-l { margin-top: clamp(32px, 5vw, 56px); }

.wp-block-image img { border-radius: var(--radius-sm); }
.alignwide { max-width: var(--wrap); }
.aligncenter { margin-inline: auto; }

.error-404 { padding-block: var(--section); text-align: center; }
.error-404 .stage-type { font-size: clamp(6rem, 25vw, 14rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.eq i { transform: scaleY(.45); }
	.eq i:nth-child(2n) { transform: scaleY(.25); }
	.eq i:nth-child(3n) { transform: scaleY(.7); }
}

@media print {
	.site-header, .site-footer, .wa-float, .eq { display: none !important; }
}

/* Cartes candidats sur fond sombre. */
.section-dark .person-count { color: var(--gris-clair); }
.section-dark .person-count strong { color: var(--blanc); }
.section-dark .person-bar { background: rgba(255, 255, 255, .12); }
div.person-link { color: inherit; }

/* Pages WooCommerce (paiement du vote) dans le style du site. */
.woocommerce .button, .woocommerce button.button, .woocommerce #place_order {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.6em !important;
	border: 0; border-radius: 999px !important; background: var(--grad) !important; color: var(--nuit) !important; font-weight: 750;
}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--ligne); border-radius: var(--radius-sm); background: var(--papier);
}
.woocommerce-checkout #payment { border-radius: var(--radius); background: var(--papier); }
.ubv-thanks { margin-bottom: 32px; }

/* Contenu Elementor ou WooCommerce affiché dans une page du thème. */
.prose .elementor { max-width: none; }
.woocommerce-checkout .prose, .woocommerce-cart .prose, .woocommerce-account .prose { max-width: 960px; margin-inline: auto; }
.woocommerce-checkout .prose h3, .woocommerce-checkout .prose h2 { font-size: var(--t-lg); text-transform: none; }

/* Fenêtre de vote : coordonnées et résultat. */
.vote-who { display: grid; gap: 12px; margin: 4px 0 8px; }
.vote-who .field input { min-height: 48px; }
.vote-who .opt { font-weight: 400; color: var(--gris); }
.vote-result { padding: 36px 24px 28px; text-align: center; }
.vote-result h2 { margin: 14px 0 8px; font-size: var(--t-lg); font-style: italic; font-weight: 850; font-stretch: 75%; }
.vote-result p { color: var(--gris); margin: 0 auto 22px; max-width: 30em; }
.vote-result-actions { display: flex; flex-direction: column; gap: 10px; }
.vote-result-icon { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--papier); }
.vote-result-icon .icon { width: 36px; height: 36px; }
.vote-result.is-ok .vote-result-icon { background: var(--grad); color: var(--nuit); }
.vote-result.is-wait .vote-result-icon { border: 4px solid var(--ligne); border-top-color: var(--flamme); background: none; animation: spin 1s linear infinite; }
.vote-result.is-ko .vote-result-icon { background: #fdecec; color: var(--erreur); }
@keyframes spin { to { transform: rotate(360deg); } }
.vote-dialog.is-result .js-vote-form { display: none; }
[data-votes-for].bump { animation: bump .9s ease; display: inline-block; }
@keyframes bump { 0% { transform: scale(1); color: inherit; } 30% { transform: scale(1.35); color: var(--flamme); } 100% { transform: scale(1); } }

/* Partage du lien de vote. */
.person-votes { flex-wrap: wrap; }
.share-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 42px; padding: 0 14px; border: 1.5px solid var(--ligne); border-radius: 999px;
	background: transparent; color: var(--encre); font-size: var(--t-sm); font-weight: 650; cursor: pointer;
}
.share-btn:hover { border-color: var(--flamme); color: var(--flamme); }
.share-btn .icon { width: 18px; height: 18px; }
.section-dark .share-btn { color: var(--blanc); border-color: rgba(255, 255, 255, .25); }
@media (max-width: 560px) { .share-btn span { display: none; } .share-btn { padding: 0; width: 42px; } .person-votes { flex-direction: row; align-items: center; } .person-votes .js-vote { flex: 1; } }
.person.is-target .person-photo { box-shadow: 0 0 0 4px var(--flamme), 0 24px 60px -20px rgba(255, 77, 23, .8); animation: target 1.2s ease 2; }
@keyframes target { 50% { transform: scale(1.03); } }
.toast {
	position: fixed; left: 50%; bottom: 88px; z-index: 1001; transform: translate(-50%, 20px); opacity: 0;
	padding: 12px 20px; border-radius: 999px; background: var(--nuit); color: var(--blanc); font-weight: 650; font-size: var(--t-sm);
	box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); transition: opacity .25s ease, transform .25s ease; max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* Fenêtre de vote ouverte depuis le lien d'un candidat : grande photo. */
dialog.vote-dialog.is-featured .vote-dialog-head { flex-wrap: wrap; padding-top: 0; }
dialog.vote-dialog.is-featured .js-vd-photo {
	order: -1; flex: 0 0 calc(100% + 44px); width: calc(100% + 44px); height: auto; aspect-ratio: 4 / 3;
	margin: 0 -22px 6px; border-radius: 0; object-fit: cover; object-position: center 25%;
}
dialog.vote-dialog.is-featured .vote-dialog-close { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, .92); }
dialog.vote-dialog { position: fixed; }

.search-count { margin: 0 0 16px; font-weight: 650; color: var(--gris); }
.search-box input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

/* Logos partenaires : le logo remplit sa case, quel que soit son fond. */
.logos { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.logos li a, .logos li > span { height: 140px; padding: 16px; overflow: hidden; }
.logos img { max-height: 108px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.logos li.is-wide { grid-column: span 2; }
@media (max-width: 420px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
