/* Aperçus de l'espace client (boutique.heberghub.fr), recopiés du thème Paymenter 8B (Theme-HebergHub,
   views/components/hh/styles.blade.php). Suivent le thème du site : variables ci-dessous, basculées par
   html.dark / html[data-theme="dark"] (même logique que hh-header.css et home-r1.css). */
.hhm {
    --navy: #0A2342; --orange: #ff4800;
    --ink: #0A2342;          /* texte principal */
    --surface: #f3f4f6;      /* fond de la fenêtre */
    --panel: #ffffff;        /* barre, compteurs, tuiles, lignes, bandeau */
    --url-bg: #f3f4f6;
    --muted: #4b5563;
    --soft: #6b7280;
    --line: #eef0f3;
    --border: #e5e7eb;
    --dash: rgba(10,35,66,.15);
    --accent-bg: #0A2342;    /* tuile mise en avant : navy en clair, blanche en sombre */
    --accent-ink: #ffffff;
    --accent-line: rgba(255,255,255,.12);
    --shadow: 0 40px 80px -30px rgba(10,35,66,.45);
    --chip-bg: #e5e7eb; --chip: #6b7280;
    --chip-green-bg: #dcfce7; --chip-green: #15803d;
    --chip-orange-bg: #ffedd5; --chip-orange: #c2410c;
    --chip-blue-bg: #dbeafe; --chip-blue: #2563eb;
    --link: #c2410c;
    font-family: 'Poppins', sans-serif; color: var(--ink);
}
html.dark .hhm, html[data-theme="dark"] .hhm {
    --ink: #ffffff;
    --surface: #0A2342;
    --panel: #13294b;
    --url-bg: rgba(255,255,255,.08);
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --line: rgba(255,255,255,.10);
    --border: rgba(255,255,255,.12);
    --dash: rgba(255,255,255,.22);
    --accent-bg: #ffffff;
    --accent-ink: #0A2342;
    --accent-line: #eef0f3;
    --shadow: 0 40px 80px -30px rgba(0,0,0,.6);
    --chip-bg: rgba(255,255,255,.10); --chip: #cbd5e1;
    --chip-green-bg: rgba(34,197,94,.16); --chip-green: #4ade80;
    --chip-orange-bg: rgba(255,72,0,.18); --chip-orange: #fdba74;
    --chip-blue-bg: rgba(59,130,246,.20); --chip-blue: #93c5fd;
    --link: #ff7a45;
}
.hhm-window { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--border); }
.hhm-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.hhm-dots { display: flex; gap: 6px; } .hhm-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.hhm-url { flex: 1; min-width: 0; background: var(--url-bg); border-radius: 9999px; padding: 5px 14px; font-size: 12px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hhm-url b { color: var(--ink); font-weight: 500; }
.hhm-body { padding: 24px; container-type: inline-size; }
.hhm-eyebrow { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.hhm-title { margin: 0; font-weight: 900; letter-spacing: -.06em; font-size: clamp(26px, 7cqi, 44px); line-height: .95; }
.hhm-accent { color: var(--orange); }
.hhm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.hhm-counters { display: flex; gap: 8px; }
.hhm-counter { background: var(--panel); border-radius: 14px; padding: 10px 14px; }
.hhm-counter small { display: block; font-size: 11px; opacity: .8; }
.hhm-counter b { display: block; font-weight: 900; letter-spacing: -.06em; font-size: 22px; line-height: 1.1; }
.hhm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.hhm-tile { background: var(--panel); border-radius: 18px; padding: 18px; min-height: 150px; display: flex; flex-direction: column; border: 2px solid transparent; min-width: 0; }
.hhm-tile.is-selected { border-color: var(--orange); }
.hhm-tile.is-dark { background: var(--accent-bg); color: var(--accent-ink); --line: var(--accent-line); --ink: var(--accent-ink); }
.hhm-tile-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.hhm-tile-cat { font-size: 11px; opacity: .7; }
.hhm-tile-name { font-weight: 900; letter-spacing: -.06em; font-size: clamp(20px, 4.2cqi, 28px); line-height: 1; margin-top: 10px; overflow-wrap: anywhere; }
.hhm-tile-sub { font-size: 11px; opacity: .7; margin-top: 4px; }
.hhm-tile-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.hhm-tile-foot span { opacity: .6; } .hhm-tile.is-dark .hhm-tile-foot span { opacity: 1; }
.hhm-tile-foot b { font-weight: 600; white-space: nowrap; } .hhm-tile.is-dark .hhm-tile-foot b { color: var(--orange); }
.hhm-tile-new { align-items: center; justify-content: center; text-align: center; border: 2px dashed var(--dash); background: transparent; font-weight: 600; font-size: 13px; gap: 4px; }
.hhm-tile-new span { font-size: 28px; line-height: 1; color: var(--orange); }
.hhm-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 9999px; font-size: 10px; font-weight: 600; white-space: nowrap; background: var(--chip-bg); color: var(--chip); }
.hhm-chip i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.hhm-chip.is-green { background: var(--chip-green-bg); color: var(--chip-green); } .hhm-chip.is-orange { background: var(--chip-orange-bg); color: var(--chip-orange); } .hhm-chip.is-blue { background: var(--chip-blue-bg); color: var(--chip-blue); }
.hhm-band { background: var(--panel); border-radius: 18px; padding: 14px 18px; margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.hhm-band-kicker { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-right: 8px; }
.hhm-band small { color: var(--muted); }
.hhm-band a { font-weight: 600; white-space: nowrap; }
.hhm-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.hhm-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--panel); border-radius: 14px; padding: 12px 16px; border: 2px solid transparent; }
.hhm-row-title { font-weight: 700; font-size: 14px; }
.hhm-row-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.hhm-row-end { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hhm-row-amount { font-weight: 800; letter-spacing: -.03em; font-size: 15px; white-space: nowrap; }
/* Carte de paiement : navy dans les deux thèmes, liseré en sombre pour la détacher du fond */
.hhm-pay { background: var(--navy); color: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 30px 60px -30px rgba(10,35,66,.5); border: 1px solid transparent; }
html.dark .hhm-pay, html[data-theme="dark"] .hhm-pay { border-color: rgba(255,255,255,.12); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.hhm-pay-from { font-size: 12px; color: #cbd5e1; }
.hhm-pay-amount { display: block; font-weight: 900; letter-spacing: -.06em; font-size: 44px; line-height: 1; margin-top: 4px; }
.hhm-pay-sub { font-size: 12px; color: #cbd5e1; margin: 14px 0 0; }
.hhm-pay-label { display: block; font-size: 12px; color: #cbd5e1; margin-top: 14px; }
.hhm-select { margin-top: 6px; background: #fff; color: var(--navy); border-radius: 12px; padding: 10px 14px; font-size: 13px; display: flex; justify-content: space-between; }
.hhm-btn { display: flex; justify-content: center; align-items: center; margin-top: 16px; padding: 12px 20px; border-radius: 9999px; font-weight: 600; font-size: 14px; background: var(--orange); color: #fff; }
.hhm-btn.is-light { background: #f3f4f6; color: var(--navy); }
.hhm-note { font-size: 10px; font-style: italic; color: var(--muted); text-align: right; margin-top: 8px; }
.hhm-caption { margin-top: 12px; font-size: 13px; color: var(--soft); text-align: center; }
@container (max-width: 420px) { .hhm-tiles { grid-template-columns: minmax(0, 1fr); } }
/* Le mode sombre du site force la couleur des span/p/a en !important (styles.css, sélecteurs jusqu'à (0,6,1)) :
   l'aperçu garde ses couleurs via --c, avec une spécificité (0,7,1) qui passe devant. */
:root .hhm.hhm.hhm.hhm.hhm.hhm :is(span, p, b, small, i, div, a) { color: var(--c, inherit) !important; }
:root .hhm.hhm.hhm { color: var(--ink) !important; }
.hhm-accent, .hhm-band-kicker, .hhm-tile-new span { --c: var(--orange); }
.hhm-eyebrow, .hhm-band small, .hhm-row-sub, .hhm-note { --c: var(--muted); }
.hhm-url { --c: var(--muted); } .hhm-caption { --c: var(--soft); } .hhm-url b { --c: var(--ink); }
.hhm-chip { --c: var(--chip); } .hhm-chip.is-green { --c: var(--chip-green); } .hhm-chip.is-orange { --c: var(--chip-orange); } .hhm-chip.is-blue { --c: var(--chip-blue); }
.hhm-chip i { --c: inherit; }
.hhm-tile.is-dark { --c: var(--accent-ink); }
.hhm-pay { --c: #fff; }
.hhm-pay-from, .hhm-pay-sub, .hhm-pay-label { --c: #cbd5e1; }
.hhm-select, .hhm-select span, .hhm-btn.is-light { --c: var(--navy); }
.hhm-btn { --c: #fff; }
.hhm-tile.is-dark .hhm-tile-foot b { --c: var(--orange); }
.hhm-band a { --c: var(--link); }
