/* ===== Palette ===== */
:root {
    --jaune: #FFC230;
    --jaune-fonce: #F0A800;
    --bleu: #0B3FA8;
    --bleu-vif: #1565E8;
    --rouge: #BD1911;
    --creme: #FEF6D8;
    --encre: #141414;
    --surface: #FFFFFF;
    --gris: #6B6355;
    --trait: 3px solid var(--encre);
    --ombre: 4px 4px 0 var(--encre);
    --ombre-haute: 6px 6px 0 var(--encre);
}

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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--creme);
    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(--rouge);
    color: #fff;
    text-align: center;
    padding: 9px 16px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* ===== Header ===== */
.header {
    background: var(--jaune);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: var(--trait);
}

.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: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: var(--trait);
    background: var(--creme);
}

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

.logo-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--encre);
    line-height: 1.2;
}

.logo-highlight {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bleu);
}

.tagline {
    font-size: 0.72rem;
    color: #7A5F14;
    font-weight: 700;
    margin-top: 1px;
}

.nav { display: none; }

/* ===== Hero ===== */
.hero {
    background: var(--bleu);
    padding: 52px 24px;
    text-align: center;
    border-bottom: var(--trait);
}

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

.hero-badge {
    display: inline-block;
    background: var(--jaune);
    color: var(--encre);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 16px;
    border: var(--trait);
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
}

.hero-accent { color: var(--jaune); }

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

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

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

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

.filter-btn {
    padding: 10px 22px;
    border: var(--trait);
    border-radius: 50px;
    background: var(--surface);
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--encre);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 2px 2px 0 var(--encre);
}

.filter-btn:hover {
    background: var(--jaune);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--encre);
}

.filter-btn.active {
    background: var(--jaune);
    box-shadow: 2px 2px 0 var(--encre);
    transform: none;
}

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

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

.deal-card {
    background: var(--surface);
    border: var(--trait);
    border-radius: 18px;
    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: translate(-2px, -2px);
    box-shadow: var(--ombre-haute);
}

.deal-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--creme);
    border-right: var(--trait);
    padding: 20px;
    width: 240px;
    min-width: 240px;
    overflow: hidden;
}

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

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

.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: 8px;
}

.deal-category {
    background: var(--bleu);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
}

.deal-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
}

.deal-title a { color: var(--encre); transition: color 0.2s; }
.deal-title a:hover { color: var(--bleu-vif); }

.deal-description {
    font-size: 0.86rem;
    color: var(--gris);
    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(--jaune);
    color: var(--encre);
    font-family: 'Fredoka', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 11px 26px;
    border: var(--trait);
    border-radius: 50px;
    box-shadow: 3px 3px 0 var(--encre);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.deal-cta:hover {
    background: var(--jaune-fonce);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--encre);
}

.deal-cta:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--encre);
}

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

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

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

.footer-brand { flex: 1; }

.footer-logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--jaune);
    display: block;
    margin-bottom: 8px;
}

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

.footer-legal { flex: 1; }

.disclaimer {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.07);
    padding: 14px 20px;
    border-radius: 10px;
}

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

/* ===== 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.75rem; }

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

    .deal-image-wrap {
        width: 100%;
        min-width: unset;
        border-right: none;
        border-bottom: var(--trait);
        padding: 24px;
        aspect-ratio: 4 / 3;
    }

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

    .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.5rem; }
    .categories-section { padding: 20px 16px 4px; }
    .deals-section { padding: 16px 16px 40px; }
    .deal-body { padding: 18px 18px; }
}
