/* Pages thèmes (/themes, /themes/sport…) : cartes thème de l'accueil (home.css), cartes produit (card.css), et leur mise en page. */
/* Le menu est fixe (67 px sous le bandeau, qui a déjà sa place dans le body) : la page commence dessous. */
.tp { background: #fff; color: var(--hh-ink); padding-top: 67px; }
.tp-preview { background: #FFF4D6; border-bottom: 1px solid #F0D9A8; color: #6B4E00; font-size: .88rem; font-weight: 600; padding: 10px 0; text-align: center; }
.tp-hero { background: var(--hh-cream); padding: 40px 0 44px; }
.tp-crumb { font-size: .82rem; color: #666E7B; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.tp-crumb a { color: #666E7B; text-decoration: none; }
.tp-crumb a:hover { color: var(--hh-pink); }
.tp-crumb .sep { opacity: .6; }
.tp-h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 18px; max-width: 900px; }
.tp-intro { font-size: 1.06rem; line-height: 1.7; color: #374151; max-width: 860px; }
.tp-intro p { margin: 0; }
.tp-intro strong { color: var(--hh-ink); }
.tp-gift { margin: 14px 0 0; font-size: 1rem; font-weight: 600; color: var(--hh-pink); }
.tp-sec { padding: 52px 0; }
.tp-sec + .tp-sec { padding-top: 8px; }
.tp-sec--alt { background: var(--hh-cream); padding: 52px 0 !important; }
.tp-h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 16px; }
.tp-text { max-width: 860px; font-size: 1rem; line-height: 1.75; color: #374151; }
.tp-text p { margin: 0 0 12px; }
.tp-text strong { color: var(--hh-ink); }
.tp-text ol { margin: 0; padding-left: 22px; }
.tp-text li { margin: 0 0 10px; }
.tp-note { font-size: .92rem; color: #666E7B; margin: -4px 0 20px; max-width: 860px; }
.tp-note p { margin: 0; }

/* La grille des thèmes : les cartes de l'accueil, posées en grille. */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin-top: 8px; }
.tp-grid .ht-card { flex-basis: auto !important; }
.tp-grid[data-tp-more-list] { margin-top: 22px; }
button.ht-top { border: 0; padding: 0; margin: 0; background: none; font: inherit; text-align: left; cursor: pointer; width: 100%; }
button.ht-top:focus-visible, .tp-choose:focus-visible { outline: 3px solid var(--hh-pink); outline-offset: 2px; }
.tp-card .ht-body { gap: 4px; }
.tp-choose { margin-top: 10px; align-self: stretch; border: 0; border-radius: 10px; background: var(--hh-ink); color: #fff; font: 700 .86rem var(--font, inherit); padding: 11px 12px; cursor: pointer; transition: background .2s; }
.tp-choose:hover { background: var(--hh-pink); }
/* « Mes thèmes » (28/11/2026) : le bouton dit si le thème est déjà mis de côté ; un second clic le retire. */
.tp-choose .tp-choose-done { display: none; }
.tp-choose.is-added { background: #fff; color: var(--hh-ink); box-shadow: inset 0 0 0 1.5px var(--hh-ink); }
.tp-choose.is-added .tp-choose-add { display: none; }
.tp-choose.is-added .tp-choose-done { display: inline; }
.tp-choose.is-added .tp-choose-done i { color: #16a34a; }
.tp-choose.is-added:hover { background: #fff; color: var(--hh-pink-3); box-shadow: inset 0 0 0 1.5px var(--hh-pink-3); }
.tp-more { display: flex; justify-content: center; margin-top: 26px; }
.tp-more button { border: 1.5px solid var(--hh-ink); background: #fff; color: var(--hh-ink); border-radius: 12px; padding: 13px 26px; font: 700 .95rem var(--font, inherit); cursor: pointer; }
.tp-more button:hover { background: var(--hh-ink); color: #fff; }
.tp-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px 28px; margin-top: 34px; }
.tp-groups h3 { font-size: 1rem; font-weight: 800; margin: 0 0 4px; }
.tp-groups p { margin: 0; font-size: .92rem; line-height: 1.6; color: #4B5563; }
.tp-empty { padding: 22px; border: 1.5px dashed #D1D5DB; border-radius: 14px; color: #666E7B; }

/* Les produits. */
.tp-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

/* La page d'entrée : une carte par univers. */
.tp-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.tp-page-card { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(0, 0, 0, .07); border-radius: 18px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); transition: box-shadow .2s, transform .2s; }
.tp-page-card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .1); transform: translateY(-3px); color: inherit; }
.tp-page-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #f3f3f3; }
.tp-page-card .tp-page-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.tp-page-card .tp-page-label { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.tp-page-card .tp-page-text { display: block; font-size: .88rem; color: #666E7B; line-height: 1.5; }
.tp-page-card .tp-page-draft { display: inline-block; align-self: flex-start; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: #FFF4D6; color: #6B4E00; border-radius: 999px; padding: 3px 9px; }


/* Le QR de démonstration posé sur le visuel imprimé de chaque carte (vrai QR vers le site, aux couleurs du thème). */
.tp-portrait { position: relative; display: block; }
.tp-qr { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46%; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.tp-qr-panel { display: block; background: #fff; border-radius: 9px; padding: 9%; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.tp-qr-code { display: block; aspect-ratio: 1 / 1; }
.tp-qr-code canvas, .tp-qr-code svg { width: 100% !important; height: auto !important; display: block; }
.tp-qr-band { display: block; border-radius: 5px; padding: 3px 3px; font: 800 9px/1.2 Arial, Helvetica, sans-serif; letter-spacing: .01em; text-align: center; white-space: nowrap; overflow: hidden; }

@media (max-width: 768px) {
  .tp-hero { padding: 26px 0 30px; }
  .tp-sec, .tp-sec--alt { padding: 36px 0 !important; }
  .tp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tp-grid .ht-body { padding: 10px 10px 12px; }
  .tp-grid .ht-sub { display: none; }
  .tp-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tp-pages { grid-template-columns: 1fr; }
  .tp-qr-band { font-size: .42rem; }
}

/* Pages de lieux (pays, régions, 21/11/2026) : un groupe par lieu. */
.tp-place { margin: 0 0 28px; }
.tp-place-title { margin: 0 0 12px; font-size: 1.15rem; font-weight: 800; }
