/* Boutique T-shirts : vitrine, atelier, suivi de commande, CGV (templates/merch/).
   Jetons du thème « Deux camps » (css/jtp-theme.css). */

.mt { padding-bottom: 48px; color: var(--jtp-ink); }

.mt-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.mt-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--jtp-pop);
}

.mt-a { color: var(--jtp-a); font-weight: 800; }
.mt-b { color: var(--jtp-b-deep); font-weight: 800; }
.mt-or { color: var(--jtp-muted); font-weight: 600; }

/* Boutons */
.mt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}
.mt-btn:hover { transform: translateY(-1px); text-decoration: none; }
.mt-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.mt-btn--primary, .mt-btn--primary:hover { background: var(--jtp-pop); color: var(--jtp-pop-ink); }
.mt-btn--ghost { border-color: currentColor; color: var(--jtp-a-deep); background: transparent; }
.mt-btn--block { width: 100%; }

.mt-back {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--jtp-a-deep);
    text-decoration: none;
}

.mt-help { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--jtp-muted); }
.mt-help--center { text-align: center; }

.mt-closed {
    margin: 0;
    padding: 10px 16px;
    background: var(--jtp-pop);
    color: var(--jtp-pop-ink);
    font-weight: 700;
    text-align: center;
}
.mt-closed a { color: inherit; text-decoration: underline; margin-left: 6px; }

.mt-alert { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--jtp-r-md); font-weight: 600; }
.mt-alert--err { background: var(--jtp-b-soft); color: #7a2a0a; }
.mt-alert--ok { background: var(--jtp-a-soft); color: var(--jtp-a-deep); font-weight: 500; }

/* Retrouver ma commande / mes commandes */
.mt-lookup { max-width: 640px; }
.mt-lookup__form { display: grid; gap: 14px; margin-top: 18px; }
.mt-input__label { display: block; margin-bottom: 6px; font-weight: 700; }
.mt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mt-orders { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; }
.mt-orders__item { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--jtp-line); border-radius: var(--jtp-r-md); background: var(--jtp-surface); }
.mt-orders__main { display: grid; gap: 4px; min-width: 0; flex: 1 1 280px; }
.mt-orders__date, .mt-orders__meta { font-size: 14px; color: var(--jtp-muted); }
.mt-orders__text { font-weight: 800; overflow-wrap: anywhere; }
.mt-orders__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-order__actions { margin: 18px 0 0; }
.mt-keep { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: var(--jtp-r-md); background: var(--jtp-a-soft); font-size: 14px; line-height: 1.5; }
.mt-keep i { margin-top: 3px; color: var(--jtp-a-deep); }

/* T-shirt dessiné + aperçu du visuel */
.mt-tee {
    --tee: #ffffff;
    position: relative;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    aspect-ratio: 400 / 440;
}
.mt-tee--sm { max-width: 240px; }
.mt-tee--lg { max-width: 460px; }
.mt-tee__shirt { display: block; width: 100%; height: 100%; overflow: visible; }
.mt-tee__body {
    fill: var(--tee);
    stroke: rgba(13, 34, 38, .16);
    stroke-width: 2;
    stroke-linejoin: round;
    transition: fill .2s ease;
}
.mt-tee__shade { fill: rgba(13, 34, 38, .06); }
.mt-tee__neck, .mt-tee__seam { fill: none; stroke: rgba(13, 34, 38, .18); stroke-width: 3; stroke-linecap: round; }
/* À l'échelle d'un M (51 cm de large) : le corps du dessin fait 57 % de la
   largeur du SVG, le visuel 26 cm, soit 29 % du SVG. */
.mt-tee__print {
    position: absolute;
    left: 35.5%;
    top: 17.5%;
    width: 29%;
    height: auto;
    transition: opacity .2s ease;
}
.mt-tee__print.is-loading { opacity: .45; }

/* Hero */
.mt-hero {
    background: linear-gradient(135deg, var(--jtp-a-deep), var(--jtp-a) 65%, #2a8f8a);
    color: #fff;
    padding: 40px 0 32px;
    overflow: hidden;
}
.mt-hero__inner { display: grid; gap: 24px; align-items: center; }
.mt-hero__title {
    margin: 0 0 14px;
    font-family: var(--jtp-font-display);
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.04;
    text-wrap: balance;
}
.mt-hero__lead { max-width: 54ch; margin: 0 0 22px; font-size: 18px; line-height: 1.6; opacity: .92; }
.mt-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mt-hero .mt-btn--ghost { color: #fff; }
.mt-hero__price { margin: 18px 0 0; font-size: 15px; opacity: .9; }
.mt-hero__visual .mt-tee { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25)); }

/* Sections */
.mt-sec { padding-top: 40px; }
.mt-sec__title {
    margin: 0 0 8px;
    font-family: var(--jtp-font-display);
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 800;
    line-height: 1.1;
    text-wrap: balance;
}
.mt-sec__lead { margin: 0 0 22px; color: var(--jtp-muted); font-size: 17px; }

/* Vitrine */
.mt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.mt-card {
    background: var(--jtp-surface);
    border: 1px solid var(--jtp-line);
    border-radius: var(--jtp-r-lg);
    box-shadow: var(--jtp-shadow);
    transition: transform .15s ease, border-color .15s ease;
}
.mt-card:hover { transform: translateY(-2px); border-color: var(--jtp-a); }
.mt-card__link { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 18px; color: inherit; text-decoration: none; }
.mt-card__link:hover { text-decoration: none; color: inherit; }
.mt-card .mt-tee { background: var(--jtp-surface-2); border-radius: var(--jtp-r-md); padding: 10px; max-width: none; }
.mt-card__text { flex: 1; font-size: 17px; line-height: 1.4; }
.mt-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mt-card__price { font-weight: 800; font-size: 18px; }
.mt-card__cta { font-weight: 800; color: var(--jtp-a-deep); }

.mt-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.mt-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 14px;
    padding: 18px;
    background: var(--jtp-surface);
    border-radius: var(--jtp-r-lg);
    border: 1px solid var(--jtp-line);
}
.mt-steps__n {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--jtp-pop);
    color: var(--jtp-pop-ink);
    font-weight: 800;
}
.mt-steps li span:last-child { color: var(--jtp-muted); line-height: 1.5; }

.mt-blank {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 28px;
    border-radius: var(--jtp-r-lg);
    background: var(--jtp-b-soft);
}
.mt-blank__title { margin: 0 0 6px; font-family: var(--jtp-font-display); font-size: 26px; font-weight: 800; }
.mt-blank p { margin: 0; max-width: 52ch; line-height: 1.55; }

.mt-faq__item {
    margin-bottom: 10px;
    background: var(--jtp-surface);
    border: 1px solid var(--jtp-line);
    border-radius: var(--jtp-r-md);
}
.mt-faq__item summary { padding: 16px 18px; font-weight: 800; cursor: pointer; }
.mt-faq__item p { margin: 0; padding: 0 18px 16px; line-height: 1.6; color: var(--jtp-muted); }

.mt-reassure {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    padding-top: 32px;
    color: var(--jtp-muted);
    font-size: 15px;
}
.mt-reassure span { display: inline-flex; gap: 8px; align-items: center; }
.mt-reassure p { flex-basis: 100%; margin: 4px 0 0; text-align: center; }

/* Atelier */
.mt-studio__grid { display: grid; gap: 24px; }
.mt-studio__preview {
    padding: 16px;
    background: var(--jtp-surface-2);
    border: 1px solid var(--jtp-line);
    border-radius: var(--jtp-r-lg);
}
.mt-studio__note { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--jtp-muted); }

/* Détail de la nuque : étiquette imprimée sous le col, au dos. */
.mt-nape { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; font-size: 14px; line-height: 1.4; }
.mt-nape p { margin: 0; color: var(--jtp-muted); }
.mt-nape strong { color: var(--jtp-ink); }
.mt-nape__fabric {
    --tee: #ffffff;
    flex: 0 0 150px;
    padding: 0 22px 16px;
    border-radius: var(--jtp-r-md);
    background: var(--tee);
    box-shadow: inset 0 0 0 1px rgba(13, 34, 38, .16);
    transition: background-color .2s ease;
}
.mt-nape__fabric svg { display: block; width: calc(100% + 44px); margin: 0 -22px 8px; }
.mt-nape__fabric path { fill: none; stroke: rgba(13, 34, 38, .25); stroke-width: 5; }
.mt-nape__fabric img { display: block; width: 100%; height: auto; }

.mt-field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.mt-field legend { margin-bottom: 10px; padding: 0; font-weight: 800; font-size: 17px; }
.mt-field--row { display: flex; align-items: center; gap: 16px; }
.mt-field--row legend { float: left; margin: 0; }

.mt-dilemma__head { margin: 0 0 8px; font-family: var(--jtp-font-display); font-weight: 800; font-size: 20px; }
.mt-dilemma__or {
    display: block;
    width: max-content;
    margin: 8px auto;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--jtp-pop);
    color: var(--jtp-pop-ink);
    font-weight: 800;
    font-size: 14px;
}
.mt-input { display: block; }
.mt-input input {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 2px solid var(--jtp-line);
    border-radius: var(--jtp-r-md);
    background: var(--jtp-surface);
    color: var(--jtp-ink);
    font: inherit;
    font-size: 17px;
    font-weight: 700;
}
.mt-input--a input { border-left: 6px solid var(--jtp-a); }
.mt-input--b input { border-left: 6px solid var(--jtp-b); }
.mt-input input:focus { outline: 3px solid var(--jtp-a-soft); border-color: var(--jtp-a); }

.mt-ideas { margin-top: 14px; }
.mt-ideas__label { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--jtp-muted); }
.mt-ideas__list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.mt-chip {
    flex: 0 0 auto;
    max-width: 260px;
    padding: 8px 14px;
    border: 1px solid var(--jtp-line);
    border-radius: 999px;
    background: var(--jtp-surface);
    color: var(--jtp-ink);
    font: inherit;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    scroll-snap-align: start;
}
.mt-chip em { color: var(--jtp-muted); font-style: normal; }
.mt-chip:hover { border-color: var(--jtp-a); }

.mt-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.mt-swatch { position: relative; cursor: pointer; }
.mt-swatch input { position: absolute; opacity: 0; }
.mt-swatch__dot {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: inset 0 0 0 1px rgba(13, 34, 38, .2);
    transition: box-shadow .15s ease;
}
.mt-swatch input:checked + .mt-swatch__dot { box-shadow: inset 0 0 0 1px rgba(13, 34, 38, .2), 0 0 0 3px var(--jtp-surface), 0 0 0 5px var(--jtp-a); }
.mt-swatch input:focus-visible + .mt-swatch__dot { outline: 3px solid var(--jtp-pop); outline-offset: 4px; }

.mt-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-size { position: relative; cursor: pointer; }
.mt-size input { position: absolute; opacity: 0; }
.mt-size span {
    display: grid;
    place-items: center;
    min-width: 52px;
    height: 44px;
    padding: 0 10px;
    border: 2px solid var(--jtp-line);
    border-radius: var(--jtp-r-md);
    background: var(--jtp-surface);
    font-weight: 800;
}
.mt-size input:checked + span { border-color: var(--jtp-a); background: var(--jtp-a); color: #fff; }
.mt-size input:focus-visible + span { outline: 3px solid var(--jtp-pop); outline-offset: 2px; }

.mt-guide { margin-top: 12px; font-size: 14px; }
.mt-guide summary { cursor: pointer; font-weight: 700; color: var(--jtp-a-deep); }
.mt-guide table { width: 100%; margin-top: 10px; border-collapse: collapse; }
.mt-guide th, .mt-guide td { padding: 6px 8px; border-bottom: 1px solid var(--jtp-line); text-align: left; }
.mt-guide p { color: var(--jtp-muted); }

.mt-qty {
    width: 88px;
    min-height: 46px;
    padding: 8px 12px;
    border: 2px solid var(--jtp-line);
    border-radius: var(--jtp-r-md);
    font: inherit;
    font-size: 17px;
    font-weight: 700;
}

.mt-total {
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: var(--jtp-r-md);
    background: var(--jtp-surface-2);
    border: 1px solid var(--jtp-line);
}
.mt-total div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.mt-total__sum { margin-top: 6px; padding-top: 8px !important; border-top: 1px solid var(--jtp-line); font-weight: 800; font-size: 19px; }

.mt-accept { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.mt-accept input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--jtp-a); }

/* Suivi de commande */
.mt-order__grid { display: grid; gap: 24px; align-items: start; }
.mt-track { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: step; }
.mt-track li {
    flex: 1;
    padding: 10px 8px 0;
    border-top: 5px solid var(--jtp-line);
    font-size: 14px;
    font-weight: 700;
    color: var(--jtp-muted);
}
.mt-track li.is-done { border-color: var(--jtp-a); color: var(--jtp-ink); }
.mt-track li.is-current { border-color: var(--jtp-pop); color: var(--jtp-ink); }

.mt-summary { margin: 20px 0 0; }
.mt-summary div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--jtp-line); }
.mt-summary dt { color: var(--jtp-muted); font-weight: 600; }
.mt-summary dd { margin: 0; }

/* CGV */
.mt-legal { max-width: 820px; }
.mt-legal h2 { margin: 28px 0 8px; font-size: 20px; font-weight: 800; }
.mt-legal p { line-height: 1.65; }

@media (min-width: 760px) {
    .mt-hero { padding: 56px 0 48px; }
    .mt-hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; }
    .mt-steps { grid-template-columns: repeat(3, 1fr); }
    .mt-studio__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
    .mt-studio__preview { position: sticky; top: 90px; }
    .mt-order__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .mt-btn, .mt-card, .mt-tee__body, .mt-tee__print { transition: none; }
}
