/*!
 * FranceHost — surcouche du thème WHMCS Twenty-One
 * Identité visuelle reprise de rtlb.net : indigo (primary), ardoise (secondary), sarcelle (accent), Inter.
 */

:root {
    /* Identité RootLab (rootlab.fr) : bleu #2563eb, fond crème, bordures sable, Space Grotesk pour les titres */
    --fh-p50: #eff6ff; --fh-p100: #dbeafe; --fh-p200: #bfdbfe; --fh-p300: #93c5fd; --fh-p400: #60a5fa;
    --fh-p500: #3b82f6; --fh-p600: #2563eb; --fh-p700: #1d4ed8; --fh-p800: #1e40af; --fh-p900: #1e3a8a;
    --fh-s50: #f5f4f0; --fh-s100: #eeece6; --fh-s200: #e8e5de; --fh-s300: #d6d2c8; --fh-s400: #a8a399;
    --fh-s500: #888888; --fh-s600: #555555; --fh-s700: #3d3d3d; --fh-s800: #2a2a2a; --fh-s900: #1a1a1a;
    --fh-a100: #dcfce7; --fh-a300: #86efac; --fh-a600: #15803d; --fh-a700: #166534;
    --fh-w50: #fffbeb; --fh-w300: #fcd34d; --fh-w800: #92400e;
    --fh-radius: .375rem;
    --fh-radius-lg: .5rem;
    --fh-shadow-soft: none;
    --fh-shadow-strong: 0 12px 32px -16px rgba(26, 26, 26, .35);
    --fh-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --fh-font-title: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --fh-gradient: var(--fh-s900);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body, body.primary-bg-color {
    font-family: var(--fh-font);
    background: var(--fh-s50);
    color: var(--fh-s800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--fh-font-title);
    color: var(--fh-s900);
    font-weight: 700;
    letter-spacing: -.02em;
}
a { color: var(--fh-p600); }
a:hover, a:focus { color: var(--fh-p700); }
:focus-visible { outline: 2px solid var(--fh-p500); outline-offset: 2px; }
::selection { background: var(--fh-p200); color: var(--fh-s900); }
.text-muted { color: var(--fh-s500) !important; }
.text-primary { color: var(--fh-p600) !important; }
.bg-primary { background-color: var(--fh-p600) !important; }

.fh-skip {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    padding: .5rem 1rem; border-radius: .5rem; background: var(--fh-p600); color: #fff;
}
.fh-skip:focus { top: 1rem; color: #fff; }

/* ---------- Composants Bootstrap ---------- */
.btn { border-radius: var(--fh-radius); font-weight: 500; transition: background-color .2s, border-color .2s, box-shadow .2s, color .2s; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1rem; }
.btn-primary, .btn-primary:disabled, .btn-primary.disabled { background: var(--fh-p600); border-color: var(--fh-p600); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active {
    background: var(--fh-p700); border-color: var(--fh-p700); color: #fff;
}
.btn-outline-primary { color: var(--fh-p600); border-color: var(--fh-p300); }
.btn-outline-primary:hover, .btn-outline-primary:not(:disabled):not(.disabled):active { background: var(--fh-p600); border-color: var(--fh-p600); color: #fff; }
.btn-success { background: var(--fh-a600); border-color: var(--fh-a600); }
.btn-success:hover, .btn-success:focus, .btn-success:not(:disabled):not(.disabled):active { background: var(--fh-a700); border-color: var(--fh-a700); }
.btn-default { background: #fff; border: 1px solid var(--fh-s200); color: var(--fh-s700); }
.btn-default:hover, .btn-default:focus { background: var(--fh-s100); border-color: var(--fh-s300); color: var(--fh-s900); }
.btn-link { color: var(--fh-p600); }

.form-control, .custom-select { border-radius: var(--fh-radius); border-color: var(--fh-s200); color: var(--fh-s800); }
.form-control:focus, .custom-select:focus { border-color: var(--fh-p400); box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .18); }
.input-group-text { background: var(--fh-s50); border-color: var(--fh-s200); color: var(--fh-s500); }

.card { border: 1px solid var(--fh-s100); border-radius: var(--fh-radius); box-shadow: var(--fh-shadow-soft); }
.card-header, .card-footer { background: var(--fh-s50); border-color: var(--fh-s100); }
.card-header:first-child { border-radius: var(--fh-radius) var(--fh-radius) 0 0; }
.card-footer:last-child { border-radius: 0 0 var(--fh-radius) var(--fh-radius); }

.badge-info, .badge-primary { background: var(--fh-p600); }
.list-group-item.active, .sidebar .list-group-item.active { background: var(--fh-p600); border-color: var(--fh-p600); color: #fff; }
.sidebar .list-group-item:hover { color: var(--fh-p700); }
.page-item.active .page-link { background: var(--fh-p600); border-color: var(--fh-p600); }
.page-link { color: var(--fh-p600); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--fh-p600); }
.nav-tabs .nav-link.active { color: var(--fh-p700); }
.alert { border-radius: var(--fh-radius); }
.table thead th { border-bottom-width: 1px; color: var(--fh-s600); font-weight: 600; }
.dropdown-menu { border: 1px solid var(--fh-s100); border-radius: var(--fh-radius-lg); box-shadow: 0 12px 24px -12px rgba(26,26,26,.25); padding: .4rem; }
.dropdown-item { border-radius: var(--fh-radius); color: var(--fh-s700); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--fh-s100); color: var(--fh-s900); }
.dropdown-item.active, .dropdown-item:active { background: var(--fh-p600); color: #fff; }

/* ---------- En-tête ---------- */
.fh-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--fh-s100);
}
.fh-topbar { background: var(--fh-s900); color: var(--fh-s300); font-size: .85rem; padding: .3rem 0; }
.fh-topbar .btn, .fh-topbar .input-group-text { color: var(--fh-s300); background: transparent; border: 0; font-size: .85rem; padding: .25rem .5rem; }
.fh-topbar .btn:hover { color: #fff; }
.fh-topbar .btn-active-client { color: #fff; font-weight: 600; }
.fh-topbar .btn-return-to-admin { color: var(--fh-w300); }

.fh-navbar { min-height: 80px; padding: .75rem 0; }
.fh-navbar > .container { flex-wrap: wrap; }
.fh-brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: 2rem; text-decoration: none !important; padding: 0; }
.fh-brand-logo { height: 40px; width: auto; }
.fh-brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: var(--fh-radius);
    background: var(--fh-p600); color: #fff; font-size: 1rem;
}
.fh-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.fh-wordmark { font-family: var(--fh-font-title); font-size: 1.35rem; font-weight: 500; color: var(--fh-s900); letter-spacing: -.02em; }
.fh-wordmark strong { font-weight: 800; color: var(--fh-p600); }
.fh-brand-by { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fh-s400); }

.fh-toolbar { display: flex; align-items: center; gap: .6rem; }
.fh-icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; padding: 0; border-radius: var(--fh-radius);
    color: var(--fh-s600); background: transparent; border: 1px solid transparent;
}
.fh-icon-btn:hover, .fh-icon-btn:focus { color: var(--fh-p600); background: var(--fh-p50); }
.fh-cart .badge { position: absolute; top: 2px; right: 0; font-size: .65rem; border-radius: 1rem; padding: .2em .45em; }
.fh-cta { align-items: center; padding: .55rem 1.1rem; }

.fh-menu > li > a {
    position: relative; display: inline-flex; align-items: center;
    padding: .5rem 0 !important; margin-right: 1.75rem;
    color: var(--fh-s600); font-weight: 500; text-decoration: none !important;
    transition: color .2s;
}
.fh-menu > li > a::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
    background: var(--fh-p500); transition: width .3s ease;
}
.fh-menu > li > a:hover, .fh-menu > li.active > a, .fh-menu > li.show > a { color: var(--fh-p600); }
.fh-menu > li > a:hover::after, .fh-menu > li.active > a::after { width: 100%; }
.fh-menu > li > a.dropdown-toggle::after { display: none; }
.fh-menu > li > a.dropdown-toggle::before {
    content: ''; order: 2; width: .42rem; height: .42rem; margin: -.25rem 0 0 .5rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .25s, margin .25s;
}
.fh-menu > li.show > a.dropdown-toggle::before { transform: rotate(-135deg); margin-top: .2rem; }
.fh-menu-secondary > li:last-child > a { margin-right: 0; }
.fh-menu .badge { background: var(--fh-p100); color: var(--fh-p800); margin-left: .25rem; }
.fh-menu .dropdown-menu { min-width: 240px; margin-top: .5rem; }
.fh-menu li.dropdown-item { padding: 0; background: none; }
.fh-menu li.dropdown-item > a.dropdown-item { display: block; padding: .6rem .8rem !important; }
.fh-mobile-cta { padding: .75rem 0 .25rem; }

@media (max-width: 1199.98px) {
    .fh-navbar .navbar-collapse { border-top: 1px solid var(--fh-s100); margin-top: .75rem; padding-top: .5rem; }
    .fh-menu > li > a { display: flex; margin: 0; padding: .7rem .75rem !important; border-radius: .5rem; }
    .fh-menu > li > a:hover { background: var(--fh-s50); }
    .fh-menu > li > a::after { display: none; }
    .fh-menu > li > a.dropdown-toggle::before { margin-left: auto; }
    .fh-menu .dropdown-menu { box-shadow: none; border: 0; margin: 0 0 .25rem .75rem; padding: 0; }
}
@media (max-width: 575.98px) {
    .fh-wordmark { font-size: 1.15rem; }
    .fh-brand { margin-right: .5rem; }
}

.fh-breadcrumb, .master-breadcrumb { background: transparent; border: 0; }
.fh-breadcrumb .breadcrumb { background: transparent; padding: 1.25rem 0 0; margin: 0; font-size: .875rem; }
.fh-breadcrumb .breadcrumb-item a { color: var(--fh-s500); }
.fh-breadcrumb .breadcrumb-item.active { color: var(--fh-s800); font-weight: 500; }

#main-body { padding: 2rem 0 4rem; background: transparent; }

/* ---------- Éléments partagés ---------- */
.fh-pill {
    display: inline-block; margin-bottom: .75rem;
    color: var(--fh-p600); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.fh-pill-light { color: var(--fh-p400); }
.fh-gradient-text { color: var(--fh-p600); }
.fh-icon-tile {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 36px; height: 36px; border-radius: var(--fh-radius);
    background: transparent; color: var(--fh-p600); font-size: 1.1rem; border: 1px solid var(--fh-s200);
}
.fh-icon-tile-accent { background: var(--fh-a100); color: var(--fh-a700); }
.fh-link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.fh-link-arrow i { transition: transform .2s; }
.fh-link-arrow:hover i { transform: translateX(3px); }

/* ---------- Accueil : hero ---------- */
.fh-hero { position: relative; overflow: hidden; background: var(--fh-s900); color: #fff; padding: 4.5rem 0 3rem; border-bottom: 1px solid var(--fh-s800); }
.fh-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.fh-hero .container { position: relative; }
.fh-hero-title { font-family: var(--fh-font-title); color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 1.25rem; }
.fh-hl { color: inherit; }
.fh-hero-lead { max-width: 32rem; font-size: 1.08rem; line-height: 1.65; color: var(--fh-s300); margin-bottom: 2rem; }
.fh-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.fh-btn-white { background: var(--fh-p600); color: #fff; border: 1px solid var(--fh-p600); }
.fh-btn-white:hover, .fh-btn-white:focus { background: var(--fh-p500); color: #fff; }
.fh-btn-ghost { background: transparent; color: #fff; border: 1px solid var(--fh-s600); }
.fh-btn-ghost:hover, .fh-btn-ghost:focus { background: var(--fh-s800); color: #fff; border-color: var(--fh-s500); }

.fh-domain-card { background: #fff; color: var(--fh-s800); border-radius: var(--fh-radius); padding: 1.75rem; }
.fh-domain-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.fh-domain-card .form-control-lg { font-size: 1.05rem; border-radius: var(--fh-radius); }
.fh-domain-actions { display: flex; gap: .75rem; margin: 1rem 0; }
.fh-domain-actions .btn { flex: 1; }
.fh-tlds { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; padding: 0; margin: 0 0 1rem; }
.fh-tlds li { display: flex; flex-direction: column; padding: .6rem .8rem; border-radius: var(--fh-radius); background: var(--fh-s50); border: 1px solid var(--fh-s100); font-size: .8rem; color: var(--fh-s500); }
.fh-tlds strong { color: var(--fh-p700); font-size: 1rem; }
.fh-hero-visual { display: flex; align-items: center; justify-content: center; min-height: 280px; border-radius: var(--fh-radius-lg); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-size: 7rem; color: rgba(255, 255, 255, .7); }

.fh-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3.5rem; border-top: 1px solid var(--fh-s800); }
.fh-stat { padding: 1.25rem 1.25rem 0 0; }
.fh-stat + .fh-stat { padding-left: 1.25rem; border-left: 1px solid var(--fh-s800); }
.fh-stat-value { margin: 0; font-size: 1.05rem; font-weight: 600; color: #fff; }
.fh-stat-label { margin: .2rem 0 0; color: var(--fh-s400); font-size: .88rem; }
@media (max-width: 767.98px) {
    .fh-hero { padding: 3.5rem 0 2.5rem; }
    .fh-stats { grid-template-columns: repeat(2, 1fr); margin-top: 2.5rem; }
    .fh-stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .fh-domain-card { padding: 1.5rem; }
    .fh-domain-actions { flex-direction: column; }
}

/* ---------- Accueil : sections ---------- */
.fh-tpl-homepage #main-body { padding-top: 1rem; }
.fh-section { padding: 3.5rem 0 1.5rem; }
.fh-section-head { max-width: 40rem; margin: 0 0 1.75rem; }
.fh-section-title { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 700; margin-bottom: .4rem; }
.fh-section-lead { font-size: 1rem; color: var(--fh-s600); margin: 0; }

.fh-card {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 1.5rem; background: #fff; border: 1px solid var(--fh-s200);
    border-radius: var(--fh-radius);
}
.fh-card-hover { transition: border-color .2s ease; }
.fh-card-hover:hover { border-color: var(--fh-p300); }
.fh-card-title { font-family: var(--fh-font-title); font-size: 1.1rem; font-weight: 700; margin: 1rem 0 .4rem; }
.fh-card-text { color: var(--fh-s600); line-height: 1.6; margin-bottom: 1.25rem; font-size: .95rem; }
.fh-card .btn-block { margin-top: auto; }

.fh-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.fh-quick {
    display: flex; flex-direction: column; align-items: center; gap: .8rem;
    padding: 1.6rem 1rem; text-align: center;
    background: #fff; border: 1px solid var(--fh-s200); border-radius: var(--fh-radius);
    color: var(--fh-s700); font-weight: 500; text-decoration: none !important;
    transition: border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.fh-quick i { font-size: 1.5rem; color: var(--fh-p600); }
.fh-quick:hover { border-color: var(--fh-p300); color: var(--fh-p700); }

.fh-cta-band {
    margin: 3.5rem 0 0; padding: 3.5rem 1.5rem; text-align: center;
    border-radius: var(--fh-radius); background: var(--fh-s900); color: #fff;
}
.fh-cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 700; margin-bottom: 1.5rem; }
.fh-cta-sub { margin-top: .4rem; font-size: 1rem; font-weight: 400; color: var(--fh-s400); }

/* ---------- Pied de page ---------- */
.fh-footer { background: var(--fh-s900); color: var(--fh-s300); padding: 4rem 0 2rem; margin: 0; }
.fh-footer .fh-wordmark { color: #fff; }
.fh-footer .fh-brand-by { color: var(--fh-s400); }
.fh-footer-text { margin: 1.25rem 0 1.5rem; max-width: 22rem; line-height: 1.7; }
.fh-footer-title { color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2rem; }
.fh-footer-links, .fh-footer-contact, .fh-social { list-style: none; padding: 0; margin: 0; }
.fh-footer-links li { margin-bottom: .8rem; }
.fh-footer a { color: var(--fh-s300); transition: color .2s; }
.fh-footer a:hover, .fh-footer a:focus { color: #fff; text-decoration: none; }
.fh-footer-contact li { display: flex; gap: .8rem; margin-bottom: 1rem; line-height: 1.55; }
.fh-footer-contact i { color: var(--fh-p400); margin-top: .25rem; width: 1rem; text-align: center; }
.fh-social { display: flex; gap: .75rem; }
.fh-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--fh-radius); background: rgba(255, 255, 255, .06); color: var(--fh-s400); }
.fh-social a:hover { background: var(--fh-p600); color: #fff; }
.fh-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--fh-s700); color: var(--fh-s400); font-size: .9rem; }
.fh-locale-btn { color: var(--fh-s300); background: rgba(255, 255, 255, .06); border: 1px solid var(--fh-s700); font-size: .85rem; }
.fh-locale-btn:hover { color: #fff; border-color: var(--fh-s500); }
.fh-locale-btn .iti-flag { display: inline-block; vertical-align: middle; margin-right: .35rem; }

/* ---------- Pages légales ---------- */
.fh-legal-hero { padding: 1.5rem 0 2rem; }
.fh-legal-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: .4rem; }
.fh-legal-hero p { color: var(--fh-s500); margin: 0; }
.fh-legal-nav { position: sticky; top: 104px; padding: 1.25rem; background: #fff; border: 1px solid var(--fh-s100); border-radius: var(--fh-radius); box-shadow: var(--fh-shadow-soft); }
.fh-legal-nav-title { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fh-s400); margin-bottom: .75rem; }
.fh-legal-nav ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.fh-legal-nav li a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: .5rem; color: var(--fh-s600); font-weight: 500; font-size: .93rem; }
.fh-legal-nav li a i { color: var(--fh-s400); }
.fh-legal-nav li a:hover { background: var(--fh-s50); color: var(--fh-s900); text-decoration: none; }
.fh-legal-nav li a.active { background: var(--fh-s50); color: var(--fh-s900); box-shadow: inset 2px 0 0 var(--fh-p600); }
.fh-legal-nav li a.active i { color: var(--fh-p600); }
.fh-legal-nav-help { padding-top: 1rem; border-top: 1px solid var(--fh-s100); font-size: .88rem; color: var(--fh-s600); }

.fh-legal-body { padding: 2.5rem; background: #fff; border: 1px solid var(--fh-s100); border-radius: var(--fh-radius); box-shadow: var(--fh-shadow-soft); color: var(--fh-s700); line-height: 1.8; }
.fh-legal-intro { font-size: 1.05rem; color: var(--fh-s600); padding-bottom: 1.5rem; margin-bottom: .5rem; border-bottom: 1px solid var(--fh-s100); }
.fh-legal-section { padding: 1.75rem 0; border-bottom: 1px solid var(--fh-s100); scroll-margin-top: 110px; }
.fh-legal-section:last-child { border-bottom: 0; padding-bottom: 0; }
.fh-legal-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.fh-legal-section p:last-child, .fh-legal-section ul:last-child { margin-bottom: 0; }
.fh-legal-section ul { padding-left: 1.2rem; }
.fh-legal-section li { margin-bottom: .4rem; }
.fh-legal-section li::marker { color: var(--fh-p500); }
.fh-dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: .6rem 1.5rem; margin: 0; }
.fh-dl dt { color: var(--fh-s400); font-weight: 500; }
.fh-dl dd { margin: 0; color: var(--fh-s800); }
@media (max-width: 575.98px) { .fh-dl { grid-template-columns: 1fr; gap: 0; } .fh-dl dd { margin-bottom: .75rem; } }

.fh-legal-toc { padding: 1.25rem 1.5rem; margin-bottom: 1rem; background: var(--fh-s50); border: 1px solid var(--fh-s100); border-radius: var(--fh-radius-lg); }
.fh-legal-toc-title { font-weight: 600; color: var(--fh-s900); margin-bottom: .5rem; }
.fh-legal-toc ol { columns: 2; column-gap: 2rem; margin: 0; padding-left: 1.3rem; font-size: .92rem; }
.fh-legal-toc li { margin-bottom: .25rem; break-inside: avoid; }
@media (max-width: 767.98px) { .fh-legal-toc ol { columns: 1; } .fh-legal-body { padding: 1.5rem; } }

.fh-legal-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; margin-bottom: 1rem; border-radius: var(--fh-radius-lg); background: var(--fh-p50); border: 1px solid var(--fh-p100); }
.fh-table { font-size: .92rem; margin: 0; }
.fh-table th { background: var(--fh-s50); }
.fh-table td, .fh-table th { padding: .75rem; vertical-align: top; }
.fh-table code { color: var(--fh-p700); background: var(--fh-p50); padding: .1rem .35rem; border-radius: .3rem; }
.fh-todo { background: var(--fh-w50); border: 1px dashed var(--fh-w300); color: var(--fh-w800); padding: .05rem .4rem; border-radius: .3rem; font-weight: 600; }

/* ---------- Cookies ---------- */
.fh-cookie-banner {
    position: fixed; z-index: 1080; left: 1rem; right: 1rem; bottom: 1rem;
    max-width: 880px; margin: 0 auto; padding: 1.25rem 1.5rem;
    background: #fff; border: 1px solid var(--fh-s200); border-radius: var(--fh-radius);
    box-shadow: 0 8px 30px -10px rgba(15, 23, 42, .25);
}
.fh-cookie-banner[hidden], .fh-cookie-modal[hidden] { display: none !important; }
.fh-cookie-body { display: block; }
.fh-cookie-body .fh-icon-tile { display: none; }
.fh-cookie-title { font-weight: 700; color: var(--fh-s900); margin: 0 0 .35rem; font-size: 1.05rem; }
.fh-cookie-text { margin: 0; color: var(--fh-s600); font-size: .92rem; line-height: 1.6; padding-right: 7rem; }
.fh-cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1.1rem; }
.fh-cookie-skip { position: absolute; top: .9rem; right: 1rem; background: none; border: 0; padding: .2rem; font-size: .8rem; color: var(--fh-s500); text-decoration: underline; cursor: pointer; }
.fh-cookie-skip:hover { color: var(--fh-s900); }
@media (max-width: 575.98px) {
    .fh-cookie-banner { left: .5rem; right: .5rem; bottom: .5rem; padding: 2.5rem 1.1rem 1.1rem; }
    .fh-cookie-body .fh-icon-tile { display: none; }
    .fh-cookie-text { padding-right: 0; }
    .fh-cookie-actions .btn { flex: 1 1 100%; }
}

.fh-cookie-modal { position: fixed; inset: 0; z-index: 1090; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(15, 23, 42, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.fh-cookie-dialog { width: 100%; max-width: 560px; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; background: #fff; border-radius: var(--fh-radius-lg); box-shadow: var(--fh-shadow-strong); outline: 0; animation: fhFadeIn .25s ease-out; }
.fh-cookie-dialog-head, .fh-cookie-dialog-foot { padding: 1.1rem 1.5rem; display: flex; align-items: center; }
.fh-cookie-dialog-head { justify-content: space-between; border-bottom: 1px solid var(--fh-s100); }
.fh-cookie-dialog-body { padding: 1.25rem 1.5rem; overflow-y: auto; }
.fh-cookie-dialog-foot { flex-wrap: wrap; justify-content: flex-end; gap: .6rem; border-top: 1px solid var(--fh-s100); }
.fh-cookie-cat { padding: 1rem 0; border-top: 1px solid var(--fh-s100); }
.fh-cookie-cat-head { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.fh-cookie-cat-title { margin: 0 0 .25rem; font-weight: 600; color: var(--fh-s900); }
.fh-cookie-cat-title label { margin: 0; cursor: pointer; }
.fh-cookie-cat-desc { margin: 0; font-size: .875rem; color: var(--fh-s500); }
.fh-cookie-always { flex: none; font-size: .78rem; font-weight: 600; color: var(--fh-s600); background: var(--fh-s100); padding: .25rem .6rem; border-radius: var(--fh-radius); white-space: nowrap; }
.fh-cookie-lock, .fh-cookie-lock body { overflow: hidden; }

.fh-switch { position: relative; flex: none; width: 46px; height: 26px; margin: 0; cursor: pointer; }
.fh-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fh-switch-slider { position: absolute; inset: 0; border-radius: 999px; background: var(--fh-s300); transition: background .2s; pointer-events: none; }
.fh-switch-slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.fh-switch input:checked + .fh-switch-slider { background: var(--fh-p600); }
.fh-switch input:checked + .fh-switch-slider::after { transform: translateX(20px); }
.fh-switch input:focus-visible + .fh-switch-slider { box-shadow: 0 0 0 3px rgba(37, 99, 235, .35); }

@keyframes fhSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fhFadeIn { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
