/* Finition visuelle : liste des fiches et recherche (maquette validée).
   Chargé après front.css ; ne modifie ni le contenu ni la structure des pages.
   Couleurs : variables --ayap-c1 / --ayap-c2 (Réseau > Apparence). */

body .ayap-archive-header {
	background: var(--ayap-c1, #09284e);
	color: var(--ayap-c1t, #fff);
	border-radius: 18px;
	padding: clamp(20px, 4vw, 44px);
	margin: 0 0 20px;
}

body .ayap-archive-header .ayap-archive-titre {
	color: inherit;
	margin: 0 0 0.35em;
	font-weight: 800;
}

body .ayap-archive-header .ayap-archive-description {
	color: inherit;
	margin: 0;
	opacity: 0.92;
	font-size: clamp(15px, 0.9rem + 0.4vw, 18px);
}

/* Barre de recherche : carte claire, champs lisibles, bouton d'action en accent. */
body .ayap-form-recherche {
	background: #fff;
	border: 1px solid #e3e8ef;
	border-radius: 16px;
	padding: 18px 20px;
	box-shadow: 0 8px 24px rgba(9, 40, 78, 0.08);
	margin-bottom: 24px;
}

body .ayap-form-recherche label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #4a5a6a;
}

body .ayap-form-recherche input[type="text"],
body .ayap-form-recherche input[type="search"],
body .ayap-form-recherche select {
	min-height: 46px;
	border-radius: 8px;
	border: 1px solid #c9d2dc;
	background: #fff;
}

body .ayap-form-recherche input:focus,
body .ayap-form-recherche select:focus {
	outline: 3px solid color-mix(in srgb, var(--ayap-c2, #f9922c) 45%, transparent);
	outline-offset: 1px;
	border-color: var(--ayap-c2, #f9922c);
}

body .ayap-form-recherche .ayap-btn-submit {
	min-height: 46px;
	border: 0;
	border-radius: 10px;
	font-weight: 700;
	background: var(--ayap-c2, #f9922c);
	color: var(--ayap-c2t, #09284e);
	cursor: pointer;
}

body .ayap-form-recherche .ayap-btn-submit:hover,
body .ayap-form-recherche .ayap-btn-submit:focus-visible {
	filter: brightness(0.94);
}

/* Cartes de résultats. */
body .ayap-resultats li {
	background: #fff;
	border-radius: 14px;
}

body .ayap-resultats li > a {
	font-weight: 700;
	text-decoration: none;
}

body .ayap-resultats .ayap-badge-categorie {
	display: inline-block;
	background: #e6edf5;
	background: color-mix(in srgb, var(--ayap-c1, #09284e) 10%, #fff);
	color: var(--ayap-c1, #09284e);
	padding: 3px 10px;
	border-radius: 99px;
	font-weight: 600;
}

body .ayap-resultats li .ayap-btn-favori {
	min-height: 40px;
	padding: 0 14px;
	border: 1.5px solid var(--ayap-c1, #09284e);
	border-radius: 8px;
	background: #fff;
	color: var(--ayap-c1, #09284e);
	font-weight: 600;
}

body .ayap-resultats li .ayap-btn-favori.is-active {
	background: var(--ayap-c1, #09284e);
	color: var(--ayap-c1t, #fff);
}

body .ayap-pagination a.current {
	color: var(--ayap-c1t, #fff);
}

/* Mobile : une colonne, bouton pleine largeur, marges réduites. */
@media (max-width: 600px) {
	body .ayap-archive-header {
		border-radius: 14px;
	}

	body .ayap-form-recherche {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	body .ayap-form-recherche .ayap-btn-submit {
		width: 100%;
		min-height: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body .ayap-resultats li {
		transition: none;
	}

	body .ayap-resultats li:hover,
	body .ayap-resultats li:focus-within {
		transform: none;
	}
}

/* ==========================================================================
   Fiche détail d'un prestataire (templates/single-listing.php)
   ========================================================================== */
body .ayap-fiche {
	padding-top: 16px;
	padding-bottom: 32px;
}

body .ayap-fiche-header {
	background: #fff;
	border: 1px solid #e3e8ef;
	border-radius: 18px;
	padding: clamp(16px, 3vw, 28px);
	box-shadow: 0 8px 24px rgba(9, 40, 78, 0.07);
	margin-bottom: 24px;
}

body .ayap-fiche-titre {
	font-weight: 800;
	margin-top: 0;
}

body .ayap-fiche-photo img {
	width: 100%;
	height: auto;
}

/* Onglets : défilement horizontal sur petit écran, zone de toucher de 44 px. */
body .ayap-tabs-nav {
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: thin;
	border-bottom: 1px solid #dfe5ec;
}

body .ayap-tab-btn {
	min-height: 44px;
	white-space: nowrap;
	border-radius: 8px 8px 0 0;
}

body .ayap-tab-btn:hover {
	color: var(--ayap-c1, #09284e);
	background: #f3f6f9;
}

body .ayap-tab-panel {
	background: #fff;
	border: 1px solid #e3e8ef;
	border-radius: 14px;
	padding: clamp(14px, 2.5vw, 24px);
}

body .ayap-details-table {
	max-width: 100%;
}

body .ayap-details-table th {
	color: #4a5a6a;
}

body .ayap-single-map {
	max-width: 100%;
	border-radius: 14px;
	border: 1px solid #e3e8ef;
}

body .ayap-tags a {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 99px;
	background: #e6edf5;
	background: color-mix(in srgb, var(--ayap-c1, #09284e) 10%, #fff);
	color: var(--ayap-c1, #09284e);
	text-decoration: none;
	font-weight: 600;
}

@media (max-width: 600px) {
	body .ayap-fiche-header {
		border-radius: 14px;
	}

	body .ayap-fiche-photo {
		flex: 1 1 100%;
	}

	/* Tableaux de détails : libellé au-dessus de la valeur. */
	body .ayap-details-table,
	body .ayap-details-table tbody,
	body .ayap-details-table tr,
	body .ayap-details-table th,
	body .ayap-details-table td {
		display: block;
		width: 100%;
	}

	body .ayap-details-table th {
		border-bottom: 0;
		padding-bottom: 0;
		font-size: 13px;
	}
}

/* ==========================================================================
   Mon espace (tableau de bord du prestataire) : finition des cartes
   ========================================================================== */
body .ayap-dashboard .ayap-dashboard-fiche {
	background: #fff;
	box-shadow: 0 6px 18px rgba(9, 40, 78, 0.07);
	transition: box-shadow 0.2s ease;
}

body .ayap-dashboard .ayap-dashboard-fiche:hover,
body .ayap-dashboard .ayap-dashboard-fiche:focus-within {
	box-shadow: 0 12px 28px rgba(9, 40, 78, 0.12);
}

@media (max-width: 600px) {
	body .ayap-dashboard .ayap-dashboard-fiche {
		padding: 16px;
		border-radius: 14px;
	}

	body .ayap-dashboard .ayap-dashboard-fiche-actions {
		grid-template-columns: 1fr;
	}

	body .ayap-dashboard a.ayap-btn-action,
	body .ayap-dashboard button.ayap-btn-action {
		min-height: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body .ayap-dashboard .ayap-dashboard-fiche {
		transition: none;
	}
}

/* ==========================================================================
   Formulaires de dépôt de fiche (templates/form-soumission.php, form-prestation.php)
   ========================================================================== */
body .ayap-form-soumission {
	background: #fff;
	border: 1px solid #e3e8ef;
	border-radius: 18px;
	padding: clamp(16px, 3vw, 32px);
	box-shadow: 0 8px 24px rgba(9, 40, 78, 0.07);
}

body .ayap-form-soumission label {
	font-weight: 700;
	color: #1f2a3a;
}

body .ayap-form-soumission input[type="text"],
body .ayap-form-soumission input[type="email"],
body .ayap-form-soumission input[type="tel"],
body .ayap-form-soumission input[type="url"],
body .ayap-form-soumission input[type="number"],
body .ayap-form-soumission select,
body .ayap-form-soumission textarea {
	width: 100%;
	max-width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #c9d2dc;
	border-radius: 8px;
	background: #fff;
	font-size: 16px; /* évite le zoom automatique sur iPhone */
}

body .ayap-form-soumission input:focus,
body .ayap-form-soumission select:focus,
body .ayap-form-soumission textarea:focus {
	outline: 3px solid color-mix(in srgb, var(--ayap-c2, #f9922c) 45%, transparent);
	outline-offset: 1px;
	border-color: var(--ayap-c2, #f9922c);
}

body .ayap-form-soumission .ayap-btn-submit,
body .ayap-form-soumission .ayap-fa-btn--soumettre,
body .ayap-form-soumission .ayap-fa-btn--confirmer {
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 10px;
	background: var(--ayap-c2, #f9922c);
	color: var(--ayap-c2t, #09284e);
	font-weight: 700;
	cursor: pointer;
}

body .ayap-form-soumission .ayap-btn-submit:hover,
body .ayap-form-soumission .ayap-btn-submit:focus-visible {
	filter: brightness(0.94);
}

/* (2.8.1) Bouton « Booster » : vert, entre Soumettre et Programmer. */
body .ayap-form-soumission .ayap-fa-btn--booster {
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 10px;
	background: #15803d;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

body .ayap-form-soumission .ayap-notice {
	border-radius: 10px;
}

/* Barre d'étapes : zone de toucher confortable. */
body .ayap-etapes-btn {
	min-height: 44px;
}

@media (max-width: 600px) {
	body .ayap-form-soumission {
		border-radius: 14px;
		padding: 16px;
	}

	body .ayap-form-soumission .ayap-btn-submit,
	body .ayap-form-soumission .ayap-fa-btn--soumettre,
	body .ayap-form-soumission .ayap-fa-btn--confirmer {
		width: 100%;
		min-height: 50px;
	}
}

/* ==========================================================================
   Liste des favoris ([ayap_mes_favoris]) et opportunités verrouillées
   ========================================================================== */
body .ayap-mes-favoris {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

body .ayap-mes-favoris li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 16px;
	border: 1px solid #e3e8ef;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(9, 40, 78, 0.07);
}

body .ayap-mes-favoris li > a {
	color: var(--ayap-c1, #09284e);
	font-size: 1.05em;
	font-weight: 700;
	text-decoration: none;
}

body .ayap-mes-favoris li > a:hover,
body .ayap-mes-favoris li > a:focus-visible {
	text-decoration: underline;
}

body .ayap-mes-favoris br {
	display: none;
}

body .ayap-mes-favoris .ayap-meta {
	color: #4a5a6a;
	font-size: 14px;
}

body .ayap-mes-favoris .ayap-btn-favori {
	align-self: flex-start;
	margin-top: 6px;
}

body .ayap-favoris-vide {
	padding: 20px;
	border: 1px dashed #c9d2dc;
	border-radius: 14px;
	background: #fff;
	color: #4a5a6a;
	text-align: center;
}

body .ayap-verrou {
	box-shadow: 0 6px 18px rgba(9, 40, 78, 0.07);
}

@media (max-width: 600px) {
	body .ayap-mes-favoris {
		grid-template-columns: 1fr;
	}

	body .ayap-mes-favoris .ayap-btn-favori {
		align-self: stretch;
		min-height: 46px;
	}
}

/* ==========================================================================
   Formulaire « Publier une prestation » en étapes : fidèle à la maquette
   (barre de progression orange, étapes numérotées, bouton Suivant en accent)
   ========================================================================== */
body .ayap-etapes-nav {
	margin: 0 0 24px;
}

body .ayap-etapes-progression {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 800;
	color: var(--ayap-c1, #09284e);
}

body .ayap-etapes-progression::after {
	content: "";
	flex: 0 0 100%;
	height: 8px;
	margin-top: 8px;
	border-radius: 99px;
	background: linear-gradient(to right, var(--ayap-c2, #f9922c) var(--ayap-pct, 20%), #dde3ea var(--ayap-pct, 20%));
}

body .ayap-etapes-btn {
	text-transform: none;
	letter-spacing: 0;
}

@media (min-width: 768px) {
	body .ayap-etapes-liste {
		flex-wrap: nowrap;
		gap: 4px;
	}

	body .ayap-etapes-liste li {
		flex: 1 1 0;
		min-width: 0;
	}

	body .ayap-etapes-btn {
		width: 100%;
		min-height: 0;
		flex-direction: column;
		gap: 6px;
		padding: 4px;
		border: 0;
		background: transparent;
		color: var(--ayap-c1, #09284e);
	}

	body .ayap-etapes-num {
		width: 34px;
		height: 34px;
		border: 2px solid var(--ayap-c1, #09284e);
		background: #fff;
		color: var(--ayap-c1, #09284e);
		font-size: 14px;
		font-weight: 700;
	}

	body .ayap-etapes-titre {
		font-size: 12px;
		font-weight: 600;
		line-height: 1.25;
		text-align: center;
		color: var(--ayap-c1, #09284e);
	}

	body .ayap-etapes-btn.is-active {
		background: transparent;
		color: var(--ayap-c1, #09284e);
	}

	body .ayap-etapes-btn.is-active .ayap-etapes-num {
		background: var(--ayap-c1, #09284e);
		border-color: var(--ayap-c1, #09284e);
		color: var(--ayap-c1t, #fff);
		box-shadow: 0 0 0 3px color-mix(in srgb, var(--ayap-c2, #f9922c) 55%, transparent);
	}

	body .ayap-etapes-btn.is-done .ayap-etapes-num {
		background: #15803d;
		border-color: #15803d;
		color: #fff;
	}

	body .ayap-etapes-btn.is-error .ayap-etapes-num {
		border-color: #c0392b;
		color: #c0392b;
	}

	/* Étape 1 : Titre et Métiers côte à côte, description sur toute la largeur. */
	body .ayap-form-prestation.ayap-etapes-actif .ayap-etape.is-active:first-of-type {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 20px;
		align-items: start;
	}

	body .ayap-form-prestation.ayap-etapes-actif .ayap-etape.is-active:first-of-type > :not(.ayap-champ):not(.ayap-champ-requis),
	body .ayap-form-prestation.ayap-etapes-actif .ayap-etape.is-active:first-of-type > .ayap-champ:has(textarea) {
		grid-column: 1 / -1;
	}
}

/* Téléphone : progression + barre seulement, navigation par Précédent / Suivant. */
@media (max-width: 767px) {
	body .ayap-etapes-liste {
		display: none;
	}
}

body .ayap-form-soumission .ayap-etape > h3 {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 800;
	color: var(--ayap-c1, #09284e);
}

body .ayap-etape-nav {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	gap: 10px;
	margin-top: 24px;
}

body .ayap-etape-prec {
	background: #fff;
	color: var(--ayap-c1, #09284e);
	border: 1.5px solid var(--ayap-c1, #09284e);
}

body .ayap-etape-suiv,
body .ayap-form-soumission .ayap-fa-btn--soumettre {
	background: var(--ayap-c2, #f9922c);
	color: var(--ayap-c2t, #09284e);
	border: 0;
	font-weight: 700;
}

body .ayap-etape-suiv:disabled {
	background: var(--ayap-c2, #f9922c);
	color: var(--ayap-c2t, #09284e);
	opacity: 0.45;
}

body .ayap-etape-msg {
	margin-top: 12px;
}

@media (max-width: 767px) {
	body .ayap-etape-nav {
		position: sticky;
		bottom: 0;
		z-index: 5;
		margin: 20px -16px -16px;
		padding: 12px 16px;
		background: #fff;
		border-top: 1px solid #e3e8ef;
		border-radius: 0 0 14px 14px;
	}

	body .ayap-etape-nav .ayap-etape-prec {
		flex: 1 1 0;
	}

	body .ayap-etape-nav .ayap-etape-suiv {
		flex: 2 1 0;
		margin-left: 0;
	}
}

/* ==========================================================================
   Centrage des pages en pleine largeur — correctif (v1.72.0)
   Beaucoup de thèmes imposent « margin-left: auto !important » aux blocs du
   contenu : la marge calculée par le plugin était alors ignorée, le bloc se
   calait à gauche de la colonne du thème et dépassait à droite de l'écran.
   Comme pour Mon espace, le décalage de centrage passe par « left », qu'aucun
   thème ne neutralise ; assets/js/centrage.js continue d'ajuster --ayap-dx.
   ========================================================================== */
body .ayap-pf,
body .ayap-an,
body .ayap-tarifs,
body .ayap-fiche,
body .ayap-archive-wrap,
body .ayap-archive-localisation {
	position: relative;
	margin-left: calc(50% - var(--ayap-w) / 2) !important;
	margin-right: 0 !important;
	left: var(--ayap-dx, 0px);
}

body .ayap-form-soumission {
	position: relative;
	margin-left: calc(50% - min(1000px, calc(100vw - 2 * var(--ayap-g))) / 2) !important;
	margin-right: 0 !important;
	left: var(--ayap-dx, 0px);
}

/* ==========================================================================
   MODÈLE « MON PROFIL » appliqué à toutes les pages visiteur (v1.73.0)
   Bandeau marine avec forme orange, pastilles, cartes blanches arrondies.
   Boutons : orange = action principale, marine = action forte secondaire
   et état actif, contour = le reste.
   ========================================================================== */

/* --- Bandeau d'en-tête commun (liste, plans, fiche, étapes du formulaire) --- */
body .ayap-archive-header,
body .ayap-tarifs-entete,
body .ayap-fiche-header,
body .ayap-etapes-nav {
	position: relative;
	overflow: hidden;
	background: var(--ayap-c1, #09284e);
	color: var(--ayap-c1t, #fff);
	border: 0;
	border-radius: 18px;
	box-shadow: none;
	padding: clamp(18px, 3vw, 32px);
	margin-bottom: 20px;
}

body .ayap-archive-header::before,
body .ayap-tarifs-entete::before,
body .ayap-fiche-header::before,
body .ayap-etapes-nav::before {
	content: "";
	position: absolute;
	right: -36px;
	top: -48px;
	width: 170px;
	height: 170px;
	border-radius: 50%;
	background: var(--ayap-c2, #f9922c);
	opacity: 1;
	pointer-events: none;
}

body .ayap-archive-header::after,
body .ayap-tarifs-entete::after,
body .ayap-fiche-header::after,
body .ayap-etapes-nav::after {
	content: "";
	position: absolute;
	right: 96px;
	bottom: -60px;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: #fff;
	opacity: 0.1;
	pointer-events: none;
}

body .ayap-archive-header > *,
body .ayap-tarifs-entete > *,
body .ayap-fiche-header > *,
body .ayap-etapes-nav > * {
	position: relative;
	z-index: 1;
}

body .ayap-archive-titre,
body .ayap-tarifs-entete .ayap-tarifs-titre,
body .ayap-fiche-titre {
	color: inherit;
}

body .ayap-tarifs-entete .ayap-tarifs-intro,
body .ayap-fiche-lieu,
body .ayap-fiche-vues,
body .ayap-fiche-intro,
body .ayap-fiche-fil-ariane {
	color: #d9e2ee;
}

body .ayap-fiche-header a:not([class]),
body .ayap-fiche-fil-ariane a {
	color: #fff;
	text-decoration: underline;
}

body .ayap-fiche-badges > * {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

/* --- Étapes du formulaire : dans le bandeau --- */
body .ayap-etapes-progression {
	color: inherit;
}

body .ayap-etapes-progression::after {
	background: linear-gradient(to right, var(--ayap-c2, #f9922c) var(--ayap-pct, 20%), rgba(255, 255, 255, 0.28) var(--ayap-pct, 20%));
}

body .ayap-etapes-btn {
	border-color: rgba(255, 255, 255, 0.5);
	background: transparent;
	color: var(--ayap-c1t, #fff);
}

body .ayap-etapes-titre {
	color: var(--ayap-c1t, #fff);
}

body .ayap-etapes-num {
	background: #fff;
	border-color: #fff;
	color: var(--ayap-c1, #09284e);
}

body .ayap-etapes-btn.is-active {
	background: transparent;
	color: var(--ayap-c1t, #fff);
}

body .ayap-etapes-btn.is-active .ayap-etapes-num {
	background: var(--ayap-c2, #f9922c);
	border-color: var(--ayap-c2, #f9922c);
	color: var(--ayap-c2t, #09284e);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

/* --- Pastilles (onglets de la fiche) : même rendu que les onglets du profil --- */
body .ayap-tabs-nav {
	gap: 6px;
	padding: 2px 0 10px;
	border-bottom: 0;
}

body .ayap-tabs-nav .ayap-tab-btn {
	flex: none;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid #d5dce5;
	border-radius: 999px;
	background: #fff;
	color: var(--ayap-c1, #09284e);
	font-size: 13px;
	font-weight: 600;
}

body .ayap-tabs-nav .ayap-tab-btn.is-active,
body .ayap-tabs-nav .ayap-tab-btn[aria-selected="true"] {
	background: var(--ayap-c1, #09284e);
	border-color: var(--ayap-c1, #09284e);
	color: var(--ayap-c1t, #fff);
}

/* --- Annuaire : le bouton de recherche est l'action principale (orange) --- */
body .ayap-an-filtres button,
body .ayap-an-filtres input[type="submit"] {
	background: var(--ayap-c2, #f9922c);
	color: var(--ayap-c2t, #09284e);
	border: 0;
	border-radius: 10px;
	font-weight: 700;
}

/* --- Favoris : bandeau marine avec forme orange, comme les cartes de l'annuaire --- */
body .ayap-mes-favoris li::before {
	content: "";
	display: block;
	height: 56px;
	margin: -16px -16px 8px;
	border-radius: 14px 14px 0 0;
	background:
		radial-gradient(circle at calc(100% - 18px) 0, var(--ayap-c2, #f9922c) 0 46px, transparent 47px),
		var(--ayap-c1, #09284e);
}

@media (max-width: 600px) {
	body .ayap-archive-header,
	body .ayap-tarifs-entete,
	body .ayap-fiche-header,
	body .ayap-etapes-nav {
		border-radius: 14px;
	}

	body .ayap-archive-header::before,
	body .ayap-tarifs-entete::before,
	body .ayap-fiche-header::before,
	body .ayap-etapes-nav::before {
		width: 110px;
		height: 110px;
		right: -28px;
		top: -36px;
	}
}

/* --- Formulaire : aucun espace parasite au-dessus de la barre d'étapes --- */
body .ayap-form-soumission {
	margin-top: 0;
}

body .ayap-form-soumission > .ayap-honeypot,
body .ayap-form-soumission > p:empty {
	display: none !important;
}

body .ayap-form-soumission .ayap-etapes-nav {
	margin-top: 0;
}

/* --- Bannière du formulaire : type de publication (icône + nom) --- */
body .ayap-etapes-type {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 6px 14px 6px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: var(--ayap-c1t, #fff);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}

body .ayap-etapes-type .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	color: var(--ayap-c2, #f9922c);
}

/* ==========================================================================
   v1.78.4 — Bannière du formulaire de publication (« Publier : Fiche
   prestataire », « Publier : Annonce »…) en PLEINE LARGEUR d'écran.
   Elle touche les bords gauche et droit (quel que soit le thème) ; son texte
   reste aligné sur les champs du formulaire. --ayap-vw (largeur visible) et
   --ayap-cw (largeur de la carte) sont posées par assets/js/centrage.js ;
   sans JavaScript, repli sur 100vw. Responsive : de 320 px au grand écran.
   ========================================================================== */
html:has(.ayap-form-soumission .ayap-etapes-nav) {
	overflow-x: clip;
}

body .ayap-form-soumission .ayap-etapes-nav {
	--ayap-nav-pad: clamp(16px, 3vw, 32px);
	--ayap-nav-cercle: clamp(120px, 15vw, 260px);
	position: relative;
	width: var(--ayap-vw, 100vw);
	max-width: none;
	/* La bannière remonte sur le bord haut de la carte (padding + bordure). */
	margin-top: calc(-1 * (clamp(16px, 3vw, 32px) + 1px));
	margin-bottom: clamp(18px, 2.5vw, 26px);
	margin-left: calc(50% - var(--ayap-vw, 100vw) / 2) !important;
	margin-right: 0 !important;
	/* Texte aligné sur le contenu de la carte, même sur très grand écran. */
	padding-top: clamp(24px, 4vw, 44px);
	padding-bottom: clamp(24px, 4vw, 44px);
	padding-left: calc(max(0px, (var(--ayap-vw, 100vw) - var(--ayap-cw, min(1000px, 100vw))) / 2) + var(--ayap-nav-pad) + 1px);
	padding-right: calc(max(0px, (var(--ayap-vw, 100vw) - var(--ayap-cw, min(1000px, 100vw))) / 2) + var(--ayap-nav-pad) + 1px);
	border-radius: 0;
}

body .ayap-form-soumission .ayap-etapes-nav::before {
	width: var(--ayap-nav-cercle);
	height: var(--ayap-nav-cercle);
	top: calc(var(--ayap-nav-cercle) * -0.3);
	right: calc(var(--ayap-nav-cercle) * -0.18);
}

body .ayap-form-soumission .ayap-etapes-nav::after {
	width: clamp(80px, 9vw, 150px);
	height: clamp(80px, 9vw, 150px);
	right: clamp(70px, 12vw, 210px);
	bottom: calc(clamp(80px, 9vw, 150px) * -0.5);
}

@media (max-width: 600px) {
	body .ayap-form-soumission .ayap-etapes-nav {
		--ayap-nav-cercle: 96px;
		padding-top: 22px;
		padding-bottom: 20px;
	}
}

/* ==========================================================================
   v1.87.5 — Formulaires de publication (prestations, travaux à réaliser,
   matériel & équipements) : la bannière reste pleine largeur, mais la bande
   blanche n'enveloppe plus la bannière. Le formulaire devient transparent ;
   chaque étape affichée est une carte blanche arrondie, séparée de la
   bannière par un espace. Actif seulement quand les étapes fonctionnent
   (classe posée par form-steps.js) : sans JavaScript, rien ne change.
   ========================================================================== */
body .ayap-form-soumission.ayap-etapes-actif {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

body .ayap-form-soumission.ayap-etapes-actif .ayap-etapes-nav {
	margin-bottom: clamp(20px, 3vw, 32px);
}

body .ayap-form-soumission.ayap-etapes-actif .ayap-etape.is-active {
	background: #fff;
	border: 1px solid #e3e8ef;
	border-radius: 18px;
	padding: clamp(16px, 3vw, 32px);
	box-shadow: 0 8px 24px rgba(9, 40, 78, 0.07);
}

@media (max-width: 600px) {
	body .ayap-form-soumission.ayap-etapes-actif .ayap-etape.is-active {
		border-radius: 14px;
		padding: 16px;
	}
}

/* ==========================================================================
   v1.87.6 — En-tête (bannière) de la page de détails d'une annonce
   (prestataires, travaux à réaliser, matériel et équipements).
   - Bannière PLEINE LARGEUR d'écran, sans bords arrondis (même technique que
     la bannière du formulaire de publication, v1.78.4) : --ayap-vw (largeur
     visible) et --ayap-cw (largeur de la fiche) sont posées par
     assets/js/centrage.js ; sans JavaScript, repli sur 100vw. Le texte reste
     aligné sur le contenu de la page.
   - Fond = image à la une, sinon première image de la galerie (élément
     .ayap-fiche-fond), sous un voile dégradé marine. Sans image : fond marine
     et cercles décoratifs d'avant.
   - Une seule rangée de boutons homogènes ; « Comparer » en pastille nette.
   Bloc ajouté en fin de fichier : aucune règle existante n'est supprimée.
   ========================================================================== */
html:has(.ayap-fiche > .ayap-fiche-header) {
	overflow-x: clip;
}

body .ayap-fiche > .ayap-fiche-header {
	--ayap-fh-gouttiere: 12px; /* marge latérale de .ayap-fiche (front.css) */
	--ayap-fh-cercle: clamp(120px, 15vw, 260px);
	position: relative;
	z-index: 1;
	isolation: isolate;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: var(--ayap-vw, 100vw);
	max-width: none;
	/* La bannière remonte sur le bord haut de la fiche (padding-top: 16px). */
	margin-top: -16px;
	margin-bottom: clamp(18px, 2.5vw, 28px);
	margin-left: calc(50% - var(--ayap-vw, 100vw) / 2) !important;
	margin-right: 0 !important;
	padding-top: clamp(20px, 3.5vw, 44px);
	padding-bottom: clamp(20px, 3.5vw, 40px);
	padding-left: calc(max(0px, (var(--ayap-vw, 100vw) - var(--ayap-cw, min(1100px, 100vw))) / 2) + var(--ayap-fh-gouttiere));
	padding-right: calc(max(0px, (var(--ayap-vw, 100vw) - var(--ayap-cw, min(1100px, 100vw))) / 2) + var(--ayap-fh-gouttiere));
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
	color: #fff;
}

/* Sans image : fond marine et cercles décoratifs, à l'échelle de la bannière. */
body .ayap-fiche > .ayap-fiche-header::before {
	width: var(--ayap-fh-cercle);
	height: var(--ayap-fh-cercle);
	top: calc(var(--ayap-fh-cercle) * -0.3);
	right: calc(var(--ayap-fh-cercle) * -0.18);
}

body .ayap-fiche > .ayap-fiche-header::after {
	width: clamp(80px, 9vw, 150px);
	height: clamp(80px, 9vw, 150px);
	right: clamp(70px, 12vw, 210px);
	bottom: calc(clamp(80px, 9vw, 150px) * -0.5);
}

/* Avec image : hauteur de bannière, image en fond, voile marine, plus de cercles. */
body .ayap-fiche > .ayap-fiche-header--image {
	min-height: clamp(300px, 36vw, 440px);
}

body .ayap-fiche > .ayap-fiche-header > .ayap-fiche-fond {
	position: absolute !important;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
	background-color: var(--ayap-c1, #09284e);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	pointer-events: none;
}

body .ayap-fiche > .ayap-fiche-header--image::before {
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: auto;
	height: auto;
	border-radius: 0;
	opacity: 1;
	z-index: 1;
	/* Voile marine, plus sombre en bas où se trouvent les boutons (texte blanc AA sur photo claire). */
	background: linear-gradient(to bottom, rgba(9, 40, 78, 0.72) 0%, rgba(9, 40, 78, 0.78) 45%, rgba(9, 40, 78, 0.94) 100%);
	background: linear-gradient(
		to bottom,
		color-mix(in srgb, var(--ayap-c1, #09284e) 72%, transparent) 0%,
		color-mix(in srgb, var(--ayap-c1, #09284e) 78%, transparent) 45%,
		color-mix(in srgb, var(--ayap-c1, #09284e) 94%, transparent) 100%
	);
}

body .ayap-fiche > .ayap-fiche-header--image::after {
	display: none;
}

body .ayap-fiche > .ayap-fiche-header > .ayap-fiche-intro {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
	color: #fff;
}

/* --- Rangée du haut : fil d'Ariane à gauche, « Comparer » à droite --- */
body .ayap-fiche > .ayap-fiche-header .ayap-fiche-haut {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 0 0 14px;
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-haut .ayap-fiche-fil-ariane {
	display: flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	font-size: 0.95rem;
	color: #fff;
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-haut .ayap-fiche-fil-ariane a {
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-haut .ayap-comparer-case {
	position: static;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 44px;
	margin: 0 0 0 auto;
	padding: 0 18px;
	border: 1px solid #fff;
	border-radius: 999px;
	background: #fff;
	color: var(--ayap-c1, #09284e);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-haut .ayap-comparer-case input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--ayap-c1, #09284e);
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-haut .ayap-comparer-case:focus-within {
	outline: 3px solid var(--ayap-c2, #f9922c);
	outline-offset: 2px;
}

/* --- Titre --- */
body .ayap-fiche > .ayap-fiche-header .ayap-fiche-titre {
	max-width: 960px;
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(1.65rem, 1.05rem + 2.9vw, 3rem);
	font-weight: 800;
	line-height: 1.15;
	overflow-wrap: anywhere;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* --- Pastilles de statut --- */
body .ayap-fiche > .ayap-fiche-header .ayap-fiche-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-badges > * {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 32px;
	padding: 4px 12px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.2;
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-badges > .ayap-badge-ouvert {
	border-color: #86efac;
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-badges > .ayap-badge-ferme {
	border-color: #fecaca;
}

/* --- Annonceur + lieu (+ nombre de vues) sur une même ligne --- */
body .ayap-fiche > .ayap-fiche-header .ayap-fiche-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin: 0 0 18px;
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-annonceur {
	margin: 0;
	min-height: 44px;
	box-sizing: border-box;
	border: 0;
	background: #fff;
	color: var(--ayap-c1, #09284e);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-annonceur small {
	color: #46566a;
	font-size: 0.75rem;
	font-weight: 600;
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-annonceur:hover,
body .ayap-fiche > .ayap-fiche-header .ayap-fiche-annonceur:focus-visible {
	background: #fff;
	color: var(--ayap-c1, #09284e);
	box-shadow: 0 0 0 3px var(--ayap-c2, #f9922c);
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-lieu,
body .ayap-fiche > .ayap-fiche-header .ayap-fiche-vues {
	margin: 0;
	color: #fff;
	opacity: 1;
	font-size: 1rem;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-vues {
	color: #e6edf5;
	font-size: 0.9rem;
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-lieu a,
body .ayap-fiche > .ayap-fiche-header .ayap-fiche-lieu .ayap-fil-ariane-separateur {
	color: #fff;
}

/* --- Boutons de contact principaux (Appeler, WhatsApp, Devis) : visibles sur la bannière (ordinateur) --- */
@media (min-width: 701px) {
	body .ayap-fiche > .ayap-fiche-header .ayap-actions-principales {
		max-width: 560px;
		margin: 0 0 12px;
	}

	body .ayap-fiche > .ayap-fiche-header .ayap-actions-principales .ayap-btn-appeler {
		box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
	}
}

/* --- UNE seule rangée de boutons homogènes (même hauteur, même arrondi) --- */
body .ayap-fiche > .ayap-fiche-header .ayap-fiche-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin: 0;
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-actions > * {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 8px 18px !important;
	border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
	border-radius: 10px !important;
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
	box-shadow: none !important;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-actions > *:hover,
body .ayap-fiche > .ayap-fiche-header .ayap-fiche-actions > *:focus-visible {
	background: rgba(255, 255, 255, 0.24) !important;
	border-color: #fff !important;
	color: #fff !important;
	transform: none;
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-actions > *:focus-visible {
	outline: 3px solid var(--ayap-c2, #f9922c);
	outline-offset: 2px;
}

/* Action principale : « Envoyer un message » en orange, texte lisible. */
body .ayap-fiche > .ayap-fiche-header .ayap-fiche-actions > .ayap-btn-message {
	background: var(--ayap-c2, #f9922c) !important;
	border-color: var(--ayap-c2, #f9922c) !important;
	color: var(--ayap-c2t, var(--ayap-c1, #09284e)) !important;
	font-weight: 700;
}

body .ayap-fiche > .ayap-fiche-header .ayap-fiche-actions > .ayap-btn-message:hover,
body .ayap-fiche > .ayap-fiche-header .ayap-fiche-actions > .ayap-btn-message:focus-visible {
	background: var(--ayap-c2, #f9922c) !important;
	border-color: #fff !important;
	color: var(--ayap-c2t, var(--ayap-c1, #09284e)) !important;
	filter: brightness(1.06);
}

/* Favori actif : pastille claire, texte marine. */
body .ayap-fiche > .ayap-fiche-header .ayap-fiche-actions > .ayap-btn-favori.is-active {
	background: #fff !important;
	border-color: #fff !important;
	color: var(--ayap-c1, #09284e) !important;
}

/* --- Réseaux sociaux de l'annonce et partage --- */
body .ayap-fiche > .ayap-fiche-header .ayap-boutons-partage {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 16px 0 0;
}

body .ayap-fiche > .ayap-fiche-header .ayap-boutons-partage .ayap-boutons-partage-label {
	margin-right: 4px;
	color: #fff;
	font-weight: 600;
}

body .ayap-fiche > .ayap-fiche-header .ayap-boutons-partage .ayap-btn-partage {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: var(--ayap-c1, #09284e);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

body .ayap-fiche > .ayap-fiche-header .ayap-boutons-partage .ayap-btn-partage:hover,
body .ayap-fiche > .ayap-fiche-header .ayap-boutons-partage .ayap-btn-partage:focus-visible {
	background: var(--ayap-c2, #f9922c);
	color: var(--ayap-c2t, var(--ayap-c1, #09284e));
}

body .ayap-fiche > .ayap-fiche-header .ayap-boutons-partage .ayap-btn-partage-natif {
	min-height: 40px;
	border-radius: 999px;
	background: #fff;
	color: var(--ayap-c1, #09284e);
}

body .ayap-fiche > .ayap-fiche-header .ayap-boutons-partage .ayap-btn-partage-natif[hidden] {
	display: none;
}

/* --- Téléphone (320 px et plus) : boutons en grille de 2 colonnes, zones de toucher de 44 px --- */
@media (max-width: 600px) {
	body .ayap-fiche > .ayap-fiche-header {
		--ayap-fh-cercle: 96px;
		padding-top: 18px;
		padding-bottom: 20px;
	}

	body .ayap-fiche > .ayap-fiche-header--image {
		min-height: 300px;
	}

	body .ayap-fiche > .ayap-fiche-header .ayap-fiche-titre {
		font-size: clamp(1.5rem, 1.1rem + 3.2vw, 1.9rem);
	}

	body .ayap-fiche > .ayap-fiche-header .ayap-fiche-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	body .ayap-fiche > .ayap-fiche-header .ayap-fiche-actions > * {
		padding: 8px 10px !important;
		font-size: 0.9rem;
		overflow-wrap: anywhere;
	}

	body .ayap-fiche > .ayap-fiche-header .ayap-fiche-actions > .ayap-btn-message {
		grid-column: 1 / -1;
	}

	body .ayap-fiche > .ayap-fiche-header .ayap-boutons-partage .ayap-btn-partage {
		width: 44px;
		height: 44px;
	}

	body .ayap-fiche > .ayap-fiche-header .ayap-boutons-partage .ayap-btn-partage-natif {
		min-height: 44px;
	}
}

/* --- Tablette : les boutons passent à la ligne proprement --- */
@media (min-width: 601px) and (max-width: 1023px) {
	body .ayap-fiche > .ayap-fiche-header .ayap-fiche-actions > * {
		flex: 1 1 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	body .ayap-fiche > .ayap-fiche-header .ayap-fiche-actions > * {
		transition: none;
	}
}

/* v1.87.7 — Bannière de la fiche : catégorie (« Service de nettoyage de bureaux »…) en orange, lisible sur le fond marine. */
body .ayap-fiche > .ayap-fiche-header .ayap-badge-categorie,
body .ayap-fiche > .ayap-fiche-header .ayap-badge-categorie .ayap-badge-categorie-nom {
	color: var(--ayap-c2, #f9922c);
	font-weight: 700;
}

/* ==========================================================================
   v1.87.24 — Onglet « Détails » de la fiche : cartes, pastilles clés et carte Horaires.
   Couleurs : --ayap-c1 (marine) / --ayap-c2 (orange), Réseau > Apparence.
   ========================================================================== */
body .ayap-det {
	max-width: none;
	display: grid;
	gap: 12px;
}

body .ayap-det ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Onglet « Avis » : formulaire mis en page comme l'onglet « Contacter » (champs empilés, pleine largeur). */
body #ayap-tab-avis .ayap-form-avis {
	width: 100%;
	max-width: 820px;
	margin: 0 auto;
}

body #ayap-tab-avis .ayap-form-avis p {
	margin: 0 0 18px;
}

body #ayap-tab-avis .ayap-form-avis label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ayap-c1, #09284e);
}

body #ayap-tab-avis .ayap-form-avis select,
body #ayap-tab-avis .ayap-form-avis textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	min-height: 48px;
	padding: 11px 14px;
	font-size: 16px;
	border-width: 1.5px;
	border-style: solid;
	border-radius: 10px;
}

body #ayap-tab-avis .ayap-form-avis textarea {
	min-height: 150px;
	resize: vertical;
	line-height: 1.5;
}

body #ayap-tab-avis .ayap-form-avis input[type="file"] {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	padding: 14px;
	border: 2px dashed #9fb0c3;
	border-radius: 12px;
	background: #f4f7fb;
}

/* Pastilles clés : expérience, urgences, devis. */
body .ayap-det-stats {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 12px;
}

body .ayap-det-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 16px 8px;
	border: 1px solid #e3e8ef;
	border-radius: 16px;
	background: #fff;
	color: var(--ayap-c1, #09284e);
	text-align: center;
}

body .ayap-det-stat strong {
	font-size: clamp(18px, 5vw, 24px);
	font-weight: 800;
	line-height: 1.15;
	color: inherit;
}

body .ayap-det-stat span {
	font-size: 13px;
	line-height: 1.3;
	opacity: 0.75;
}

body .ayap-det-stat--fort {
	background: var(--ayap-c1, #09284e);
	border-color: var(--ayap-c1, #09284e);
	color: var(--ayap-c1t, #fff);
}

body .ayap-det-stat--fort span {
	opacity: 0.85;
}

/* Cartes d'information. */
body .ayap-det-grille {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

body .ayap-det-carte {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	margin: 0;
	padding: 16px;
	border: 1px solid #e3e8ef;
	border-radius: 16px;
	background: #fff;
}

body .ayap-det-carte--large {
	grid-column: 1 / -1;
}

body .ayap-det-icone {
	flex: none;
	display: inline-flex;
	color: var(--ayap-c2, #f9922c);
}

body .ayap-det-corps {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

body .ayap-det-label {
	font-size: 14px;
	line-height: 1.3;
	color: #6b7686;
}

body .ayap-det-valeur {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #0f1b2d;
	overflow-wrap: anywhere;
}

body .ayap-det-valeur a {
	color: var(--ayap-c1, #09284e);
}

/* Carte Horaires. */
body .ayap-det-horaires {
	padding: 18px 20px;
	border: 1px solid #e3e8ef;
	border-radius: 16px;
	background: #fff;
}

body .ayap-det-horaires-tete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

body .ayap-det-horaires-tete h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b7686;
}

body .ayap-det-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 99px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

body .ayap-det-badge--ouvert {
	background: #dff3e4;
	color: #14532d;
}

body .ayap-det-badge--ferme {
	background: #eceff3;
	color: #5b6775;
}

body .ayap-det-horaires-liste li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid #eef1f5;
	font-size: 16px;
	color: #0f1b2d;
}

body .ayap-det-horaires-liste li:first-child {
	border-top: 0;
}

body .ayap-det-heures {
	text-align: right;
}

body .ayap-det-horaires-liste .ayap-horaires-ferme {
	color: #6b7686;
}

body .ayap-det-horaires-liste li.is-today {
	font-weight: 700;
	color: #b45f06;
	color: color-mix(in srgb, var(--ayap-c2, #f9922c) 78%, #000);
}

body .ayap-det-exceptions {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid #eef1f5;
	font-size: 14px;
	color: #3d4a5c;
}

body .ayap-det-exceptions ul {
	margin-top: 6px;
}

@media (max-width: 359px) {
	body .ayap-det-grille {
		grid-template-columns: minmax(0, 1fr);
	}

	body .ayap-det-horaires-liste li {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}

	body .ayap-det-heures {
		text-align: left;
	}
}

@media (max-width: 480px) {
	body .ayap-det-carte {
		padding: 14px 12px;
		gap: 10px;
	}

	body .ayap-det-valeur {
		font-size: 16px;
	}
}

/* ==========================================================================
   v2.3.0 — Page de détails d'une annonce : bannière plein écran moderne (proposition validée).
   Bannière pleine largeur d'écran, barre d'informations clés qui la chevauche, colonne principale
   (galerie, onglets, présentation) et barre latérale (contact, annonces premium, recherche).
   ========================================================================== */
body .ayap-fiche.ayap-fiche-avec-laterale {
	grid-template-columns: minmax(0, 1fr) clamp(320px, 26vw, 400px);
	grid-template-rows: auto auto 1fr auto;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header {
	grid-column: 1 / -1;
	grid-row: 1;
	width: var(--ayap-vw, 100vw) !important;
	max-width: none;
	margin: 0 0 0 calc(50% - var(--ayap-vw, 100vw) / 2) !important;
	padding: clamp(28px, 4.5vw, 60px) max(16px, calc((var(--ayap-vw, 100vw) - var(--ayap-w)) / 2)) clamp(96px, 10vw, 128px) !important;
	min-height: 0;
	border-radius: 0;
	background: #0a2f5c;
	background: linear-gradient(115deg, #061a35 0%, #0a2f5c 55%, #17508f 100%);
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header::before,
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header--image::before {
	top: -160px;
	right: -120px;
	bottom: auto;
	left: auto;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, #f9922c 0%, rgba(249, 146, 44, 0) 68%);
	opacity: 0.55;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header::after,
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header--image::after {
	display: block;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: auto;
	height: auto;
	border-radius: 0;
	background-color: transparent;
	background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
	background-size: 26px 26px;
	opacity: 1;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header > .ayap-fiche-intro {
	max-width: 1296px;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-haut {
	margin: 0 0 24px;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-haut .ayap-fiche-fil-ariane {
	min-height: 0;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.8);
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-haut .ayap-fiche-fil-ariane a {
	color: inherit;
	font-weight: 500;
	text-decoration: none;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-haut .ayap-fiche-fil-ariane a:hover,
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-haut .ayap-fiche-fil-ariane a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-fil-ariane .ayap-fil-ariane-separateur {
	margin: 0 6px;
	opacity: 0.8;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-badge-categorie {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 12px 16px 0;
	padding: 8px 16px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 0.9rem;
	text-decoration: none;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-badge-categorie .ayap-badge-categorie-nom {
	color: #fff;
	font-weight: 700;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-titre {
	max-width: 980px;
	margin: 0 0 20px;
	font-size: clamp(2rem, 1rem + 3.6vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.06;
	text-shadow: none;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-badges {
	gap: 10px;
	margin: 0 0 20px;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-badges > * {
	min-height: 36px;
	padding: 6px 16px;
	border: 0;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 0.9rem;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-badges > .ayap-badge-vedette,
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-badges > .ayap-badge-plan:not(.ayap-badge-plan-gratuit) {
	background: var(--ayap-c2, #f9922c);
	color: var(--ayap-c2t, #09284e);
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-badges > .ayap-badge-verifie {
	background: #1f9d57;
	color: #fff;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-badges > .ayap-badge-ouvert {
	background: #fff;
	color: var(--ayap-c1, #09284e);
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-badges > .ayap-badge-ferme {
	background: #fff;
	color: #b42318;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-meta {
	gap: 8px 22px;
	margin: 0 0 30px;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-meta > p {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.05rem;
	text-shadow: none;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-meta > p svg {
	flex: 0 0 auto;
	color: var(--ayap-c2, #f9922c);
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-actions-principales,
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-actions {
	display: inline-flex !important;
	flex-wrap: wrap;
	vertical-align: top;
	max-width: none;
	margin: 0 12px 12px 0;
	gap: 12px;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-actions-principales > a,
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-actions > * {
	display: inline-flex !important;
	min-height: 52px !important;
	padding: 10px 26px !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	border-radius: 14px !important;
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
	box-shadow: none !important;
	font-size: 1rem;
	font-weight: 700;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-actions-principales > .ayap-btn-appeler {
	background: var(--ayap-c2, #f9922c) !important;
	border-color: var(--ayap-c2, #f9922c) !important;
	color: var(--ayap-c2t, #09284e) !important;
	font-weight: 800;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-actions-principales > .ayap-btn-whatsapp {
	background: #1f9d57 !important;
	border-color: #1f9d57 !important;
	color: #fff !important;
	font-weight: 800;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-actions-principales > a:hover,
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-actions-principales > a:focus-visible,
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-actions > *:hover,
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-actions > *:focus-visible {
	filter: brightness(1.1);
}

/* --- Barre d'informations clés : chevauche le bas de la bannière --- */
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-cles {
	grid-column: 1 / -1;
	grid-row: 2;
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	margin: -64px 0 32px;
	overflow: hidden;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(9, 40, 78, 0.14);
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-fiche-cle {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 20px 26px;
	border-right: 1px solid #e6ecf4;
	border-bottom: 1px solid #e6ecf4;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-fiche-cle-label {
	font-size: 0.82rem;
	font-weight: 700;
	color: #5b6b82;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-fiche-cle-valeur {
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--ayap-c1, #09284e);
	overflow-wrap: anywhere;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-fiche-cle.is-ouvert .ayap-fiche-cle-valeur {
	color: #15803d;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-fiche-cle.is-ferme .ayap-fiche-cle-valeur {
	color: #b42318;
}

/* --- Colonnes --- */
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-corps {
	grid-column: 1;
	grid-row: 3;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-laterale {
	grid-column: 2;
	grid-row: 3;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-apres-fiche {
	grid-row: 4;
}

@media (max-width: 1100px) {
	body .ayap-fiche.ayap-fiche-avec-laterale {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header,
	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-cles,
	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-corps,
	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-laterale,
	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-apres-fiche {
		grid-column: 1;
		grid-row: auto;
	}
}

@media (max-width: 600px) {
	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-cles {
		margin-top: -48px;
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-actions-principales,
	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-actions {
		display: flex !important;
		width: 100%;
		margin-right: 0;
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-actions-principales > a,
	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-actions > * {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* --- Carte contact de la barre latérale --- */
body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-contact {
	padding: 24px;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-annonceur {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-av {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--ayap-c1, #09284e);
	color: #fff;
	font-weight: 800;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-annonceur small {
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	color: #5b6b82;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-annonceur strong {
	display: block;
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--ayap-c1, #09284e);
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-contact-actions,
body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-contact-actions .ayap-actions-principales {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-contact-actions a {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 50px;
	padding: 8px 16px;
	border: 1.5px solid var(--ayap-c1, #09284e);
	border-radius: 14px;
	background: transparent;
	color: var(--ayap-c1, #09284e);
	font-weight: 800;
	text-decoration: none;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-contact-actions .ayap-btn-appeler {
	background: var(--ayap-c2, #f9922c);
	border-color: var(--ayap-c2, #f9922c);
	color: var(--ayap-c2t, #09284e);
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-contact-actions .ayap-btn-whatsapp {
	background: #1f9d57;
	border-color: #1f9d57;
	color: #fff;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-contact-actions a:hover,
body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-contact-actions a:focus-visible {
	filter: brightness(1.08);
}

/* --- Onglets soulignés --- */
body .ayap-fiche.ayap-fiche-avec-laterale .ayap-tabs-nav {
	gap: clamp(8px, 2.4vw, 30px);
	margin: 0 0 22px;
	padding: 0;
	border-bottom: 2px solid #e1e8f1;
	background: transparent;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-tabs-nav .ayap-tab-btn {
	min-height: 0;
	margin-bottom: -2px;
	padding: 14px clamp(8px, 1.8vw, 26px);
	border: 0;
	border-bottom: 4px solid transparent;
	border-radius: 0;
	background: transparent;
	color: #5b6b82;
	font-size: 1.05rem;
	font-weight: 700;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-tabs-nav .ayap-tab-btn:hover {
	background: transparent;
	color: var(--ayap-c1, #09284e);
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-tabs-nav .ayap-tab-btn.is-active,
body .ayap-fiche.ayap-fiche-avec-laterale .ayap-tabs-nav .ayap-tab-btn[aria-selected="true"] {
	background: transparent;
	border-bottom-color: var(--ayap-c1, #09284e);
	color: var(--ayap-c1, #09284e);
}

/* --- Carte « Présentation » --- */
body .ayap-fiche.ayap-fiche-avec-laterale .ayap-tab-panel {
	border: 1px solid #e3e9f2;
	border-radius: 22px;
	padding: clamp(18px, 3vw, 38px);
	background: #fff;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-fiche-panneau-titre {
	margin: 0 0 18px;
	font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
	font-weight: 800;
	line-height: 1.2;
	color: var(--ayap-c1, #09284e);
}

/* --- Barre latérale : annonces premium --- */
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-laterale .ayap-lat-bloc {
	border-radius: 28px;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-entete {
	padding: 20px 24px;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-bloc h2.ayap-lat-titre {
	gap: 12px;
	font-size: 1.3rem;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-puce {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	font-size: 18px;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-voir {
	font-size: 14px;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-liste {
	padding: 14px;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-carte {
	gap: 14px;
	padding: 14px;
	border-radius: 20px;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-vignette {
	flex: 0 0 100px;
	height: 86px;
	border-radius: 16px;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-nom {
	font-size: 16px;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-lieu::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 4px;
	vertical-align: -2px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e5484d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Barre latérale : « Trouver un professionnel » --- */
body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-recherche {
	padding: 26px 22px 22px;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-recherche::before {
	right: -50px;
	top: -60px;
	width: 170px;
	height: 170px;
}

body .ayap-fiche-avec-laterale .ayap-lat-recherche h2.ayap-lat-titre-recherche {
	font-size: 1.4rem;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-recherche .ayap-lat-sous-titre {
	margin: 0 0 16px;
	font-size: 15px;
}

/* (2.8.58) Widget [ayap_recherche_widget] dans la carte marine : la carte blanche du widget devient
   transparente (mêmes champs blancs et onglets que partout ailleurs), son titre est remplacé par celui du bloc. */
body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-recherche .ayap-sw-carte {
	padding: 0;
	gap: 14px;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-recherche .ayap-sw-titre {
	display: none;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-recherche .ayap-sw-onglets {
	background: rgba(255, 255, 255, 0.1);
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-recherche .ayap-sw .ayap-sw-onglet:not([aria-selected="true"]) {
	color: #fff;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-recherche .ayap-sw .ayap-sw-onglet:not([aria-selected="true"]):hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-pas-trouve {
	margin: 16px 0 0;
	text-align: center;
	font-size: 14.5px;
	color: #fff;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-lat-pas-trouve a {
	color: #fff;
	font-weight: 800;
	text-decoration: underline;
}

/* ==========================================================================
   v2.4.0 — Bannière avec photo, galerie (grande photo + miniatures + diaporama), onglets compacts,
   champ « Photo de bannière » du formulaire.
   ========================================================================== */

/* --- Bannière : photo en fond sous un voile marine --- */
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header--image > .ayap-fiche-fond {
	display: block !important;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	transform: none;
	filter: none;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header--image > .ayap-fiche-fond::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(110deg, rgba(6, 26, 53, 0.93) 0%, rgba(8, 40, 80, 0.8) 55%, rgba(10, 47, 92, 0.66) 100%);
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header--image::before,
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header--image::after {
	display: none;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header > .ayap-fiche-intro {
	position: relative;
	z-index: 1;
}

/* --- Galerie --- */
body .ayap-fiche .ayap-gal {
	margin: 0 0 22px;
}

body .ayap-fiche .ayap-gal-vue {
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	background: #0d2b52;
}

body .ayap-fiche .ayap-gal-vue:focus-visible {
	outline: 3px solid var(--ayap-c2, #f9922c);
	outline-offset: 3px;
}

body .ayap-fiche .ayap-gal-piste {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

body .ayap-fiche .ayap-gal-piste::-webkit-scrollbar {
	display: none;
}

body .ayap-fiche .ayap-gal-slide {
	position: relative;
	display: block;
	flex: 0 0 100%;
	aspect-ratio: 16 / 10;
	max-height: 460px;
	overflow: hidden;
	scroll-snap-align: center;
	cursor: zoom-in;
	background: #0d2b52 var(--ayap-gal-fond) center / cover no-repeat;
}

/* Photo portrait ou étroite : visible en entier, sur sa propre version agrandie et floutée. */
body .ayap-fiche .ayap-gal-slide::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: inherit;
	filter: blur(22px) brightness(0.7);
	transform: scale(1.15);
}

body .ayap-fiche .ayap-gal-slide img {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	border-radius: 0;
	object-fit: contain;
}

body .ayap-fiche .ayap-gal-fleche {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0 0 4px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ayap-c1, #09284e);
	font-size: 30px;
	line-height: 1;
	box-shadow: 0 4px 14px rgba(9, 40, 78, 0.25);
	cursor: pointer;
}

body .ayap-fiche .ayap-gal-prec {
	left: 12px;
}

body .ayap-fiche .ayap-gal-suiv {
	right: 12px;
}

body .ayap-fiche .ayap-gal-fleche:focus-visible {
	outline: 3px solid var(--ayap-c2, #f9922c);
	outline-offset: 2px;
}

body .ayap-fiche .ayap-gal-compteur {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(6, 26, 53, 0.72);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
}

body .ayap-fiche .ayap-gal-miniatures {
	display: flex;
	gap: 10px;
	margin: 12px 0 0;
	padding: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

body .ayap-fiche .ayap-gal-miniatures::-webkit-scrollbar {
	display: none;
}

body .ayap-fiche .ayap-gal-mini {
	flex: 0 0 auto;
	width: 92px;
	height: 68px;
	padding: 0;
	overflow: hidden;
	border: 3px solid transparent;
	border-radius: 14px;
	background: #dbe3ee;
	opacity: 0.75;
	cursor: pointer;
}

body .ayap-fiche .ayap-gal-mini img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
}

body .ayap-fiche .ayap-gal-mini.is-active {
	border-color: var(--ayap-c2, #f9922c);
	opacity: 1;
}

body .ayap-fiche .ayap-gal-mini:focus-visible {
	outline: 3px solid var(--ayap-c1, #09284e);
	outline-offset: 2px;
}

@media (max-width: 700px) {
	body .ayap-fiche .ayap-gal-miniatures {
		display: none;
	}

	body .ayap-fiche .ayap-gal-slide {
		aspect-ratio: 4 / 3;
	}

	body .ayap-fiche .ayap-gal-fleche {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	body .ayap-fiche .ayap-gal-piste {
		scroll-behavior: auto;
	}
}

/* --- Diaporama plein écran --- */
html.ayap-lb-ouvert {
	overflow: hidden;
}

.ayap-lb {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(4, 14, 30, 0.94);
}

.ayap-lb-image {
	max-width: 94vw;
	max-height: 88vh;
	object-fit: contain;
	border-radius: 8px;
}

.ayap-lb button {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0 0 4px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

.ayap-lb button:hover,
.ayap-lb button:focus-visible {
	background: rgba(255, 255, 255, 0.3);
	outline: 2px solid #fff;
}

.ayap-lb-fermer {
	top: 16px;
	right: 16px;
}

.ayap-lb-prec {
	top: 50%;
	left: 16px;
	margin-top: -24px;
}

.ayap-lb-suiv {
	top: 50%;
	right: 16px;
	margin-top: -24px;
}

.ayap-lb-compteur {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-weight: 700;
}

/* --- Onglets compacts : plus de barre de défilement apparente --- */
body .ayap-fiche.ayap-fiche-avec-laterale .ayap-tabs-nav {
	overflow-x: auto;
	scrollbar-width: none;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-tabs-nav::-webkit-scrollbar {
	display: none;
}

body .ayap-fiche.ayap-fiche-avec-laterale .ayap-tabs-nav .ayap-tab-btn {
	flex: 0 0 auto;
	font-size: 1rem;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
}

/* --- Formulaire : champ « Photo de bannière » --- */
.ayap-bloc-banniere {
	margin: 18px 0;
	padding: 18px 20px;
	border: 1px solid #dfe6f0;
	border-radius: 16px;
	background: #f7f9fc;
}

.ayap-bloc-banniere .ayap-banniere-option {
	margin-left: 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #e3eaf4;
	font-size: 0.78rem;
	font-weight: 700;
	color: #43546c;
}

.ayap-bloc-banniere .ayap-banniere-consignes {
	margin: 10px 0 12px 1.1em;
	padding: 0;
	font-size: 0.92rem;
	line-height: 1.55;
}

.ayap-bloc-banniere .ayap-banniere-cadre {
	position: relative;
	width: 100%;
	max-width: 320px;
	margin: 0 0 12px;
}

.ayap-bloc-banniere .ayap-banniere-schema {
	display: block;
	width: 100%;
	margin: 0;
}

/* (2.8.147) Le champ « photo de bannière » est posé dans le cadre pointillé. */
.ayap-bloc-banniere .ayap-banniere-cadre-champ .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ayap-bloc-banniere .ayap-banniere-cadre-champ {
	position: absolute;
	left: 22.5%;
	right: 22.5%;
	top: 52%;
	bottom: 16%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.ayap-bloc-banniere .ayap-banniere-cadre-champ input[type="file"] {
	width: 100%;
	max-width: 100%;
	margin: 0;
	font-size: 0.7rem;
	cursor: pointer;
}

.ayap-bloc-banniere .ayap-banniere-cadre-champ input[type="file"]::file-selector-button {
	margin-right: 6px;
	padding: 4px 8px;
	border: 1px solid #f9922c;
	border-radius: 6px;
	background: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	color: #09284e;
	cursor: pointer;
}

.ayap-bloc-banniere .ayap-banniere-actuelle img {
	display: block;
	width: 100%;
	max-width: 360px;
	border-radius: 12px;
}

.ayap-bloc-banniere .ayap-banniere-verdict {
	min-height: 1.4em;
	margin: 6px 0 0;
	font-weight: 700;
}

.ayap-bloc-banniere .ayap-banniere-verdict.is-ok {
	color: #15803d;
}

.ayap-bloc-banniere .ayap-banniere-verdict.is-erreur {
	color: #b42318;
}

.ayap-bloc-banniere .ayap-banniere-option.is-requis {
	background: #fde8e6;
	color: #b42318;
}

/* ==========================================================================
   v2.8.52 — Page de détails d'une annonce : bannière moins haute.
   Seuls les espacements verticaux et la taille du titre diminuent ; la barre
   d'informations clés chevauche toujours le bas de la bannière (marge négative
   de -64 px, -48 px sur téléphone : le padding du bas reste donc supérieur).
   ========================================================================== */
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header {
	padding-top: clamp(18px, 2.8vw, 34px) !important;
	padding-bottom: clamp(80px, 7.5vw, 96px) !important;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-haut {
	margin-bottom: 14px;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-badge-categorie {
	margin-bottom: 10px;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-titre {
	margin-bottom: 12px;
	font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem);
	line-height: 1.1;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-badges {
	margin-bottom: 14px;
}

/* Tablette */
@media (min-width: 601px) and (max-width: 1023px) {
	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header {
		padding-top: 20px !important;
		padding-bottom: 84px !important;
	}
}

/* Téléphone */
@media (max-width: 600px) {
	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header {
		padding-top: 16px !important;
		padding-bottom: 68px !important;
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-haut {
		margin-bottom: 10px;
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-titre {
		margin-bottom: 10px;
		font-size: clamp(1.5rem, 1.1rem + 2.6vw, 1.9rem);
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-badges {
		margin-bottom: 12px;
	}
}

/* ==========================================================================
   2.8.53 — Page de détails d'une annonce : bannière plus compacte.
   Ne change que les hauteurs et les espacements verticaux de la bannière
   (aucune couleur, aucun texte, aucun bouton déplacé). La barre
   d'informations clés (marge négative de -64 px, -48 px sur téléphone)
   chevauche toujours le bas de la bannière : le padding du bas reste donc
   supérieur à ce chevauchement.
   ========================================================================== */

/* --- Ordinateur (1024 px et plus) : cible d'environ 260 px de hauteur de base --- */
body .ayap-fiche > .ayap-fiche-header--image {
	min-height: 260px;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header {
	padding-top: 14px !important;
	padding-bottom: 76px !important;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-haut {
	margin-bottom: 8px;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-badge-categorie {
	margin-bottom: 6px;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-titre {
	margin-bottom: 8px;
	font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem);
	line-height: 1.1;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-badges {
	margin-bottom: 8px;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-meta {
	gap: 6px 18px;
	margin-bottom: 14px;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-actions-principales,
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-actions {
	margin: 0 10px 10px 0;
	gap: 10px;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-actions-principales > a,
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-actions > * {
	min-height: 44px !important;
	padding: 8px 22px !important;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-boutons-partage {
	margin-top: 6px;
}

/* --- Tablette (601 px à 1023 px) --- */
@media (min-width: 601px) and (max-width: 1023px) {
	body .ayap-fiche > .ayap-fiche-header--image {
		min-height: 240px;
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header {
		padding-top: 14px !important;
		padding-bottom: 76px !important;
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-titre {
		font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2rem);
	}
}

/* --- Téléphone (600 px et moins) : zones de toucher de 44 px conservées --- */
@media (max-width: 600px) {
	body .ayap-fiche > .ayap-fiche-header--image {
		min-height: 220px;
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header {
		padding-top: 12px !important;
		padding-bottom: 60px !important;
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-haut {
		margin-bottom: 6px;
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-titre {
		margin-bottom: 6px;
		font-size: clamp(1.35rem, 1.1rem + 1.8vw, 1.65rem);
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-badges {
		margin-bottom: 6px;
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-meta {
		margin-bottom: 10px;
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-actions-principales,
	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-actions {
		margin: 0 8px 8px 0;
		gap: 8px;
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-actions-principales > a,
	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-actions > * {
		padding: 8px 16px !important;
	}
}

/* ==========================================================================
   2.8.54 — Page de détails d'une annonce : plus de doublon dans la bannière.
   L'annonceur et les boutons de contact (Appeler, WhatsApp, Demander un devis)
   sont déjà dans la carte « Annonceur » de la colonne de droite.
   - Ordinateur (1101 px et plus) : retirés de la bannière.
   - Tablette (601 à 1100 px) : la colonne de droite passe sous la fiche, les
     boutons de contact restent donc en haut ; seul le lien annonceur est retiré.
   - Téléphone (600 px et moins) : seuls Appeler et WhatsApp restent en haut.
   Le lieu, les vues, les pastilles, les boutons secondaires et le partage
   ne changent pas. Rien n'est supprimé du code ni des données : masquage CSS.
   ========================================================================== */
body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-fiche-meta > .ayap-fiche-annonceur {
	display: none !important;
}

@media (min-width: 1101px) {
	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-actions-principales {
		display: none !important;
	}
}

@media (max-width: 600px) {
	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-header .ayap-actions-principales > *:not(.ayap-btn-appeler):not(.ayap-btn-whatsapp) {
		display: none !important;
	}
}

/* ==========================================================================
   (2.8.59) Page de détails d'une annonce : barre latérale unique et toujours visible.
   - Partie A (colonne de gauche) : galerie, onglets ET, dessous, annonces similaires,
     annonces premium et récemment consultées. Ces blocs ne passent plus en pleine largeur
     sous la barre latérale : ils restent dans la colonne de gauche.
   - Partie B (colonne de droite) : la barre latérale (Annonceur + Trouver un professionnel)
     s'étend sur toute la hauteur de la partie A et reste visible pendant le défilement (sticky).
   Réglage : variable --ayap-lat-top (distance sous le haut de l'écran) ; à augmenter si le thème
   a un menu fixe, ex. body { --ayap-lat-top: 96px; }.
   ========================================================================== */
body .ayap-fiche.ayap-fiche-avec-laterale {
	--ayap-lat-top: 16px;
	grid-template-rows: auto auto auto 1fr;
}

body.admin-bar .ayap-fiche.ayap-fiche-avec-laterale {
	--ayap-lat-top: 48px; /* barre d'administration WordPress (32 px) + 16 px */
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-apres-fiche {
	grid-column: 1;
	grid-row: 4;
	min-width: 0;
}

body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-laterale {
	grid-column: 2;
	grid-row: 3 / span 2;
	align-self: start;
	position: -webkit-sticky;
	position: sticky;
	top: var(--ayap-lat-top);
	/* Aucune hauteur maximale ni défilement interne : tout le contenu reste visible, comme avant. */
	overflow: visible;
}

/* Les annonces premium (4 visibles) tiennent dans la colonne de gauche, plus étroite : 3 visibles. */
@media (min-width: 1101px) and (max-width: 1500px) {
	body .ayap-fiche.ayap-fiche-avec-laterale .ayap-pc {
		--ayap-pc-n: 3;
	}
}

/* Tablette et mobile : la barre latérale repasse sous la fiche, sans position fixe. */
@media (max-width: 1100px) {
	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-apres-fiche,
	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-laterale {
		grid-column: 1;
		grid-row: auto;
	}

	body .ayap-fiche.ayap-fiche-avec-laterale > .ayap-fiche-laterale {
		position: static;
	}
}
