/* ================================================
   FASTPANEL DOMAINES — Design professionnel v2
   Inspiré Gandi / Porkbun — propre, sobre, épuré
   Règle permanente : aucun texte visible < 0.8rem
   ================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --brand:      #4fc3f7;
    --brand-dark: #0284c7;
    --brand-deep: #01579b;
    --green:      #22c55e;
    --green-dark: #16a34a;
    --red:        #f87171;
    --orange:     #f59e0b;

    /* Fond solide — pas de transparence */
    --bg-hero:    #060c1a;
    --bg-alt:     #0b1424;
    --bg-card:    #0e1830;
    --bg-card-hov:#121f38;
    --bg-table-hd:#0a1320;
    --bg-table-row:#0c1628;
    --bg-table-alt:#0e1a2e;

    --text:       #e8f4fd;
    --text-muted: rgba(232, 244, 253, 0.65);
    --text-dim:   rgba(232, 244, 253, 0.38);

    --border:     #1a2d45;
    --border-brand: rgba(79, 195, 247, 0.35);

    --r-sm:  6px;
    --r:     10px;
    --r-lg:  14px;
    --r-xl:  18px;
    --r-full:9999px;
    --ease:  cubic-bezier(0.4, 0, 0.2, 1);
    --t:     all 0.2s var(--ease);

    /* Échelle typographique — valeurs px fixes, pas de rem/em */
    --fs-xs:  13px;
    --fs-sm:  14px;
    --fs-md:  15px;
    --fs-lg:  16px;
    --fs-xl:  18px;
}

.dom-page {
    background: var(--bg-hero);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    /* Reset explicite — écrase Bootstrap 3 (14px) et tout thème parent */
    font-size: 16px !important;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Tous les descendants héritent la bonne base */
.dom-page *, .dom-page *::before, .dom-page *::after {
    box-sizing: border-box;
}

/* ================================
   HERO — épuré, pas d'animations
   ================================ */
.dom-hero {
    background: var(--bg-hero);
    padding: 100px 24px 72px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

/* Glow central subtil */
.dom-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 800px; height: 300px;
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 195, 247, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.dom-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

/* Eyebrow */
.dom-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 22px;
    opacity: 0.85;
}

.dom-eyebrow::before,
.dom-eyebrow::after {
    content: '';
    display: block;
    height: 1px;
    width: 32px;
    background: var(--brand);
    opacity: 0.4;
}

/* Titre */
.dom-title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 0 0 16px;
}

.dom-title .accent {
    color: var(--brand);
}

/* Sous-titre */
.dom-sub {
    font-size: clamp(16px, 1.8vw, 18px);
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.65;
}

/* ---- Barre de recherche ---- */
.dom-search-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.dom-search-bar {
    display: flex;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dom-search-bar:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.dom-search-icon {
    display: flex;
    align-items: center;
    padding: 0 16px 0 20px;
    color: var(--text-dim);
    font-size: 1rem;
    flex-shrink: 0;
}

.dom-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.05rem;
    padding: 18px 0;
    outline: none;
    min-width: 0;
}

.dom-search-input::placeholder { color: var(--text-dim); }

.dom-search-btn {
    background: var(--brand);
    border: none;
    color: #fff;
    padding: 0 26px;
    font-size: var(--fs-md);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dom-search-btn:hover    { background: var(--brand-dark); }
.dom-search-btn:disabled { opacity: 0.45; cursor: wait; }

.dom-search-hint {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: var(--fs-xs);
    text-align: center;
}

/* TLD chips rapides */
.dom-quick-tlds {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.dom-quick-tld {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 5px 14px;
    border-radius: var(--r-full);
    font-size: var(--fs-xs);
    font-weight: 600;
    cursor: pointer;
    transition: var(--t);
}

.dom-quick-tld:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: rgba(79, 195, 247, 0.06);
}

/* ================================
   TRUST BAR
   ================================ */
.dom-trust-bar {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
}

.dom-trust-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.dom-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-muted);
}

.dom-trust-item i {
    color: var(--brand);
    font-size: var(--fs-xs);
}

/* Séparateurs */
.dom-trust-item:not(:last-child)::after {
    content: '·';
    margin-left: 28px;
    color: var(--border);
    font-size: 1.1em;
}

/* ================================
   SECTIONS — LAYOUT COMMUN
   ================================ */
.dom-section {
    padding: 64px 0;
}

.dom-section-alt { background: var(--bg-alt); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section-header {
    margin-bottom: 40px;
}

.section-tag {
    display: inline-block;
    background: rgba(79, 195, 247, 0.08);
    border: 1px solid rgba(79, 195, 247, 0.2);
    color: var(--brand);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--r-full);
    margin-bottom: 12px;
}

.section-h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.section-h2 em {
    font-style: normal;
    color: var(--brand);
}

.section-desc {
    color: var(--text-muted);
    font-size: var(--fs-md);
    margin: 0;
}

/* ================================
   TLD POPULAIRES — CARDS
   ================================ */
.dom-featured-tlds {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 48px;
}

.tld-feat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--t);
    position: relative;
}

.tld-feat-card:hover {
    background: var(--bg-card-hov);
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.tld-feat-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--green);
    font-size: 0.65rem;    /* décoratif — accepté */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: var(--r-full);
}

.tld-feat-ext {
    display: block;
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.tld-feat-price {
    display: block;
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--brand);
}

.tld-feat-sub {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-dim);
    margin-top: 3px;
}

/* ================================
   TLD TABLE — scroll sur mobile
   ================================ */
.tld-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.tld-table-scroll::-webkit-scrollbar { height: 4px; }
.tld-table-scroll::-webkit-scrollbar-track { background: transparent; }
.tld-table-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.tld-pricing-table {
    width: 100%;
    min-width: 520px; /* force le scroll au lieu de comprimer */
    border-collapse: collapse;
    font-size: var(--fs-sm);
}

.tld-pricing-table thead {
    background: var(--bg-table-hd);
}

.tld-pricing-table th {
    padding: 13px 18px;
    text-align: left;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.tld-pricing-table tbody tr {
    background: var(--bg-table-row);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.tld-pricing-table tbody tr:nth-child(even) {
    background: var(--bg-table-alt);
}

.tld-pricing-table tbody tr:hover {
    background: var(--bg-card-hov);
}

.tld-pricing-table tbody tr:last-child {
    border-bottom: none;
}

.tld-pricing-table td {
    padding: 13px 18px;
    color: var(--text-muted);
    vertical-align: middle;
}

.tld-ext-col {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--text);
}

.tld-price-col {
    font-weight: 700;
    color: var(--text);
    font-size: var(--fs-sm);
}

.tld-renew-col {
    color: var(--text-dim);
    font-size: var(--fs-sm);
}

.tld-popular-pill {
    display: inline-block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: var(--r-full);
    margin-left: 8px;
    vertical-align: middle;
}

.btn-register {
    background: transparent;
    border: 1px solid var(--border-brand);
    color: var(--brand);
    padding: 7px 16px;
    border-radius: var(--r);
    font-size: var(--fs-xs);
    font-weight: 700;
    cursor: pointer;
    transition: var(--t);
    white-space: nowrap;
}

.btn-register:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ================================
   RÉSULTATS
   ================================ */
.dom-results-wrap {
    padding: 52px 0 80px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    min-height: 260px;
}

.dom-cart-box {
    max-width: 820px;
    margin: 0 auto 28px;
    display: none;
}

.dom-cart-box.active { display: block; }

.dom-cart-label {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.dom-cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 12px 16px;
    margin-bottom: 7px;
    transition: var(--t);
    gap: 12px;
}

.dom-cart-row:hover { border-color: var(--brand); }
.dom-cart-domain { font-weight: 700; color: var(--text); font-size: var(--fs-sm); }
.dom-cart-price  { color: var(--brand); font-weight: 700; font-size: var(--fs-sm); }

.dom-cart-del {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: var(--fs-sm);
    padding: 4px 8px;
    border-radius: var(--r-sm);
    transition: var(--t);
    flex-shrink: 0;
}

.dom-cart-del:hover { color: var(--red); background: rgba(248, 113, 113, 0.08); }

/* Loading */
.dom-state {
    text-align: center;
    padding: 52px 20px;
}

.dom-state-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 14px;
    color: var(--brand);
    opacity: 0.35;
}

.dom-state.loading .dom-state-icon { animation: spin 0.9s linear infinite; opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.dom-state p {
    color: var(--text-dim);
    font-size: var(--fs-md);
    margin: 0;
}

/* Result rows */
#dom-results { max-width: 820px; margin: 0 auto; }

.dom-result-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 9px;
    transition: var(--t);
    flex-wrap: wrap;
}

.dom-result-row.available:hover {
    border-color: var(--green);
    background: var(--bg-card-hov);
    transform: translateX(3px);
}

.dom-result-row.unavailable { opacity: 0.45; }

.dom-result-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    flex: 1;
    min-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dom-result-name .tld { color: var(--brand); }

.dom-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: var(--r-full);
    font-size: var(--fs-xs);
    font-weight: 700;
    flex-shrink: 0;
}

.pill-avail {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: var(--green);
}

.pill-avail::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
}

.pill-taken {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: var(--red);
}

.dom-result-price-block {
    text-align: right;
    flex-shrink: 0;
}

.dom-result-price-main {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
}

.dom-result-price-main small {
    font-size: var(--fs-xs);
    font-weight: 400;
    color: var(--text-dim);
}

.dom-result-renew {
    font-size: var(--fs-xs);
    color: var(--text-dim);
    margin-top: 3px;
}

/* Add button */
.dom-add-btn {
    background: var(--green);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--r);
    font-size: var(--fs-xs);
    font-weight: 700;
    cursor: pointer;
    transition: var(--t);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dom-add-btn:hover { background: var(--green-dark); transform: translateY(-1px); }

.dom-add-btn:disabled {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: default;
    transform: none;
}

.dom-add-btn.dom-added {
    background: var(--brand-dark);
}

.dom-add-btn.dom-added:hover { background: var(--brand-deep); }

/* ================================
   FEATURES
   ================================ */
.dom-features-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.dom-feature-block {
    background: var(--bg-card);
    padding: 28px 22px;
    transition: background 0.2s;
}

.dom-feature-block:hover { background: var(--bg-card-hov); }

.dom-feature-ico {
    font-size: 1.5rem;
    margin-bottom: 12px;
    display: block;
}

.dom-feature-title {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 7px;
}

.dom-feature-desc {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ================================
   FLOATING CART
   ================================ */
#dom-cart-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #050b18;
    border-top: 1px solid var(--brand);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#dom-cart-bar.visible { transform: translateY(0); }

.cart-bar-info { color: var(--text-muted); font-size: var(--fs-sm); }
.cart-bar-info strong { color: var(--brand); font-weight: 800; }
.cart-bar-total { font-size: 1.2rem; font-weight: 900; color: var(--brand); }

.go-cart-btn {
    background: var(--brand);
    border: none;
    color: #fff;
    padding: 11px 24px;
    border-radius: var(--r);
    font-size: var(--fs-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.go-cart-btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }

/* ================================
   RESPONSIVE
   Principe : tables scrollent, rien ne disparaît
   ================================ */
@media (max-width: 900px) {
    .dom-features-strip { grid-template-columns: repeat(2, 1fr); }
    .dom-hero { padding: 90px 24px 60px; }
}

@media (max-width: 768px) {
    .dom-hero { padding: 80px 20px 50px; }
    .dom-trust-inner { gap: 12px; }
    .dom-trust-item::after { display: none; }
    .dom-featured-tlds { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
    .dom-result-row { flex-wrap: wrap; gap: 10px; }
    .dom-result-name { font-size: 16px; min-width: 120px; }
    .dom-result-price-block { text-align: left; }
    .dom-features-strip { grid-template-columns: 1fr 1fr; }
    #dom-cart-bar { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
    .cart-bar-info { font-size: 14px; }
    .tld-pricing-table td,
    .tld-pricing-table th { padding: 11px 14px; }
}

@media (max-width: 600px) {
    .dom-features-strip { grid-template-columns: 1fr; }
    .dom-featured-tlds { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .dom-hero { padding: 70px 16px 44px; }
    .dom-search-bar { border-radius: 10px; }
    .dom-search-btn { padding: 0 18px; }
    .dom-search-btn span { display: none; }
    .dom-title { font-size: 28px; }
    .dom-sub { font-size: 15px; }
    .dom-quick-tld { padding: 5px 11px; font-size: 12px; }
    .dom-featured-tlds { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 16px; }
    .dom-section { padding: 44px 0; }
    .tld-feat-card { padding: 18px 12px; }
    .tld-feat-ext { font-size: 1.4rem; }
    .dom-add-btn { padding: 9px 14px; font-size: 13px; }
    .dom-result-name { font-size: 15px; }
}
