/* ═══════════════════════════════════════════════════════════════════
   XEUS Connect — Full-width layout system (v2 — visual-audit-refined)
   ───────────────────────────────────────────────────────────────────
   Stratégie luxe banking-Suisse :
   • Sections (fond, padding-y) → 100% viewport width (étirées)
   • Îlots de contenu (cartes, formulaires, texte) → max-width 1400-1600px, centrés
   • Grilles produits/catalogue → 100% pour showcase
   • Texte long → 72ch pour lisibilité premium
   • Gouttières fluides avec clamp()
   À charger APRÈS styles.css / theme-dark-gold.css / ux-polish.css.
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --xvs-gutter: clamp(16px, 3vw, 64px);
    --xvs-content-max: 1520px;          /* Îlots de contenu centré (cartes, CTA, newsletter) */
    --xvs-wide-max: 1800px;             /* Grilles larges (produits, testimonials) */
    --xvs-reading-max: 72ch;            /* Texte long, prose */
    --xvs-narrow-max: 880px;            /* Hero text, title blocks */
}

/* ───────────────────────────────────────────────────────────────────
   1. SECTIONS (fond, padding-y) : toute la largeur du viewport
   ─────────────────────────────────────────────────────────────────── */
section,
.hero, .hero-section,
.products-section, .features-section, .brands-section, .brand-section,
.stats-section, .cta-section, .catalogue-section, .why-section,
.testimonials-section, .newsletter-section, .partners-section,
.tradein-section, .client-section, .footer-group-section,
.page-section {
    width: 100%;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

/* ───────────────────────────────────────────────────────────────────
   2. CONTAINERS : cap à 1520px, centrés, avec gouttières
   ─────────────────────────────────────────────────────────────────── */
/* Spécificité boostée pour battre `main > section > .container{max-width:1200!important}` */
html body .container,
html body main > .container,
html body main > section > .container,
html body main section .container {
    max-width: var(--xvs-content-max) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--xvs-gutter) !important;
    padding-right: var(--xvs-gutter) !important;
    box-sizing: border-box;
}

/* ───────────────────────────────────────────────────────────────────
   3. FOOTER : fond étiré 100% + grille centrée cappée (luxe)
   ─────────────────────────────────────────────────────────────────── */
html body footer,
html body .footer {
    width: 100%;
    max-width: 100% !important;
}
html body .footer > .container,
html body footer > .container {
    max-width: var(--xvs-content-max) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--xvs-gutter) !important;
    padding-right: var(--xvs-gutter) !important;
    box-sizing: border-box;
}
html body .footer-grid,
html body .footer-inner {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
html body .footer-group-section .footer-group-companies {
    max-width: var(--xvs-content-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Bande basse (copyright / liens légaux) : centrée aussi */
html body .footer-bottom,
html body .footer-legal,
html body .footer-copyright {
    max-width: var(--xvs-content-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--xvs-gutter) !important;
    padding-right: var(--xvs-gutter) !important;
    box-sizing: border-box;
}

/* ───────────────────────────────────────────────────────────────────
   4. NAVBAR : fond 100% étiré + contenu centré cappé + liens CENTRÉS
   ─────────────────────────────────────────────────────────────────── */
html body .navbar,
html body header {
    width: 100%;
    max-width: 100% !important;
}
html body .nav-container,
html body .navbar-inner {
    max-width: var(--xvs-content-max) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--xvs-gutter) !important;
    padding-right: var(--xvs-gutter) !important;
    box-sizing: border-box;
    /* Grid 3 colonnes : left flex | center auto (liens) | right flex */
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 16px !important;
}
/* Colonne gauche : logo aligné à gauche */
html body .nav-container .nav-left {
    justify-self: start !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
/* Colonne centrale : liens de navigation centrés */
html body .nav-container .nav-links {
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    gap: clamp(20px, 2.5vw, 40px) !important;
}
/* Colonne droite : actions alignées à droite */
html body .nav-container .nav-actions {
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
/* Responsive : sur tablette/mobile, on bascule en 2 colonnes (left | right), liens cachés ou hamburger */
@media (max-width: 1024px) {
    html body .nav-container {
        grid-template-columns: auto 1fr !important;
    }
    html body .nav-container .nav-links {
        display: none !important;
    }
    html body .nav-container .nav-actions {
        grid-column: 2 !important;
    }
}

/* ───────────────────────────────────────────────────────────────────
   5. HERO : fond 100% + texte narrow centré (lisibilité premium)
   ─────────────────────────────────────────────────────────────────── */
.hero,
.hero-section {
    width: 100%;
}
.hero-content,
.hero-inner,
.hero-text {
    max-width: var(--xvs-narrow-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--xvs-gutter);
    padding-right: var(--xvs-gutter);
    box-sizing: border-box;
}

/* ───────────────────────────────────────────────────────────────────
   6. NEWSLETTER : carte centrée cappée + flex center (fail-safe double)
   ─────────────────────────────────────────────────────────────────── */
html body section.newsletter-section .container .newsletter-card,
html body .newsletter-section .newsletter-card,
html body .newsletter-card {
    max-width: 980px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(24px, 3vw, 48px) !important;
    flex-wrap: wrap !important;
    box-sizing: border-box !important;
}
html body .newsletter-card .newsletter-content {
    flex: 0 1 auto !important;
    max-width: 420px !important;
    text-align: left !important;
}
html body .newsletter-card .newsletter-form {
    flex: 0 1 auto !important;
    max-width: 500px !important;
    flex-shrink: 0 !important;
}
/* Mobile : stack vertical */
@media (max-width: 768px) {
    html body .newsletter-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 32px 20px !important;
    }
    html body .newsletter-card .newsletter-content {
        text-align: center !important;
        max-width: 100% !important;
    }
}

/* ───────────────────────────────────────────────────────────────────
   7. CTA (call-to-action) : carte centrée cappée
   ─────────────────────────────────────────────────────────────────── */
html body .cta-card,
html body .cta-content,
html body .cta-inner {
    max-width: var(--xvs-content-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    box-sizing: border-box;
}

/* ───────────────────────────────────────────────────────────────────
   8. GRILLES PRODUITS : 100% étirées jusqu'à 1800px (showcase luxe)
   ─────────────────────────────────────────────────────────────────── */
html body .products-grid,
html body .product-grid,
html body .catalogue-grid {
    max-width: var(--xvs-wide-max) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Grilles sans cap (full-width) */
html body .features-grid,
html body .why-grid,
html body .stats-grid,
html body .brands-grid,
html body .partners-grid {
    max-width: var(--xvs-content-max) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ───────────────────────────────────────────────────────────────────
   9. TESTIMONIALS : grille sur desktop, carousel sur mobile
   ─────────────────────────────────────────────────────────────────── */
@media (min-width: 900px) {
    html body .testimonials-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: clamp(16px, 2vw, 28px) !important;
        overflow: visible !important;
        scroll-snap-type: none !important;
        padding: 8px 0 16px !important;
        margin: 0 auto !important;
        max-width: var(--xvs-content-max) !important;
    }
    html body .testimonials-grid .testimonial-card {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        scroll-snap-align: none !important;
    }
}
@media (max-width: 899px) {
    html body .testimonials-grid {
        margin: 0 !important;
        padding-left: var(--xvs-gutter) !important;
        padding-right: var(--xvs-gutter) !important;
        scroll-padding-left: var(--xvs-gutter) !important;
    }
}

/* ───────────────────────────────────────────────────────────────────
   10. DASHBOARDS & ADMIN : sidebar fixe + main flex
   ─────────────────────────────────────────────────────────────────── */
html body .dashboard,
html body .admin-layout,
html body .partner-layout,
html body .b2b-layout,
html body .client-layout {
    max-width: 100% !important;
    width: 100%;
}
html body .dashboard-main,
html body .admin-main,
html body .main-content {
    max-width: 100% !important;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
}
html body .dashboard-main > *,
html body .admin-main > * {
    max-width: var(--xvs-content-max);
    margin-left: auto;
    margin-right: auto;
}

/* ───────────────────────────────────────────────────────────────────
   11. PAGES SPÉCIALES (contact, checkout, legal, forms)
   ─────────────────────────────────────────────────────────────────── */
html body .contact-container,
html body .checkout-container,
html body .form-container,
html body .page-container,
html body .section-container,
html body .legal-container,
html body .auth-container,
html body .admin-container,
html body .b2b-container,
html body .partner-container,
html body .client-container,
html body .comparator-container {
    max-width: var(--xvs-content-max) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--xvs-gutter) !important;
    padding-right: var(--xvs-gutter) !important;
    box-sizing: border-box;
}

/* Checkout : grille 2 colonnes */
@media (min-width: 900px) {
    html body .checkout-container {
        display: grid !important;
        grid-template-columns: 1fr minmax(340px, 420px) !important;
        gap: clamp(24px, 3vw, 48px);
    }
}

/* ───────────────────────────────────────────────────────────────────
   12. PAGES LÉGALES : texte long narrow centré
   ─────────────────────────────────────────────────────────────────── */
html body .legal-page .legal-container,
html body .legal-page main {
    max-width: var(--xvs-content-max) !important;
}
html body .legal-page .legal-content,
html body .legal-page article {
    max-width: min(90ch, 100%);
    margin-left: auto;
    margin-right: auto;
}
html body .legal-page p,
html body .legal-page li,
html body article p,
html body .content-prose p,
html body .reading-prose p,
html body .reading-prose li,
html body .about-text {
    max-width: var(--xvs-reading-max);
}

/* ───────────────────────────────────────────────────────────────────
   13. FACTURES / ORDERS / TABLES : 100% largeur du container
   ─────────────────────────────────────────────────────────────────── */
html body .invoice,
html body .order-detail,
html body .receipt,
html body .cart-panel,
html body .invoice table,
html body .order-detail table {
    max-width: 100% !important;
    width: 100%;
}

/* ───────────────────────────────────────────────────────────────────
   14. BREADCRUMBS : alignés aux gouttières
   ─────────────────────────────────────────────────────────────────── */
html body .xeus-breadcrumbs {
    max-width: var(--xvs-content-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--xvs-gutter) !important;
    padding-right: var(--xvs-gutter) !important;
    box-sizing: border-box;
}

/* ───────────────────────────────────────────────────────────────────
   15. TITRES DE SECTION : alignés aux containers
   ─────────────────────────────────────────────────────────────────── */
html body .section-header,
html body .section-title-wrap {
    max-width: var(--xvs-content-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--xvs-gutter);
    padding-right: var(--xvs-gutter);
    box-sizing: border-box;
}

/* ───────────────────────────────────────────────────────────────────
   16. ÉCRANS ULTRA-LARGES : +d'air sans re-capper
   ─────────────────────────────────────────────────────────────────── */
@media (min-width: 1600px) {
    :root { --xvs-gutter: clamp(24px, 4vw, 96px); }
}
@media (min-width: 2000px) {
    :root { --xvs-gutter: clamp(32px, 5vw, 128px); --xvs-content-max: 1680px; }
}
@media (min-width: 2400px) {
    :root { --xvs-content-max: 1800px; --xvs-wide-max: 2000px; }
}

/* ───────────────────────────────────────────────────────────────────
   17. MOBILE : gouttières compactes
   ─────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    :root { --xvs-gutter: 16px; }
}

/* ───────────────────────────────────────────────────────────────────
   18. FORMULAIRES : cap lisible
   ─────────────────────────────────────────────────────────────────── */
form {
    width: 100%;
}
html body .contact-form-section,
html body .checkout-form-section,
html body .register-form,
html body .login-form {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   VISUAL AUDIT POLISH (v20260415j) — 8 correctifs cohérence globale
   ═══════════════════════════════════════════════════════════════════ */

/* #1 — RYTHME VERTICAL cohérent : toutes sections majeures à 100px */
html body .about-section,
html body .categories-section,
html body .featured-section,
html body .products-section,
html body .why-section,
html body .partners-section,
html body .newsletter-section,
html body .testimonials-section,
html body .catalogue-section,
html body .features-section,
html body .stats-section,
html body .cta-section,
html body .brands-section,
html body .promo-banner {
    padding-top: clamp(60px, 8vw, 100px) !important;
    padding-bottom: clamp(60px, 8vw, 100px) !important;
}
/* Sections secondaires : rythme compact 80px */
html body .tradein-section,
html body .trust-badges-section,
html body .client-section {
    padding-top: clamp(48px, 6vw, 80px) !important;
    padding-bottom: clamp(48px, 6vw, 80px) !important;
}

/* #2 — HERO padding symétrique */
html body .hero,
html body .hero-section {
    padding-top: clamp(80px, 10vw, 140px) !important;
    padding-bottom: clamp(80px, 10vw, 140px) !important;
}

/* #3 — COULEURS AMBRE #f59e0b → or XEUS #B8953F */
html body .testimonial-stars,
html body .testimonials-grid .testimonial-stars,
html body .promo-content h2,
html body .star-rating,
html body .stars {
    color: #B8953F !important;
}

/* #4 — TRADE-IN vert #22c55e → or XEUS */
html body .tradein-badge,
html body .tradein-step-num,
html body .tradein-eco,
html body .tradein-content .highlight,
html body .eco-icon {
    color: #B8953F !important;
}
html body .tradein-badge {
    background: rgba(184, 149, 63, 0.1) !important;
    border-color: rgba(184, 149, 63, 0.3) !important;
}
html body .tradein-step-num {
    background: rgba(184, 149, 63, 0.12) !important;
    border: 1px solid rgba(184, 149, 63, 0.35) !important;
}

/* #5 — HIÉRARCHIE H2 cohérente pour titres de cartes */
html body .tradein-content h2,
html body .space-card h2,
html body .promo-content h2,
html body .newsletter-content h2,
html body .why-card h3 {
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}
html body .tradein-content h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem) !important;
}

/* #6 — LETTER-SPACING uniforme */
html body .section-title,
html body .hero-title,
html body .hero h1 {
    letter-spacing: -0.025em !important;
}
/* Labels / pré-titres : tracking positif */
html body .section-kicker,
html body .section-label,
html body .section-eyebrow,
html body .pre-title {
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
}

/* #7 — CARTES padding uniformisé à 32px */
html body .why-card {
    padding: 32px !important;
}
html body .why-card,
html body .testimonial-card,
html body .product-card,
html body .space-card,
html body .feature-card {
    border-radius: 20px !important;
}

/* #8 — BOUTON PRIMAIRE shadow or (au lieu de violet résiduel) */
html body .btn-primary:hover,
html body .btn-gold:hover,
html body .btn-send:hover,
html body .btn:hover.btn-primary {
    box-shadow: 0 8px 32px rgba(184, 149, 63, 0.35) !important;
}
html body .btn-primary:focus-visible,
html body .btn-gold:focus-visible {
    outline: 2px solid #B8953F !important;
    outline-offset: 3px !important;
}

/* BONUS — Gradient text (or uniquement, plus de violet) */
html body .gradient-text {
    background: linear-gradient(135deg, #B8953F 0%, #D4AF5F 50%, #B8953F 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* BONUS — Uniformise couleurs secondaires (moins de nuances de gris) */
:root {
    --xvs-text-primary: #FFFFFF;
    --xvs-text-secondary: #AAAAAA;
    --xvs-text-tertiary: #86868B;
    --xvs-text-muted: #666666;
}

/* BONUS — Cohérence transition boutons */
html body .btn,
html body .btn-primary,
html body .btn-secondary,
html body .btn-gold,
html body button.nav-btn,
html body .cart-btn,
html body .client-btn {
    transition: transform .25s cubic-bezier(.16,1,.3,1),
                box-shadow .25s cubic-bezier(.16,1,.3,1),
                background .2s ease,
                border-color .2s ease,
                color .2s ease !important;
}
html body .btn:hover {
    transform: translateY(-2px);
}
html body .btn:active {
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE COMPLET — Toutes plateformes
   Breakpoints : 360 / 480 / 600 / 768 / 900 / 1024 / 1280 / 1600 / 2000
   ═══════════════════════════════════════════════════════════════════ */

/* ─── MOBILE — Smartphones portrait (≤ 480px) ─────────────────────── */
@media (max-width: 480px) {
    :root {
        --xvs-gutter: 16px;
        --xvs-content-max: 100%;
    }
    /* Typographie plus compacte */
    html body .hero h1,
    html body .hero-title {
        font-size: clamp(1.9rem, 8vw, 2.6rem) !important;
        line-height: 1.15 !important;
    }
    html body .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        line-height: 1.2 !important;
    }
    /* Grilles : 1 colonne partout */
    html body .products-grid,
    html body .product-grid,
    html body .why-grid,
    html body .features-grid,
    html body .stats-grid,
    html body .footer-grid,
    html body .checkout-container {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    /* Cartes : padding réduit */
    html body .why-card,
    html body .testimonial-card,
    html body .product-card,
    html body .space-card,
    html body .newsletter-card {
        padding: 20px !important;
    }
    /* Boutons : full-width + min 48px tap */
    html body .btn,
    html body .btn-primary,
    html body .btn-secondary {
        width: 100%;
        min-height: 48px !important;
        justify-content: center;
    }
    /* Newsletter stack vertical */
    html body .newsletter-card {
        flex-direction: column !important;
        text-align: center !important;
    }
    html body .newsletter-form {
        width: 100% !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    html body .newsletter-form input,
    html body .newsletter-form .btn {
        width: 100% !important;
    }
    /* Navbar : compact mobile */
    html body .nav-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    html body .nav-link {
        display: none;
    }
    /* Footer : 1 colonne, centré */
    html body .footer-grid {
        text-align: center;
    }
    html body .footer-socials {
        justify-content: center;
    }
    /* Stats : stack */
    html body .stats-section .stat-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(184,149,63,0.15);
        padding: 16px 0 !important;
    }
    html body .stats-section .stat-item:last-child { border-bottom: none; }
}

/* ─── MOBILE — Smartphones paysage + grands (481-768px) ───────────── */
@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --xvs-gutter: 20px;
    }
    html body .products-grid,
    html body .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    html body .why-grid,
    html body .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    html body .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    html body .checkout-container {
        grid-template-columns: 1fr !important;
    }
    html body .newsletter-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 32px 24px !important;
    }
    html body .newsletter-form {
        width: 100% !important;
        max-width: 480px !important;
    }
    html body .hero h1 {
        font-size: clamp(2.2rem, 7vw, 3rem) !important;
    }
}

/* ─── TABLETTES — Portrait (769-1024px) ───────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --xvs-gutter: 28px;
        --xvs-content-max: 100%;
    }
    html body .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    html body .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    html body .features-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    html body .footer-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 32px !important;
    }
    html body .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    html body .checkout-container {
        grid-template-columns: 1fr !important;
    }
    html body .hero h1 {
        font-size: clamp(2.6rem, 6vw, 3.5rem) !important;
    }
    /* Sidebar dashboards collapsée */
    html body .sidebar {
        width: 240px !important;
    }
    html body .dashboard-main {
        margin-left: 240px !important;
    }
}

/* ─── DESKTOP SMALL (1025-1279px) ─────────────────────────────────── */
@media (min-width: 1025px) and (max-width: 1279px) {
    :root {
        --xvs-gutter: 32px;
        --xvs-content-max: 1200px;
    }
    html body .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    html body .why-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    html body .testimonials-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    html body .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr !important;
    }
}

/* ─── DESKTOP STANDARD (1280-1599px) ──────────────────────────────── */
@media (min-width: 1280px) and (max-width: 1599px) {
    :root {
        --xvs-gutter: 40px;
        --xvs-content-max: 1440px;
    }
}

/* ─── DESKTOP WIDE (1600-1999px) ──────────────────────────────────── */
@media (min-width: 1600px) and (max-width: 1999px) {
    :root {
        --xvs-gutter: clamp(40px, 4vw, 72px);
        --xvs-content-max: 1560px;
    }
}

/* ─── ULTRA-WIDE (≥ 2000px) ───────────────────────────────────────── */
@media (min-width: 2000px) {
    :root {
        --xvs-gutter: clamp(48px, 5vw, 120px);
        --xvs-content-max: 1680px;
        --xvs-wide-max: 1920px;
    }
    html body .hero h1 {
        font-size: clamp(3.5rem, 5vw, 5rem) !important;
    }
}

/* ─── TOUCH DEVICES — Augmente tap targets ────────────────────────── */
@media (hover: none) and (pointer: coarse) {
    html body .btn,
    html body .btn-primary,
    html body .btn-secondary,
    html body button,
    html body a.nav-link,
    html body .nav-btn,
    html body .cart-btn,
    html body .footer-col a {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    html body a {
        padding: 4px 0;
    }
    /* Désactive les hovers fantômes */
    html body .btn:hover {
        transform: none !important;
    }
}

/* ─── LANDSCAPE MOBILES (ratio bas) ───────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    html body .hero,
    html body .hero-section {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
        min-height: auto !important;
    }
    html body .hero h1 {
        font-size: 1.8rem !important;
    }
}

/* ─── IPHONE NOTCH / DYNAMIC ISLAND / SAFE AREA ───────────────────── */
@supports (padding: max(0px)) {
    html body .navbar,
    html body .nav-container {
        padding-left: max(var(--xvs-gutter), env(safe-area-inset-left, 16px)) !important;
        padding-right: max(var(--xvs-gutter), env(safe-area-inset-right, 16px)) !important;
    }
    html body .footer > .container,
    html body footer > .container {
        padding-left: max(var(--xvs-gutter), env(safe-area-inset-left, 16px)) !important;
        padding-right: max(var(--xvs-gutter), env(safe-area-inset-right, 16px)) !important;
    }
    html body {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

/* ─── HIGH-DPI (Retina, 4K) — Images nettes ───────────────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    html body .partner-logo img,
    html body .brand-logo img,
    html body .hero-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ─── FOLDABLE DEVICES (Samsung Fold, Surface Duo) ────────────────── */
@media (min-width: 280px) and (max-width: 360px) {
    :root {
        --xvs-gutter: 12px;
    }
    html body .hero h1 {
        font-size: 1.6rem !important;
    }
    html body .btn {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
    }
}

/* ─── REDUCED MOTION : respect accessibility ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html body *,
    html body *::before,
    html body *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ─── PRINT : déjà géré dans print.css mais safety ────────────────── */
@media print {
    html body .navbar,
    html body .footer,
    html body .cart-panel,
    html body .ai-floating-btn,
    html body .xeus-scroll-top {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   AUDIT CROSS-PAGES — Cohérence auth + dashboards + commerce
   ═══════════════════════════════════════════════════════════════════ */

/* ─ AUTH : Harmoniser focus states → or (fini le vert par défaut) ─ */
html body .login-form input:focus,
html body .login-form select:focus,
html body .login-form textarea:focus,
html body .register-form input:focus,
html body .register-form select:focus,
html body .register-form textarea:focus,
html body input[type="email"]:focus,
html body input[type="password"]:focus,
html body input[type="text"]:focus,
html body input[type="tel"]:focus,
html body textarea:focus,
html body select:focus {
    border-color: rgba(184, 149, 63, 0.5) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(184, 149, 63, 0.12) !important;
    background: rgba(184, 149, 63, 0.04) !important;
}

/* ─ AUTH : login-admin rouge → or (cohérence luxe) ─ */
html body .login-btn,
html body .login-admin-page .login-btn,
html body body.login-admin .login-btn {
    background: linear-gradient(135deg, #B8953F, #8A6E2F) !important;
    color: #0A0A0A !important;
    border: none !important;
}
html body .login-btn:hover {
    box-shadow: 0 8px 32px rgba(184, 149, 63, 0.35) !important;
    transform: translateY(-2px);
}

/* ─ AUTH : btn-next / register CTA — min-height 48px tap target ─ */
html body .btn-next,
html body .btn-prev,
html body .btn-register,
html body .btn-submit {
    min-height: 48px !important;
    padding: 14px 24px !important;
    font-weight: 700 !important;
}

/* ─ AUTH : register-b2b responsive sur tablette ─ */
@media (max-width: 900px) {
    html body .register-right,
    html body .auth-sidebar,
    html body .register-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
    html body .register-form-container {
        max-width: 100% !important;
    }
    html body .register-layout,
    html body .auth-layout {
        grid-template-columns: 1fr !important;
    }
}

/* ─ DASHBOARDS : Sidebar logout rouge → or ─ */
html body .sidebar-logout,
html body .logout-btn,
html body .btn-logout,
html body a[href*="logout"] {
    background: rgba(184, 149, 63, 0.08) !important;
    border: 1px solid rgba(184, 149, 63, 0.25) !important;
    color: #B8953F !important;
}
html body .sidebar-logout:hover,
html body .logout-btn:hover,
html body .btn-logout:hover {
    background: rgba(184, 149, 63, 0.15) !important;
    border-color: rgba(184, 149, 63, 0.5) !important;
    color: #D4AF5F !important;
}

/* ─ DASHBOARDS : Badges unifiés (admin/client/partner/b2b) ─ */
html body .sidebar-badge,
html body .badge-admin,
html body .badge-client,
html body .badge-partner,
html body .badge-b2b,
html body .badge-gold,
html body .badge-pro {
    background: linear-gradient(135deg, #B8953F 0%, #D4AF5F 100%) !important;
    color: #0A0A0A !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    border-radius: 6px !important;
    padding: 3px 10px !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
}

/* ─ DASHBOARDS : Cartes KPI cohérentes ─ */
html body .stat-card,
html body .kpi-card,
html body .dashboard-card {
    background: #141414 !important;
    border: 1px solid rgba(184, 149, 63, 0.15) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    transition: border-color .25s, transform .25s !important;
}
html body .stat-card:hover,
html body .kpi-card:hover,
html body .dashboard-card:hover {
    border-color: rgba(184, 149, 63, 0.4) !important;
    transform: translateY(-2px);
}
html body .stat-card .stat-value,
html body .kpi-card .kpi-value,
html body .dashboard-card .value {
    color: #B8953F !important;
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}
html body .stat-card .stat-label,
html body .kpi-card .kpi-label,
html body .dashboard-card .label {
    color: #AAAAAA !important;
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

/* ─ DASHBOARDS : Tables luxe ─ */
html body .dashboard-main table,
html body .admin-main table,
html body table.data-table,
html body table.orders-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
}
html body .dashboard-main table th,
html body .admin-main table th,
html body table.data-table th {
    background: rgba(184, 149, 63, 0.06) !important;
    color: #B8953F !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-size: 0.72rem !important;
    padding: 14px 16px !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(184, 149, 63, 0.2) !important;
}
html body .dashboard-main table td,
html body .admin-main table td,
html body table.data-table td {
    padding: 14px 16px !important;
    color: #E5E5E5 !important;
    font-size: 0.88rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}
html body .dashboard-main table tr:hover td,
html body .admin-main table tr:hover td {
    background: rgba(184, 149, 63, 0.03) !important;
}

/* ─ COMMERCE : Checkout steps unifiés ─ */
html body .step-num,
html body .checkout-step-num,
html body .register-step-num,
html body .sell-step-num {
    background: linear-gradient(135deg, #B8953F, #D4AF5F) !important;
    color: #0A0A0A !important;
    font-weight: 800 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 0.9rem !important;
}

/* ─ COMMERCE : Payment badges unifiés ─ */
html body .payment-method,
html body .payment-card {
    background: #141414 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    transition: border-color .2s, background .2s !important;
}
html body .payment-method:hover,
html body .payment-method.selected,
html body .payment-method[aria-selected="true"] {
    border-color: rgba(184, 149, 63, 0.5) !important;
    background: rgba(184, 149, 63, 0.04) !important;
}

/* ─ CONTACT : Inputs cohérents ─ */
html body .contact-form-section .field input,
html body .contact-form-section .field textarea,
html body .contact-form-section .field select {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(184, 149, 63, 0.15) !important;
    color: #E5E5E5 !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
}

/* ─ LEGAL : Lisibilité paragraphe ─ */
html body .legal-page p,
html body .legal-section p,
html body .legal-content p,
html body .legal-page li,
html body .legal-section li {
    line-height: 1.75 !important;
    max-width: 72ch !important;
    color: #CCCCCC !important;
}
html body .legal-page h2,
html body .legal-section h2 {
    color: #B8953F !important;
    font-weight: 800 !important;
    margin-top: 48px !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.01em !important;
}
html body .legal-page h3,
html body .legal-section h3 {
    color: #E5E5E5 !important;
    font-weight: 700 !important;
    margin-top: 32px !important;
    margin-bottom: 12px !important;
}

/* ─ 404 : Branding cohérent ─ */
html body .error-page,
html body .page-404 {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
html body .error-code,
html body .page-404 h1 {
    background: linear-gradient(135deg, #B8953F, #D4AF5F) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    font-size: clamp(5rem, 15vw, 10rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.05em !important;
}

/* ─ COMPARATOR : Specs tables ─ */
html body .comparator-specs,
html body .specs-table {
    border: 1px solid rgba(184, 149, 63, 0.15) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}
html body .comparator-specs th,
html body .specs-table th {
    background: rgba(184, 149, 63, 0.08) !important;
    color: #B8953F !important;
    padding: 12px !important;
    text-align: left !important;
}
html body .comparator-specs td,
html body .specs-table td {
    padding: 12px !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* ─ Messages d'erreur / succès cohérents ─ */
html body .form-error,
html body .error-message,
html body .field-error {
    color: #ff6b6b !important;
    font-size: 0.82rem !important;
    margin-top: 4px !important;
    padding-left: 4px !important;
}
html body .form-success,
html body .success-message {
    color: #81c784 !important;
    font-size: 0.82rem !important;
    margin-top: 4px !important;
    padding-left: 4px !important;
}


