/* Composants du plugin : formulaires, profil (dossard), badges (autocollants), événements (tickets), classement.
   Design « bol et dossard » : contours encre épais, ombres dures, jaune nouille, rouge piment, vert ciboulette. */
:root {
	--nqc-ink: var(--wp--preset--color--encre, #1b1410);
	--nqc-cream: var(--wp--preset--color--creme, #fff4d6);
	--nqc-sand: var(--wp--preset--color--sable, #f6e6b4);
	--nqc-yellow: var(--wp--preset--color--nouille, #f6c335);
	--nqc-red: var(--wp--preset--color--piment, #d6342a);
	--nqc-brick: var(--wp--preset--color--brique, #b72a20);
	--nqc-green: var(--wp--preset--color--ciboulette, #4f9a5e);
	--nqc-forest: var(--wp--preset--color--foret, #2f6f3d);
	--nqc-sky: var(--wp--preset--color--ciel, #bfe3f5);
	--nqc-muted: #5b4a3d;
	--nqc-mono: var(--wp--preset--font-family--ticket, 'Space Mono', 'Courier New', monospace);
	--nqc-line: 3px solid var(--nqc-ink);
	--nqc-r: 24px;
	--nqc-pop: 5px 5px 0 var(--nqc-ink);
}
.nqc-dash, .nqc-form, .nqc-panel { --nqc-r: 24px; }

/* Un « autocollant » : contour blanc découpé, trait encre, ombre dure. */
.nqc-die {
	filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
		drop-shadow(2px 0 0 var(--nqc-ink)) drop-shadow(-2px 0 0 var(--nqc-ink)) drop-shadow(0 2px 0 var(--nqc-ink)) drop-shadow(0 -2px 0 var(--nqc-ink))
		drop-shadow(5px 6px 0 var(--nqc-ink));
}

.nqc-alert {
	padding: .9rem 1.1rem;
	border-radius: 16px;
	background: var(--nqc-sky);
	color: var(--nqc-ink);
	border: var(--nqc-line);
	box-shadow: 4px 4px 0 var(--nqc-ink);
	font-weight: 600;
}
.nqc-alert--error { background: #ffd9d4; }
.nqc-muted { color: var(--nqc-muted); }

.nqc-panel {
	background: #fff;
	border: var(--nqc-line);
	border-radius: var(--nqc-r);
	box-shadow: 6px 6px 0 var(--nqc-ink);
	padding: 1.5rem 1.75rem;
}
.nqc-panel h2 { margin-top: 0; }
.nqc-panel .nqc-actions { margin-bottom: 0; }

/* ---------- Boutons ---------- */
.nqc-btn {
	display: inline-block;
	padding: .6rem 1.2rem;
	border: var(--nqc-line);
	border-radius: 999px;
	font-weight: 700;
	font-size: .98rem;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 3px 3px 0 var(--nqc-ink);
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.nqc-btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--nqc-ink); }
.nqc-btn--primary { background: var(--nqc-red); color: #fff; }
.nqc-btn--primary:hover { background: var(--nqc-yellow); color: var(--nqc-ink); }
.nqc-btn--ghost { background: #fff; color: var(--nqc-ink); }
.nqc-btn--ghost:hover { background: var(--nqc-yellow); color: var(--nqc-ink); }
.nqc-btn--strava { background: #c93d00; color: #fff; display: inline-flex; align-items: center; gap: .5rem; }
.nqc-btn--strava:hover { background: var(--nqc-yellow); color: var(--nqc-ink); }
.nqc-inline-form { display: inline-block; margin: 0 .5rem .5rem 0; }

/* ---------- Formulaires ---------- */
.nqc-form {
	background: #fff;
	border: var(--nqc-line);
	border-radius: var(--nqc-r);
	box-shadow: 6px 6px 0 var(--nqc-ink);
	padding: 1.75rem;
	max-width: 560px;
	margin-inline: auto;
	box-sizing: border-box;
}
.nqc-form input,
.nqc-form select { box-sizing: border-box; }
.nqc-form p { margin: 0 0 1.1rem; }
.nqc-form label { display: block; font-weight: 700; margin-bottom: .3rem; }
.nqc-form small { font-weight: 500; color: var(--nqc-muted); }
.nqc-form input[type=text],
.nqc-form input[type=email],
.nqc-form input[type=password],
.nqc-form select,
.nqc-form input[type=time],
.nqc-form input[type=number],
.nqc-form input[type=file],
.nqc-form input[type=date],
.nqc-form textarea,
.nqc-inline input[type=email],
.nqc-share-text {
	width: 100%;
	box-sizing: border-box;
	padding: .65rem .9rem;
	border: var(--nqc-line);
	border-radius: 14px;
	background: var(--nqc-cream);
	font: inherit;
	color: inherit;
}
.nqc-form input:focus,
.nqc-form select:focus,
.nqc-form textarea:focus { outline: none; background: #fff; box-shadow: 4px 4px 0 var(--nqc-yellow); }
.nqc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.nqc-check label { font-weight: 500; display: flex; gap: .6rem; align-items: flex-start; }
.nqc-check input { margin-top: .35rem; accent-color: var(--nqc-red); }
.nqc-form__alt { color: var(--nqc-muted); font-size: .95rem; margin-bottom: 0 !important; }
.nqc-hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
@media (max-width: 560px) { .nqc-form__row { grid-template-columns: 1fr; } }
.nqc-form h3 { margin-top: 0; }
.nqc-form--quick { background: var(--nqc-sand); }
.nqc-form--quick p:last-child { margin-bottom: 0; }
.nqc-form--magic { margin-top: 1.25rem; }
.nqc-form--flat { box-shadow: none; border: 0; padding: 1rem 0 0; max-width: none; background: transparent; }
.nqc-social__or { display: flex; align-items: center; gap: 1rem; max-width: 560px; margin: 1.1rem auto; color: var(--nqc-muted); font-weight: 700; }
.nqc-social__or::before, .nqc-social__or::after { content: ""; flex: 1; height: 3px; background: var(--nqc-ink); border-radius: 3px; }
.nqc-inline { display: flex; gap: .6rem; flex-wrap: wrap; }
.nqc-inline input[type=email] { flex: 1; min-width: 14rem; width: auto; }
.nqc-email-form { margin-top: 1rem; }
.nqc-link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--nqc-muted); text-decoration: underline; cursor: pointer; }
.nqc-staff-box { border-style: dashed; }
.nqc-cart { position: relative; text-decoration: none; font-size: 1.3rem; padding: .2rem .4rem; }
.nqc-cart__n { position: absolute; top: -.2rem; right: -.35rem; background: var(--nqc-red); color: #fff; font-size: .7rem; font-weight: 700; border: 2px solid var(--nqc-ink); border-radius: 999px; padding: .02rem .4rem; }

/* ---------- Profil : le dossard ---------- */
.nqc-dash h3 { margin: 2.4rem 0 .9rem; }
.nqc-hero-card {
	position: relative;
	background:
		radial-gradient(circle at 20px 20px, #d9d3c8 0 6px, var(--nqc-ink) 6.5px 9px, transparent 9.5px),
		radial-gradient(circle at calc(100% - 20px) 20px, #d9d3c8 0 6px, var(--nqc-ink) 6.5px 9px, transparent 9.5px),
		radial-gradient(circle at 20px calc(100% - 20px), #d9d3c8 0 6px, var(--nqc-ink) 6.5px 9px, transparent 9.5px),
		radial-gradient(circle at calc(100% - 20px) calc(100% - 20px), #d9d3c8 0 6px, var(--nqc-ink) 6.5px 9px, transparent 9.5px),
		#fff;
	color: var(--nqc-ink);
	border: 4px solid var(--nqc-ink);
	border-radius: 16px;
	padding: 2rem 2.4rem 1.7rem;
	box-shadow: 8px 8px 0 var(--nqc-ink);
	transform: rotate(-.6deg);
}
.nqc-hero-card h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.nqc-hero-card p { margin: 0; color: var(--nqc-muted); }
.nqc-hero-card__top { display: flex; gap: 1.4rem; align-items: center; }
.nqc-hero-card__who { flex: 1; min-width: 0; }
.nqc-hero-card__who h2 { margin-bottom: .1rem; }
.nqc-hero-card__who p + p { margin-top: .6rem; }
.nqc-bib { margin-left: auto; text-align: right; line-height: .9; align-self: flex-start; }
.nqc-bib small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--nqc-muted); margin-bottom: .3rem; }
.nqc-bib b { font-size: clamp(3rem, 9vw, 5.4rem); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nqc-avatar { border-radius: 50%; border: 3px solid var(--nqc-ink); background: #fff; }
.nqc-noodle { position: relative; width: 150px; flex: none; height: auto; }
.nqc-noodle .nqc-mascot-svg,
.nqc-noodle__mascot { width: 150px; height: auto; display: block; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(2px 0 0 var(--nqc-ink)) drop-shadow(-2px 0 0 var(--nqc-ink)) drop-shadow(0 2px 0 var(--nqc-ink)) drop-shadow(0 -2px 0 var(--nqc-ink)) drop-shadow(5px 6px 0 var(--nqc-ink)); }
.nqc-noodle .nqc-avatar { position: absolute; right: -8px; bottom: 6px; width: 44px; height: 44px; border-width: 3px; }
.nqc-tier { display: flex; align-items: center; gap: .9rem; margin: 1.3rem 0 .8rem; }
.nqc-tier__icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--nqc-yellow); border: var(--nqc-line); font-size: 1.6rem; }
.nqc-tier > div { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.nqc-tier__name { font-size: 1.6rem; font-weight: 700; }
.nqc-tier__text { color: var(--nqc-muted); font-size: .95rem; }
.nqc-tier__xp { font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.nqc-tier--or { box-shadow: 8px 8px 0 var(--nqc-ink), 0 0 0 6px var(--nqc-yellow), 0 0 0 10px var(--nqc-ink); }
.nqc-altitude { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin: 1.2rem 0 .6rem; }
.nqc-altitude__value { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.nqc-altitude__name { font-weight: 700; font-size: 1.2rem; }

/* Barre de progression : nouille rayée dans un tube */
.nqc-meter, .nqc-meter--light { height: 26px; background: #fff; border: var(--nqc-line); border-radius: 999px; overflow: hidden; }
.nqc-meter span { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--nqc-yellow) 0 14px, #f0b81e 14px 28px); border-right: var(--nqc-line); transition: width .6s ease; }
.nqc-meter__legend { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .6rem !important; font-size: .95rem; color: var(--nqc-ink) !important; }
.nqc-perk { margin: 1rem 0 0 !important; padding: .55rem .9rem; border: var(--nqc-line); border-radius: 14px; background: var(--nqc-yellow); color: var(--nqc-ink) !important; font-weight: 600; }
@media (max-width: 640px) {
	.nqc-hero-card { padding: 1.8rem 1.5rem 1.4rem; transform: none; }
	.nqc-hero-card__top { flex-wrap: wrap; }
	.nqc-bib { order: -1; width: 100%; }
}

/* ---------- Statistiques ---------- */
.nqc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.6rem; }
.nqc-tile { background: #fff; border: var(--nqc-line); border-radius: 20px; padding: 1rem 1.1rem; text-align: left; box-shadow: var(--nqc-pop); }
.nqc-tile strong { display: block; font-size: 1.8rem; font-weight: 700; color: var(--nqc-brick); font-variant-numeric: tabular-nums; line-height: 1.1; }
.nqc-tile span { color: var(--nqc-muted); font-size: .92rem; }
@media (max-width: 640px) { .nqc-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Badges : l'album d'autocollants ---------- */
.nqc-badges { list-style: none; margin: 0; padding: 1.2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.1rem; background: #fff; border: var(--nqc-line); border-radius: var(--nqc-r); box-shadow: 6px 6px 0 var(--nqc-ink); }
.nqc-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; padding: .8rem .5rem; border-radius: 16px; background: transparent; border: 3px solid transparent; }
.nqc-badge:nth-child(3n) .nqc-badge__img, .nqc-badge:nth-child(3n) .nqc-badge__icon { transform: rotate(-6deg); }
.nqc-badge:nth-child(3n+1) .nqc-badge__img, .nqc-badge:nth-child(3n+1) .nqc-badge__icon { transform: rotate(4deg); }
.nqc-badge__icon { font-size: 2.2rem; line-height: 1.2; }
.nqc-badge__img { width: 78px; height: 78px; display: block; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(2px 0 0 var(--nqc-ink)) drop-shadow(-2px 0 0 var(--nqc-ink)) drop-shadow(0 2px 0 var(--nqc-ink)) drop-shadow(0 -2px 0 var(--nqc-ink)) drop-shadow(4px 5px 0 var(--nqc-ink)); }
.nqc-badge strong { font-size: .95rem; margin-top: .3rem; }
.nqc-badge small { color: var(--nqc-muted); font-size: .78rem; line-height: 1.3; }
.nqc-badge.is-locked { border: 3px dashed #a89a86; border-radius: 22px; }
.nqc-badge.is-locked > * { opacity: .5; filter: grayscale(1); }
.nqc-badge.is-locked .nqc-badge__img { filter: grayscale(1); }

/* ---------- Mon ascension ---------- */
.nqc-summits { background: #fff; border: var(--nqc-line); border-radius: var(--nqc-r); box-shadow: 6px 6px 0 var(--nqc-ink); padding: 1.3rem 1.5rem; }
.nqc-summits__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.nqc-summits__total { font-size: 2.1rem; font-weight: 700; color: var(--nqc-brick); font-variant-numeric: tabular-nums; }
.nqc-summits__next { margin: .6rem 0 1rem; }
.nqc-summits__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .45rem; }
.nqc-summits__list li { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: .8rem; padding: .3rem .6rem; border-radius: 14px; border: 3px solid transparent; }
.nqc-summits__list li.is-done { background: var(--nqc-sand); border-color: var(--nqc-ink); }
.nqc-summits__list li.is-todo { opacity: .65; }
.nqc-summits__list .nqc-badge__img { width: 40px; height: 40px; filter: none; }
.nqc-summits__list li.is-todo .nqc-badge__img { filter: grayscale(1); }
.nqc-summits__name { font-weight: 700; }
.nqc-summits__alt { color: var(--nqc-muted); font-variant-numeric: tabular-nums; }
.nqc-summits__state { font-size: .85rem; color: var(--nqc-muted); min-width: 6rem; text-align: right; }
@media (max-width: 560px) { .nqc-summits__list li { grid-template-columns: 40px 1fr auto; } .nqc-summits__alt { display: none; } }

/* ---------- Sorties : des tickets ---------- */
.nqc-runs { list-style: none; margin: 0; padding: 0; background: #fff; border: var(--nqc-line); border-radius: 18px; box-shadow: var(--nqc-pop); overflow: hidden; font-family: var(--nqc-mono); font-weight: 400; }
.nqc-runs li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .85rem 1.2rem; border-bottom: 2px dashed var(--nqc-ink); }
.nqc-runs li:last-child { border-bottom: 0; }
.nqc-runs__title { font-weight: 700; font-family: inherit; }
.nqc-runs__meta { color: var(--nqc-muted); font-variant-numeric: tabular-nums; }

/* ---------- Classement du mois ---------- */
.nqc-top { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .7rem; }
.nqc-top__row { display: grid; grid-template-columns: 2.2rem 44px 1fr auto; align-items: center; gap: .9rem; background: #fff; padding: .7rem 1rem; border: var(--nqc-line); border-radius: 18px; box-shadow: 4px 4px 0 var(--nqc-ink); }
.nqc-top__row.is-first { background: var(--nqc-yellow); }
.nqc-top__rank { font-weight: 700; text-align: center; font-size: 1.3rem; }
.nqc-top__who { display: flex; flex-direction: column; line-height: 1.25; }
.nqc-top__who small { color: var(--nqc-muted); }
.nqc-top__row.is-first .nqc-top__who small { color: var(--nqc-ink); }
.nqc-top__km { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Événements : les tickets de cuisine ---------- */
.nqc-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.nqc-filters a { padding: .4rem 1.1rem; border: var(--nqc-line); border-radius: 999px; background: #fff; color: var(--nqc-ink); font-weight: 700; text-decoration: none; box-shadow: 3px 3px 0 var(--nqc-ink); }
.nqc-filters a:hover, .nqc-filters a.is-active { background: var(--nqc-yellow); }
.nqc-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem 1.6rem; }
.nqc-event-card {
	position: relative;
	display: flex;
	gap: 1rem;
	background: #fff;
	padding: 1.3rem 1.3rem 1.6rem;
	margin-bottom: 14px;
	filter: drop-shadow(3px 0 0 var(--nqc-ink)) drop-shadow(-3px 0 0 var(--nqc-ink)) drop-shadow(0 3px 0 var(--nqc-ink)) drop-shadow(0 -3px 0 var(--nqc-ink)) drop-shadow(6px 8px 0 var(--nqc-ink));
	transition: transform .15s ease;
}
.nqc-event-card::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: conic-gradient(from 135deg at top, #fff 90deg, #0000 0) 0 0 / 24px 100%; }
.nqc-event-card:hover { transform: translate(-2px, -3px) rotate(-.4deg); }
.nqc-datebadge { flex: none; width: 3.8rem; height: 4.4rem; border: var(--nqc-line); border-radius: 18px; background: var(--nqc-yellow); color: var(--nqc-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; transform: rotate(-4deg); }
.nqc-datebadge strong { font-size: 1.7rem; font-weight: 700; }
.nqc-datebadge span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.nqc-event-card__body { min-width: 0; }
.nqc-event-card__body h3 { margin: .35rem 0 .2rem; font-size: 1.3rem; }
.nqc-event-card__body h3 a { text-decoration: none; color: inherit; }
.nqc-event-card__when { margin: 0 0 .6rem; color: var(--nqc-muted); font-size: .85rem; text-transform: capitalize; font-family: var(--nqc-mono); font-weight: 400; }
.nqc-event-card__body ul { list-style: none; margin: 0 0 1rem; padding: .5rem 0 0; border-top: 2px dashed var(--nqc-ink); font-size: .85rem; display: grid; gap: .2rem; font-family: var(--nqc-mono); font-weight: 400; }
.nqc-tag { display: inline-block; padding: .1rem .75rem; border: 2px solid var(--nqc-ink); border-radius: 999px; font-weight: 700; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; background: var(--nqc-sky); color: var(--nqc-ink); }
.nqc-tag--soiree { background: var(--nqc-red); color: #fff; }
.nqc-tag--route { background: var(--nqc-sky); }
.nqc-tag--trail { background: var(--nqc-forest); color: #fff; }
.nqc-event-panel { background: #fff; border: var(--nqc-line); border-radius: var(--nqc-r); box-shadow: 6px 6px 0 var(--nqc-ink); padding: 1.4rem 1.6rem; margin-bottom: 2rem; }
.nqc-event-panel dl { margin: .8rem 0 1.2rem; display: grid; gap: .5rem; }
.nqc-event-panel dl div { display: flex; gap: 1rem; flex-wrap: wrap; border-bottom: 1px dotted #8a7a6a; padding-bottom: .4rem; }
.nqc-event-panel dt { min-width: 9.5rem; font-weight: 700; }
.nqc-event-panel dd { margin: 0; text-transform: none; font-family: var(--nqc-mono); font-weight: 400; font-size: .95rem; }
.nqc-attendees { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Fil, covoiturage, photos, défis ---------- */
.nqc-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.nqc-feed__item { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: var(--nqc-line); border-radius: 18px; padding: .9rem 1.1rem; box-shadow: 4px 4px 0 var(--nqc-ink); }
.nqc-feed__body p { margin: 0; }
.nqc-feed__meta { color: var(--nqc-muted); font-size: .85rem; margin-top: .25rem !important; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.nqc-kudos { border: 2px solid var(--nqc-ink); background: #fff; border-radius: 999px; padding: .1rem .75rem; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; color: var(--nqc-ink); }
.nqc-kudos:hover, .nqc-kudos.is-on { background: var(--nqc-yellow); }
.nqc-kudos.is-static { cursor: default; background: var(--nqc-sand); }

.nqc-rides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; margin-bottom: 1rem; }
.nqc-ride { background: #fff; border: var(--nqc-line); border-radius: 18px; padding: 1.1rem 1.2rem; box-shadow: 4px 4px 0 var(--nqc-ink); }
.nqc-ride h3 { margin: .4rem 0 .2rem; font-size: 1.1rem; }
.nqc-ride p { margin: .3rem 0; }
.nqc-contact { margin-top: .5rem; font-size: .92rem; }
.nqc-contact summary, .nqc-ride-add summary { cursor: pointer; color: var(--nqc-brick); font-weight: 700; }
.nqc-ride-add { margin-top: 1rem; }

.nqc-gallery { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.nqc-gallery li { margin: 0; }
.nqc-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: var(--nqc-line); border-radius: 14px; display: block; box-shadow: 4px 4px 0 var(--nqc-ink); }
.nqc-gallery small { color: var(--nqc-muted); }

.nqc-challenges { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.nqc-challenge { display: flex; gap: 1rem; background: #fff; border: var(--nqc-line); border-radius: 20px; padding: 1.1rem 1.25rem; box-shadow: var(--nqc-pop); }
.nqc-challenge.is-done { background: #e3f3e6; }
.nqc-challenge__icon { flex: none; width: 3.2rem; height: 3.2rem; border: var(--nqc-line); border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: var(--nqc-yellow); }
.nqc-challenge__body { flex: 1; min-width: 0; }
.nqc-challenge h3 { margin: .35rem 0 .6rem; font-size: 1.15rem; }
.nqc-challenge p { margin: .5rem 0 0; }

/* ---------- Garde-robe, carte, divers ---------- */
.nqc-wardrobe { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; background: #fff; border: var(--nqc-line); border-radius: var(--nqc-r); padding: 1.3rem; box-shadow: 6px 6px 0 var(--nqc-ink); }
.nqc-wardrobe fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .4rem; align-content: start; }
.nqc-wardrobe legend { font-weight: 700; margin-bottom: .3rem; }
.nqc-wardrobe__opt { display: flex; gap: .5rem; align-items: flex-start; padding: .45rem .7rem; border: 2px solid var(--nqc-ink); border-radius: 999px 22px 22px 999px; background: var(--nqc-cream); cursor: pointer; }
.nqc-wardrobe__opt input { accent-color: var(--nqc-red); }
.nqc-wardrobe__opt:has(input:checked) { background: var(--nqc-yellow); }
.nqc-wardrobe__opt.is-locked { opacity: .6; cursor: not-allowed; border-style: dashed; }
.nqc-wardrobe__opt small { display: block; color: var(--nqc-muted); }
.nqc-wardrobe > p { grid-column: 1 / -1; margin: 0; }
.nqc-map { border: var(--nqc-line); border-radius: 20px; overflow: hidden; z-index: 0; box-shadow: var(--nqc-pop); }
.nqc-map__credit { font-size: .8rem; margin-top: .3rem; }
.nqc-delete-form { margin-top: 1rem; }
.nqc-panel hr { border: 0; border-top: 3px dashed var(--nqc-ink); margin: 1.2rem 0; }
@media (max-width: 560px) { .nqc-hero-card__top { flex-direction: column; align-items: flex-start; } .nqc-bib { align-self: stretch; } }
