/**
 * « Ma trottinette » — les trois écrans du parcours par marque puis modèle.
 *
 * La vignette produit n'est PAS redécrite ici : elle vient de
 * `lupeo-boutique.css`, dont cette feuille dépend. On ne décrit que les cartes
 * propres au parcours (marque, modèle) et la mise en page des écrans.
 *
 * ─ Deux partis pris de mise en page ─────────────────────────────────────────
 *
 * 1. **Le cadre photo est BLANC, comme la carte.** Il l'était en crème, et une
 *    photo de fournisseur sur fond blanc s'y détachait en rectangle : on voyait
 *    le fond de l'image, pas la trottinette. Sur blanc, l'objet flotte. C'est
 *    aussi ce que fait déjà `.lupeo-vignette` sur le reste du site.
 *
 * 2. **Les grilles ont des colonnes bornées et restent alignées à gauche.**
 *    Avec des colonnes en `1fr`, deux marques s'étiraient sur 1240 px et la
 *    page paraissait vide. Bornées entre deux largeurs, les cartes gardent une
 *    taille juste avec deux marques comme avec trente.
 *    ⚠️ Ne PAS centrer la grille : le titre et le chapô, eux, sont alignés à
 *    gauche, et une grille centrée sous un titre aligné à gauche se lit comme
 *    une erreur de mise en page. Le vide à droite est honnête — il dit qu'il
 *    n'y a que deux marques — et il se comblera tout seul.
 *
 * ⚠️ Blocksy peint tout `a` et tout `button` avec ses couleurs de thème, et il
 * est chargé APRÈS l'extension. La parade est le nom d'élément dans le
 * sélecteur (`.lupeo-mt a.lupeo-mt__btn`), qui bat une classe seule sans
 * recourir à `!important`.
 */

.lupeo-mt {
	--mt-bord: #EFE9E0;
	--mt-gap: 22px;
	color: var(--lupeo-ink, #1A1A1A);
	font-family: var(--theme-font-family, Inter, sans-serif);
	padding-bottom: 8px;
}

.lupeo-mt :where(a) {
	color: inherit;
	text-decoration: none;
}

.lupeo-mt h2 {
	font-family: var(--theme-font-family-heading, Manrope, Inter, sans-serif);
	font-weight: 800;
	letter-spacing: -.015em;
	color: var(--lupeo-ink, #1A1A1A);
}

/* =========================================================
   1. En-tête d'écran : chemin de retour et phrase d'accueil
   ========================================================= */
.lupeo-mt__fil {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-bottom: 22px;
}

.lupeo-mt__fil a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px 7px 11px;
	font-size: 14px;
	font-weight: 600;
	color: var(--lupeo-teal, #007C75);
	background: var(--lupeo-teal-soft, #E6F2F1);
	border-radius: 999px;
	transition: background .18s ease, transform .18s ease;
}

.lupeo-mt__fil a:hover {
	background: #D6EAE8;
	transform: translateX(-2px);
}

/* La flèche du fil pointe vers l'arrière : c'est un retour. */
.lupeo-mt__fil .lupeo-i {
	width: 17px;
	height: 17px;
	transform: rotate(180deg);
}

.lupeo-mt__chapo {
	max-width: 64ch;
	margin: 0 0 40px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--lupeo-ink-2, #4A453E);
}

/* =========================================================
   2. Les grilles — bornées et centrées
   ========================================================= */
.lupeo-mt__grille {
	display: grid;
	gap: var(--mt-gap);
	justify-content: start;
	margin-bottom: 48px;
}

.lupeo-mt__grille--marques {
	grid-template-columns: repeat(auto-fill, minmax(200px, 240px));
}

.lupeo-mt__grille--modeles {
	grid-template-columns: repeat(auto-fill, minmax(230px, 280px));
}

.lupeo-mt__grille--produits {
	grid-template-columns: repeat(auto-fill, minmax(250px, 300px));
	justify-content: start;
}

/* =========================================================
   3. La carte, commune aux marques et aux modèles
   ========================================================= */
.lupeo-mt__marque,
.lupeo-mt__modele {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--mt-bord);
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(26, 26, 26, .04);
	transition:
		transform .26s cubic-bezier(.2, .7, .3, 1),
		box-shadow .26s ease,
		border-color .26s ease;
}

.lupeo-mt__marque:hover,
.lupeo-mt__modele:hover {
	transform: translateY(-5px);
	border-color: #D8CFC0;
	box-shadow: var(--lupeo-ombre-2, 0 2px 6px rgba(26, 26, 26, .06), 0 22px 44px -22px rgba(0, 90, 85, .34));
}

.lupeo-mt__marque:focus-visible,
.lupeo-mt__modele:focus-visible {
	outline: 2px solid var(--lupeo-teal, #007C75);
	outline-offset: 3px;
}

/* =========================================================
   4. Écran 1 — les marques
   ========================================================= */
.lupeo-mt__marque {
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 30px 20px 24px;
	text-align: center;
}

/* Rail de logo à hauteur imposée : un logo carré et un mot-symbole très
   horizontal tombent alors sur la même ligne de base, d'une carte à l'autre. */
.lupeo-mt__marque-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 62px;
	width: 100%;
	margin-bottom: 8px;
}

.lupeo-mt__marque-logo img {
	max-height: 62px;
	max-width: 150px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Marque sans logo : son nom EST le visuel. Il occupe le rail, en plus grand,
   et n'est pas répété sous la carte (le PHP retire alors le libellé). */
.lupeo-mt__marque-logo .lupeo-marque__txt {
	font-family: var(--theme-font-family-heading, Manrope, Inter, sans-serif);
	font-weight: 800;
	font-size: 20px;
	line-height: 1.15;
	text-align: center;
	text-wrap: balance;
	color: var(--lupeo-ink, #1A1A1A);
	overflow-wrap: anywhere;
}

.lupeo-mt__marque--sans-logo .lupeo-mt__marque-logo {
	height: auto;
	min-height: 62px;
}

.lupeo-mt__marque--sans-logo .lupeo-marque__txt {
	font-size: clamp(18px, 2.6vw, 23px);
	color: var(--lupeo-teal-deep, #005A55);
}

.lupeo-mt__marque-nom {
	font-family: var(--theme-font-family-heading, Manrope, Inter, sans-serif);
	font-weight: 800;
	font-size: 16.5px;
	letter-spacing: -.01em;
}

.lupeo-mt__marque-nb,
.lupeo-mt__modele-nb {
	font-size: 13.5px;
	color: var(--lupeo-mute, #7a736a);
}

/* =========================================================
   5. Écran 2 — les modèles
   ========================================================= */
.lupeo-mt__modele {
	gap: 5px;
	padding: 16px 18px 22px;
}

/* Cadre photo blanc, ratio fixe, image entière et jamais rognée. Les photos
   des fournisseurs n'ont pas toutes le même format ni le même fond : sur
   blanc, elles se ressemblent enfin. */
.lupeo-mt__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	margin-bottom: 16px;
	padding: 14px;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
}

.lupeo-mt__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Pas de photo : le nom du modèle prend sa place, et il est lisible.
   Une icône grise serait la même pour tous les modèles — elle n'aiderait
   personne à reconnaître sa trottinette. */
.lupeo-mt__photo-txt {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 12px;
	font-family: var(--theme-font-family-heading, Manrope, Inter, sans-serif);
	font-size: clamp(16px, 3.4vw, 21px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-align: center;
	text-wrap: balance;
	color: var(--lupeo-teal-deep, #005A55);
	background: var(--lupeo-teal-soft, #E6F2F1);
	border-radius: 12px;
	overflow-wrap: anywhere;
}

.lupeo-mt__modele-nom {
	font-family: var(--theme-font-family-heading, Manrope, Inter, sans-serif);
	font-weight: 800;
	font-size: 19px;
	letter-spacing: -.012em;
}

/* =========================================================
   6. Écran 3 — la page du modèle
   ========================================================= */
.lupeo-mt__tete {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 32px;
	align-items: center;
	margin-bottom: 52px;
	padding: 28px 32px;
	background: var(--lupeo-cream, #FAF7F2);
	border: 1px solid var(--mt-bord);
	border-radius: 22px;
}

.lupeo-mt__tete-photo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 16px;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
}

.lupeo-mt__tete-txt .lupeo-mt__chapo {
	margin-bottom: 14px;
}

.lupeo-mt__tete-marque {
	display: block;
	height: 38px;
	margin-bottom: 16px;
}

.lupeo-mt__tete-marque img {
	max-height: 38px;
	max-width: 140px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.lupeo-mt__tete-marque .lupeo-marque__txt {
	font-family: var(--theme-font-family-heading, Manrope, Inter, sans-serif);
	font-weight: 800;
	font-size: 17px;
	color: var(--lupeo-ink-2, #4A453E);
}

.lupeo-mt__dispo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 9px 16px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--lupeo-teal-deep, #005A55);
	background: var(--lupeo-teal-soft, #E6F2F1);
	border-radius: 999px;
}

.lupeo-mt__dispo .lupeo-i {
	width: 18px;
	height: 18px;
	flex: none;
}

.lupeo-mt__dispo a:hover {
	text-decoration: underline;
}

.lupeo-mt__bloc {
	margin-bottom: 8px;
}

.lupeo-mt__titre {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	font-size: 23px;
}

.lupeo-mt__titre span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 26px;
	padding: 0 9px;
	font-family: var(--theme-font-family, Inter, sans-serif);
	font-size: 13px;
	font-weight: 600;
	color: var(--lupeo-teal-deep, #005A55);
	background: var(--lupeo-teal-soft, #E6F2F1);
	border-radius: 999px;
}

/* =========================================================
   7. Les deux encadrés de fin
   ========================================================= */
.lupeo-mt__vide {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 40px;
	padding: 20px 24px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--lupeo-ink-2, #4A453E);
	background: var(--lupeo-cream, #FAF7F2);
	border: 1px solid var(--mt-bord);
	border-radius: 16px;
}

.lupeo-mt__vide .lupeo-i {
	flex: none;
	width: 21px;
	height: 21px;
	margin-top: 1px;
	color: var(--lupeo-teal, #007C75);
}

.lupeo-mt__secours {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 12px;
	padding: 32px 36px;
	background: var(--lupeo-teal, #007C75);
	border-radius: 22px;
	color: #fff;
}

/* Sans bouton — tant qu'aucune page de contact n'existe — le texte prend
   toute la largeur, au lieu de laisser la moitié de l'encadré vide. */
.lupeo-mt__secours > div {
	flex: 1 1 420px;
}

.lupeo-mt__secours b {
	display: block;
	font-family: var(--theme-font-family-heading, Manrope, Inter, sans-serif);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -.015em;
}

.lupeo-mt__secours p {
	max-width: 70ch;
	margin: 10px 0 0;
	font-size: 15.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .9);
}

/* Nom d'élément dans le sélecteur : Blocksy peint tout `a` de couleur de
   thème, et il passe après nous. */
.lupeo-mt a.lupeo-mt__btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	flex: none;
	padding: 14px 24px;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--lupeo-teal-deep, #005A55);
	background: #fff;
	border-radius: 999px;
	transition: transform .18s ease, box-shadow .18s ease;
}

.lupeo-mt a.lupeo-mt__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
}

/* =========================================================
   8. Tablette et téléphone
   ========================================================= */
@media (max-width: 900px) {
	.lupeo-mt__tete {
		grid-template-columns: 170px 1fr;
		gap: 24px;
		padding: 22px;
	}
}

@media (max-width: 640px) {
	.lupeo-mt {
		--mt-gap: 14px;
	}

	.lupeo-mt__chapo {
		margin-bottom: 28px;
		font-size: 16px;
	}

	.lupeo-mt__tete {
		grid-template-columns: 1fr;
		gap: 20px;
		margin-bottom: 36px;
		padding: 18px;
	}

	.lupeo-mt__tete-photo {
		max-width: 210px;
	}

	.lupeo-mt__grille {
		margin-bottom: 34px;
	}

	.lupeo-mt__grille--marques,
	.lupeo-mt__grille--modeles,
	.lupeo-mt__grille--produits {
		grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
		justify-content: stretch;
	}

	.lupeo-mt__marque {
		padding: 22px 14px 18px;
	}

	.lupeo-mt__marque-logo {
		height: 50px;
		margin-bottom: 6px;
	}

	.lupeo-mt__marque-logo img {
		max-height: 50px;
		max-width: 110px;
	}

	.lupeo-mt__modele {
		padding: 12px 13px 16px;
	}

	.lupeo-mt__photo {
		margin-bottom: 12px;
		padding: 8px;
	}

	.lupeo-mt__modele-nom {
		font-size: 17px;
	}

	.lupeo-mt__titre {
		font-size: 20px;
		margin-bottom: 18px;
	}

	.lupeo-mt__secours {
		padding: 24px 20px;
		gap: 18px;
	}

	.lupeo-mt__secours b {
		font-size: 19px;
	}
}
