/*
 * Gabarit autonome de la page de vote, aux couleurs du site vitrine
 * volontairesfrancais.fr : dégradé bleu -> vert, titres Walaweh en
 * capitales, boutons pilule jaunes (#FCB133, texte #333 : contraste 6,9:1).
 */
@font-face {
	font-family: 'Walaweh';
	src: url('fonts/Walaweh.otf') format('opentype');
	font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.vfag-page {
	background: #fff; color: #333;
	font-family: Arial, Helvetica, sans-serif; font-size: 1.0625rem; line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.vfag-largeur { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

/* Lien d'évitement */
.vfag-evitement { position: absolute; left: -9999px; top: 0; background: #FCB133; color: #333; padding: .75rem 1rem; font-weight: 700; z-index: 10; }
.vfag-evitement:focus { left: 1rem; top: 1rem; }

/* En-tête */
.vfag-haut { background: #fff; border-bottom: 1px solid #eef0f2; }
.vfag-haut-ligne { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.5rem; }
.vfag-logo img { display: block; width: 160px; height: auto; }
.vfag-pilule {
	display: inline-flex; align-items: center; min-height: 2.75rem; padding: .55rem 1.25rem;
	background: #FCB133; color: #333; border-radius: 30px; font-weight: 700; text-decoration: none;
}
.vfag-pilule:hover { background: #f5a20f; }

/* Bandeau */
.vfag-hero {
	position: relative; color: #fff; text-align: center;
	background: linear-gradient(110deg, #05609b 0%, #087a7e 50%, #05794a 100%); /* foncé pour garder le texte blanc en AA */
	padding: 3.5rem 0 5rem; overflow: hidden;
}
.vfag-hero::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(120% 60% at 20% 110%, rgba(255,255,255,.12), transparent 60%);
	pointer-events: none;
}
.vfag-hero-surtitre {
	margin: 0 0 .5rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .875rem; opacity: .95;
}
.vfag-hero-titre {
	font-family: 'Walaweh', 'Righteous', Arial, sans-serif; font-weight: 400; text-transform: uppercase;
	font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; margin: 0 0 1.25rem;
	text-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.vfag-hero .vfag-meta { justify-content: center; }
.vfag-hero .vfag-meta li { background: rgba(0,0,0,.16); border-color: rgba(255,255,255,.5); color: #fff; }
.vfag-vague { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; display: block; }

/* Contenu */
.vfag-principal { padding-top: 1rem; padding-bottom: 3.5rem; }
.vfag-principal:focus { outline: none; }
.vfag--autonome { max-width: 46rem; }

/* Boutons du formulaire aux couleurs du site */
.vfag-page .vfag-bouton {
	background: #FCB133; border-color: #FCB133; color: #333; border-radius: 30px; padding: .7rem 1.8rem;
}
.vfag-page .vfag-bouton:hover { background: #f5a20f; border-color: #f5a20f; color: #333; }
.vfag-page .vfag-secondaire { background: #fff; border-color: #067bc6; color: #05609b; }
.vfag-page .vfag-secondaire:hover { background: #eaf4fb; color: #05609b; }
.vfag-page a.vfag-bouton { color: #333; }
.vfag-page .vfag-num { background: #067bc6; color: #fff; }
.vfag-page .vfag-resolution { border-radius: 16px; border-color: #e3e7eb; box-shadow: 0 4px 18px rgba(6, 123, 198, .07); }
.vfag-page .vfag-resolution legend { font-size: 1.1rem; color: #1f2937; }
.vfag-page .vfag-etapes .vfag-encours { background: #eaf4fb; }

/* Pied de page */
.vfag-bas { background: #0568ad; color: #fff; }
.vfag-bas-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.vfag-bas p { margin: 0; }
.vfag-bas img { display: block; width: 190px; height: auto; }
.vfag-bas a { color: #fff; font-weight: 700; }

@media (max-width: 560px) {
	.vfag-haut-ligne { min-height: 4.5rem; }
	.vfag-logo img { width: 130px; }
	.vfag-pilule { padding: .45rem .9rem; font-size: .9rem; }
	.vfag-hero { padding: 2.25rem 0 4rem; }
	.vfag-bas-ligne { flex-direction: column; align-items: flex-start; }
}

/* Lien bureau sous le formulaire de vote */
.vfag-lien-bureau { text-align: center; margin-top: 2rem; font-size: .95rem; }
.vfag-lien-bureau a { color: #05609b; font-weight: 700; }
