/* Annonces sponsorisées (inc/annonces.php), 18/10/2026.
   Mentions « Sponsorisé » / « Publicité · NOM », visuels ordinateur / mobile (≤ 767 px). */

.anaaz-mention {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 4;
	padding: 4px 9px;
	border-radius: 30px;
	background: rgba(255, 255, 255, .92);
	color: #111;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .02em;
	white-space: nowrap;
	pointer-events: none;
}

.anaaz-pub,
[data-anaaz-annonce] {
	position: relative;
}

.anaaz-pub {
	display: block;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}

.anaaz-pub__image,
.anaaz-pub__image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Diaporamas : image montrée en entier (jamais recadrée), écart rempli par le même visuel flouté */
.anaaz-hero-slide > .anaaz-pub,
.anaaz-category-slide.anaaz-pub {
	width: 100%;
	height: 100%;
}

/* Diaporama des catégories et de la page Boutique : une diapositive d'annonce reste empilée comme les bannières
   (sans cela, la règle .anaaz-pub ci-dessus la remet dans le flux : 2e et 3e annonces cachées sous la 1re), 19/10/2026 */
.anaaz-category-slider .anaaz-category-slide.anaaz-pub {
	position: absolute;
	inset: 0;
}

.anaaz-pub__entier {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #efe7dd;
}

.anaaz-pub__flou,
.anaaz-pub__entier > .anaaz-pub__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.anaaz-pub__entier .anaaz-pub__flou img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	filter: blur(22px) saturate(1.1);
	transform: scale(1.15);
	opacity: .8;
}

.anaaz-pub__entier > .anaaz-pub__image img,
.anaaz-hero-slide .anaaz-pub__entier > .anaaz-pub__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center center !important;
}

/* Accueil · bannière pleine largeur : couvre tout le bloc du haut pendant le passage de sa diapositive */
.anaaz-marketplace-hero:has(.anaaz-pub-pleine) {
	position: relative;
}

.anaaz-pub.anaaz-pub-pleine {
	position: absolute;
	inset: 0;
	z-index: 60; /* au-dessus du texte (5), des boutons (20) et des pastilles (50 sur mobile) */
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease, visibility .8s;
}

.anaaz-pub.anaaz-pub-pleine.est-visible {
	opacity: 1;
	visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
	.anaaz-pub.anaaz-pub-pleine {
		transition: none;
	}
}

/* Accueil · bannière (à la place de « Abayas & jilbabs ») */
.anaaz-pub-section--banniere {
	margin: 40px 0;
}

/* Lot B : montrée en entier (hauteur selon le visuel), plus de recadrage à 250 px */
.anaaz-pub--accueil_banniere .anaaz-pub__image img {
	height: auto;
	object-fit: contain;
}

/* Accueil · visuel « univers » : même case que les autres visuels du bloc ; visuel montré en entier sur fond flouté (lot B) */
.anaaz-univers-section .tb-block-inner .anaaz-pub__entier {
	display: block;
	width: 100%;
	height: 100%;
}
.anaaz-univers-section .tb-block-inner .anaaz-pub__entier > .anaaz-pub__image img {
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	max-height: none !important;
	object-fit: contain !important;
	transform: none !important;
}
.anaaz-univers-section .tb-block-inner .anaaz-pub__entier .anaaz-pub__flou img {
	min-height: 0 !important;
	height: 100% !important;
}

/* Catégories et page Boutique · bannière sous la grille */
.anaaz-pub-bloc--categorie_banniere {
	margin: 32px 0 8px;
}

.anaaz-pub-bloc--categorie_banniere .anaaz-pub,
.anaaz-pub-bloc--article_encart .anaaz-pub {
	border-radius: 12px;
}

.anaaz-vendre {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 28px 32px;
	border-radius: 12px;
	background: #f5ede4;
	color: #111;
	text-decoration: none;
}

.anaaz-vendre__titre {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.35;
}

.anaaz-vendre__bouton,
.anaaz-une__bouton,
.anaaz-pub-produit__bouton {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 30px;
	background: #111;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

/* Grille (catégories, page Boutique, recherche) : mention en bas à gauche de la photo (le + d'ajout au panier est en haut) */
li.anaaz-sponsorise .img-holder {
	position: relative;
}

li.anaaz-sponsorise .img-holder::before {
	content: "Sponsorisé";
	position: absolute;
	bottom: 8px;
	left: 8px;
	z-index: 4;
	padding: 4px 9px;
	border-radius: 30px;
	background: rgba(255, 255, 255, .92);
	color: #111;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	pointer-events: none;
}

/* Accueil « À découvrir » et fiche « Toute la collection » */
.anaaz-favorite-card[data-anaaz-annonce] .anaaz-favorite-image,
.slick-slide[data-anaaz-annonce] .img-holder {
	position: relative;
	display: block;
}

/* Accueil · boutique à la une */
.anaaz-une {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 20px;
	padding: 18px 22px;
	border: 1px solid #ece4da;
	border-radius: 14px;
	background: #faf6f1;
	color: #111;
	text-decoration: none;
}

.anaaz-une .anaaz-mention {
	top: 10px;
	right: 12px;
	left: auto;
	background: #fff;
}

.anaaz-une__logo {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
}

.anaaz-une__texte {
	display: grid;
	gap: 4px;
	flex: 1 1 auto;
	min-width: 0;
}

.anaaz-une__nom {
	font-size: 18px;
	font-weight: 600;
}

.anaaz-une__accroche {
	color: #555;
	font-size: 14px;
	line-height: 1.45;
}

@media (max-width: 767px) {
	.anaaz-une {
		flex-wrap: wrap;
		gap: 12px;
		padding: 34px 16px 16px;
	}

	.anaaz-une__logo {
		flex-basis: 56px;
		width: 56px;
		height: 56px;
	}

	.anaaz-une__texte {
		flex-basis: calc(100% - 70px);
	}

	.anaaz-vendre {
		padding: 22px 18px;
	}

	.anaaz-vendre__titre {
		font-size: 17px;
	}
}

/* Articles : colonne droite, encart, produit */
.anaaz-pub-bloc--article_colonne {
	margin: 24px 0 0;
}

.anaaz-pub-bloc--article_colonne .anaaz-pub {
	max-width: 300px;
	border-radius: 10px;
}

@media (max-width: 1024px) {
	.anaaz-pub-bloc--article_colonne .anaaz-pub {
		max-width: 360px;
		margin: 0 auto;
	}
}

.anaaz-pub-bloc--article_encart {
	margin: 28px 0;
}

.anaaz-pub-bloc--article_produit {
	max-width: 760px;
	margin: 32px auto;
	padding: 0 16px;
}

.anaaz-pub-produit {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 16px;
	border: 1px solid #ece4da;
	border-radius: 14px;
	background: #fff;
	color: #111;
	text-decoration: none;
}

.anaaz-pub-produit__image {
	flex: 0 0 140px;
}

.anaaz-pub-produit__image img {
	display: block;
	width: 140px;
	height: 175px;
	border-radius: 10px;
	object-fit: cover;
}

.anaaz-pub-produit__texte {
	display: grid;
	gap: 6px;
	justify-items: start;
}

.anaaz-pub-produit__nom {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
}

.anaaz-pub-produit__boutique {
	color: #666;
	font-size: 13px;
}

@media (max-width: 767px) {
	.anaaz-pub-produit {
		gap: 14px;
		padding: 12px;
	}

	.anaaz-pub-produit__image {
		flex-basis: 104px;
	}

	.anaaz-pub-produit__image img {
		width: 104px;
		height: 130px;
	}

	.anaaz-pub-produit__nom {
		font-size: 15px;
	}
}

/* Aperçu (administratrice) */
.anaaz-apercu-bandeau {
	position: fixed;
	right: 12px;
	bottom: 12px;
	left: 12px;
	z-index: 999999;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(17, 17, 17, .88);
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
}

.anaaz-apercu-cible {
	outline: 3px dashed #c8102e;
	outline-offset: 3px;
}

/* Page « Annoncer sur Anaaz » ([anaaz_annoncer]) */
.anaaz-annoncer {
	display: grid;
	gap: 22px;
	max-width: 760px;
	margin: 0 auto;
	color: #111;
}

.anaaz-annoncer__intro,
.anaaz-annoncer__rgpd,
.anaaz-annoncer__note {
	margin: 0;
	line-height: 1.6;
}

.anaaz-annoncer__rgpd,
.anaaz-annoncer__note {
	color: #666;
	font-size: 13px;
}

.anaaz-annoncer__form {
	display: grid;
	gap: 14px;
	padding: 22px;
	border: 1px solid #ece4da;
	border-radius: 14px;
	background: #faf6f1;
}

.anaaz-annoncer__form p {
	display: grid;
	gap: 6px;
	margin: 0;
}

.anaaz-annoncer__form label {
	font-size: 14px;
	font-weight: 500;
}

.anaaz-annoncer__form input,
.anaaz-annoncer__form select,
.anaaz-annoncer__form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1px solid #d9cfc3;
	border-radius: 10px;
	background: #fff;
	font: inherit;
}

.anaaz-annoncer__dates {
	grid-template-columns: 1fr 1fr;
	column-gap: 12px;
}

.anaaz-annoncer__dates label {
	display: grid;
	gap: 6px;
}

.anaaz-annoncer__piege {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.anaaz-annoncer__bouton {
	justify-self: start;
	padding: 12px 24px;
	border: 0;
	border-radius: 30px;
	background: #111;
	color: #fff;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.anaaz-annoncer__erreurs {
	padding: 12px 16px;
	border-radius: 10px;
	background: #fbe3e3;
	color: #8a1c1c;
}

.anaaz-annoncer__erreurs ul {
	margin: 0;
	padding-left: 18px;
}

.anaaz-annoncer__merci {
	padding: 18px 22px;
	border-radius: 12px;
	background: #e3f1e7;
}

.anaaz-annoncer__merci h2 {
	margin: 0 0 6px;
	font-size: 20px;
}

.anaaz-annoncer__titre {
	margin: 0;
	font-size: 20px;
}

.anaaz-annoncer__tableau {
	overflow-x: auto;
}

.anaaz-annoncer__tableau table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 13px;
}

.anaaz-annoncer__tableau th,
.anaaz-annoncer__tableau td {
	padding: 8px 10px;
	border-bottom: 1px solid #ece4da;
	text-align: left;
	vertical-align: top;
}

@media (max-width: 767px) {
	.anaaz-annoncer {
		padding-inline: 16px; /* le gabarit de page n'a pas de marge sur mobile */
	}
}

@media (max-width: 600px) {
	.anaaz-annoncer__dates {
		grid-template-columns: 1fr;
		row-gap: 14px;
	}

	.anaaz-annoncer__form {
		padding: 16px;
	}
}

/* Lot B : encart d'article et bannières sous la grille montrés en entier (le thème imposait une hauteur aux images du texte) */
.anaaz-pub-bloc--article_encart .anaaz-pub__image img,
.anaaz-pub-bloc--categorie_banniere .anaaz-pub__image img,
.anaaz-pub-bloc--boutique_banniere .anaaz-pub__image img,
.anaaz-pub-bloc--article_colonne .anaaz-pub__image img {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
	object-fit: contain !important;
	margin: 0 !important;
	border-radius: 0;
}
.anaaz-pub-bloc--article_encart .anaaz-pub,
.anaaz-pub-bloc--boutique_banniere .anaaz-pub { border-radius: 12px; }
.anaaz-pub-bloc--boutique_banniere { margin: 32px 0 8px; }

/* Lot B : colonne droite des articles, en haut (avant « Articles similaires ») */
.single-right > .anaaz-pub-bloc--article_colonne:first-child { margin: 0 0 24px; }

/* Page « Annoncer sur Anaaz » : semaines choisies une par une (18/10/2026) */
.anaaz-annoncer__semaines { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.anaaz-annoncer__semaines legend { margin-bottom: 6px; font-weight: 600; }
.anaaz-annoncer__semaines legend span { font-weight: 400; font-size: .9em; color: #666; }
.anaaz-annoncer__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.anaaz-annoncer__semaine { display: grid; gap: 2px; padding: 8px 4px; border: 1px solid #cfc6b8; border-radius: 6px; background: #fff; color: #222; font: inherit; font-size: 13px; text-align: center; cursor: pointer; }
.anaaz-annoncer__semaine small { font-size: 11px; color: #666; }
.anaaz-annoncer__semaine.est-choisie { border-color: #111; background: #111; color: #fff; }
.anaaz-annoncer__semaine.est-choisie small { color: #eee; }
.anaaz-annoncer__semaine.est-prise { background: repeating-linear-gradient(45deg, #f3eeee, #f3eeee 4px, #fbf8f8 4px, #fbf8f8 8px); color: #8a1c1c; cursor: not-allowed; }
.anaaz-annoncer__semaine:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.anaaz-annoncer__resume { margin: 8px 0 0; font-size: 14px; }

/* Page « Annoncer » (18/10/2026) : dates libres + calendrier des jours (aide visuelle) */
.anaaz-annoncer__dates { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.anaaz-annoncer__dates p { margin: 0 0 8px; }
.anaaz-annoncer__aide { margin: 0 0 6px; font-size: 13px; color: #666; }
.anaaz-annoncer__cal { max-width: 420px; }
.anaaz-annoncer__jsem { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-bottom: 3px; font-size: 11px; font-weight: 600; text-align: center; color: #666; }
.anaaz-annoncer__cal .anaaz-annoncer__grille { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.anaaz-annoncer__jour { min-width: 0; min-height: 38px; padding: 2px 0; border: 1px solid #cfc6b8; border-radius: 4px; background: #fff; color: #222; font: inherit; font-size: 13px; line-height: 1.1; text-align: center; cursor: pointer; }
.anaaz-annoncer__jour small { display: block; font-size: 9px; text-transform: uppercase; color: #666; }
.anaaz-annoncer__jour.est-passe { background: #f4f4f4; color: #aaa; border-color: #e6e6e6; cursor: default; }
.anaaz-annoncer__jour.est-prise { background: repeating-linear-gradient(45deg, #f3eeee, #f3eeee 3px, #fbf8f8 3px, #fbf8f8 6px); color: #8a1c1c; cursor: not-allowed; }
.anaaz-annoncer__jour.est-choisie { background: #e8e4dd; border-color: #111; }
.anaaz-annoncer__jour.est-bord { background: #111; color: #fff; font-weight: 700; }
.anaaz-annoncer__jour.est-bord small { color: #eee; }
.anaaz-annoncer__jour:focus-visible { outline: 2px solid #111; outline-offset: 1px; }
.anaaz-annoncer__resume.est-erreur { color: #8a1c1c; font-weight: 600; }

/* v2 (20/10/2026) : bannière d'accueil limitée à 1920 px de large et centrée (au-delà, le visuel 1920 px n'est plus
   agrandi) ; la hauteur suit toujours le visuel, montré en entier. Format ordinateur demandé : 1920 × 320. */
.anaaz-pub-section--banniere .anaaz-pub--accueil_banniere {
	display: block;
	max-width: 1920px;
	margin-left: auto;
	margin-right: auto;
}
