/* VTC Yvelines 78 — thème enfant de GeneratePress
   ------------------------------------------------------------------ */

:root {
	--wyf-bleu: #16324f;
	--wyf-bleu-clair: #eaf0f6;
	--wyf-accent: #c8102e;
	--wyf-vert: #25d366;
	--wyf-texte: #1c1c1c;
	--wyf-gris: #6b7280;
	--wyf-bord: #d9dee5;
	--wyf-rayon: 6px;
}

/* ------------------------------------------------------------------
   Bandeau d'en-tête
   ------------------------------------------------------------------ */

.wyf-bandeau {
	background: var(--wyf-bleu);
	color: #fff;
	font-size: 0.92rem;
}

.wyf-bandeau__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0.5rem 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: center;
	justify-content: space-between;
}

.wyf-bandeau p {
	margin: 0;
}

.wyf-bandeau__promesse strong {
	color: #fff;
}

.wyf-bandeau__promesse span {
	opacity: 0.85;
}

.wyf-bandeau__actions {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.wyf-bandeau__tel,
.wyf-bandeau__wa {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
	padding: 0.3rem 0.75rem;
	border-radius: var(--wyf-rayon);
}

.wyf-bandeau__tel {
	border: 1px solid rgba(255, 255, 255, 0.45);
}

.wyf-bandeau__wa {
	background: var(--wyf-vert);
	color: #04301a;
}

.wyf-bandeau__tel:hover,
.wyf-bandeau__wa:hover {
	opacity: 0.9;
	color: #fff;
}

.wyf-bandeau__wa:hover {
	color: #04301a;
}

@media (max-width: 640px) {
	.wyf-bandeau__inner {
		justify-content: center;
		text-align: center;
	}
	.wyf-bandeau__promesse span {
		display: block;
	}
}

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

.wyf-flottant {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 900;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: flex-end;
}

.wyf-flottant__lien {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.7rem 1rem;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
	font-size: 0.95rem;
}

.wyf-flottant__lien--wa {
	background: var(--wyf-vert);
	color: #04301a;
}

.wyf-flottant__lien--tel {
	background: #fff;
	color: var(--wyf-bleu);
	border: 1px solid var(--wyf-bord);
}

.wyf-flottant__lien:hover {
	opacity: 0.92;
}

/* Sur mobile, on ne garde que les icônes pour ne pas masquer le contenu,
   et on laisse la place au bouton d'envoi du formulaire. */
@media (max-width: 640px) {
	.wyf-flottant {
		flex-direction: row;
		right: 12px;
		bottom: 12px;
	}
	.wyf-flottant__texte {
		display: none;
	}
	.wyf-flottant__lien {
		padding: 0.8rem 0.95rem;
		font-size: 1.15rem;
	}
}

/* ------------------------------------------------------------------
   Formulaire de devis
   ------------------------------------------------------------------ */

.wyf-devis {
	background: var(--wyf-bleu-clair);
	border: 1px solid var(--wyf-bord);
	border-radius: var(--wyf-rayon);
	padding: 1.25rem;
	margin: 0 0 2rem;
}

.wyf-devis__titre {
	margin: 0 0 0.9rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--wyf-bleu);
}

.wyf-devis__grille {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 0.75rem;
}

.wyf-devis__champ {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--wyf-gris);
}

.wyf-devis__champ input {
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--wyf-bord);
	border-radius: var(--wyf-rayon);
	font-size: 1rem;
	font-weight: 400;
	color: var(--wyf-texte);
	background: #fff;
}

.wyf-devis__champ--court {
	max-width: 190px;
}

.wyf-devis__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-top: 1rem;
}

.wyf-devis__envoyer {
	background: var(--wyf-vert);
	color: #04301a;
	border: 0;
	border-radius: var(--wyf-rayon);
	padding: 0.85rem 1.4rem;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.wyf-devis__envoyer:hover {
	opacity: 0.92;
}

.wyf-devis__tel {
	color: var(--wyf-bleu);
	font-weight: 600;
}

.wyf-devis__mention {
	margin: 0.9rem 0 0;
	font-size: 0.82rem;
	color: var(--wyf-gris);
	line-height: 1.5;
}

/* ------------------------------------------------------------------
   Encart de barème
   ------------------------------------------------------------------ */

.wyf-bareme {
	border-left: 4px solid var(--wyf-accent);
	background: #fbfbfc;
	padding: 0.9rem 1.1rem;
	margin: 1.5rem 0;
	border-radius: 0 var(--wyf-rayon) var(--wyf-rayon) 0;
}

.wyf-bareme p {
	margin: 0 0 0.5rem;
}

.wyf-bareme p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------
   Tableaux tarifaires
   Jusqu'à 259 lignes sur 6 colonnes : défilement horizontal maîtrisé,
   première colonne figée pour ne jamais perdre le nom de la commune.
   ------------------------------------------------------------------ */

.wyf-tarifs {
	display: block;
	overflow-x: auto;
	white-space: nowrap;
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	margin: 1.25rem 0 2rem;
	font-size: 0.93rem;
	-webkit-overflow-scrolling: touch;
}

.wyf-tarifs caption {
	white-space: normal;
	text-align: left;
	font-weight: 700;
	color: var(--wyf-bleu);
	padding: 0 0 0.6rem;
	font-size: 1rem;
}

.wyf-tarifs th,
.wyf-tarifs td {
	padding: 0.5rem 0.8rem;
	border-bottom: 1px solid var(--wyf-bord);
	text-align: right;
}

.wyf-tarifs th:first-child,
.wyf-tarifs td:first-child {
	text-align: left;
	position: sticky;
	left: 0;
	background: #fff;
	font-weight: 600;
	box-shadow: 1px 0 0 var(--wyf-bord);
}

.wyf-tarifs thead th {
	background: var(--wyf-bleu);
	color: #fff;
	position: sticky;
	top: 0;
	font-weight: 600;
	border-bottom: 0;
}

.wyf-tarifs thead th:first-child {
	background: var(--wyf-bleu);
	color: #fff;
	z-index: 2;
}

.wyf-tarifs tbody tr:nth-child(odd) td {
	background: #f7f9fb;
}

.wyf-tarifs tbody tr:nth-child(odd) td:first-child {
	background: #f7f9fb;
}

.wyf-tarifs tbody tr:hover td,
.wyf-tarifs tbody tr:hover td:first-child {
	background: var(--wyf-bleu-clair);
}

/* Dernière colonne : le tarif de première course, celui qui doit accrocher. */
.wyf-tarifs td:last-child {
	font-weight: 700;
	color: var(--wyf-accent);
}

/* Les tableaux les plus longs sont plafonnés en hauteur : on ne fait pas
   défiler 259 lignes avant d'atteindre la section suivante. */
.wyf-tarifs--destination {
	max-height: 70vh;
	overflow-y: auto;
}

@media (max-width: 640px) {
	.wyf-tarifs {
		font-size: 0.85rem;
	}
	.wyf-tarifs th,
	.wyf-tarifs td {
		padding: 0.45rem 0.55rem;
	}
	.wyf-tarifs--destination {
		max-height: 60vh;
	}
}

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

.wyf-faq {
	margin: 1.25rem 0 2rem;
	border: 1px solid var(--wyf-bord);
	border-radius: var(--wyf-rayon);
	overflow: hidden;
}

.wyf-faq__item {
	border-bottom: 1px solid var(--wyf-bord);
}

.wyf-faq__item:last-child {
	border-bottom: 0;
}

.wyf-faq__item > summary {
	cursor: pointer;
	padding: 0.9rem 1.1rem;
	font-weight: 600;
	color: var(--wyf-bleu);
	list-style: none;
	position: relative;
	padding-right: 2.5rem;
}

.wyf-faq__item > summary::-webkit-details-marker {
	display: none;
}

.wyf-faq__item > summary::after {
	content: "+";
	position: absolute;
	right: 1.1rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.3rem;
	font-weight: 400;
	color: var(--wyf-accent);
	line-height: 1;
}

.wyf-faq__item[open] > summary::after {
	content: "\2212";
}

.wyf-faq__item[open] > summary {
	background: var(--wyf-bleu-clair);
}

.wyf-faq__item > div {
	padding: 0.2rem 1.1rem 1rem;
}

.wyf-faq__item > div p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------
   Listes de liens des pages piliers
   ------------------------------------------------------------------ */

.entry-content h2 + ul a {
	font-weight: 500;
}

/* ------------------------------------------------------------------
   Aucun défilement horizontal de page, quelle que soit la largeur
   ------------------------------------------------------------------ */

body {
	overflow-x: hidden;
}

.entry-content > * {
	max-width: 100%;
}

@media (max-width: 640px) {
	.entry-content {
		padding-left: 16px;
		padding-right: 16px;
	}
}

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

.wyf-pied {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0 0.35rem;
	align-items: center;
	justify-content: center;
}

.wyf-pied a {
	font-weight: 600;
}

.wyf-pied__credit {
	opacity: 0.8;
	font-size: 0.92em;
}

@media (max-width: 640px) {
	.wyf-pied {
		flex-direction: column;
		gap: 0.3rem;
	}
	.wyf-pied__sep {
		display: none;
	}
}
