@import "tokens/fonts.css";
@import "tokens/colors.css";
@import "tokens/typography.css";
@import "tokens/spacing.css";
@import "tokens/radius.css";
@import "tokens/elevation.css";
@import "tokens/motion.css";

/* ==========================================================================
   Esprit Pragmatique — Global & Component Styles (Design System)
   ========================================================================== */

/* Base HTML & Body */
body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--surface-page);
    line-height: var(--lh-body);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    letter-spacing: var(--ls-heading);
}

/* Navbar */
.navbar-custom {
    background-color: var(--surface-navbar);
    backdrop-filter: var(--blur-navbar);
    -webkit-backdrop-filter: var(--blur-navbar);
    border-bottom: 1px solid var(--border-navbar);
}
.nav-link {
    font-weight: var(--fw-semibold);
    font-size: var(--fs-nav);
    color: var(--text-nav) !important;
    transition: color var(--dur-fast) var(--ease-standard);
}
.nav-link:hover {
    color: var(--slate-900) !important;
}

/* Hero Section */
.hero-section {
    background: var(--surface-hero);
    border-bottom: 1px solid var(--border-hairline);
}
.badge-pill-accent {
    background-color: var(--slate-100);
    color: var(--slate-900);
    border: 1px solid var(--slate-200);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-eyebrow);
}
.badge-saving {
    background-color: var(--surface-savings);
    color: var(--text-savings);
    border: 1px solid var(--green-200);
    font-weight: var(--fw-bold);
}

/* Buttons */
.btn-amazon {
    background-color: var(--accent);
    border: 1px solid var(--amber-600);
    color: var(--accent-on);
    font-weight: var(--fw-bold);
    border-radius: var(--radius-btn);
    padding: 0.75rem 1.5rem;
    transition: all var(--dur-fast) var(--ease-out-quint);
    box-shadow: var(--shadow-btn-accent);
}
.btn-amazon:hover, .btn-amazon:focus {
    background-color: var(--accent-hover);
    border-color: var(--amber-700);
    color: var(--accent-on);
    transform: var(--lift-btn);
    box-shadow: var(--shadow-btn-accent-hover);
}

.btn-outline-custom {
    border: 1.5px solid var(--border-outline-btn);
    color: var(--text-body);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-btn);
    transition: all var(--dur-fast) var(--ease-standard);
}
.btn-outline-custom:hover {
    background-color: var(--slate-50);
    border-color: var(--slate-400);
    color: var(--text-heading);
}

/* Product Cards */
.product-card {
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: all var(--dur-card) var(--ease-out-quint);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
    transform: var(--lift-card);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-card-hover);
}
.product-card.featured {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-featured);
}
.featured-banner {
    background: var(--accent-gradient);
    color: var(--accent-on);
    font-weight: var(--fw-black);
    font-size: var(--fs-micro);
    text-transform: uppercase;
    letter-spacing: var(--ls-banner);
    padding: 6px 12px;
    text-align: center;
}

/* Feature Boxes */
.feature-box {
    background: var(--slate-50);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-feature);
    padding: var(--feature-pad);
    height: 100%;
    transition: transform var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.feature-box:hover {
    background: var(--white);
    border-color: var(--border-card-hover);
    box-shadow: var(--shadow-card);
}
.icon-wrapper {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-icon);
    background: var(--white);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-icon);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Comparison Tables */
.comparison-table-wrapper {
    background: var(--surface-card);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* Accordion */
.accordion-item {
    border: 1px solid var(--border-card);
    border-radius: var(--radius-accordion) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.accordion-button {
    font-weight: var(--fw-bold);
    color: var(--text-heading);
    background-color: var(--white);
    padding: 1.15rem 1.25rem;
    font-size: 1rem;
}
.accordion-button:not(.collapsed) {
    color: var(--text-heading);
    background-color: var(--slate-50);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-card);
}

/* Hero Product Card & Tag */
.hero-mockup-card {
    background: linear-gradient(145deg, var(--white) 0%, var(--slate-50) 100%);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-hero-card);
    box-shadow: var(--shadow-hero-card);
    padding: var(--cta-pad);
    position: relative;
}
.floating-saving-tag {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--green-700);
    color: var(--white);
    font-weight: var(--fw-bold);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-small);
    box-shadow: var(--shadow-tag);
}

/* Article & Content Cards */
.article-card {
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: all var(--dur-card) var(--ease-out-quint);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.article-card:hover {
    transform: var(--lift-card);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-card-hover);
    color: inherit;
}

.article-content p {
    margin-bottom: 1.4rem;
    font-size: var(--fs-prose);
    line-height: var(--lh-prose);
}
.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--slate-100);
}
.article-content h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
}

.cta-box {
    background: linear-gradient(145deg, var(--slate-50) 0%, var(--slate-100) 100%);
    border: 2px solid var(--accent);
    border-radius: var(--radius-card);
    padding: var(--cta-pad);
    margin: 2.5rem 0;
}

.stat-card {
    background: var(--slate-50);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-feature);
    padding: var(--feature-pad);
    text-align: center;
}

.model-box {
    background: var(--slate-50);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-feature);
    padding: var(--feature-pad);
    margin-bottom: 1.5rem;
}

/* Legal Cards */
.legal-card {
    background-color: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 2.5rem;
}
.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--slate-100);
}
.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Footer */
.footer-custom {
    background-color: var(--surface-footer);
    color: var(--slate-400);
    border-top: 1px solid var(--slate-800);
}
.footer-custom a {
    color: var(--slate-300);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-standard);
}
.footer-custom a:hover {
    color: var(--white);
}
