/* ═══════════════════════════════════════════════════
   codes-promo.eu — Styles pages d'offre
   ═══════════════════════════════════════════════════ */

/* ── BREADCRUMB ──────────────────────────────────── */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem 0;
    font-size: 0.82rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb span { color: var(--text); font-weight: 600; }
.breadcrumb-sep { color: #D0D0E0; }

/* ── OFFER PAGE LAYOUT ───────────────────────────── */
.offer-page {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

/* ── OFFER MAIN (left) ───────────────────────────── */
.offer-main {}

.offer-brand-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.offer-brand-logo {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.1rem;
    color: white; flex-shrink: 0;
}
.offer-brand-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 0.3rem;
}
.offer-cats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cat-pill {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.offer-section {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 1.25rem;
}
.offer-section h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text);
}
.offer-section p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
}
.offer-section ul {
    padding-left: 1.25rem;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.9;
}

/* ── OFFER ASIDE (right, sticky) ─────────────────── */
.offer-aside {
    position: sticky;
    top: 84px;
}

.code-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}
.code-card-top {
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
}
.code-card-top::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.big-discount {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.big-discount-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 1rem;
}
.code-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
}
.code-card-body p {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}
.code-box {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px dashed #D0D0E0;
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    margin-bottom: 1rem;
    gap: 0.5rem;
}
.code-text {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    flex: 1;
}
.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    color: var(--muted);
    white-space: nowrap;
}
.copy-btn:hover  { background: #F0F0F8; color: var(--text); }
.copy-btn.copied { background: #E6FFE9; color: var(--green); }

.offer-cta-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    transition: opacity 0.2s, transform 0.2s;
    margin-top: 0.5rem;
}
.offer-cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
    .offer-page {
        grid-template-columns: 1fr;
    }
    .offer-aside { position: static; }
}
@media (max-width: 600px) {
    .offer-page { padding: 0 1rem 3rem; }
    .offer-brand-header { flex-direction: column; text-align: center; }
    .offer-cats { justify-content: center; }
}
