/* ==========================================================================
   Namarium — charte graphique v2 "Catalogue"
   Light premium : ivoire, encre, or laiton. Compact, éditorial, hairlines.
   Fraunces (display) / Inter (UI), auto-hébergées.
   ========================================================================== */

/* ---- Fonts (self-hosted, variable, latin subset) ---- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --bg: #faf7f0;
  --bg-2: #f2ecdf;
  --card: #ffffff;
  --card-warm: #fffef9;
  --ink: #1b1f33;
  --ink-strong: #12162a;
  --muted: #6e6a5c;
  --gold: #8a6d2b;
  --gold-bright: #c8a24b;
  --gold-soft: rgba(200, 162, 75, 0.13);
  --line: #e5dcc6;
  --line-strong: #d5c9a9;
  --footer-bg: #12162a;
  --footer-fg: #efeae0;
  --footer-muted: #9ba3bb;
  --footer-line: rgba(244, 239, 230, 0.09);
  --ink-card: #191e36;
  --gold-edge: rgba(200, 162, 75, 0.22);
  --ink-soft: #293047;
  --ink-soft-card: #333a56;
  --ink-soft-line: rgba(244, 239, 230, 0.13);
  --ink-soft-muted: #adb3c8;
  --radius: 12px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-soft: 0 8px 26px rgba(64, 51, 22, 0.07);
  --shadow-lift: 0 14px 34px rgba(64, 51, 22, 0.11);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset (lite) ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
html:focus-within {
  scroll-behavior: smooth;
}
body {
  font: 400 0.95rem/1.55 var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button,
input {
  font: inherit;
  color: inherit;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}
a {
  color: inherit;
}
::selection {
  background: var(--gold-bright);
  color: var(--ink-strong);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---- Layout ---- */
.container {
  width: min(1220px, 100% - 2.2rem);
  margin-inline: auto;
}
.band {
  padding-block: clamp(2.6rem, 4.6vw, 3.9rem);
}
.band--tint {
  background: var(--bg-2);
}
.band--ink {
  background: var(--ink-soft);
  color: var(--footer-fg);
  border-block: 1px solid var(--gold-edge);
}
.band--ink .kicker {
  color: var(--gold-bright);
}
.band--ink h2 {
  color: var(--footer-fg);
}
/* hairlines need one step more presence on the tinted paper */
.band--tint .faq-item,
.band--tint .editorial-points li {
  border-color: var(--line-strong);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--ink-strong);
  color: var(--bg);
  font: 600 0.85rem var(--font-ui);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 0;
}

/* ---- Type ---- */
.kicker {
  font: 600 0.72rem/1 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
h2 {
  font: 600 clamp(1.45rem, 2.5vw, 1.9rem) / 1.15 var(--font-display);
  letter-spacing: -0.008em;
  color: var(--ink-strong);
}
.gold-dot {
  color: var(--gold-bright);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font: 600 0.88rem/1 var(--font-ui);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.btn-ink {
  background: var(--ink);
  color: #faf7f0;
}
.btn-ink:hover {
  background: var(--ink-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.btn-paper {
  background: var(--bg);
  color: var(--ink-strong);
}
.btn-paper:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-sm {
  padding: 0.62rem 1.05rem;
  font-size: 0.84rem;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold);
  font: 600 0.86rem var(--font-ui);
  text-decoration: none;
}
.arrow-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s var(--ease);
}
.arrow-link:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 22, 42, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-edge);
  transition: box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}
.site-header.scrolled {
  background: rgba(18, 22, 42, 0.97);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--footer-fg);
}
.brand .mark {
  height: 28px;
  width: auto;
  flex: none;
}
.brand-name {
  font: 600 1.22rem/1 var(--font-display);
  transform: translateY(-1px);
}
.main-nav {
  display: flex;
  gap: 1.55rem;
  margin-left: auto;
}
.main-nav a {
  position: relative;
  color: var(--footer-muted);
  text-decoration: none;
  font: 500 0.88rem var(--font-ui);
  padding: 0.4rem 0;
  transition: color 0.18s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--footer-fg);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.search-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 34px;
  padding: 0 0.75rem;
  border-radius: 9px;
  border: 1px solid var(--footer-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--footer-muted);
  font: 500 0.82rem var(--font-ui);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.search-hint svg {
  width: 14px;
  height: 14px;
}
.search-hint kbd {
  font: 600 0.68rem var(--font-ui);
  border: 1px solid var(--footer-line);
  border-radius: 4px;
  padding: 0.08rem 0.34rem;
  background: transparent;
}
.search-hint:hover {
  color: var(--footer-fg);
  border-color: rgba(200, 162, 75, 0.45);
}

.burger {
  display: none;
  position: relative;
  z-index: 70;
  width: 40px;
  height: 40px;
  border: 1px solid var(--footer-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--footer-fg);
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}
.burger span:nth-child(1) {
  top: 15px;
}
.burger span:nth-child(2) {
  top: 23px;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  top: 19px;
  transform: rotate(-45deg);
}

/* Mobile menu — [hidden] must beat flex */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
  padding: 6rem 1.8rem 2.4rem;
  background: rgba(18, 22, 42, 0.99);
  animation: menuIn 0.24s var(--ease) both;
}
.mobile-menu[hidden] {
  display: none !important;
}
@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.mobile-menu nav a {
  font: 600 1.55rem var(--font-display);
  color: var(--footer-fg);
  text-decoration: none;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid var(--footer-line);
}
.mobile-menu .btn {
  align-self: flex-start;
}
.mobile-menu-note {
  margin-top: auto;
  color: var(--footer-muted);
  font-size: 0.83rem;
}

/* ==========================================================================
   Hero (compact, 2 colonnes + spotlight)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.4rem, 4.5vw, 3.6rem) clamp(2.2rem, 4vw, 3.2rem);
  background:
    radial-gradient(46% 60% at 88% -10%, var(--gold-soft), transparent 70%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(1.8rem, 4vw, 3.6rem);
  align-items: center;
}
.hero-title {
  margin-top: 0.85rem;
  font: 600 clamp(2.15rem, 3.9vw, 3.15rem) / 1.06 var(--font-display);
  letter-spacing: -0.014em;
  color: var(--ink-strong);
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
}
.hero-sub {
  margin-top: 0.85rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: min(560px, 100%);
  margin-top: 1.55rem;
  padding: 0.34rem 0.34rem 0.34rem 1.05rem;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.hero-search:focus-within {
  border-color: var(--gold);
  box-shadow: var(--shadow-soft), 0 0 0 3px var(--gold-soft);
}
.hero-search > svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex: none;
}
.hero-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.hero-search input::placeholder {
  color: #a09a88;
}
.hero-search input:focus {
  outline: none;
}
.search-kbd {
  flex: none;
  font: 600 0.68rem var(--font-ui);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.18rem 0.42rem;
  background: var(--bg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.05rem;
}
.chip {
  border: 1px solid var(--line);
  background: var(--card-warm);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: 500 0.8rem var(--font-ui);
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background 0.16s var(--ease);
}
.chip:hover {
  color: var(--ink-strong);
  border-color: var(--line-strong);
}
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #faf7f0;
}

/* Spotlight — curator's pick */
.spotlight {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.55rem 1.4rem;
  box-shadow: var(--shadow-lift);
}
.spotlight::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  pointer-events: none;
}
.spotlight > * {
  position: relative;
}
.spotlight-kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font: 600 0.68rem/1 var(--font-ui);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gold);
}
.spotlight-kicker svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.spotlight-name {
  margin-top: 0.95rem;
  font: 600 clamp(1.7rem, 2.6vw, 2.15rem) / 1.05 var(--font-display);
  color: var(--ink-strong);
  overflow-wrap: anywhere;
}
.spotlight-name .tld {
  color: var(--gold);
  font-weight: 400;
}
.spotlight-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.83rem;
}
.spotlight-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}
.spotlight-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
}
.spotlight-price {
  font: 600 1.32rem var(--font-display);
  color: var(--ink-strong);
}
.spotlight-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---- Assurance cards (ink band) ----
   Spacing lives on the section and INSIDE each card — never on the ul,
   whose padding is zeroed by the ul[role="list"] reset (higher specificity). */
.assurance {
  background: var(--ink-soft);
  border-block: 1px solid var(--gold-edge);
  padding-block: clamp(1.5rem, 2.4vw, 2.1rem);
}
.assurance-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin: 0;
}
.assurance-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1.15rem;
  background: var(--ink-soft-card);
  border: 1px solid var(--ink-soft-line);
  border-radius: var(--radius);
  min-width: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.assurance-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(200, 162, 75, 0.1);
  border: 1px solid rgba(200, 162, 75, 0.32);
  color: var(--gold-bright);
}
.assurance-icon svg {
  width: 19px;
  height: 19px;
}
.assurance-title {
  display: block;
  font: 600 0.89rem/1.25 var(--font-ui);
  color: var(--footer-fg);
}
.assurance-list p {
  color: var(--ink-soft-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  margin-top: 0.18rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}
.section-head .kicker {
  display: block;
  margin-bottom: 0.55rem;
}
.section-head p.lede {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 56ch;
}

/* ---- Featured domains (dense) ---- */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 0.85rem;
}
.domain-card a {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  height: 100%;
  padding: 1.05rem 1.15rem 0.95rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.domain-card a:hover {
  transform: translateY(-3px);
  border-color: var(--gold-bright);
  box-shadow: var(--shadow-lift);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.cat-tag {
  color: var(--muted);
  font: 500 0.73rem var(--font-ui);
  letter-spacing: 0.02em;
}
.tld-badge {
  font: 600 0.66rem var(--font-ui);
  letter-spacing: 0.09em;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(200, 162, 75, 0.32);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}
.domain-name {
  font: 600 1.28rem/1.12 var(--font-display);
  color: var(--ink-strong);
  overflow-wrap: anywhere;
}
.domain-name .tld {
  color: var(--muted);
  font-weight: 400;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.price {
  font: 600 0.98rem var(--font-ui);
  color: var(--ink-strong);
}
.details {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font: 500 0.8rem var(--font-ui);
  transition: color 0.18s var(--ease);
}
.details svg {
  width: 13px;
  height: 13px;
}
.domain-card a:hover .details {
  color: var(--gold);
}

.empty-state {
  margin-top: 1.1rem;
  padding: 1.9rem 1.4rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  background: var(--card-warm);
}
.empty-state[hidden] {
  display: none !important;
}

/* ---- TLD strip ---- */
.tld-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin-top: 1.5rem;
  padding: 0.85rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tld-strip .tld-pill {
  background: var(--card-warm);
}
.tld-strip-label {
  font: 600 0.78rem var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.3rem;
}
.tld-pill {
  font: 600 0.82rem var(--font-ui);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease),
    background 0.16s var(--ease);
}
.tld-pill:hover {
  border-color: var(--gold-bright);
  color: var(--gold);
}
.tld-strip .arrow-link {
  margin-left: auto;
}

/* ---- Categories (compact horizontal tiles) ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 0.85rem;
}
.cat-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  background: var(--ink-soft-card);
  border: 1px solid var(--ink-soft-line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.cat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 162, 75, 0.55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}
.cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(200, 162, 75, 0.1);
  border: 1px solid rgba(200, 162, 75, 0.32);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  flex: none;
}
.cat-icon svg {
  width: 18px;
  height: 18px;
}
.cat-card h3 {
  font: 600 1.02rem/1.2 var(--font-display);
  color: var(--footer-fg);
}
.cat-card p {
  color: var(--ink-soft-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  margin-top: 0.15rem;
}
.cat-arrow {
  margin-left: auto;
  align-self: center;
  color: rgba(173, 179, 200, 0.6);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}
.cat-arrow svg {
  width: 15px;
  height: 15px;
}
.cat-card:hover .cat-arrow {
  color: var(--gold-bright);
  transform: translateX(2px);
}

/* ---- Editorial (why a premium name) ---- */
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: start;
}
.pull-quote {
  position: relative;
  padding-left: 1.3rem;
  border-left: 3px solid var(--gold-bright);
  font: 500 clamp(1.35rem, 2.4vw, 1.8rem) / 1.3 var(--font-display);
  font-style: italic;
  color: var(--ink-strong);
  letter-spacing: -0.005em;
}
.pull-quote small {
  display: block;
  margin-top: 0.9rem;
  font: 600 0.72rem/1 var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--gold);
}
.editorial-points {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.editorial-points li {
  display: flex;
  gap: 0.95rem;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.editorial-points li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.point-num {
  font: italic 600 1.15rem/1.3 var(--font-display);
  color: var(--gold);
  flex: none;
}
.editorial-points h3 {
  font: 600 0.98rem var(--font-ui);
  color: var(--ink-strong);
}
.editorial-points p {
  color: var(--muted);
  font-size: 0.87rem;
  margin-top: 0.2rem;
}

/* ---- Process (condensed 4-step strip) ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.steps li {
  border-top: 1px solid var(--line-strong);
  padding-top: 1rem;
}
.step-num {
  display: block;
  font: italic 600 1.55rem/1 var(--font-display);
  color: var(--gold);
}
.steps h3 {
  font: 600 0.95rem var(--font-ui);
  color: var(--ink-strong);
  margin: 0.6rem 0 0.3rem;
}
.steps p {
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---- FAQ ---- */
.faq-wrap {
  max-width: 860px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.02rem 0.15rem;
  font: 600 1.02rem var(--font-display);
  color: var(--ink-strong);
  cursor: pointer;
  list-style: none;
  transition: color 0.16s var(--ease);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  color: var(--gold);
}
.faq-item summary::after {
  content: "+";
  font: 400 1.3rem/1 var(--font-display);
  color: var(--gold);
  flex: none;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 0.15rem 1.05rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 70ch;
}

/* ---- CTA (slim, mirrors the hero glow) ---- */
.cta {
  text-align: center;
  background: radial-gradient(44% 62% at 50% 114%, var(--gold-soft), transparent 72%),
    var(--bg);
}
.cta-title {
  font: 600 clamp(1.7rem, 3.2vw, 2.4rem) / 1.12 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  max-width: 24ch;
  margin-inline: auto;
}
.cta p {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

/* ==========================================================================
   Footer (encre — ancre sombre de la page)
   ========================================================================== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 3rem 0 1.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.4rem;
}
.footer-brand .brand {
  color: var(--footer-fg);
  margin-bottom: 0.85rem;
}
.footer-brand p {
  color: var(--footer-muted);
  font-size: 0.88rem;
  max-width: 30ch;
}
.site-footer h4 {
  font: 600 0.72rem var(--font-ui);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.9rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col a {
  color: var(--footer-muted);
  text-decoration: none;
  font-size: 0.87rem;
  transition: color 0.18s var(--ease);
}
.footer-col a:hover {
  color: var(--gold-bright);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem 2rem;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--footer-line);
  color: #6e7590;
  font-size: 0.79rem;
}

/* ==========================================================================
   Coming soon
   ========================================================================== */
.soon {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(46% 55% at 50% -10%, var(--gold-soft), transparent 72%),
    var(--bg);
}
.soon .mark {
  height: 56px;
  margin-bottom: 1.7rem;
}
.soon h1 {
  font: 600 clamp(1.8rem, 4.4vw, 2.7rem) / 1.12 var(--font-display);
  color: var(--ink-strong);
  max-width: 20ch;
}
.soon p {
  margin-top: 0.9rem;
  color: var(--muted);
  max-width: 48ch;
}
.soon .btn {
  margin-top: 1.8rem;
}

/* ==========================================================================
   Catalog (/domains)
   ========================================================================== */
.page-head {
  padding-block: clamp(2.2rem, 4vw, 3.2rem) clamp(1.6rem, 3vw, 2.4rem);
  background: radial-gradient(40% 75% at 85% -25%, var(--gold-soft), transparent 72%), var(--bg);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.15rem;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}
.breadcrumb a:hover {
  color: var(--gold);
}
.breadcrumb [aria-current] {
  color: var(--ink-strong);
  font-weight: 500;
}
.crumb-sep {
  color: var(--line-strong);
}
.page-title {
  font: 600 clamp(2rem, 3.6vw, 2.9rem) / 1.08 var(--font-display);
  letter-spacing: -0.012em;
  color: var(--ink-strong);
  margin-top: 0.8rem;
}
.page-sub {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.catalog {
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
}
.catalog-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}

/* Filters — sticky sidebar on desktop, full-screen sheet on mobile */
.filters {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 100px);
  overflow: auto;
  overscroll-behavior: contain;
}
.filters[hidden] {
  display: none !important;
}
.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filters-head h2 {
  font: 600 1.05rem var(--font-display);
  color: var(--ink-strong);
}
.filters-close {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 7px;
  padding: 0.32rem 0.62rem;
  font: 600 0.7rem var(--font-ui);
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: pointer;
}
.filters form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.filter-group {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.filter-group legend {
  font: 600 0.68rem var(--font-ui);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
  padding: 0;
}
.filter-search {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card-warm);
  font-size: 0.88rem;
  color: var(--ink);
}
.filter-search:focus,
.price-inputs input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.87rem;
  color: var(--ink);
  cursor: pointer;
  padding: 0.12rem 0;
}
.check-row input {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
  margin: 0;
  flex: none;
  cursor: pointer;
}
.check-row .count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.73rem;
}
.check-row.is-empty {
  opacity: 0.45;
  cursor: default;
}
.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.price-inputs input {
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card-warm);
  font-size: 0.87rem;
  color: var(--ink);
}
.price-sep {
  color: var(--muted);
}
.drawer-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.2rem;
}
.drawer-actions .btn {
  flex: 1;
}

/* Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  margin-bottom: 1.05rem;
}
.filters-toggle {
  display: none;
  position: relative;
  gap: 0.45rem;
}
.filters-toggle svg {
  width: 15px;
  height: 15px;
}
.filter-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 600 0.68rem/1 var(--font-ui);
}
.filter-badge[hidden] {
  display: none !important;
}
.result-count {
  font: 500 0.88rem var(--font-ui);
  color: var(--muted);
}
.result-count strong {
  color: var(--ink-strong);
  font-weight: 600;
}
.active-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(200, 162, 75, 0.4);
  background: var(--gold-soft);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font: 500 0.78rem var(--font-ui);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.pill i {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1;
}
.pill:hover {
  border-color: var(--gold);
  background: rgba(200, 162, 75, 0.2);
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  font: 500 0.82rem var(--font-ui);
  color: var(--muted);
}
.sort-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.5rem 2rem 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e6a5c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 0.75rem center;
  font: 500 0.84rem var(--font-ui);
  color: var(--ink);
  cursor: pointer;
}
.sort-wrap select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}
.new-badge {
  font: 600 0.62rem var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(200, 162, 75, 0.32);
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
}
.card-top .cat-tag {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* CTA strip */
.catalog-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
  padding: 1.7rem 1.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-soft);
}
.catalog-cta-inner h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}
.catalog-cta-inner p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.35rem;
  max-width: 52ch;
}

@media (max-width: 999px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filters-toggle {
    display: inline-flex;
  }
  .filters {
    position: fixed;
    inset: 0;
    z-index: 65;
    border-radius: 0;
    border: 0;
    max-height: none;
    top: 0;
    padding: 1.3rem 1.4rem 1.5rem;
    animation: menuIn 0.22s var(--ease) both;
  }
  .filters-close {
    display: inline-block;
  }
  .drawer-actions {
    position: sticky;
    bottom: 0;
    background: var(--card);
    padding-block: 0.9rem 0.2rem;
    margin-top: auto;
  }
}
@media (min-width: 1000px) {
  /* sidebar always visible on desktop, even before JS removes [hidden] */
  .filters,
  .filters[hidden] {
    display: flex !important;
  }
  .filters-close {
    display: none !important;
  }
}
@media (max-width: 560px) {
  .sort-wrap {
    margin-left: 0;
    width: 100%;
  }
  .sort-wrap select {
    flex: 1;
  }
  .catalog-cta-inner .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Domain detail (/domains/<name>)
   ========================================================================== */
.detail-hero {
  padding-block: clamp(1.5rem, 2.6vw, 2.2rem) clamp(2.4rem, 4.5vw, 3.6rem);
}
.detail-hero .breadcrumb {
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.detail-hero .breadcrumb a {
  color: var(--ink-soft-muted);
}
.detail-hero .breadcrumb a:hover {
  color: var(--gold-bright);
}
.detail-hero .breadcrumb [aria-current] {
  color: var(--footer-fg);
}
.detail-hero .crumb-sep {
  color: rgba(244, 239, 230, 0.25);
}
.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
.detail-name {
  margin-top: 0.9rem;
  font: 600 clamp(2.6rem, 5.4vw, 4.1rem) / 1.04 var(--font-display);
  letter-spacing: -0.015em;
  color: var(--footer-fg);
  overflow-wrap: anywhere;
}
.detail-name .tld {
  color: var(--gold-bright);
  font-weight: 400;
}
.detail-pitch {
  margin-top: 1rem;
  font-size: 1.04rem;
  color: var(--ink-soft-muted);
  max-width: 52ch;
}
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
  border-block: 1px solid var(--ink-soft-line);
}
.stat {
  padding: 1rem 1.8rem 1.05rem 1.6rem;
}
.stat:first-child {
  padding-left: 0.2rem;
}
.stat + .stat {
  border-left: 1px solid var(--ink-soft-line);
}
.stat-v {
  display: block;
  font: 600 1.3rem/1 var(--font-display);
  color: var(--footer-fg);
}
.stat-l {
  display: block;
  margin-top: 0.4rem;
  font: 600 0.63rem var(--font-ui);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft-muted);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.value-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: 0 3px 12px rgba(64, 51, 22, 0.04);
}
.value-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  border: 1px solid rgba(200, 162, 75, 0.3);
  color: var(--gold);
}
.value-icon svg {
  width: 18px;
  height: 18px;
}
.value-grid strong {
  display: block;
  font: 600 0.9rem/1.25 var(--font-ui);
  color: var(--ink-strong);
}
.value-grid p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  margin-top: 0.2rem;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4.5vw, 3.8rem);
  align-items: start;
}
.process-title {
  margin: 0.6rem 0 1.3rem;
}
.process-cta {
  margin-top: 1.35rem;
}

.buy-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem 1.6rem 1.45rem;
  box-shadow: var(--shadow-lift);
}
.buy-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  pointer-events: none;
}
.buy-card > * {
  position: relative;
}
.buy-price {
  font: 600 2.35rem/1 var(--font-display);
  color: var(--ink-strong);
  margin-top: 0.95rem;
}
.buy-note {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.buy-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.buy-actions .btn {
  width: 100%;
}
.buy-trust {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.buy-trust li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.83rem;
  color: var(--muted);
}
.buy-trust svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex: none;
  margin-top: 0.12rem;
}
.buy-trust a {
  color: var(--gold);
  text-decoration: none;
}
.buy-trust a:hover {
  text-decoration: underline;
}
.copy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 0.8rem var(--font-ui);
  cursor: pointer;
  padding: 0.2rem 0;
  transition: color 0.16s var(--ease);
}
.copy-link:hover {
  color: var(--gold);
}
.copy-link svg {
  width: 14px;
  height: 14px;
}
.similar-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.mobile-buy {
  display: none;
}

@media (max-width: 960px) {
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .mobile-buy {
    position: sticky;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.2rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 254, 249, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: var(--shadow-lift);
  }
  .mobile-buy-price {
    font: 600 1.3rem var(--font-display);
    color: var(--ink-strong);
  }
}
@media (max-width: 640px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
  .stat {
    padding-inline: 1.1rem;
  }
  .stat-v {
    font-size: 1.12rem;
  }
}

/* ==========================================================================
   Ticket desk (/contact)
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 2.2rem;
  align-items: start;
}
.ticket-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: var(--shadow-soft);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.field-label {
  font: 600 0.8rem var(--font-ui);
  color: var(--ink-strong);
}
.field-label em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.input,
.select {
  width: 100%;
  padding: 0.68rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-warm);
  font: 400 0.92rem var(--font-ui);
  color: var(--ink);
}
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
textarea.input {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e6a5c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-errors {
  border: 1px solid rgba(176, 64, 44, 0.4);
  background: rgba(176, 64, 44, 0.07);
  color: #8c3a2b;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.form-note {
  color: var(--muted);
  font-size: 0.78rem;
  max-width: 46ch;
}
.contact-side {
  position: sticky;
  top: 86px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.contact-side h2 {
  font-size: 1.12rem;
  margin-bottom: 1rem;
}
.contact-side .buy-trust {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.ticket-done {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ticket-done-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gold-soft);
  border: 1px solid rgba(200, 162, 75, 0.35);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.ticket-done-icon svg {
  width: 26px;
  height: 26px;
}
.ticket-done h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.ticket-done p {
  color: var(--muted);
  margin-top: 0.6rem;
  max-width: 52ch;
}
.ticket-done .cta-actions {
  margin-top: 1.7rem;
}
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-side {
    position: static;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Search overlay (command palette)
   ========================================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 13vh 1rem 2rem;
  background: rgba(18, 22, 42, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: overlayIn 0.18s var(--ease) both;
}
.search-overlay[hidden] {
  display: none !important;
}
@keyframes overlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.overlay-panel {
  width: min(620px, 100%);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(18, 22, 42, 0.28);
  overflow: hidden;
  animation: panelIn 0.2s var(--ease) both;
}
@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.overlay-input-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.overlay-input-row > svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex: none;
}
.overlay-input-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
  color: var(--ink);
}
.overlay-input-row input::placeholder {
  color: #a09a88;
}
.overlay-input-row input:focus {
  outline: none;
}
.overlay-close {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 6px;
  padding: 0.32rem 0.5rem;
  cursor: pointer;
  color: var(--muted);
  font: 600 0.66rem/1 var(--font-ui);
  letter-spacing: 0.06em;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.overlay-close:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.overlay-body {
  max-height: min(54vh, 470px);
  overflow-y: auto;
  padding: 0.8rem 0.6rem 1rem;
}
.overlay-label {
  font: 600 0.68rem var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0.6rem 0.55rem;
}
.overlay-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.62rem 0.7rem;
  border-radius: 9px;
  text-decoration: none;
}
.overlay-row + .overlay-row {
  margin-top: 2px;
}
.overlay-name {
  font: 600 1.06rem var(--font-display);
  color: var(--ink-strong);
  overflow-wrap: anywhere;
}
.overlay-name .tld {
  color: var(--muted);
  font-weight: 400;
}
.overlay-meta {
  color: var(--muted);
  font-size: 0.78rem;
}
.overlay-price {
  margin-left: auto;
  font: 600 0.85rem var(--font-ui);
  color: var(--ink-strong);
  flex: none;
}
.overlay-row:hover,
.overlay-row.is-selected {
  background: var(--gold-soft);
}
.overlay-row.is-selected .overlay-meta {
  color: var(--gold);
}
.overlay-empty {
  padding: 1rem 0.7rem 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.overlay-empty a {
  color: var(--gold);
}
.overlay-quick {
  padding-top: 0.4rem;
}
.overlay-quick nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0 0.6rem;
}
.overlay-quick a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink);
  font: 500 0.86rem var(--font-ui);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.overlay-quick a svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex: none;
}
.overlay-quick a:hover {
  border-color: var(--gold-bright);
  color: var(--gold);
}
.overlay-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.85rem 0.6rem 0;
  padding: 0.72rem;
  border-top: 1px solid var(--line);
  color: var(--gold);
  font: 600 0.86rem var(--font-ui);
  text-decoration: none;
}
.overlay-all svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s var(--ease);
}
.overlay-all:hover svg {
  transform: translateX(3px);
}
@media (max-width: 540px) {
  .search-overlay {
    padding-top: 6vh;
  }
  .overlay-quick nav {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Reveal (JS-gated)
   ========================================================================== */
html.js .reveal {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.5s var(--ease), translate 0.5s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.in {
  opacity: 1;
  translate: 0 0;
}
html.noanim .reveal {
  opacity: 1 !important;
  translate: none !important;
  transition: none !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 979px) {
  .main-nav,
  .header-cta {
    display: none;
  }
  .search-hint span,
  .search-hint kbd {
    display: none;
  }
  .search-hint {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }
  .burger {
    display: block;
  }
}
@media (min-width: 980px) {
  .mobile-menu {
    display: none !important;
  }
}
@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.9rem;
  }
  .spotlight {
    max-width: 480px;
  }
  .assurance-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.9rem;
  }
}
@media (max-width: 860px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
}
@media (max-width: 540px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .assurance-list {
    grid-template-columns: 1fr;
  }
  .search-kbd {
    display: none;
  }
  .hero-search .btn {
    padding: 0.72rem 1rem;
    font-size: 0.82rem;
  }
  .tld-strip .arrow-link {
    margin-left: 0;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  html.js .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }
  .mobile-menu {
    animation: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
