/* Tablette (768-1180 px) = ordinateur adapté à la largeur. Lot 8.957 (règle d'Anaaz du 12/11/2026).
   Chargée par inc/entete-tablette.php (à part, data-no-optimize). Le téléphone (< 768 px) ne change pas.
   Remplace entete-tablette-v1.css (bouton ☰ du téléphone affiché de 768 à 1000 px). */

/* 1. En-tête : ligne du logo et de la recherche, puis ligne du menu, comme sur ordinateur. */
@media (min-width: 768px) and (max-width: 1024px) {
	/* le bouton ☰ du téléphone disparaît (responsive.css plaçait le menu hors de l'écran sous 1000 px) */
	html body #header .mobile-menu-trigger { display: none !important; }
	html body #header .user-area { margin-right: 0 !important; }
	html body #header nav#nav {
		position: static !important; transform: none !important; transition: none !important;
		width: auto !important; height: auto !important; top: auto !important; left: auto !important;
		background: none !important; z-index: auto !important; margin: 0 !important;
	}
	html body #header nav#nav > ul { display: flex !important; flex-direction: row !important; padding-right: 0 !important; padding-left: 0 !important; }
	html body #header nav#nav > ul a { display: inline !important; padding: 7px 8px !important; }
	html body #header .nav-banner-closer { display: none !important; }
}
/* une seule ligne de menu, jamais de retour à la ligne ni de défilement (les rubriques qui ne tiennent pas sont cachées par le script) */
@media (min-width: 768px) and (max-width: 1180px) {
	html body #header .nav-area-bottom { flex-wrap: nowrap !important; }
	html body #header nav#nav { flex-wrap: nowrap !important; align-items: center; min-width: 0; flex: 1 1 auto; overflow: hidden; }
	/* style.css cachait « Catégories » jusqu'à 768 px compris (iPad vertical) */
	html body #header nav#nav > .desktop-menu-opener { display: flex !important; flex: 0 0 auto; }
	/* style.css (768-1024) et une autre règle en arabe (vue à 1180 px) cachaient les rubriques : le script garde celles qui tiennent */
	html body #header nav#nav > ul { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; min-width: 0; overflow: visible; }
	/* « CSS additionnel » de WordPress (menu latéral du téléphone) : 50 px au-dessus de « Mode femme » jusqu'à 768 px */
	html body #header nav#nav > ul > li { flex: 0 0 auto; white-space: nowrap; margin-top: 0 !important; }
}

/* 3. Accueil : blocs de produits (« Ce qu'on aime en ce moment », « Collection Femme », « Collection Homme », « Objets islamiques »,
   « Déco & Maison » : tous .anaaz-favorites-grid) sur UNE ligne. Ordinateur (≥ 1025 px) : 6 ; tablette (768-1024 px) : 4, les suivants cachés. */
@media (min-width: 768px) and (max-width: 1024px) {
	html body.home .anaaz-favorites-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
	html body.home .anaaz-favorites-grid > :nth-child(n+5) { display: none !important; }
}

/* 8. Panier, « Cela pourrait vous intéresser… » : grille de 4 comme sur ordinateur (avant : 2 colonnes, cartes de 372 à 500 px de large). */
@media (min-width: 768px) and (max-width: 1024px) {
	html body .cart-cross-sells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* 9. Pied de page (toutes les pages) : comme sur ordinateur — « Nous suivre » à gauche à sa largeur, les 4 colonnes de liens se partagent le reste
   (avant, 768-1180 px : « Nous suivre » centré sur la moitié de la largeur, colonnes de 74 à 129 px, titres et liens qui se touchaient). */
@media (min-width: 768px) and (max-width: 1180px) {
	html body #footer .footer-holder { gap: 32px; }
	html body #footer .footer-holder > .socials { flex: 0 0 auto !important; width: auto !important; text-align: start !important; }
	html body #footer .footer-holder > .socials ul { justify-content: flex-start !important; }
	html body #footer .footer-holder > .footer-cols { flex: 1 1 auto !important; width: auto !important; max-width: none !important; gap: 24px !important; }
	html body #footer .footer-holder > .footer-cols > .col { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; margin: 0 !important; }
}

/* 7. Blog (liste des articles) : 3 colonnes égales et même marge à gauche et à droite, comme sur ordinateur
   (avant : 3 colonnes calées à gauche, 56 px de vide à droite ; à 768 px, une seule colonne pleine largeur). */
@media (min-width: 768px) and (max-width: 1180px) {
	html body .about-area > .container { padding-left: 24px !important; padding-right: 24px !important; }
	html body #posts-wrapper { gap: 16px !important; }
	html body #posts-wrapper > .post-col { width: calc((100% - 32px) / 3) !important; flex: 0 0 auto !important; margin-left: 0 !important; margin-right: 0 !important; }
}

/* 5. Pages catégorie : filtres, « Trier par » et « X produits » sur la MÊME ligne (le script règle écarts, puis taille, puis cache « X produits »). */
@media (min-width: 768px) and (max-width: 1180px) {
	html body .anaaz-filtre__barre { flex-wrap: nowrap !important; }
	html body .anaaz-filtre__barre > .anaaz-filtre__form { flex-wrap: nowrap !important; flex: 0 1 auto; min-width: 0; }
	html body .anaaz-filtre__barre > .anaaz-filtre__form > * { flex: 0 0 auto; }
	html body .anaaz-filtre__barre .anaaz-filtre__sections { flex-wrap: nowrap !important; }
	html body .anaaz-filtre__barre > .anaaz-tri { flex: 0 0 auto; }
	html body .anaaz-filtre__barre > .anaaz-filtre__resultat { flex: 0 0 auto; white-space: nowrap; }
}
