/* ANGETEC - Interface principale */

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --dark: #111827;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --green: #15803d;
    --green-soft: #dcfce7;
    --red: #b91c1c;
    --red-soft: #fee2e2;
    --amber: #9a3412;
    --amber-soft: #fff7ed;
    --radius: 16px;
    --shadow: 0 12px 35px rgba(15, 23, 42, .06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--dark);
    color: #fff;
    font-weight: 800;
    font-size: 22px;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    margin-top: 2px;
    font-size: 11px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav > a {
    padding: 10px 12px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
}

.main-nav > a:hover {
    color: var(--primary);
}

.nav-marketplaces {
    display: flex;
    gap: 7px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--line);
}

.nav-primary,
.nav-soon {
    border-radius: 9px;
    padding: 9px 12px !important;
    font-size: 13px !important;
}

.nav-primary {
    background: var(--primary);
    color: #fff !important;
}

.nav-soon {
    color: #94a3b8;
    background: #f1f5f9;
}

.page-shell {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    max-width: 900px;
}

.flash-shell {
    width: min(1400px, calc(100% - 40px));
    margin: 18px auto 0;
}

.flash {
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.flash-success {
    background: var(--green-soft);
    color: #166534;
    border-color: #bbf7d0;
}

.flash-error {
    background: var(--red-soft);
    color: #991b1b;
    border-color: #fecaca;
}

.flash-info {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.hero {
    padding: 76px 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, .18), transparent 30%),
        linear-gradient(135deg, #0f172a, #111827 55%, #1e293b);
    color: #fff;
}

.hero-inner {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 60px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: .12em;
    font-size: 12px;
    margin-bottom: 10px;
}

.hero .eyebrow {
    color: #93c5fd;
}

.hero h1,
.page-hero h1,
.marketplace-hero h1 {
    margin: 0;
    line-height: 1.05;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 70px);
    max-width: 900px;
}

.hero-copy p {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.7;
    max-width: 760px;
}

.hero-actions,
.heading-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-panel {
    padding: 26px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    background: rgba(255,255,255,.06);
    box-shadow: 0 30px 70px rgba(0,0,0,.18);
}

.hero-panel-title {
    font-weight: 800;
    margin-bottom: 20px;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,.1);
}

.flow-step span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #93c5fd;
    font-weight: 800;
}

.flow-step strong,
.flow-step small {
    display: block;
}

.flow-step small {
    color: #94a3b8;
    margin-top: 3px;
}

.page-hero,
.marketplace-hero {
    padding: 58px 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.page-hero.compact {
    padding: 38px 0;
}

.page-hero p,
.marketplace-hero p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    max-width: 800px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    margin: 55px 0 24px;
}

.section-head.align-end {
    align-items: flex-end;
    margin: 0;
}

.section-head h1,
.section-head h2 {
    margin: 0;
}

.section-head h2 {
    font-size: 32px;
}

.section-head p {
    margin: 0;
    max-width: 600px;
    color: var(--muted);
    line-height: 1.6;
}

.marketplace-grid,
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.content-grid {
    grid-template-columns: repeat(2, 1fr);
    margin: 50px 0;
}

.marketplace-card,
.content-card,
.table-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.marketplace-card {
    padding: 26px;
}

.active-card {
    border-color: #bfdbfe;
}

.marketplace-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.market-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.market-live {
    background: var(--green-soft);
    color: #166534;
}

.market-code {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
}

.marketplace-card h3 {
    font-size: 26px;
    margin: 24px 0 10px;
}

.marketplace-card p,
.content-card p {
    color: var(--muted);
    line-height: 1.7;
}

.marketplace-card .btn {
    margin-top: 12px;
}

.content-card {
    padding: 26px;
}

.content-card h2,
.content-card h3 {
    margin-top: 0;
}

.stats-strip {
    margin: 30px 0 65px;
    padding: 25px;
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stats-strip div {
    padding: 10px 18px;
    border-right: 1px solid rgba(255,255,255,.12);
}

.stats-strip div:last-child {
    border-right: 0;
}

.stats-strip strong,
.stats-strip span {
    display: block;
}

.stats-strip strong {
    font-size: 30px;
}

.stats-strip span {
    margin-top: 6px;
    color: #94a3b8;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    font-weight: 750;
    transition: .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-dark {
    background: var(--dark);
    color: #fff;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-light {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
}

.btn-muted {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.btn-small {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.text-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.form-stack {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 750;
    color: #334155;
    font-size: 13px;
}

input,
textarea {
    width: 100%;
    padding: 12px 13px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: var(--text);
}

input:focus,
textarea:focus {
    outline: 3px solid rgba(37, 99, 235, .12);
    border-color: var(--primary);
}

input[readonly],
textarea[readonly] {
    background: #f8fafc;
}

.top-gap {
    margin-top: 20px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 25px;
    margin: 50px 0;
}

.contact-side {
    display: grid;
    gap: 20px;
    align-content: start;
}

.table-card {
    margin: 30px 0 60px;
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table th,
.product-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.product-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.product-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.product-mini img,
.image-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    border: 1px solid var(--line);
    object-fit: contain;
    background: #fff;
}

.image-placeholder {
    display: grid;
    place-items: center;
    color: #94a3b8;
}

.product-mini strong,
.product-mini small {
    display: block;
}

.product-mini small {
    margin-top: 4px;
    color: var(--muted);
}

.table-actions {
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #e2e8f0;
    color: #475569;
    font-weight: 800;
    font-size: 12px;
}

.status-ready {
    background: var(--green-soft);
    color: #166534;
}

.status-uploaded {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-error {
    background: var(--red-soft);
    color: #991b1b;
}

.empty-state {
    padding: 35px;
    color: var(--muted);
    text-align: center;
    background: #f8fafc;
    border-radius: 12px;
}

.product-heading,
.marketplace-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
}

.product-heading h1 {
    margin: 0;
    font-size: 38px;
}

.meta-line {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
}

.detail-grid,
.publish-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    margin: 30px 0 60px;
}

.detail-grid > div,
.publish-layout > div {
    display: grid;
    gap: 22px;
}

.sticky-card {
    position: sticky;
    top: 100px;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.card-title-row h2 {
    margin: 0;
}

.card-title-row > span {
    color: var(--muted);
    font-size: 13px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.detail-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.info-grid label {
    color: var(--muted);
}

.info-grid strong {
    font-size: 17px;
}

.confidence-pill {
    background: #eff6ff;
    color: var(--primary);
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 800;
}

.aspect-list {
    display: grid;
}

.aspect-row {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.aspect-row label {
    margin: 0;
}

.aspect-ok,
.aspect-missing {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 900;
}

.aspect-ok {
    background: var(--green-soft);
    color: var(--green);
}

.aspect-missing {
    background: var(--amber-soft);
    color: var(--amber);
}

.summary-list {
    margin: 0;
}

.summary-list > div {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.summary-list dt {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.summary-list dd {
    margin: 0;
    font-weight: 650;
    word-break: break-word;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 25px 0;
}

.ebay-de-hero {
    background:
        linear-gradient(135deg, #fff, #eff6ff);
}

.publish-success {
    margin: 40px 0 60px;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.success-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green);
    color: #fff;
    font-weight: 900;
    font-size: 24px;
}

.warning-box,
.publish-warning {
    padding: 14px;
    border-radius: 10px;
    background: var(--amber-soft);
    border: 1px solid #fed7aa;
    color: var(--amber);
    line-height: 1.55;
}

.publish-warning {
    margin: 20px 0;
}

.german-aspects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.german-aspects div {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.german-aspects span,
.german-aspects strong {
    display: block;
}

.german-aspects span {
    color: var(--muted);
    font-size: 12px;
}

.german-aspects strong {
    margin-top: 4px;
}

.site-footer {
    margin-top: 70px;
    padding: 48px 0 0;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-grid {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-grid h4 {
    margin: 0 0 12px;
    color: #fff;
}

.footer-grid a,
.footer-grid span {
    display: block;
    margin: 8px 0;
    color: #94a3b8;
    text-decoration: none;
}

.footer-grid p {
    max-width: 500px;
    line-height: 1.65;
    color: #94a3b8;
}

.footer-brand {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.footer-bottom {
    width: min(1400px, calc(100% - 40px));
    margin: 35px auto 0;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 1050px) {
    .hero-inner,
    .detail-grid,
    .publish-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .sticky-card {
        position: static;
    }

    .marketplace-grid {
        grid-template-columns: 1fr;
    }

    .nav-shell {
        align-items: flex-start;
        padding: 16px 0;
    }

    .main-nav {
        display: none;
    }
}

@media (max-width: 760px) {
    .page-shell,
    .hero-inner,
    .nav-shell,
    .flash-shell,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, 1400px);
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .section-head,
    .product-heading,
    .marketplace-heading {
        display: block;
    }

    .heading-actions {
        margin-top: 20px;
    }

    .content-grid,
    .stats-strip,
    .footer-grid,
    .form-row,
    .info-grid,
    .german-aspects {
        grid-template-columns: 1fr;
    }

    .stats-strip div {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    .aspect-row {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   ANGETEC CATALOGUE
   ========================================================== */

.catalogue-hero {
    padding: 55px 0 35px;
}

.catalogue-eyebrow {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: .7;
}

.catalogue-hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    margin: 8px 0 12px;
}

.catalogue-intro {
    max-width: 720px;
    font-size: 18px;
    line-height: 1.7;
    opacity: .8;
}


.catalogue-section {
    padding-bottom: 60px;
}


.catalogue-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}


.catalogue-card {
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.catalogue-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 15px 40px rgba(0,0,0,.08);
}


.catalogue-image,
.catalogue-placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}


.catalogue-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.catalogue-placeholder {
    background:
        linear-gradient(
            135deg,
            #f3f5f8,
            #e6eaf0
        );
}


.catalogue-placeholder span {
    font-size: 60px;
    font-weight: 700;
    opacity: .35;
}


.catalogue-card-body {
    padding: 24px;
}


.catalogue-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}


.catalogue-card h2 a {
    color: inherit;
    text-decoration: none;
}


.catalogue-child-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}


.catalogue-child-list li {
    margin: 7px 0;
}


.catalogue-child-list a {
    text-decoration: none;
}


.catalogue-button {
    font-weight: 600;
    text-decoration: none;
}


/* ==========================================================
   CATEGORY
   ========================================================== */

.category-page {
    padding-top: 30px;
    padding-bottom: 70px;
}


.breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
    font-size: 14px;
}


.breadcrumb a {
    text-decoration: none;
}


.category-header {
    margin-bottom: 38px;
}


.category-header h1 {
    font-size: clamp(30px, 5vw, 48px);
    margin-bottom: 10px;
}


.category-header p {
    max-width: 800px;
    line-height: 1.7;
}


.subcategory-section {
    margin-bottom: 50px;
}


.subcategory-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}


.subcategory-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
}


.subcategory-card:hover {
    box-shadow:
        0 8px 25px rgba(0,0,0,.07);
}


.subcategory-card span {
    font-size: 13px;
    opacity: .65;
}


/* ==========================================================
   PRODUCT GRID
   ========================================================== */

.category-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}


.product-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}


.shop-product-card {
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}


.shop-product-image {
    height: 220px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.shop-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.no-product-image {
    opacity: .5;
    text-align: center;
}


.shop-product-body {
    padding: 20px;
}


.product-brand {
    font-size: 13px;
    font-weight: 600;
    opacity: .65;
    margin-bottom: 8px;
    text-transform: uppercase;
}


.shop-product-body h3 {
    font-size: 17px;
    line-height: 1.45;
    min-height: 48px;
}


.product-model {
    font-size: 13px;
    opacity: .65;
    margin: 8px 0;
}


.product-price {
    font-size: 25px;
    font-weight: 700;
    margin: 18px 0 8px;
}


.product-price small {
    font-size: 11px;
    font-weight: 400;
}


.product-stock {
    font-size: 13px;
    margin-bottom: 18px;
}


.stock-ok {
    font-weight: 600;
}


.product-button {
    display: block;
    text-align: center;
    padding: 11px 16px;
    border-radius: 9px;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,.15);
    font-weight: 600;
}


.empty-category {
    grid-column: 1 / -1;
    padding: 45px;
    text-align: center;
    border: 1px dashed rgba(0,0,0,.2);
    border-radius: 15px;
}


@media (max-width: 700px) {

    .catalogue-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

}
