/* ===== Palette ===== */
:root {
    --fond: #F3F3F3;
    --greige: #BAB1A8;
    --encre: #2A2529;
    --ardoise: #4E4349;
    --secondaire: #6E6862;
    --accent: #0B7A4E;
    --accent-fonce: #095F3E;
    --surface: #FFFFFF;
    --bordure: #E2DFDB;
    --ombre: 0 1px 3px rgba(42, 37, 41, 0.06), 0 6px 16px rgba(42, 37, 41, 0.06);
    --ombre-haute: 0 2px 6px rgba(42, 37, 41, 0.08), 0 12px 28px rgba(42, 37, 41, 0.10);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--fond);
    color: var(--encre);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Top Bar ===== */
.topbar {
    background: var(--encre);
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    padding: 9px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ===== Header ===== */
.header {
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--bordure);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--bordure);
}

.logo-text { display: flex; flex-direction: column; }

.logo-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--encre);
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.logo-highlight { color: var(--accent); }

.tagline {
    font-size: 0.72rem;
    color: var(--secondaire);
    font-weight: 600;
    margin-top: 1px;
}

.nav { display: none; }

/* ===== Hero ===== */
.hero {
    background: var(--ardoise);
    padding: 56px 24px;
    text-align: center;
}

.hero-content { max-width: 640px; margin: 0 auto; }

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.hero h1 {
    font-size: 2.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.6px;
    margin-bottom: 14px;
}

.hero-accent { color: #6ED8A4; }

.hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

/* ===== Filtres ===== */
.categories-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 8px;
}

.categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.filter-btn {
    padding: 9px 20px;
    border: 1px solid var(--bordure);
    border-radius: 50px;
    background: var(--surface);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--secondaire);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover {
    color: var(--encre);
    border-color: var(--greige);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ===== Liste des offres ===== */
.deals-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 64px;
}

.deals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.deal-card {
    background: var(--surface);
    border: 1px solid var(--bordure);
    border-radius: 14px;
    box-shadow: var(--ombre);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deal-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ombre-haute);
}

.deal-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fond);
    border-right: 1px solid var(--bordure);
    padding: 20px;
    width: 230px;
    min-width: 230px;
    overflow: hidden;
}

.deal-image {
    max-height: 155px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.deal-card:hover .deal-image { transform: scale(1.04); }

.deal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

.deal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.deal-category {
    background: var(--fond);
    border: 1px solid var(--bordure);
    color: var(--secondaire);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    padding: 3px 10px;
    border-radius: 4px;
}

.deal-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.2px;
    margin-bottom: 8px;
}

.deal-title a { color: var(--encre); transition: color 0.18s; }
.deal-title a:hover { color: var(--accent); }

.deal-description {
    font-size: 0.86rem;
    color: var(--secondaire);
    line-height: 1.6;
    margin-bottom: 16px;
}

.deal-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
}

.deal-cta {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    transition: background 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.deal-cta:hover {
    background: var(--accent-fonce);
    transform: translateY(-1px);
}

.deal-cta:active { transform: translateY(0); }

/* ===== Chargement ===== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--secondaire);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== Footer ===== */
.footer {
    background: var(--encre);
    color: rgba(255, 255, 255, 0.6);
    padding: 44px 24px;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.footer-brand { flex: 1; }

.footer-logo {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.footer-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

.footer-legal { flex: 1; }

.disclaimer {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.06);
    padding: 14px 18px;
    border-radius: 8px;
}

.copyright {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
        padding: 12px 16px;
    }

    .logo { flex-direction: column; gap: 6px; }
    .logo-text { align-items: center; }

    .hero { padding: 40px 20px; }
    .hero h1 { font-size: 1.7rem; }

    .deal-card { flex-direction: column; }

    .deal-image-wrap {
        width: 100%;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid var(--bordure);
        padding: 24px;
    }

    .deal-image { max-height: 200px; }

    .deal-bottom { justify-content: stretch; }
    .deal-cta { width: 100%; justify-content: center; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.45rem; }
    .categories-section { padding: 20px 16px 4px; }
    .deals-section { padding: 16px 16px 40px; }
    .deal-body { padding: 18px; }
}
