/* LTDC Déco murale : pastilles tissu (accordéon d'une pièce à la fois sur les kits), initiale de la nacelle */

/* Comme les étapes du thème : toute la largeur, même si le conteneur passe en flex */
#ltdc-product-woo > .ltdc-deco { width: 100%; flex: 0 0 100%; align-self: stretch; }

.ltdc-deco__intro {
	margin: 0 0 10px;
	font-size: .84rem;
	line-height: 1.5;
	color: var(--color-text-muted, #7a5c4a);
}

/* ── Bloc teinté (sable clair) qui ressort du fond beige ; la pièce ouverte passe en blanc ── */
.ltdc-deco__list {
	overflow: hidden;
	background: #f6eadd;
	border: 1px solid rgba(184, 122, 75, .22);
	border-radius: var(--radius, 10px);
}
.ltdc-deco__row { padding: 0 14px; transition: background .25s; }
.ltdc-deco__row + .ltdc-deco__row { border-top: 1px solid rgba(184, 122, 75, .18); }
.ltdc-deco--kit .ltdc-deco__row.is-open { background: #fff; }

/* ── En-tête d'une pièce : nom, cote, tissu choisi ── */
.ltdc-deco__head { display: flex; align-items: center; gap: 10px; }
.ltdc-deco:not(.ltdc-deco--kit) .ltdc-deco__head { padding: 12px 0 10px; }
button.ltdc-deco__head:hover .ltdc-deco__label { color: var(--color-warm, #b87a4b); }
button.ltdc-deco__head {
	width: 100%;
	margin: 0;
	padding: 13px 0;
	font: inherit;
	color: inherit;
	text-align: left;
	background: none;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}
button.ltdc-deco__head:focus-visible { outline: 2px solid var(--color-warm, #b87a4b); outline-offset: 2px; }

.ltdc-deco__label {
	font-weight: 700;
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	white-space: nowrap;
	transition: color .2s;
}
.ltdc-deco__label em {
	margin-left: 6px;
	font-style: normal;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--color-text-muted, #7a5c4a);
}
.ltdc-deco__current { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.ltdc-deco--kit .ltdc-deco__current { margin-left: auto; }
.ltdc-deco__mini {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 1px var(--color-border, rgba(28, 21, 18, .15));
}
.ltdc-deco__name {
	overflow: hidden;
	font-size: .78rem;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--color-text-muted, #7a5c4a);
}
.ltdc-deco__chevron {
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	margin: 0 3px 3px 4px;
	color: var(--color-text-muted, #7a5c4a);
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .25s, margin .25s;
}
.ltdc-deco__row.is-open .ltdc-deco__chevron { margin-bottom: -3px; transform: rotate(-135deg); }

/* ── Kit : pièces qui suivent le choix de la première, pulsation de la pastille et du nom ── */
@keyframes ltdc-deco-pulse {
	0%   { transform: scale(1);    box-shadow: 0 0 0 1px rgba(28, 21, 18, .15), 0 0 0 0 rgba(184, 122, 75, .5); }
	40%  { transform: scale(1.4);  box-shadow: 0 0 0 1px rgba(28, 21, 18, .15), 0 0 0 5px rgba(184, 122, 75, .28); }
	100% { transform: scale(1);    box-shadow: 0 0 0 1px rgba(28, 21, 18, .15), 0 0 0 10px rgba(184, 122, 75, 0); }
}
@keyframes ltdc-deco-pulse-name {
	0%, 100% { color: var(--color-text-muted, #7a5c4a); }
	35%      { color: var(--color-warm, #b87a4b); }
}
.ltdc-deco__current.is-pulse .ltdc-deco__mini { animation: ltdc-deco-pulse .7s var(--ease-out, ease) var(--pulse-delay, 0ms) both; }
.ltdc-deco__current.is-pulse .ltdc-deco__name { animation: ltdc-deco-pulse-name .9s ease var(--pulse-delay, 0ms) both; }
@media (prefers-reduced-motion: reduce) {
	.ltdc-deco__current.is-pulse .ltdc-deco__mini { animation: none; }
}

/* ── Accordéon (kits) : hauteur animée, contenu fermé hors tabulation ── */
.ltdc-deco--kit .ltdc-deco__body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .3s var(--ease-out, ease);
}
.ltdc-deco--kit .ltdc-deco__row.is-open .ltdc-deco__body { grid-template-rows: 1fr; }
.ltdc-deco--kit .ltdc-deco__body-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .3s; }
.ltdc-deco--kit .ltdc-deco__row.is-open .ltdc-deco__body-inner { visibility: visible; transition-delay: 0s; }
/* marge interne : l'anneau de sélection et le zoom au survol ne sont pas rognés */
.ltdc-deco--kit .ltdc-deco__swatches { padding: 4px 4px 16px; }
.ltdc-deco:not(.ltdc-deco--kit) .ltdc-deco__swatches { padding-bottom: 14px; }

/* ── Pastilles, groupées par matière ── */
.ltdc-deco__swatches { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.ltdc-deco__group { position: relative; display: flex; flex-direction: column; gap: 5px; }
.ltdc-deco__family {
	font-size: .66rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--color-text-light, #a88a78);
}
.ltdc-deco__dots { display: flex; gap: 8px; }

/* Petite barre entre teddy et sherpa, retirée (JS) quand sherpa passe à la ligne */
.ltdc-deco__group + .ltdc-deco__group { padding-left: 21px; }
.ltdc-deco__group + .ltdc-deco__group::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: 6px;
	width: 1px;
	height: 24px;
	background: rgba(28, 21, 18, .15);
}
.ltdc-deco__swatches.is-wrapped .ltdc-deco__group + .ltdc-deco__group { padding-left: 0; }
.ltdc-deco__swatches.is-wrapped .ltdc-deco__group + .ltdc-deco__group::before { display: none; }

.ltdc-deco__swatch {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: none;
	box-shadow: 0 0 0 1.5px var(--color-border, rgba(28, 21, 18, .15));
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow .2s, transform .2s;
}
.ltdc-deco__swatch img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ltdc-deco__swatch:hover { transform: scale(1.08); }
.ltdc-deco__swatch.is-selected { box-shadow: 0 0 0 2px var(--color-text, #1c1512); }
.ltdc-deco__swatch:focus-visible { outline: 2px solid var(--color-warm, #b87a4b); outline-offset: 3px; }

/* ── Initiale de la nacelle ── */
.ltdc-deco__letter { display: flex; align-items: center; gap: 14px; }
/* La case imite la nacelle : bois (teinte relevée sur la photo) et lettre dans la couleur du filament */
.ltdc-deco__letter-input {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	padding: 0;
	text-align: center;
	font-family: var(--font-serif, Georgia, serif);
	font-size: 2.4rem;
	line-height: 1;
	font-style: italic;
	font-weight: 600;
	color: var(--letter-color);
	background: #a97d58;
	border: 1.5px solid #95694a;
	border-radius: 6px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .25);
	transition: border-color .2s, color .2s;
}
/* Le thème force 16px !important sur les champs en mobile (anti-zoom iOS) : 2,4rem est au-dessus, aucun zoom */
input[type="text"].ltdc-deco__letter-input { font-size: 2.4rem !important; }
/* Les traits fins de la police font paraître la couleur pâle : on les épaissit un peu */
.ltdc-deco__letter-input { -webkit-text-stroke: .6px var(--letter-color); }
/* Case vide : pas de lettre d'exemple (elle passait pour déjà choisie), pointillé intérieur + curseur qui clignote */
.ltdc-deco__letter-box { --letter-color: #e8dbb7; position: relative; display: inline-flex; flex-shrink: 0; }
.ltdc-deco__letter-input::placeholder { color: transparent; }
.ltdc-deco__letter-input:placeholder-shown { outline: 1.5px dashed rgba(255, 255, 255, .55); outline-offset: -8px; }
.ltdc-deco__caret {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 2px;
	height: 24px;
	margin: -12px 0 0 -1px;
	background: var(--letter-color, #e8dbb7);
	border-radius: 1px;
	pointer-events: none;
	animation: ltdc-deco-caret 1.1s steps(1) infinite;
}
.ltdc-deco__letter-input:placeholder-shown:not(:focus) + .ltdc-deco__caret { display: block; }
@keyframes ltdc-deco-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ltdc-deco__caret { animation: none; } }
.ltdc-deco__letter-input:focus { outline: none; border-color: var(--color-text, #1c1512); }
.ltdc-deco__letter-input.is-invalid { border-color: #c53030; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .25), 0 0 0 2px rgba(197, 48, 48, .35); }

/* Couleur de l'initiale : une ligne de petites pastilles, nom du coloris à côté */
.ltdc-deco__lcolors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ltdc-deco__ldots { display: flex; gap: 6px; }
.ltdc-deco__ldot {
	width: 22px;
	height: 22px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--color-border, rgba(28, 21, 18, .15));
	cursor: pointer;
	transition: box-shadow .2s, transform .2s;
}
.ltdc-deco__ldot:hover { transform: scale(1.12); }
.ltdc-deco__ldot.is-selected { box-shadow: 0 0 0 2px var(--color-text, #1c1512); }
.ltdc-deco__ldot:focus-visible { outline: 2px solid var(--color-warm, #b87a4b); outline-offset: 3px; }
/* À droite de la case : la consigne, et les couleurs juste en dessous */
.ltdc-deco__letter-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ltdc-deco__hint { font-size: .92rem; font-weight: 700; line-height: 1.3; color: var(--color-text, #1c1512); cursor: pointer; }

/* Pastille du titre de l'étape : "À choisir", puis "✓ Choisie" */
.ltdc-deco__todo {
	margin-left: 4px;
	padding: 2px 9px;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: none;
	color: var(--color-warm-dark, #9a6338);
	background: var(--color-bg-2, #fde8df);
	border-radius: var(--radius-full, 9999px);
	transition: background .25s, color .25s;
}
.ltdc-deco__todo.is-done { color: #15803d; background: #e3f4e8; }

/* Téléphones : les 9 pastilles et la barre tiennent sur une ligne dans le bloc dès 360px de large
   (place = largeur d'écran - 72px ; 9 pastilles + 7 écarts + écart de colonne + marge de la barre) */
@media (max-width: 480px) {
	.ltdc-deco__row { padding: 0 12px; }
	.ltdc-deco--kit .ltdc-deco__swatches { padding: 3px 3px 14px; }
	.ltdc-deco__label em { display: none; } /* la cote reste dans la description */
	.ltdc-deco__swatch { width: 32px; height: 32px; }
	.ltdc-deco__dots { gap: 7px; }
	.ltdc-deco__swatches { gap: 10px 14px; }
	.ltdc-deco__group + .ltdc-deco__group { padding-left: 15px; }
}
@media (max-width: 437px) {
	.ltdc-deco__swatch { width: 28px; height: 28px; }
	.ltdc-deco__dots { gap: 6px; }
	.ltdc-deco__swatches { gap: 10px 11px; }
	.ltdc-deco__group + .ltdc-deco__group { padding-left: 12px; }
	.ltdc-deco__group + .ltdc-deco__group::before { height: 20px; }
}
@media (max-width: 388px) {
	.ltdc-deco__swatch { width: 26px; height: 26px; }
	.ltdc-deco__dots { gap: 5px; }
	.ltdc-deco__swatches { gap: 10px 9px; }
	.ltdc-deco__group + .ltdc-deco__group { padding-left: 10px; }
	.ltdc-deco__group + .ltdc-deco__group::before { bottom: 5px; height: 18px; }
}

/* ── Sur la photo principale : tissu photographié (en bas à gauche, le compteur est à droite) ── */
.ltdc-deco__photo-note {
	position: absolute;
	left: .75rem;
	bottom: .75rem;
	z-index: 2;
	padding: .3rem .7rem;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--color-text, #1c1512);
	background: rgba(255, 255, 255, .85);
	border-radius: var(--radius-full, 9999px);
	pointer-events: none;
}

/* ── Remise sur quantité : badge des kits, rappel sous le prix, bandeau catégorie, message panier ── */
.ltdc-deco-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 9px;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1.5;
	vertical-align: middle;
	color: #fff;
	background: var(--color-warm, #b87a4b);
	border-radius: var(--radius-full, 9999px);
}
.ltdc-deco-price-note {
	display: block;
	margin-top: 4px;
	font-size: .8rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--color-warm-dark, #9a6338);
}
.product-card__price .ltdc-deco-price-note { font-size: .72rem; }
.product-card__price .ltdc-deco-badge { margin-left: 6px; font-size: .66rem; }

.ltdc-deco-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin: 0 0 1.25rem;
	padding: .8rem 1.1rem;
	font-size: .9rem;
	line-height: 1.45;
	color: var(--color-text, #1c1512);
	background: #f6eadd;
	border: 1px solid rgba(184, 122, 75, .22);
	border-radius: var(--radius, 10px);
}
.ltdc-deco-banner strong { color: var(--color-warm-dark, #9a6338); }

.ltdc-deco-nudge {
	margin: 10px 0 0;
	padding: .7rem 1rem;
	font-size: .85rem;
	line-height: 1.45;
	background: #f6eadd;
	border: 1px solid rgba(184, 122, 75, .22);
	border-radius: var(--radius, 10px);
}
.ltdc-deco-nudge strong { color: var(--color-warm-dark, #9a6338); }
.ltdc-deco-nudge a { margin-left: 4px; font-weight: 600; color: var(--color-warm, #b87a4b); white-space: nowrap; }
