/* VahiGo — design system v0.2 (tokens, base, header, footer).
   Valeurs reprises de la maquette 01 · Homepage. */

@font-face {
	font-family: "Molilo";
	src: url("../fonts/molilo.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	/* Couleurs */
	--vg-terre: #B8432A;        /* Action principale, une par écran */
	--vg-terre-dark: #8F3220;   /* Hover, press, numéros d'étape, alertes */
	--vg-terre-light: #DB6440;  /* Anneau de focus */
	--vg-nuit: #14262E;         /* Texte, prix, boutons secondaires */
	--vg-encre: #2C3A40;        /* Texte courant sur Sable */
	--vg-ardoise: #4A585D;      /* Texte secondaire */
	--vg-sable: #F6EEE3;        /* Une section rassurante par page */
	--vg-lin: #EADFCF;          /* Bordures de cartes */
	--vg-lin-clair: #EFE7DB;    /* Filets header / footer */
	--vg-lin-fonce: #E3D6C3;    /* Bordures de boutons ronds */
	--vg-white: #FFFFFF;

	/* Typographie : Molilo pour H1/H2 (pas d'accents → repli Montserrat), Montserrat pour le reste. */
	--vg-font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--vg-font-display: "Molilo", var(--vg-font-body);

	/* Formes */
	--vg-r-input: 8px;
	--vg-r-card: 14px;
	--vg-r-panel: 20px;
	--vg-r-pill: 999px;

	/* Mise en page */
	--vg-wrap: 1344px;
	--vg-gutter: 32px;
	--vg-section: 96px;
}

@media (max-width: 639px) {
	:root { --vg-gutter: 20px; --vg-section: 64px; }
}

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

body {
	margin: 0;
	font-family: var(--vg-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--vg-nuit);
	background: var(--vg-white);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--vg-nuit); }
a:hover { color: var(--vg-terre); }
*:focus-visible { outline: 2px solid var(--vg-terre-light); outline-offset: 3px; }

h1, h2 {
	font-family: var(--vg-font-display);
	font-weight: 400;
	letter-spacing: -.01em;
}
.vg-h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; }
.vg-h2 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; margin: 0; }

.vg-wrap { max-width: var(--vg-wrap); margin: 0 auto; padding-left: var(--vg-gutter); padding-right: var(--vg-gutter); }
.vg-section { padding-top: var(--vg-section); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.vg-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 12px 16px; background: var(--vg-white); }

/* ---------- Boutons ---------- */
.vg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; white-space: nowrap;
	border-radius: var(--vg-r-pill); border: 1px solid transparent;
	font: 600 14px/1 var(--vg-font-body); text-decoration: none; cursor: pointer;
}
.vg-btn--primary { background: var(--vg-terre); color: var(--vg-white); }
.vg-btn--primary:hover { background: var(--vg-terre-dark); color: var(--vg-white); }
.vg-btn--dark { background: var(--vg-nuit); color: var(--vg-white); }
.vg-btn--dark:hover { color: var(--vg-white); background: #0c1a20; }
.vg-btn--outline { background: var(--vg-white); color: var(--vg-nuit); border-color: var(--vg-nuit); }
.vg-btn--outline:hover { color: var(--vg-nuit); background: var(--vg-sable); }
.vg-btn--lg { min-height: 50px; padding: 0 24px; font-size: 16px; }
.vg-btn svg { flex: none; }

.vg-round-btn {
	width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--vg-lin-fonce); background: var(--vg-white); color: var(--vg-nuit);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}

/* ---------- Header ---------- */
.vg-header { position: relative; background: var(--vg-white); z-index: 10; }
.vg-header__inner { padding-top: 16px; padding-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.vg-header__logo { display: flex; }
.vg-header__logo img { height: 26px; width: auto; display: block; }
.vg-nav { display: flex; }
.vg-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.vg-nav a { text-decoration: none; }
.vg-nav .current-menu-item > a, .vg-nav a[aria-current="page"] { color: var(--vg-terre); }
.vg-header__actions { display: flex; align-items: center; gap: 8px; }
.vg-header__pro { font-size: 14px; color: var(--vg-ardoise); padding: 0 12px; }
.vg-menu-btn { display: none; }

.vg-mobile-menu {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
	background: var(--vg-white); border-bottom: 1px solid var(--vg-lin-clair);
	padding: 8px 20px 20px; box-shadow: 0 18px 40px rgba(20, 38, 46, .12);
}
.vg-mobile-menu[hidden] { display: none; }
.vg-mobile-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vg-mobile-menu a {
	min-height: 48px; display: flex; align-items: center;
	font-size: 17px; font-weight: 500; text-decoration: none; border-bottom: 1px solid #F0E8DC;
}
.vg-mobile-menu .vg-mobile-menu__pro { font-size: 15px; font-weight: 400; color: var(--vg-ardoise); border-bottom: 0; }

/* ---------- Footer ---------- */
.vg-footer { padding-bottom: 32px; }
.vg-footer__card { background: var(--vg-white); border: 1px solid var(--vg-lin-clair); border-radius: 28px; padding: 20px; }

.vg-footer-banner { position: relative; border-radius: 20px; overflow: hidden; background: var(--vg-nuit); color: var(--vg-white); }
.vg-footer-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.vg-footer-banner__shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(20,38,46,.86), rgba(20,38,46,.55) 50%, rgba(20,38,46,.25)); }
.vg-banner-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 64px 56px; }
.vg-banner-row__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; }
.vg-banner-row__text p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--vg-sable); max-width: 520px; }
.vg-oneline { white-space: nowrap; font-size: clamp(26px, 2.5vw, 34px); }
.vg-banner-row__form { flex: 0 1 520px; }

.vg-prompt {
	display: flex; align-items: center; gap: 8px; margin: 0;
	background: var(--vg-white); border-radius: var(--vg-r-pill);
	padding: 6px 6px 6px 20px; box-shadow: 0 18px 40px rgba(20, 38, 46, .25);
}
.vg-prompt input {
	flex: 1; min-width: 0; min-height: 44px; border: 0; outline: none; background: transparent;
	font: inherit; font-size: 16px; color: var(--vg-nuit);
}
.vg-prompt:focus-within { outline: 2px solid var(--vg-terre-light); outline-offset: 2px; }
.vg-prompt .vg-btn { min-height: 48px; padding: 0 22px; font-size: 15px; }

.vg-pro { margin-top: 16px; background: var(--vg-sable); border-radius: 20px; display: flex; flex-direction: column; gap: 28px; padding: 40px 48px; }
.vg-pro__intro { max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.vg-pro__intro h2 { margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; }
.vg-pro__intro p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--vg-encre); }
.vg-pro-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vg-pro-steps li { background: var(--vg-white); border: 1px solid var(--vg-lin); border-radius: 16px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.vg-pro-steps__icon { flex: none; width: 36px; height: 36px; color: var(--vg-nuit); display: flex; align-items: center; justify-content: center; }
.vg-pro-steps__text { display: flex; flex-direction: column; gap: 6px; }
.vg-pro-steps__n { font-size: 13px; font-weight: 600; color: var(--vg-terre-dark); }
.vg-pro-steps__t { font-size: 17px; font-weight: 600; line-height: 1.35; }
.vg-pro-steps__d { font-size: 15px; line-height: 1.5; color: var(--vg-encre); }
.vg-pro__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.vg-pro__methods { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--vg-encre); }
.vg-pro__methods li { font-weight: 600; color: var(--vg-nuit); background: var(--vg-white); border: 1px solid var(--vg-lin); border-radius: var(--vg-r-pill); padding: 6px 12px; }
.vg-pro__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.vg-footer-cols { display: grid; gap: 40px 32px; padding: 96px 28px 48px; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); }
.vg-footer-about { display: flex; flex-direction: column; gap: 16px; max-width: 300px; }
.vg-footer-about img { height: 30px; width: auto; align-self: flex-start; }
.vg-footer-about p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--vg-encre); }
.vg-footer-about strong, .vg-footer-about a { font-weight: 600; color: var(--vg-nuit); }
.vg-footer-stack { display: flex; flex-direction: column; gap: 32px; }
.vg-footer-nav { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.vg-footer-nav__title { font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.vg-footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vg-footer-nav a { color: var(--vg-encre); text-decoration: none; }
.vg-footer-nav a:hover { color: var(--vg-terre); text-decoration: underline; }
.vg-social { display: flex; gap: 6px; }
.vg-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--vg-lin); display: flex; align-items: center; justify-content: center; color: var(--vg-nuit); }

.vg-footer-legal { border-top: 1px solid var(--vg-lin-clair); margin: 0 28px; padding: 20px 0 8px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 13px; color: var(--vg-ardoise); }
.vg-footer-legal__links { display: flex; gap: 16px; flex-wrap: wrap; }
.vg-footer-legal a { color: var(--vg-ardoise); }

/* ---------- Responsive (points de rupture de la maquette) ---------- */
@media (max-width: 1099px) {
	.vg-oneline { white-space: normal; }
}
@media (max-width: 899px) {
	.vg-nav { display: none; }
	.vg-menu-btn { display: inline-flex; }
	.vg-hide-md { display: none !important; }
	.vg-pro-steps { grid-template-columns: minmax(0, 1fr); }
	.vg-footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vg-footer-cols > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
	.vg-mobile-menu { display: none !important; }
}
@media (max-width: 639px) {
	.vg-hide-sm { display: none !important; }
	.vg-banner-row { padding: 32px 20px; }
	.vg-pro { padding: 28px 20px; }
	.vg-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 64px 8px 32px; }
	.vg-prompt { border-radius: 20px; flex-wrap: wrap; padding: 10px; }
	.vg-prompt .vg-btn { flex: 1 1 100%; }
}

/* ---------- Gabarit de repli (index.php) ---------- */
.vg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.vg-card { border: 1px solid var(--vg-lin); border-radius: var(--vg-r-card); overflow: hidden; }
.vg-card img { display: block; width: 100%; }
.vg-card__body { padding: 16px; }
.vg-card h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.vg-card h3 a { text-decoration: none; }
.vg-meta { font-size: 14px; color: var(--vg-ardoise); }
@media (max-width: 1099px) { .vg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px)  { .vg-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Logos des moyens de versement ----------
   Sans fond. Chaque logo occupe une boîte de même hauteur (32 px) ;
   la taille de l'image est réglée par logo pour un poids visuel égal
   (Airtel est carré, MVola et Orange Money sont larges). */
.vg-pro__methods { gap: 12px 24px; }
.vg-pro__methods li.vg-pay-logo {
	display: inline-flex; align-items: center; gap: 6px;
	height: 32px; padding: 0; background: none; border: 0; border-radius: 0;
}
.vg-pay-logo img { display: block; width: auto; }
.vg-pay-logo--mvola img        { height: 28px; }  /* ≈ 89 px de large */
.vg-pay-logo--orange-money img { height: 24px; }  /* ≈ 90 px de large */
.vg-pay-logo--airtel-money img { height: 32px; }  /* carré : plus haut pour compenser */
.vg-pay-logo--bank { font-size: 14px; font-weight: 600; color: var(--vg-nuit); }
.vg-pay-logo--bank svg { width: 22px; height: 22px; }

/* Pictogrammes illustrés bicolores (assets/icons). */
.vg-picto { display: block; flex: none; }
li > .vg-picto, span > .vg-picto { display: inline-block; vertical-align: middle; }
