/* ==========================================================================
   totk.wism.fr — feuille unique (remplace PureCSS, Google Fonts,
   styles-critical, styles-deferred, home.css).
   Thème "ciel d'Hyrule" : ciel sarcelle + nuages + motif Zonai en filigrane,
   en-tête sarcelle à liseré doré, cartes claires, vert Zonai en accent.
   ========================================================================== */

:root {
	/* Page : ciel sarcelle, texte clair, panneaux en verre */
	--text: #f4efe1;
	--muted: #d9dccb;
	--faint: #a9c3bb;
	--surface: rgba(8, 42, 46, .6);
	--surface-2: rgba(251, 244, 226, .14);
	--border: rgba(251, 244, 226, .18);
	--border-strong: rgba(251, 244, 226, .32);
	--heading: #f7f1e1;
	--link: #a8efcf;
	/* En-tête / barre du bas / pied de page */
	--nav-bg: #241a17;
	--nav-pattern: url('../images/default.jpg') repeat center / 320px 320px;
	--nav-text: #f3e7c9;
	--nav-muted: rgba(243, 231, 201, .75);
	--gold: #c9a24b;
	/* Cartes de build */
	--card: #f7f0de;
	--card-line: #dfd1ae;
	--card-text: #1b2c2a;
	--card-muted: #55625e;
	--card-chip: #ebe0c4;
	/* Accent Zonai */
	--accent: #22d69a;
	--accent-2: #14b886;
	--accent-ink: #05251a;
	--accent-soft: rgba(34, 214, 154, .16);
	--zonai: #2ee6a6;
	--up-ink: #0b8a5d;
	--hot: #d9650f;
	--down: #d6493a;
	--radius: 8px;
	--radius-sm: 5px;
	--wrap: 1240px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-title: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
	margin: 0;
	min-height: 100vh;
	background: #2c7571;
	color: var(--text);
	font: 16px/1.55 var(--font);
	overflow-x: hidden;
}
/* Ciel fixe derrière la page (calque à part : pas de repeint au scroll) */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
	background:
		radial-gradient(ellipse 38% 9% at 12% 16%, rgba(251, 244, 226, .28), transparent 70%),
		radial-gradient(ellipse 30% 7% at 22% 20%, rgba(251, 244, 226, .22), transparent 70%),
		radial-gradient(ellipse 42% 10% at 84% 30%, rgba(251, 244, 226, .26), transparent 70%),
		radial-gradient(ellipse 34% 8% at 70% 34%, rgba(251, 244, 226, .18), transparent 70%),
		radial-gradient(ellipse 60% 14% at 30% 78%, rgba(251, 244, 226, .22), transparent 70%),
		radial-gradient(ellipse 50% 12% at 90% 88%, rgba(251, 244, 226, .22), transparent 70%),
		linear-gradient(180deg, #1f6468 0%, #2c7571 38%, #3f8275 70%, #558c7c 100%);
}
body::after {
	background: url('../images/wcgegr2p5np91.webp') repeat;
	background-size: 460px 460px;
	opacity: .55;
	mix-blend-mode: normal;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: #d2fff0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--heading); font-family: var(--font-title); letter-spacing: .01em; }
h1 { font-size: clamp(1.55rem, 3.6vw, 2.15rem); }
h1, h2 { text-shadow: 0 1px 3px rgba(0, 20, 25, .35); }
h2 { font-size: clamp(1.2rem, 2.7vw, 1.5rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- En-tête ---------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 900;
	background: var(--nav-pattern) var(--nav-bg);
	border-bottom: 2px solid var(--gold);
	box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 70px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 52px; width: auto; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)) brightness(1.15); }
.search { flex: 1; display: flex; min-width: 0; max-width: 620px; margin: 0 auto; }
.search input {
	flex: 1; min-width: 0; width: 100%; height: 40px; padding: 0 14px;
	background: #f6efdc; color: var(--card-text); border: 1px solid transparent; border-right: 0;
	border-radius: 6px 0 0 6px; outline: none;
}
.search input:focus { border-color: var(--accent); }
.search input::placeholder { color: #7d8984; }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-ink); stroke-width: 2.4; stroke-linecap: round; }
.search button {
	height: 40px; padding: 0 16px; border: 0; cursor: pointer;
	display: flex; align-items: center; border-radius: 0 6px 6px 0; background: var(--accent); color: var(--accent-ink); font-weight: 700;
}
.share-top { flex-shrink: 0; }
/* Barre de navigation PC : une barre continue, les rubriques se partagent la
   largeur, séparées par un filet ; la rubrique active est éclairée en or. */
.topnav { background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .55)); border-top: 1px solid rgba(201, 162, 75, .35); }
.topnav .wrap { display: flex; align-items: stretch; padding: 0; }
.topnav a {
	flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 50px; padding: 0 10px; position: relative;
	border-left: 1px solid rgba(201, 162, 75, .22);
	color: var(--nav-muted); text-decoration: none; white-space: nowrap;
	font-weight: 700; font-size: .95rem; letter-spacing: .03em;
	transition: background .15s, color .15s;
}
.topnav a:last-child { border-right: 1px solid rgba(201, 162, 75, .22); }
.topnav a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #e9cd7e; transform: scaleX(0); transition: transform .2s; }
.topnav a:hover { color: #f6dc97; background: rgba(233, 205, 126, .08); }
.topnav a:hover::after { transform: scaleX(.6); }
.topnav a.on { color: #f6dc97; background: linear-gradient(180deg, rgba(233, 205, 126, .05), rgba(233, 205, 126, .2)); }
.topnav a.on::after { transform: none; }

/* Barre du bas (mobile) */
.bottomnav { display: none; }
@media (max-width: 900px) {
	.topnav, .site-header .share-top { display: none; }
	.site-header .wrap { gap: 10px; min-height: 56px; }
	.logo img { height: 40px; }
	.search { max-width: none; }
	body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
	.bottomnav {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
		background: var(--nav-pattern) var(--nav-bg); border-top: 2px solid var(--gold);
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
	}
	.bottomnav a {
		flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
		padding: 6px 0; border-radius: 12px; text-decoration: none;
		color: var(--nav-muted); font-size: 11px; font-weight: 700;
	}
	.bottomnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
	.bottomnav a.on { color: #f6dc97; background: rgba(0, 0, 0, .35); box-shadow: inset 0 -2px 0 #e9cd7e; }
}
@media (max-width: 420px) { .search button { padding: 0 12px; } }

/* --- Bande de tags ---------------------------------------------------- */
.tagbar { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.tagbar::-webkit-scrollbar { display: none; }
/* Centrés, mais toujours défilables quand ils dépassent (marges auto, pas justify-content) */
.tagbar > :first-child { margin-left: auto; }
.tagbar > :last-child { margin-right: auto; }
.chip, .tag {
	display: inline-flex; align-items: center; flex-shrink: 0;
	padding: 3px 10px; border-radius: 4px; text-decoration: none; white-space: nowrap;
	background: var(--surface); border: 1px solid var(--border); color: var(--muted);
	font-size: .82rem; font-weight: 600; line-height: 1.5;
}
a.chip:hover, a.tag:hover { color: var(--link); border-color: var(--accent-2); }

/* --- Contenu ---------------------------------------------------------- */
main { padding: 8px 0 40px; }
.intro { color: var(--muted); max-width: 820px; margin: 10px 0 18px; }
.intro strong { color: var(--text); }
/* Accueil : titre et intro centrés */
.hero { text-align: center; }
.hero .intro { margin-left: auto; margin-right: auto; }
.section { margin: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; flex: 1; display: flex; align-items: center; gap: 12px; }
.section-head h2::before {
	content: ""; flex-shrink: 0; width: 10px; height: 10px; transform: rotate(45deg);
	background: var(--zonai);
}
.section-head h2::after { content: ""; flex: 1; min-width: 20px; height: 1px; background: linear-gradient(90deg, rgba(233, 205, 126, .75), transparent); }
.section-head a { font-weight: 700; text-decoration: none; white-space: nowrap; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #f6dc97; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }

/* Grille de cartes : 4 par ligne sur PC, 3 petit écran, 2 tablette, 1 mobile */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; gap: 16px; } }

/* --- Carte de build --------------------------------------------------- */
.card {
	display: flex; flex-direction: column; min-width: 0;
	/* Cadre vert Zonai */
	background: var(--card); border: 2px solid #3fc596; border-radius: var(--radius);
	overflow: hidden; text-decoration: none; color: var(--card-text);
	box-shadow: 0 4px 12px rgba(0, 20, 20, .28);
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--zonai); transform: translateY(-2px); color: var(--card-text); box-shadow: 0 8px 18px rgba(0, 20, 20, .35); }
.card-main { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.card-main:hover { color: inherit; }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #08090b; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Coins de visée (viseur de l'appareil photo du jeu) */
.card-media::after {
	content: ""; position: absolute; inset: 7px; pointer-events: none; opacity: .9;
	--c: var(--zonai);
	background:
		linear-gradient(var(--c), var(--c)) left top / 16px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) left top / 2px 16px no-repeat,
		linear-gradient(var(--c), var(--c)) right top / 16px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) right top / 2px 16px no-repeat,
		linear-gradient(var(--c), var(--c)) left bottom / 16px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) left bottom / 2px 16px no-repeat,
		linear-gradient(var(--c), var(--c)) right bottom / 16px 2px no-repeat,
		linear-gradient(var(--c), var(--c)) right bottom / 2px 16px no-repeat;
}
.creator-card .card-media::after { display: none; }

.card-meta {
	position: absolute; top: 14px; right: 14px; z-index: 1; padding: 2px 8px; border-radius: 3px;
	background: rgba(0, 0, 0, .68); color: #f7f1e1; font-size: .75rem; font-weight: 600;
}
.card-cost {
	position: absolute; left: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 5px;
	padding: 3px 9px 3px 6px; border-radius: 3px;
	background: rgba(0, 0, 0, .75);
	color: #f7f1e1; font-size: .95rem; font-weight: 800;
}
.card-cost img { width: 20px; height: 18px; }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 11px 13px 13px; }
.card-title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-desc { color: var(--card-muted); font-size: .93rem; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 13px 12px; }
/* Une seule ligne : un tag qui ne rentre pas passe à la ligne, donc est masqué entier */
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; height: 26px; overflow: hidden; min-width: 0; margin-top: auto; padding-top: 4px; }
.card-tags .chip { font-size: .78rem; padding: 1px 8px; background: var(--card-chip); border-color: var(--card-line); color: var(--card-muted); }
.score { flex-shrink: 0; color: var(--up-ink); font-weight: 800; font-size: 1rem; white-space: nowrap; }
.score.hot { color: var(--hot); }


/* Carte "créateur" (accueil) */
.creator-card .card-media { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.creator-card .card-media img { min-height: 0; }
.creator-card .card-media.single { display: block; }
.creator-card .card-foot { padding: 0; margin-top: auto; }

/* --- Boutons ---------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 42px; padding: 0 18px; border-radius: 6px; cursor: pointer;
	background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
	font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--text); background: rgba(251, 244, 226, .22); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #3be6ab; border-color: #3be6ab; color: var(--accent-ink); }
.btn-block { display: flex; width: 100%; }
.btn[aria-pressed="true"], .btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.seg { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px 0 0; }
.pager a, .pager span {
	min-width: 38px; padding: 6px 10px; border-radius: 9px; text-align: center; text-decoration: none;
	background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-weight: 600;
}
.pager span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* --- Bannière cuisine (accueil) --------------------------------------- */
.promo {
	display: flex; align-items: center; gap: 16px; padding: 14px 18px;
	background: linear-gradient(135deg, #f7f0de 0%, #eee2c4 100%);
	border: 1px solid var(--card-line); border-radius: var(--radius);
	box-shadow: 0 4px 14px rgba(20, 60, 70, .12);
	color: var(--card-text); text-decoration: none;
}
.promo:hover { border-color: var(--accent-2); color: var(--card-text); }
.promo-art { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.promo-art img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.promo-art .big { width: 52px; height: 52px; }
.promo-art b { color: var(--card-muted); }
.promo-art span.big { font-size: 2rem; line-height: 52px; text-align: center; }
.promo-txt { flex: 1; min-width: 0; }
.promo-txt strong { display: block; font-size: 1.1rem; font-family: var(--font-title); color: #10403c; }
.promo-txt span { color: var(--card-muted); font-size: .9rem; }
/* Mobile : bannière sur une ligne, pour voir le 1er build dès l'arrivée */
@media (max-width: 640px) {
	.promo { gap: 10px; padding: 8px 12px; }
	.promo .btn, .promo-txt span, .promo-art b { display: none; }
	.promo-art img { width: 44px; height: 44px; }
	.promo-art .big { width: 40px; height: 40px; }
	.promo-txt strong { font-size: 1rem; }
	.promo::after { content: "→"; flex-shrink: 0; font-weight: 700; color: var(--up-ink); font-size: 1.2rem; }
	.intro { font-size: .92rem; line-height: 1.5; margin: 6px 0 12px; }
	h1 { margin-bottom: .35em; }
	.section { margin: 20px 0; }
}

/* --- Derniers commentaires ------------------------------------------ */
.comments-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.comment-item {
	display: block; padding: 12px 14px; border-radius: var(--radius-sm); text-decoration: none;
	background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
a.comment-item:hover { border-color: var(--accent-2); color: var(--text); }
.comment-item b { color: var(--heading); font-size: .9rem; }
.comment-item span { display: block; color: var(--muted); margin-top: 4px; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }

/* --- Fiche d'un build (show) : 1/2 image, 1/2 infos, puis pleine largeur -- */
.build { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
@media (min-width: 900px) { .build { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; } }
.build-qr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; box-shadow: 0 4px 14px rgba(20, 60, 70, .12); display: flex; align-items: center; justify-content: center; }
.build-qr img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.build-info { display: flex; flex-direction: column; gap: 18px; padding: 28px 30px; background: var(--card); color: var(--card-text); border: 2px solid #3fc596; }
.build-info h1 { color: #10403c; text-shadow: none; }
.build-info .build-by { color: var(--card-muted); }
.build-info a { color: #0b6a47; }
.build-info .chip { background: var(--card-chip); border-color: var(--card-line); color: var(--card-muted); }
.build-info a.chip:hover { color: #0b6a47; border-color: #3fc596; }
.build-info .cost-pill { background: var(--card-chip); border-color: var(--card-line); color: var(--card-text); }
.build-info .build-small a, .build-info .linklike { color: var(--card-muted); }
.build-info h1 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.5rem); overflow-wrap: anywhere; }
.build-by { color: var(--muted); margin: 0; font-size: 1rem; }
.build-facts-row { display: flex; flex-wrap: wrap; gap: 8px; }
.build-desc { margin: 0; font-size: 1.12rem; line-height: 1.7; overflow-wrap: anywhere; white-space: normal; }
.build-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.build-tags .chip { font-size: .92rem; padding: 5px 12px; }
.build-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.build-actions .btn, .build-actions .vote { min-height: 48px; }
.build-actions .vote button { height: 48px; }
.build-actions .btn-primary { padding: 0 22px; font-size: 1rem; }
.dl-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 10px 0 0; font-size: .88rem; color: var(--card-muted); animation: ribbon-in .4s ease; }
.dl-tip[hidden] { display: none; }
.dl-tip > span { color: #0b8a5d; font-weight: 700; }
.dl-tip a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.dl-tip a:hover { color: #0b8a5d; }
.dl-tip img { width: 26px; height: 26px; object-fit: contain; background: #fff; border-radius: 50%; }
.build-small { display: flex; gap: 18px; margin: auto 0 0; font-size: .9rem; }
.build-small a, .linklike { color: var(--muted); text-decoration: none; }
.build-small a:hover, .linklike:hover { color: var(--link); }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.build-more { margin: 22px 0; }
.build-more-intro { margin-top: 0; }
.build-more-cols { display: grid; gap: 10px 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .build-more-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.build-more h2 { margin-top: 8px; }
.build-more .guide { background: none; border: 0; padding: 0; margin: 0; }
.build-comments { margin: 22px 0; }
@media (max-width: 560px) { .build-info { padding: 20px 18px; } .build-desc { font-size: 1.02rem; } }
.facts { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: .95rem; }
.facts th, .facts td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.facts th { color: var(--muted); font-weight: 600; width: 38%; }
.cost-pill {
	display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 4px;
	background: var(--surface); border: 1px solid var(--border-strong); font-weight: 800; color: var(--text);
}
.cost-pill img { width: 18px; height: 18px; }
.cost-pill.big { font-size: 1.05rem; padding: 6px 14px; gap: 7px; }
.cost-pill.big img { width: 24px; height: 22px; }
/* Vote ▲ score ▼ (js/vote.js) : ▲ vert, ▼ rouge, pleins quand le vote est actif */
.vote { display: inline-flex; align-items: center; min-height: 42px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.vote button { width: 44px; height: 42px; border: 0; background: none; font-size: 1.05rem; cursor: pointer; transition: background .15s, color .15s; }
.vote .vote-up { color: #3fe0a0; }
.vote .vote-down { color: #ff8a7a; }
.vote button:hover { background: rgba(251, 244, 226, .12); }
.vote .vote-up.on { color: #06140e; background: #25d69a; }
.vote .vote-down.on { color: #fff5ee; background: #d6493a; }
.vote-score { min-width: 46px; padding: 0 4px; text-align: center; font-weight: 800; font-size: 1.05rem; }
.vote.hot .vote-score { color: #ffb070; }
.vote.busy { opacity: .6; pointer-events: none; }
/* Sur fond crème (cartes, encadré de la fiche) */
.card .vote, .build-info .vote { background: #efe6cf; border-color: var(--card-line); color: var(--card-text); }
.card .vote .vote-up, .build-info .vote .vote-up { color: #0b8a5d; }
.card .vote .vote-down, .build-info .vote .vote-down { color: #c0392b; }
.card .vote button:hover, .build-info .vote button:hover { background: rgba(0, 0, 0, .06); }
.card .vote .vote-up.on, .build-info .vote .vote-up.on { color: #f7f1e1; background: #0f9e6c; }
.card .vote .vote-down.on, .build-info .vote .vote-down.on { color: #f7f1e1; background: #c0392b; }
.card .vote.hot .vote-score, .build-info .vote.hot .vote-score { color: var(--hot); }
/* Taille réduite dans les cartes */
.card .vote { min-height: 34px; }
.card .vote button { width: 36px; height: 34px; font-size: .92rem; }
.card .vote-score { min-width: 40px; font-size: .95rem; }
.guide ol { padding-left: 20px; }
.guide li { margin-bottom: 4px; }
.comment-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 10px; }
.comment-box b { color: var(--heading); font-size: .92rem; }
.comment-box p { margin: 6px 0 0; color: var(--text); overflow-wrap: anywhere; }
.ad-slot { margin: 22px 0; min-height: 100px; }

/* --- Pied de page ----------------------------------------------------- */
.site-footer {
	background: var(--nav-pattern) var(--nav-bg); border-top: 2px solid var(--gold);
	padding: 28px 0 22px; margin-top: 30px; color: var(--nav-muted); font-size: .9rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; }
.footer-links a { color: var(--nav-text); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(251, 244, 226, .1); border: 1px solid rgba(251, 244, 226, .18); }
.footer-social a:hover { border-color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; fill: var(--nav-text); }
.footer-small { font-size: .78rem; color: var(--nav-muted); }
.footer-small a { color: var(--nav-muted); }

/* --- Pages de contenu (hubs, guides, formulaires) ------------------ */
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.breadcrumb a { color: var(--link); text-decoration: none; }
.prose { margin: 18px 0; line-height: 1.7; }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font); font-size: 1.02rem; color: var(--text); margin: 1em 0 .3em; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-row .chip { font-size: .92rem; padding: 6px 12px; }

.hl { color: var(--link); font-weight: 700; }
.muted-card { color: var(--card-muted); font-size: .88rem; }
.creator-profile { margin-top: 14px; }
.creator-banner { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--radius); border: 2px solid #3fc596; margin-bottom: 14px; }
.legal { max-width: 860px; margin: 18px auto; }
.legal h1 { text-align: center; }
/* --- Partager un QR (add.html, add-schema.html, add-itembox.html) -- */
.add-choice { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); max-width: 820px; margin: 10px auto 0; }
.add-choice a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; color: var(--text); padding: 26px 20px; transition: border-color .15s, transform .15s; }
.add-choice a:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.add-choice img { width: 96px; height: 96px; border-radius: 10px; }
.add-choice strong { font-family: var(--font-title); font-size: 1.25rem; }
.add-switch { justify-content: center; margin: 4px 0 14px; }
.add-help { max-width: 980px; margin: 0 auto 14px; }
.add-help summary { cursor: pointer; font-weight: 700; color: #f6dc97; }
.add-help[open] summary { margin-bottom: 8px; }
.add-form { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.add-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 760px) { .add-grid { grid-template-columns: 1fr; } }
.add-fields, .add-side { display: flex; flex-direction: column; gap: 14px; }
.add-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: .95rem; }
.add-form label small { font-weight: 500; }
.add-form .count { align-self: flex-end; margin-top: -22px; font-weight: 500; font-size: .78rem; color: var(--muted); }
.add-form input[type=text], .add-form input[type=number], .add-form textarea, .add-form select {
	width: 100%; background: #f6efdc; color: var(--card-text); border: 1px solid var(--card-line); border-radius: 6px; padding: 10px 12px; font: inherit;
}
.add-form input:focus, .add-form textarea:focus, .add-form select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.add-user { display: flex; gap: 8px; margin-top: -8px; }
.add-user select { flex: 0 0 44%; min-width: 0; }
.tags-input { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 6px 8px; background: #f6efdc; border: 1px solid var(--card-line); border-radius: 6px; cursor: text; }
.tags-input input { flex: 1; min-width: 110px; border: 0 !important; background: transparent !important; padding: 4px !important; outline: none !important; }
.tags-input .tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 9px; border-radius: 4px; background: var(--nav-bg); color: #f6dc97; font-size: .85rem; font-weight: 700; }
.tags-input .tag button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 4px; }
.add-drop { position: relative; display: flex !important; align-items: center; justify-content: center; text-align: center; min-height: 260px; padding: 14px; border: 2px dashed var(--border-strong); border-radius: var(--radius); background: rgba(0, 0, 0, .15); cursor: pointer; transition: border-color .15s; }
.add-drop:hover { border-color: var(--accent); }
.add-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.add-drop img { max-width: 100%; max-height: 360px; border-radius: 6px; }
.add-drop #dropText { position: relative; pointer-events: none; }
.add-drop img:not([hidden]) + #dropText { position: absolute; bottom: 8px; left: 8px; right: 8px; background: rgba(0, 0, 0, .65); border-radius: 4px; padding: 4px; }
.add-note { font-size: .85rem; margin: -6px 0 0; }
.creator-top10 { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -8px; }
@media (max-width: 520px) { .creator-top10 { grid-template-columns: 1fr; } }
.add-consent { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; }
.add-consent input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.add-form > .btn-primary { align-self: flex-start; min-height: 48px; padding: 0 28px; font-size: 1rem; }

/* Simulateur de cuisine : sa feuille demandait Oxanium (plus chargée) */
body .cook-app, body .cook-app button, body .cook-app input { font-family: var(--font); }
/* Mobile : la marmite collée en haut passait SOUS l'en-tête fixe du site (58 px).
   On la colle juste dessous, et la sentinelle qui déclenche le collage est
   remontée d'autant pour qu'il se fasse au bon moment. */
@media (max-width: 860px) {
	body .cook-panel-pot.is-stuck { top: 58px; }
	body .cook-pot-sentinel { position: relative; top: -58px; }
}

/* --- Admin (banana.html) ------------------------------------------- */
.btn-danger { background: #8e2c22; border-color: #b8463a; color: #f7f1e1; }
.btn-danger:hover { background: #a8352a; border-color: #d8604f; color: #f7f1e1; }
form.inline { display: inline; margin: 0; }
.admin { margin-top: 14px; }
.admin h2 { margin: 24px 0 10px; }
.admin-login { max-width: 420px; margin: 30px auto; }
.admin-login form, .admin-form { display: flex; flex-direction: column; gap: 12px; }
.admin-login label, .admin-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; }
.admin-login input, .admin-form input, .admin-form textarea, .admin-search input {
	background: #f6efdc; color: var(--card-text); border: 1px solid var(--card-line); border-radius: 6px; padding: 9px 11px; font: inherit; width: 100%;
}
.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-tabs a { padding: 8px 14px; border-radius: 6px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: .92rem; }
.admin-tabs a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.flash, .admin-flash { background: rgba(34, 214, 154, .18); border: 1px solid var(--accent-2); border-radius: 6px; padding: 10px 14px; }
.flash.bad, .admin-flash.bad { background: rgba(214, 73, 58, .2); border-color: #d8604f; }
.admin-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.admin-tiles .panel { display: flex; flex-direction: column; gap: 2px; padding: 14px; }
.admin-tiles b { font-size: 1.8rem; line-height: 1.1; font-family: var(--font-title); }
.admin-tiles span { color: var(--muted); font-size: .88rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-actions .btn { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.admin-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.admin-search input { flex: 1 1 240px; width: auto; }
.admin-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; white-space: nowrap; }
.admin-table td:nth-child(3) { white-space: normal; min-width: 180px; }
.admin-table th { color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.admin-table img { display: block; width: 48px; height: 48px; border-radius: 4px; object-fit: cover; }
.admin-table tr.is-reported td { background: rgba(214, 73, 58, .14); }
.admin-report { display: grid; grid-template-columns: 160px 1fr; gap: 16px; margin-bottom: 12px; }
.admin-report img { width: 160px; height: 160px; border-radius: 6px; display: block; }
.admin-report h3 { color: var(--text); font-family: var(--font); margin: 0 0 4px; }
.admin-badge { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #8e2c22; color: #f7f1e1; font-size: .78rem; vertical-align: middle; }
.admin-reasons { margin: 8px 0 12px; padding-left: 18px; }
.admin-reasons li { margin-bottom: 4px; }
.admin-edit { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
.admin-edit img { width: 100%; border-radius: 6px; display: block; }
@media (max-width: 760px) {
	.admin-edit { grid-template-columns: 1fr; }
	.admin-report { grid-template-columns: 90px 1fr; }
	.admin-report img { width: 90px; height: 90px; }
}

/* --- Champs de formulaire (partout) ----------------------------------- */
.corps { width: 100%; }
input[type=text], input[type=number], input[type=password], input[type=email], input[type=url], input[type=search], textarea, select {
	background: #f6efdc; border: 1px solid var(--card-line); border-radius: var(--radius-sm); padding: 8px 10px; color: var(--card-text); max-width: 100%;
}
.add-form input[type=url] { width: 100%; padding: 10px 12px; font: inherit; }
.add-form.narrow { max-width: 420px; }
.flash { max-width: 980px; margin: 0 auto 14px; }

/* --- Sélecteur de langue (en-tête) ----------------------------------- */
.lang-menu { position: relative; flex-shrink: 0; }
.lang-menu summary {
	display: flex; align-items: center; gap: 5px; height: 40px; padding: 0 10px; cursor: pointer; list-style: none;
	border: 1px solid rgba(233, 205, 126, .45); border-radius: 6px; color: var(--nav-text); font-weight: 700; font-size: .85rem;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: #e9cd7e; color: #f6dc97; }
.lang-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang-list {
	position: absolute; right: 0; top: calc(100% + 6px); z-index: 950; min-width: 160px; padding: 6px;
	background: var(--nav-pattern) var(--nav-bg); border: 1px solid var(--gold); border-radius: var(--radius); box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}
.lang-list a { display: block; padding: 7px 10px; border-radius: 4px; color: var(--nav-text); text-decoration: none; }
.lang-list a:hover { background: rgba(0, 0, 0, .35); color: #f6dc97; }
.lang-list a.on { color: #f6dc97; box-shadow: inset 2px 0 0 #e9cd7e; }
@media (max-width: 900px) { .lang-menu summary span { display: none; } .lang-menu summary { padding: 0 9px; } }
/* Drapeaux (images/flags/) */
.flag { width: 20px; height: 14px; flex-shrink: 0; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); object-fit: cover; }
.lang-list a { display: flex; align-items: center; gap: 9px; }
.footer-cols a.footer-lang { display: flex; align-items: center; gap: 8px; }

/* Proposition de langue (visiteur sur la version anglaise) */
.lang-suggest {
	display: flex; align-items: center; justify-content: center; gap: 12px; padding: 7px 12px;
	background: #10403c; color: var(--text); font-size: .9rem; border-bottom: 1px solid rgba(233, 205, 126, .35);
}
.lang-suggest a { color: #f6dc97; font-weight: 700; }
.lang-suggest button { border: 0; background: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1; }

/* --- Barre du bas mobile : bouton central "Partager" ------------------ */
@media (max-width: 900px) {
	.bottomnav a:nth-child(3) svg { width: 28px; height: 28px; padding: 3px; border-radius: 50%; background: var(--accent); stroke: var(--accent-ink); stroke-width: 2.4; }
}

/* --- Accès rapide aux guides (accueil) ------------------------------- */
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick > :first-child { margin-left: auto; }
.quick > :last-child { margin-right: auto; }
.quick-item {
	display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 8px 14px;
	background: var(--card); color: var(--card-text); border: 1px solid var(--card-line); border-radius: 6px;
	font-weight: 700; font-size: .92rem; text-decoration: none;
}
.quick-item:hover { border-color: #3fc596; color: #0b6a47; }
.promo { margin: 22px 0; }

/* --- Titre de liste (All QR, recherche) ------------------------------ */
.page-head { margin-top: 14px; }
.page-head h1 { margin: 0; }
.page-head h1 small { font-size: .6em; color: var(--muted); }
.list-grid { margin-top: 14px; }
.list-more { text-align: center; padding: 18px; min-height: 20px; }

/* --- Fiche : texte d'origine d'une traduction ------------------------ */
.build-orig { font-size: .88rem; color: var(--card-muted); }
.build-orig summary { cursor: pointer; }
.build-orig p { margin: 8px 0 0; padding: 10px 12px; background: var(--card-chip); border-radius: 4px; }

/* --- Guides : builds mis en avant ------------------------------------ */
.picks { display: grid; gap: 14px; }
.pick { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; background: var(--card); color: var(--card-text); border: 2px solid #3fc596; }
.pick-media img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); background: #08090b; }
.pick-body h3 { margin: 0 0 6px; font-size: 1.25rem; color: #10403c; }
.pick-body h3 a { color: inherit; text-decoration: none; }
.pick-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; margin-right: 4px; border-radius: 5px; background: var(--nav-bg); color: #f6dc97; font-size: .95rem; }
.pick-body p { color: var(--card-muted); margin: 0 0 10px; }
.pick-body .muted { color: var(--card-muted); }
.pick .cost-pill { background: var(--card-chip); border-color: var(--card-line); color: var(--card-text); }
@media (max-width: 620px) { .pick { grid-template-columns: 1fr; } .pick-media img { max-width: 260px; margin: 0 auto; } }
.guide-card .card-media::after { display: none; }

/* --- Boutique --------------------------------------------------------- */
.shop { max-width: 980px; margin: 14px auto 0; }
.shop-hero { display: flex; gap: 28px; align-items: center; background: var(--card); color: var(--card-text); border: 2px solid #3fc596; }
.shop-pic { flex: 0 0 320px; display: block; background: #fff; border-radius: var(--radius-sm); overflow: hidden; line-height: 0; }
.shop-pic img { width: 100%; height: auto; }
.shop-info { flex: 1; min-width: 0; }
.shop-info h1 { color: #10403c; text-shadow: none; }
.shop-tag { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border: 1px solid #3fc596; border-radius: 4px; color: #0b6a47; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.shop-lead { font-size: 1.05rem; }
.shop-list { padding-left: 20px; color: var(--card-muted); }
.shop-list li { margin-bottom: 6px; }
.shop-list strong { color: var(--card-text); }
.shop-sub { text-align: center; color: var(--card-muted) !important; font-size: .82rem; margin: 8px 0 0; }
.shop-more { text-align: center; margin: 28px 0 14px; }
.shop-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.shop-card { display: flex; flex-direction: column; gap: 8px; background: var(--card); color: var(--card-text); border: 2px solid #3fc596; text-decoration: none; }
.shop-card:hover { border-color: var(--zonai); color: var(--card-text); }
.shop-card-pic { display: flex; align-items: center; justify-content: center; height: 240px; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
.shop-card-pic img { max-height: 100%; width: auto; }
.shop-card-note { flex: 1; color: var(--card-muted); font-size: .9rem; }
.shop-small { text-align: center; font-size: .8rem; margin-top: 18px; }
@media (max-width: 760px) { .shop-hero { flex-direction: column; } .shop-pic { flex: none; width: 100%; max-width: 320px; } }

/* --- Pied de page en colonnes ---------------------------------------- */
.footer-cols { display: grid; gap: 18px 30px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 20px; }
.footer-cols h2 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #f6dc97; margin: 0 0 8px; text-shadow: none; }
.footer-cols a { display: block; padding: 3px 0; color: var(--nav-text); text-decoration: none; }
.footer-cols a:hover { color: var(--accent); }
.footer-social svg.fill { width: 18px; height: 18px; fill: var(--nav-text); stroke: none; }

/* --- Admin : stats ----------------------------------------------------- */
.admin-cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); margin-top: 16px; }
.admin-cols .panel h2 { margin: 0 0 10px; font-size: 1.05rem; }
.admin-cols .panel h2 + .muted { margin-top: -6px; font-size: .85rem; }
.admin-cols .panel .admin-table + h2 { margin-top: 18px; }
.admin-table.bars td { white-space: normal; padding: 5px 8px; font-size: .86rem; }
.admin-table.bars td:first-child { overflow-wrap: anywhere; }
.admin-table.bars .num { text-align: right; font-weight: 700; width: 1%; white-space: nowrap; }
.admin-table.bars .bar { width: 35%; }
.admin-table.bars .bar span { display: block; height: 8px; border-radius: 4px; background: var(--accent); }
.admin-chart { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-chart span { flex: 1; min-width: 3px; background: var(--accent); border-radius: 2px 2px 0 0; }
.admin-chart span:hover { background: #f6dc97; }


/* --- Boutiques : bandeau et carte de l'accueil, onglets, texte -------- */
/* Toutes les slides sont empilées dans la même cellule : le bandeau garde la
   hauteur de la plus haute, la page ne bouge plus quand ça tourne. */
.ribbon { position: relative; margin: 0 0 18px; display: grid; }
.ribbon-slide { grid-area: 1 / 1; }
.ribbon-slide {
	display: flex; align-items: center; gap: 16px; min-height: 80px; padding: 8px 16px 8px 8px;
	background: linear-gradient(135deg, #f7f0de 0%, #eee2c4 100%);
	border: 2px solid #3fc596; border-radius: var(--radius);
	box-shadow: 0 6px 18px rgba(0, 20, 20, .3);
	color: var(--card-text); text-decoration: none; animation: ribbon-in .45s ease;
}
.ribbon-slide[hidden] { display: flex; visibility: hidden; pointer-events: none; }
.ribbon-slide:hover { color: var(--card-text); border-color: var(--accent); }
.ribbon-imgs { display: flex; gap: 6px; flex-shrink: 0; }
.ribbon-imgs img { width: 60px; height: 60px; object-fit: contain; background: #fff; border: 1px solid var(--card-line); border-radius: var(--radius-sm); padding: 4px; transition: transform .2s; }
.ribbon-slide:hover .ribbon-imgs img { transform: translateY(-2px); }
.ribbon-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ribbon-txt strong { font-family: var(--font-title); font-size: 1.15rem; line-height: 1.2; color: #10403c; }
.ribbon-txt span { color: var(--card-muted); font-size: .95rem; }
.ribbon-slide .btn { flex-shrink: 0; }
/* Points pour choisir la boutique (ajoutés par js/site.js) */
.ribbon-dots { position: absolute; left: 0; right: 0; bottom: -13px; display: flex; justify-content: center; gap: 4px; }
.ribbon-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.ribbon-dots button::before { content: ""; display: block; width: 8px; height: 8px; margin: auto; border-radius: 50%; background: var(--border); }
.ribbon-dots button.on::before { background: var(--accent); width: 20px; border-radius: 4px; }
@keyframes ribbon-in { from { opacity: 0; transform: translateX(12px); } }
@media (max-width: 900px) {
	.ribbon-imgs img:nth-child(n+3) { display: none; }
}
@media (max-width: 640px) {
	.ribbon-slide { gap: 10px; min-height: 0; padding: 8px 10px 8px 8px; }
	.ribbon-imgs img { width: 56px; height: 56px; }
	.ribbon-imgs img:nth-child(n+2) { display: none; }
	.ribbon-txt strong { font-size: 1.02rem; }
	.ribbon-txt span { font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.ribbon-slide .btn { display: none; }
	.ribbon-slide::after { content: "→"; flex-shrink: 0; font-weight: 700; color: var(--up-ink); font-size: 1.3rem; }
}
/* Carte boutique parmi les tendances : 4 produits en mosaïque */
.promo-card { border-color: #3fc596; }
.promo-card .card-media { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--card-line); }
.promo-card .card-media img { min-height: 0; object-fit: contain; background: #fff; padding: 8%; transition: transform .25s; }
.promo-card:hover .card-media img { transform: scale(1.04); }
.promo-card .card-media::after { display: none; }
.promo-card .card-meta { background: #0f9e6c; color: #fff; }
.promo-card .card-foot .btn { width: 100%; justify-content: center; min-height: 34px; }

/* Texte de présentation, en bas de l'accueil (référencement) */
.about { margin: 40px 0 10px; padding-top: 18px; border-top: 1px solid var(--border); }
.about h1 { font-size: 1.2rem; text-shadow: none; }
.about .intro { font-size: .92rem; margin: 0; }
.shop-tabs { justify-content: center; margin: 0 0 16px; }
.shop-text { margin-top: 26px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
