/* ============================================================
   TchM Formules Repas DLP — wizard.css  v1.1
   Design : dark theme premium, compatible Bootstrap 4/5
   Toutes les classes préfixées .tchm- pour éviter les conflits
   ============================================================ */

/* ── Design tokens (scoped au composant) ───────────────── */
.tchm-wizard {
    --tw-gold:         #C9932A;
    --tw-gold-light:   #F0C95A;
    --tw-dark:         #0F0D1A;
    --tw-dark-card:    #1A1728;
    --tw-dark-border:  #2E2A42;
    --tw-text:         #EAE6FF;
    --tw-muted:        #8A84A8;
    --tw-magic:        #7B61FF;
    --tw-magic-glow:   rgba(123,97,255,0.18);
    --tw-green:        #2ED573;
    --tw-red:          #FF4757;
    --tw-radius:       16px;
    --tw-font-serif:   'Playfair Display', Georgia, serif;
    --tw-font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;
}

/* ── Reset encapsulé ────────────────────────────────────── */
.tchm-wizard,
.tchm-wizard *,
.tchm-wizard *::before,
.tchm-wizard *::after {
    box-sizing: border-box;
}

/* ── Conteneur racine ───────────────────────────────────── */
.tchm-wizard {
    background: var(--tw-dark);
    color: var(--tw-text);
    font-family: var(--tw-font-sans);
    position: relative;
    overflow: hidden;
    border-radius: var(--tw-radius);
    isolation: isolate; /* empêche les variables Bootstrap de fuir */
}

/* Starfield (fond étoilé encapsulé) */
.tchm-wizard::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 20% 90%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(2px 2px at 60% 50%, rgba(255,255,255,0.2) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* ── Wrapper interne ────────────────────────────────────── */
.tchm-inner {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes tchm-fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tchm-fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tchm-popIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes tchm-spin {
    to { transform: rotate(360deg); }
}

/* ── Header ─────────────────────────────────────────────── */
.tchm-header {
    text-align: center;
    margin-bottom: 44px;
    animation: tchm-fadeDown 0.7s ease both;
}

/* Version tag seul (header="false") — marges réduites */
.tchm-header--minimal {
    margin-bottom: 20px;
}
.tchm-header--minimal .tchm-header__tag {
    margin-bottom: 0;
}

.tchm-header__tag {
    display: inline-block;
    background: var(--tw-magic-glow);
    border: 1px solid var(--tw-magic);
    color: var(--tw-magic);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 40px;
    margin-bottom: 18px;
}

.tchm-header__title {
    font-family: var(--tw-font-serif) !important;
    font-size: clamp(26px, 5vw, 44px) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    background: linear-gradient(135deg, #fff 30%, var(--tw-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px !important;
    border: none !important;
    padding: 0 !important;
}

.tchm-header__sub {
    color: var(--tw-muted);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Barre de progression ───────────────────────────────── */
.tchm-progress-wrap {
    margin-bottom: 32px;
    animation: tchm-fadeUp 0.7s 0.1s ease both;
}

.tchm-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0;
    list-style: none;
    margin-left: 0;
}

.tchm-progress-label {
    font-size: 11px;
    color: var(--tw-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.tchm-progress-label.active {
    color: var(--tw-gold-light);
}

.tchm-progress-track {
    height: 3px;
    background: var(--tw-dark-border);
    border-radius: 10px;
    overflow: hidden;
}

.tchm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tw-magic), var(--tw-gold));
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20%;
}

/* ── Card principale ────────────────────────────────────── */
.tchm-card {
    background: var(--tw-dark-card) !important;
    border: 1px solid var(--tw-dark-border) !important;
    border-radius: var(--tw-radius) !important;
    padding: 36px !important;
    position: relative;
    overflow: hidden;
    /* Neutralise Bootstrap .card */
    box-shadow: none !important;
    color: var(--tw-text) !important;
}

/* Ligne dégradée en haut de la carte */
.tchm-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tw-magic), var(--tw-gold), transparent);
    opacity: 0.6;
    pointer-events: none;
}

/* ── Steps ──────────────────────────────────────────────── */
.tchm-step {
    display: none;
}

.tchm-step.active {
    display: block;
    animation: tchm-fadeUp 0.35s ease both;
}

.tchm-step__num {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--tw-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.tchm-step__title {
    font-family: var(--tw-font-serif) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    color: #fff !important;
    line-height: 1.25 !important;
    -webkit-text-fill-color: #fff !important;
}

.tchm-step__subtitle {
    font-size: 14px;
    color: var(--tw-muted);
    margin-bottom: 28px;
    line-height: 1.5;
    display: block;
}

/* ── Grille d'options (boutons sélectionnables) ────────── */
.tchm-options {
    display: grid;
    gap: 12px;
    margin-bottom: 4px;
}

.tchm-options--2 { grid-template-columns: 1fr 1fr; }
.tchm-options--3 { grid-template-columns: 1fr 1fr 1fr; }

.tchm-option {
    background: var(--tw-dark) !important;
    border: 1.5px solid var(--tw-dark-border) !important;
    border-radius: 12px !important;
    padding: 18px 16px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    font-family: var(--tw-font-sans) !important;
    color: var(--tw-text) !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
    display: block;
    /* reset Bootstrap btn styles */
    font-size: inherit;
    line-height: inherit;
}

.tchm-option:hover,
.tchm-option:focus {
    border-color: var(--tw-magic) !important;
    background: var(--tw-magic-glow) !important;
    transform: translateY(-1px);
    color: var(--tw-text) !important;
    box-shadow: none !important;
}

.tchm-option.selected {
    border-color: var(--tw-gold) !important;
    background: rgba(201,147,42,0.1) !important;
    color: var(--tw-text) !important;
}

/* Checkmark sur option sélectionnée */
.tchm-option.selected::after {
    content: '✓';
    position: absolute;
    top: 10px; right: 12px;
    color: var(--tw-gold);
    font-size: 14px;
    font-weight: 700;
}

.tchm-option__icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    line-height: 1;
}

.tchm-option__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--tw-text);
    display: block;
    margin-bottom: 3px;
}

.tchm-option__desc {
    font-size: 12px;
    color: var(--tw-muted);
    line-height: 1.4;
    display: block;
}

/* ── Compteurs (étape 2) ────────────────────────────────── */
.tchm-counter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--tw-dark-border);
}

.tchm-counter-row:last-of-type {
    border-bottom: none;
}

.tchm-counter-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--tw-text);
    margin-bottom: 2px;
    display: block;
}

.tchm-counter-sub {
    font-size: 12px;
    color: var(--tw-muted);
    display: block;
}

.tchm-counter-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.tchm-counter-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--tw-dark-border) !important;
    background: var(--tw-dark) !important;
    color: var(--tw-text) !important;
    font-size: 20px;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    font-family: var(--tw-font-sans) !important;
    box-shadow: none !important;
    outline: none !important;
    flex-shrink: 0;
}

.tchm-counter-btn:hover {
    border-color: var(--tw-gold) !important;
    color: var(--tw-gold) !important;
    background: var(--tw-dark) !important;
}

.tchm-counter-val {
    font-size: 22px;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
    color: var(--tw-text);
    display: inline-block;
}

/* ── Boutons de navigation ──────────────────────────────── */
.tchm-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 12px;
}

.tchm-btn-back {
    background: transparent !important;
    border: 1.5px solid var(--tw-dark-border) !important;
    color: var(--tw-muted) !important;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    cursor: pointer;
    font-family: var(--tw-font-sans) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1.2 !important;
}

.tchm-btn-back:hover {
    border-color: var(--tw-text) !important;
    color: var(--tw-text) !important;
    background: transparent !important;
}

.tchm-btn-next {
    background: linear-gradient(135deg, var(--tw-magic) 0%, #5B3FD4 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 10px !important;
    cursor: pointer;
    font-family: var(--tw-font-sans) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(123,97,255,0.3) !important;
    outline: none !important;
    line-height: 1.2 !important;
}

.tchm-btn-next:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(123,97,255,0.45) !important;
    color: #fff !important;
}

.tchm-btn-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Résultat ────────────────────────────────────────────── */
.tchm-result {
    animation: tchm-popIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

.tchm-result-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tchm-result-badge {
    background: linear-gradient(135deg, var(--tw-gold) 0%, var(--tw-gold-light) 100%);
    color: var(--tw-dark);
    padding: 5px 16px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    margin-top: 4px;
    flex-shrink: 0;
}

.tchm-result-title {
    font-family: var(--tw-font-serif) !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    line-height: 1.2 !important;
    margin: 0 0 4px !important;
}

.tchm-result-subtitle {
    font-size: 14px;
    color: var(--tw-muted);
    margin: 0;
}

/* Bannière économie (positive) */
.tchm-savings {
    background: linear-gradient(135deg, rgba(46,213,115,0.12), rgba(46,213,115,0.05));
    border: 1px solid rgba(46,213,115,0.3);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tchm-savings__icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.tchm-savings__label {
    font-size: 13px;
    color: var(--tw-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

.tchm-savings__amount {
    font-family: var(--tw-font-serif) !important;
    font-size: 36px !important;
    font-weight: 900 !important;
    color: var(--tw-green) !important;
    -webkit-text-fill-color: var(--tw-green) !important;
    line-height: 1 !important;
    margin: 0 !important;
    display: block;
}

.tchm-savings__detail {
    font-size: 12px;
    color: var(--tw-muted);
    margin-top: 3px;
    display: block;
}

/* Bannière "formule non rentable" */
.tchm-not-worth {
    background: rgba(255,71,87,0.08);
    border: 1px solid rgba(255,71,87,0.25);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.tchm-not-worth__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tw-red);
    margin-bottom: 8px;
}

.tchm-not-worth p {
    font-size: 13px;
    color: var(--tw-muted);
    line-height: 1.6;
    margin: 0;
}

/* Libellé de section */
.tchm-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tw-muted);
    margin-bottom: 14px;
    display: block;
}

/* Grille récapitulatif 2×2 */
.tchm-formula-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.tchm-formula-item {
    background: var(--tw-dark);
    border: 1px solid var(--tw-dark-border);
    border-radius: 12px;
    padding: 16px;
}

.tchm-formula-item__label {
    font-size: 12px;
    color: var(--tw-muted);
    margin-bottom: 4px;
    display: block;
}

.tchm-formula-item__val {
    font-size: 16px;
    font-weight: 600;
    color: var(--tw-text);
    display: block;
}

.tchm-formula-item__val--highlight  { color: var(--tw-gold-light); }
.tchm-formula-item__val--positive   { color: var(--tw-green); }
.tchm-formula-item__val--negative   { color: var(--tw-red); }

/* Liste restaurants */
.tchm-resto-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.tchm-resto-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--tw-dark);
    border: 1px solid var(--tw-dark-border);
    border-radius: 12px;
    padding: 14px 16px;
}

.tchm-resto-item__icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
    line-height: 1;
}

.tchm-resto-item__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tw-text);
    margin-bottom: 2px;
    display: block;
}

.tchm-resto-item__desc {
    font-size: 12px;
    color: var(--tw-muted);
    line-height: 1.4;
    margin-bottom: 5px;
    display: block;
}

.tchm-resto-item__tag {
    display: inline-block;
    background: rgba(123,97,255,0.15);
    color: #a594ff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Encadré conseils */
.tchm-tip-box {
    background: rgba(201,147,42,0.08);
    border: 1px solid rgba(201,147,42,0.25);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 28px;
}

.tchm-tip-box__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--tw-gold-light);
    margin-bottom: 8px;
    display: block;
}

.tchm-tip-box ul {
    padding-left: 18px;
    margin: 0;
}

.tchm-tip-box li {
    font-size: 13px;
    color: var(--tw-muted);
    margin-bottom: 5px;
    line-height: 1.5;
}

/* CTA */
.tchm-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.tchm-cta-primary {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, var(--tw-gold) 0%, var(--tw-gold-light) 100%) !important;
    color: var(--tw-dark) !important;
    border: none !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    font-family: var(--tw-font-sans) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: none !important;
    line-height: 1.2 !important;
}

.tchm-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(201,147,42,0.4) !important;
    color: var(--tw-dark) !important;
    text-decoration: none !important;
}

.tchm-cta-secondary {
    background: var(--tw-dark) !important;
    border: 1.5px solid var(--tw-dark-border) !important;
    color: var(--tw-muted) !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    font-family: var(--tw-font-sans) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1.2 !important;
}

.tchm-cta-secondary:hover {
    border-color: var(--tw-text) !important;
    color: var(--tw-text) !important;
    background: var(--tw-dark) !important;
}

/* Disclaimer */
.tchm-disclaimer {
    font-size: 11px;
    color: var(--tw-muted);
    text-align: center;
    font-style: italic;
    margin-top: 16px;
    line-height: 1.5;
}

/* Loader */
.tchm-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 20px;
    color: var(--tw-muted);
    font-size: 15px;
}

.tchm-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--tw-dark-border);
    border-top-color: var(--tw-magic);
    border-radius: 50%;
    animation: tchm-spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .tchm-inner              { padding: 28px 16px 48px; }
    .tchm-card               { padding: 24px 18px !important; }
    .tchm-options--2,
    .tchm-options--3         { grid-template-columns: 1fr; }
    .tchm-formula-grid       { grid-template-columns: 1fr; }
    .tchm-savings__amount    { font-size: 28px !important; }
    .tchm-result-title       { font-size: 22px !important; }
    .tchm-cta-row            { flex-direction: column; }
    .tchm-cta-primary,
    .tchm-cta-secondary      { flex: none; width: 100%; }
    .tchm-btn-next           { padding: 12px 20px !important; font-size: 14px !important; }
}

/* ── Guards Bootstrap ───────────────────────────────────── */

/* Annule le text-fill des titres h1/h2 que Bootstrap pourrait affecter */
.tchm-wizard h1,
.tchm-wizard h2,
.tchm-wizard h3 {
    -webkit-text-fill-color: initial;
}

.tchm-wizard .tchm-step__title {
    -webkit-text-fill-color: #fff !important;
}

.tchm-wizard .tchm-header__title {
    -webkit-text-fill-color: transparent !important;
}

/* Neutralise Bootstrap .card appliqué en cascade */
.tchm-wizard .tchm-card.card {
    background: var(--tw-dark-card) !important;
    border: 1px solid var(--tw-dark-border) !important;
    color: var(--tw-text) !important;
}

/* Override Bootstrap liens */
.tchm-wizard a:not(.tchm-cta-primary) {
    color: inherit;
}

/* ══════════════════════════════════════════════════════════════
   ÉTAPE 5 — Sélection de restaurants
   ══════════════════════════════════════════════════════════════ */

/* Compteur de sélections */
.tchm-select-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tchm-select-counter__pills {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    max-width: 220px;
}

.tchm-select-counter__pill {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--tw-dark-border);
    transition: background 0.25s, transform 0.25s;
    flex-shrink: 0;
}

/* Pills plus petites quand il y en a beaucoup */
.tchm-select-counter__pills:has(.tchm-select-counter__pill:nth-child(7)) .tchm-select-counter__pill {
    width: 8px; height: 8px;
}

.tchm-select-counter__pill.filled {
    background: var(--tw-gold);
    transform: scale(1.2);
}

.tchm-select-counter__text {
    font-size: 12px;
    color: var(--tw-muted);
}

.tchm-select-counter__text strong {
    color: var(--tw-gold-light);
}

/* Grille de cartes restaurant */
.tchm-resto-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

/* Carte restaurant sélectionnable */
.tchm-resto-card {
    background: var(--tw-dark) !important;
    border: 1.5px solid var(--tw-dark-border) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
    font-family: var(--tw-font-sans) !important;
    color: var(--tw-text) !important;
    outline: none !important;
    box-shadow: none !important;
}

.tchm-resto-card:hover:not(.disabled),
.tchm-resto-card:focus:not(.disabled) {
    border-color: var(--tw-magic) !important;
    background: var(--tw-magic-glow) !important;
    transform: translateY(-1px);
}

.tchm-resto-card.selected {
    border-color: var(--tw-gold) !important;
    background: rgba(201,147,42,0.1) !important;
}

/* Checkmark doré */
.tchm-resto-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px; right: 12px;
    color: var(--tw-gold);
    font-size: 16px;
    font-weight: 700;
}

/* Carte grisée quand max atteint et non sélectionnée */
.tchm-resto-card.disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none !important;
}

.tchm-resto-card__top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.tchm-resto-card__icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 1px;
}

.tchm-resto-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tw-text);
    line-height: 1.3;
    display: block;
    margin-bottom: 3px;
}

.tchm-resto-card__desc {
    font-size: 12px;
    color: var(--tw-muted);
    line-height: 1.4;
    display: block;
}

.tchm-resto-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tchm-resto-card__tag {
    display: inline-block;
    background: rgba(123,97,255,0.15);
    color: #a594ff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.tchm-resto-card__price {
    font-size: 13px;
    font-weight: 600;
    color: var(--tw-gold-light);
    white-space: nowrap;
}

.tchm-resto-card__price-child {
    font-size: 11px;
    color: var(--tw-muted);
    font-weight: 400;
    margin-left: 4px;
}

/* Badge personnages */
.tchm-resto-card__characters {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #E91E63;
    background: rgba(233,30,99,0.1);
    border-radius: 20px;
    padding: 2px 8px;
}

/* Message skip */
.tchm-step5-skip {
    text-align: center;
    margin-top: 14px;
}

.tchm-step5-skip button {
    background: none !important;
    border: none !important;
    color: var(--tw-muted) !important;
    font-size: 13px !important;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 4px 0 !important;
    font-family: var(--tw-font-sans) !important;
    box-shadow: none !important;
    outline: none !important;
}

.tchm-step5-skip button:hover {
    color: var(--tw-text) !important;
}

/* ── Responsive étape 5 ──────────────────────────────────────── */
@media (max-width: 560px) {
    .tchm-resto-cards { grid-template-columns: 1fr; }
}

/* ── Badge "Votre hôtel" sur les cartes restaurant étape 5 ──── */
.tchm-resto-card__hotel-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #C9932A;
    background: rgba(201,147,42,0.12);
    border: 1px solid rgba(201,147,42,0.3);
    border-radius: 20px;
    padding: 2px 8px;
    margin-top: 6px;
    letter-spacing: .03em;
}

/* Légère surbrillance dorée sur les cartes de l'hôtel avant sélection */
.tchm-resto-card:has(.tchm-resto-card__hotel-badge):not(.selected):not(.disabled) {
    border-color: rgba(201,147,42,0.35) !important;
}

/* ══════════════════════════════════════════════════════════════
   ÉTAPE 4 — Checkbox "Repas avec personnages"
   ══════════════════════════════════════════════════════════════ */

.tchm-characters-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 20px;
    padding: 16px 18px;
    background: rgba(233, 30, 99, 0.06);
    border: 1.5px solid rgba(233, 30, 99, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
}

.tchm-characters-check:hover {
    background: rgba(233, 30, 99, 0.1);
    border-color: rgba(233, 30, 99, 0.4);
}

.tchm-characters-check.checked {
    background: rgba(233, 30, 99, 0.12);
    border-color: #E91E63;
}

/* Boîte de la checkbox custom */
.tchm-characters-check__box {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
}

.tchm-characters-check__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tchm-characters-check__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(233, 30, 99, 0.4);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.15s;
    line-height: 1;
}

.tchm-characters-check.checked .tchm-characters-check__mark {
    background: #E91E63;
    border-color: #E91E63;
}

/* Texte */
.tchm-characters-check__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tchm-characters-check__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tw-text);
    line-height: 1.3;
}

.tchm-characters-check__desc {
    font-size: 12px;
    color: var(--tw-muted);
    line-height: 1.5;
}

/* Badge personnages "voulu" : surbrillance rose plus forte */
.tchm-resto-card__characters--wanted {
    background: rgba(233, 30, 99, 0.18) !important;
    color: #ff6b9d !important;
    font-weight: 700 !important;
    border: 1px solid rgba(233, 30, 99, 0.4) !important;
    animation: tchm-pulse-char 1.8s ease infinite;
}

@keyframes tchm-pulse-char {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 30, 99, 0); }
    50%       { box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.15); }
}

/* ── Séparateurs de groupes étape 5 ─────────────────────────── */
.tchm-resto-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--tw-muted);
}

.tchm-resto-separator::before,
.tchm-resto-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--tw-dark-border);
}

.tchm-resto-separator--double { color: var(--tw-gold); }
.tchm-resto-separator--double::before,
.tchm-resto-separator--double::after { background: rgba(201,147,42,0.3); }

.tchm-resto-separator--hotel  { color: #C9932A; }
.tchm-resto-separator--habit  { color: var(--tw-magic); }
.tchm-resto-separator--habit::before,
.tchm-resto-separator--habit::after { background: rgba(123,97,255,0.25); }

/* ── Badge catégorie (habit) sur les cartes ──────────────────── */
.tchm-resto-card__habit-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #a594ff;
    background: rgba(123,97,255,0.13);
    border: 1px solid rgba(123,97,255,0.25);
    border-radius: 20px;
    padding: 2px 8px;
}

/* ── Zone badges (hotel + habit + characters) ────────────────── */
.tchm-resto-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.tchm-resto-card__badges:empty { display: none; }

/* ── Carte double-priorité (hôtel + catégorie) ───────────────── */
.tchm-resto-card--priority {
    border-color: rgba(201,147,42,0.45) !important;
    background: linear-gradient(135deg, rgba(201,147,42,0.06), rgba(123,97,255,0.05)) !important;
}

.tchm-resto-card--priority::before {
    content: '⭐';
    position: absolute;
    top: 8px;
    right: 34px; /* laisse la place au ✓ de sélection */
    font-size: 12px;
    opacity: .7;
}

/* ── Notice informative (ex : Extra Plus demi-pension) ───────── */
.tchm-info-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,193,7,0.08);
    border: 1px solid rgba(255,193,7,0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--tw-text);
}

.tchm-info-notice__icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.tchm-info-notice__text { flex: 1; }
.tchm-info-notice__text strong { color: #ffd54f; }

/* ── Badge personnages "voulu" (mis en avant à l'étape 5) ────── */
.tchm-resto-card__characters--wanted {
    background: rgba(233,30,99,0.18) !important;
    border: 1px solid rgba(233,30,99,0.4);
    font-weight: 800;
    letter-spacing: .02em;
}

/* Séparateur groupe personnages */
.tchm-resto-separator--characters {
    color: #E91E63;
}
.tchm-resto-separator--characters::before,
.tchm-resto-separator--characters::after {
    background: rgba(233,30,99,0.3);
}

/* ── Bloc supplément coupon (page résultat) ──────────────────── */
.tchm-coupon-block {
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    border: 1px solid transparent;
}

.tchm-coupon-block--warning {
    background: rgba(255, 152, 0, 0.07);
    border-color: rgba(255, 152, 0, 0.35);
}

.tchm-coupon-block--ok {
    background: rgba(76, 175, 80, 0.07);
    border-color: rgba(76, 175, 80, 0.3);
}

.tchm-coupon-block__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.tchm-coupon-block__icon { font-size: 20px; flex-shrink: 0; }

.tchm-coupon-block__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tw-text);
}

.tchm-coupon-block__body {
    font-size: 13px;
    line-height: 1.6;
    color: var(--tw-muted);
    margin: 0 0 14px;
}

.tchm-coupon-block__body strong { color: var(--tw-text); }

.tchm-coupon-block__grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.tchm-coupon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.tchm-coupon-row--total {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 8px;
    margin-top: 4px;
    font-weight: 700;
}

.tchm-coupon-row__label { color: var(--tw-muted); }
.tchm-coupon-row__val   { font-weight: 600; color: var(--tw-text); }
.tchm-coupon-row__val--warn { color: #FFB74D; }

.tchm-coupon-block__note {
    font-size: 11.5px;
    color: var(--tw-muted);
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}

/* ── Styles admin : groupe coupon dans les cartes prix ───────── */
.tchm-price-card__group-label--coupon {
    margin-top: 14px;
    color: #C9932A;
    opacity: 1;
}

.tchm-price-card__coupon-hint {
    font-size: 11px;
    color: var(--card-text, #777);
    margin: -4px 0 8px;
    line-height: 1.4;
    font-style: italic;
}

/* ── Détail des calculs ──────────────────────────────────────── */
.tchm-calc-details {
    margin: 12px 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}

.tchm-calc-details__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--tw-muted, #aaa);
    transition: background .15s, color .15s;
}
.tchm-calc-details__summary::-webkit-details-marker { display: none; }
.tchm-calc-details__summary:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.tchm-calc-details[open] .tchm-calc-details__summary {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}

.tchm-calc-details__icon  { font-size: 16px; }
.tchm-calc-details__label { flex: 1; }
.tchm-calc-details__arrow {
    font-size: 14px;
    transition: transform .2s;
}
.tchm-calc-details[open] .tchm-calc-details__arrow { transform: rotate(180deg); }

.tchm-calc-details__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Sections numérotées */
.tchm-calc-section {
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    overflow: hidden;
}

.tchm-calc-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tchm-calc-section__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(123,97,255,0.4);
    color: #fff;
    font-size: 11px;
    flex-shrink: 0;
}

/* Tableau de calcul */
.tchm-calc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.tchm-calc-table td {
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.75);
    vertical-align: middle;
}

.tchm-calc-table td:last-child {
    text-align: right;
    white-space: nowrap;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.tchm-calc-table tr:last-child td { border-bottom: none; }

.tchm-calc-table tr.tchm-calc-total td {
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 13px;
}
.tchm-calc-table tr.tchm-calc-total--positive td:last-child { color: #69e090; }
.tchm-calc-table tr.tchm-calc-total--negative td:last-child { color: #f87171; }

.tchm-calc-note    { font-style: italic; color: rgba(255,255,255,0.4) !important; font-size: 11.5px !important; }
.tchm-calc-note-sm { font-size: 11px !important; color: rgba(255,255,255,0.35) !important; padding-left: 20px !important; }
.tchm-calc-warn    { color: #fbbf24 !important; }

/* ── Règle formule notice ────────────────────────────────────── */
.tchm-rule-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 167, 38, 0.3);
    background: rgba(255, 167, 38, 0.07);
    font-size: 12.5px;
}
.tchm-rule-notice__icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.tchm-rule-notice__title {
    display: block;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #ffa726;
    margin-bottom: 3px;
}
.tchm-rule-notice__body { color: rgba(255,255,255,0.75); line-height: 1.5; }

/* ── Règles personnages ─────────────────────────────────────── */
.tchm-char-rules { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.tchm-char-rule  { font-size: 12px; line-height: 1.45; color: rgba(255,255,255,.75); }
.tchm-char-rule--ok   { color: #a5d6a7; }
.tchm-char-rule--warn { color: #ffcc80; }
.tchm-char-rule--info { color: rgba(255,255,255,.55); font-style: italic; }
