/*
Theme Name: Virginie Bon Plan
Description: Thème monopage des bons plans bancaires.
Version: 1.0.0
Text Domain: virginiebonplan
*/

@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("fonts/fredoka-700.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url("fonts/caveat-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }

:root {
	--creme: #F7F1E5;
	--nuit: #1E3A5F;
	--bleu-vert: #2E8C99;
	--jaune: #F5C242;
	--corail: #F0735A;
	--pastille: #E3F1F2;
	--pastille-texte: #1E5F68;
	--ombre: #E6DCC8;
	--texte-doux: #4A5B70;
}

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

body {
	margin: 0;
	background: var(--creme);
	color: var(--nuit);
	font-family: "Poppins", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--nuit); }
a:hover { color: var(--bleu-vert); }

.vbp-page {
	max-width: 480px;
	margin: 0 auto;
	padding: 24px 16px 40px;
}

/* En-tête */
.vbp-entete { text-align: center; margin-bottom: 26px; }
.vbp-avatar {
	display: block;
	width: 132px;
	height: 132px;
	margin: 0 auto 10px;
	border-radius: 50%;
}
.vbp-entete h1 {
	margin: 0;
	font-family: "Fredoka", sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.2;
}
.vbp-accroche {
	margin: 6px 0 0;
	font-family: "Caveat", cursive;
	font-weight: 700;
	font-size: 23px;
	line-height: 1.2;
	color: var(--bleu-vert);
}

/* Transparence */
.vbp-transparence {
	margin: 18px 0 16px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #FFFFFF;
	border-left: 4px solid var(--jaune);
	font-size: 12.5px;
	color: var(--texte-doux);
}
.vbp-transparence strong { color: var(--nuit); }

/* Cartes « étiquette prix » */
.vbp-offres {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vbp-carte {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px 12px 10px;
	background: #FFFFFF;
	border-radius: 16px;
	box-shadow: 0 3px 0 var(--ombre);
	text-decoration: none;
	color: var(--nuit);
	transition: transform .15s ease, box-shadow .15s ease;
}
.vbp-carte:hover, .vbp-carte:focus-visible {
	color: var(--nuit);
	transform: translateY(-2px);
	box-shadow: 0 5px 0 var(--ombre);
}
.vbp-carte:focus-visible { outline: 3px solid var(--bleu-vert); outline-offset: 2px; }
.vbp-icone {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 11px;
}
.vbp-infos {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-width: 0;
}
.vbp-nom { font-size: 15px; font-weight: 700; line-height: 1.2; }
.vbp-condition {
	align-self: flex-start;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--pastille);
	color: var(--pastille-texte);
	font-size: 11.5px;
	line-height: 1.4;
}
.vbp-etiquette {
	flex: none;
	transform: rotate(-4deg);
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--corail);
	color: #FFFFFF;
	font-family: "Fredoka", sans-serif;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.1;
	text-align: center;
}
.vbp-etiquette b { display: block; font-size: 19px; }

.vbp-date {
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--texte-doux);
	text-align: center;
}

/* Questions */
.vbp-questions { margin-top: 28px; }
.vbp-questions h2 {
	margin: 0 0 10px;
	font-family: "Fredoka", sans-serif;
	font-weight: 700;
	font-size: 20px;
}
.vbp-questions details {
	margin-bottom: 8px;
	padding: 10px 12px;
	background: #FFFFFF;
	border-radius: 12px;
}
.vbp-questions summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.vbp-questions details p { margin: 8px 0 0; font-size: 13.5px; color: var(--texte-doux); }

/* Réseaux sociaux, avant le pied de page */
.vbp-reseaux { margin-top: 28px; }
.vbp-reseaux ul { display: flex; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.vbp-reseaux a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--nuit);
	color: #FFFFFF;
	transition: background .15s ease;
}
.vbp-reseaux a:hover, .vbp-reseaux a:focus-visible { background: var(--bleu-vert); color: #FFFFFF; }
.vbp-reseaux svg { fill: currentColor; width: 20px; height: 20px; }

/* Pied de page */
.vbp-pied {
	max-width: 480px;
	margin: 0 auto;
	padding: 0 16px 32px;
	font-size: 12px;
	text-align: center;
	color: var(--texte-doux);
}
.vbp-pied ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0 0 8px; padding: 0; list-style: none; }
.vbp-pied a { color: var(--texte-doux); }

/* Pages légales */
.vbp-texte h1 { font-family: "Fredoka", sans-serif; font-size: 26px; line-height: 1.2; }
.vbp-texte h2 { font-family: "Fredoka", sans-serif; font-size: 19px; margin-top: 24px; }

/* La bio tient sur deux lignes, même sur un petit téléphone. */
@media (max-width: 400px) {
	.vbp-accroche { font-size: 20px; }
}

@media (min-width: 768px) {
	.vbp-page { padding-top: 40px; }
	.vbp-entete h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.vbp-carte { transition: none; }
}
