/**
 * VJR 221 -- Maquettes (vjr221-maquettes/) : ecarts restants a intégrer
 * apres l'audit du 05/08/2026 (voir home-mobile.html).
 * Charge sur TOUTES les pages depuis le 06/08/2026 (dependance : 'vjr-menu').
 *
 * Contenu actuel :
 *  - Bottom nav mobile (Accueil / Regions / Annuaire / Actus / Plus), <=782px, toutes pages
 */

.tg-bottom-nav {
	display: none;
}

@media (max-width: 782px) {
	.tg-bottom-nav {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		background: #0C2417;
		border-top: 1px solid rgba(255,255,255,.08);
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
		box-shadow: 0 -4px 16px rgba(0,0,0,.25);
	}

	.tg-bottom-nav a {
		flex: 1 1 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		padding: 6px 2px;
		text-decoration: none;
		color: rgba(255,255,255,.65);
		font-size: 10px;
		line-height: 1.1;
		font-family: inherit;
	}

	.tg-bottom-nav a i {
		font-size: 16px;
	}

	.tg-bottom-nav a.is-active {
		color: #E7B03A; /* accent safran VJR221 */
	}

	/* Evite que le contenu de fin de page soit masque par la bottom nav fixe --
	   generalise a `body` le 06/08/2026 (etait limite a `body.home`) puisque la
	   bottom nav s'affiche desormais sur toutes les pages, pas seulement la home. */
	body {
		padding-bottom: 58px;
	}
}

/**
 * Harmonisation des couleurs de boutons -- 06/08/2026.
 * Constat audit : plusieurs classes ".btn-primary" / "hero search" coexistent
 * dans differents fichiers CSS (vjr221.css, vjr-home-page.css, vjr-teranga.css)
 * avec des couleurs differentes pour le meme role (vert, or, rouge, orange),
 * car deux systemes de variables coexistent : --vjr-corail (= rouge #9B2C33,
 * defini dans vjr221.css) et --corail (= terre orange #BE5A21, alias legacy
 * defini dans vjr-menu.css). Regle adoptee : un seul accent "safran" (or) pour
 * les CTA de recherche / bouton plein unique en hero, sur toutes les variantes
 * de hero du site (home, region, annuaire...). Le vert (savane) reste la
 * couleur d'action par defaut partout ailleurs (deja majoritaire). Le rouge
 * reste reserve aux actions urgentes/destructives (bouton "Urgences", etc.).
 * Les boutons de partage social (Facebook/Twitter/WhatsApp) gardent leurs
 * couleurs de marque respectives (hors perimetre de l'harmonisation).
 */

.vjr-home .hero-search button,
.vjr-home .btn-primary,
.vjr-hero__search-btn,
.vjr-btn--primary {
	background: var(--vjr-safran) !important;
	color: var(--vjr-ombre) !important;
}

.vjr-home .hero-search button:hover,
.vjr-home .btn-primary:hover,
.vjr-hero__search-btn:hover,
.vjr-btn--primary:hover {
	background: var(--vjr-terre-l) !important;
	color: var(--vjr-ombre) !important;
}
/**
 * Accordeon FAQ (page Tarifs) -- 06/08/2026, style natif <details>/<summary>,
 * pas de JS necessaire, coherent avec la charte Teranga.
 */
.vjr-faq-accordion {
	max-width: 720px;
	margin: 0 auto;
}
.vjr-faq-item {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md, 8px);
	margin-bottom: 10px;
	padding: 0;
}
.vjr-faq-item summary {
	padding: 16px 20px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.vjr-faq-item summary::-webkit-details-marker { display: none; }
.vjr-faq-item summary::after {
	content: "+";
	font-size: 1.2em;
	color: var(--vjr-safran);
	margin-left: 12px;
	flex-shrink: 0;
}
.vjr-faq-item[open] summary::after { content: "\2212"; }
.vjr-faq-item[open] summary { border-bottom: 1px solid var(--border-color); }
.vjr-faq-item p {
	padding: 14px 20px 18px;
	margin: 0;
	color: var(--text-secondary);
	font-size: 0.95rem;
}
/**
 * Amelioration presentation Tarifs (page "Tarifs & Offres - Annuaire") -- 06/08/2026.
 * Les 3 cards de prix (.vjr-tarif-card, en colonnes Gutenberg) manquaient de
 * polish : pas de hauteur egale, pas de hover, le badge "Recommande" de la
 * card Partenaire Officiel etait un simple texte au lieu d'un ruban visible.
 */
.wp-block-columns:has(.vjr-tarif-card) {
	align-items: stretch;
}
.vjr-tarif-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform .2s ease, box-shadow .2s ease;
	box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.vjr-tarif-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(0,0,0,.09);
}
.vjr-tarif-card .wp-block-buttons {
	margin-top: auto;
	padding-top: 1rem;
}
.vjr-tarif-card--reco {
	transform: scale(1.03);
	box-shadow: 0 10px 32px rgba(229,163,36,.18);
}
.vjr-tarif-card--reco:hover {
	transform: scale(1.03) translateY(-4px);
}
.vjr-tarif-card--reco > p:first-child {
	display: inline-block;
	background: var(--vjr-or);
	color: #1B1610 !important;
	padding: .3rem .8rem;
	border-radius: 999px;
	margin-bottom: .8rem !important;
}
@media (max-width: 782px) {
	.vjr-tarif-card--reco { transform: none; }
	.vjr-tarif-card--reco:hover { transform: translateY(-4px); }
}