/* ====== OFFRES DU MOMENT (section under the hero, markup from inc/offers.php) ======
   Loaded by the public page and by the admin's live preview. Sizes respond to the section's own
   width (container queries), so the admin can preview the phone layout inside a 390px frame.
   Not Tailwind: dist/tailwind.min.css is precompiled. Same tokens as the site:
   dark #0A0A0A, card #151515, border #2A2A2A, accent #E8820C, accent-light #F5A623. */
.offres { container-type: inline-size; background: #0A0A0A; color: #fff; line-height: 1.5; }
.offres *, .offres *::before, .offres *::after { box-sizing: border-box; }
/* Reset with low specificity so every class rule below wins without !important. */
.offres :where(p, h2, h3, ul) { margin: 0; }
.offres-inner { max-width: 72rem; margin: 0 auto; padding: 56px 16px 16px; }
@container (min-width: 768px) { .offres-inner { padding: 72px 16px 24px; } }

.offres-head { margin-bottom: 32px; }
.offres-bar { display: block; width: 40px; height: 4px; border-radius: 9999px; background: #E8820C; margin-bottom: 16px; }
.offres-title { font-size: 30px; line-height: 1.1; font-weight: 900; letter-spacing: -0.01em; }
.offres-title span { color: #E8820C; }
@container (min-width: 768px) { .offres-title { font-size: 36px; } }

.offre-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.offre-tag { font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #E8820C; }
.offre-date { color: #9CA3AF; font-size: 12px; white-space: nowrap; }
.offre-legal { color: #9CA3AF; font-size: 12px; line-height: 1.5; }
.offre-name { font-size: 17px; font-weight: 700; line-height: 1.3; }
.offre-detail { color: #9CA3AF; font-size: 14px; line-height: 1.5; }
.offres .offre-link { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s; }
.offres .offre-link:hover { color: #F5A623; }
.offres .offre-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 8px; background: #E8820C; color: #000; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: center; text-decoration: none; transition: background .2s; }
.offres .offre-btn:hover { background: #F5A623; color: #000; }

/* --- Featured: big card + list --- */
.offres-grid { display: grid; gap: 24px; }
@container (min-width: 960px) {
    .offres-grid { grid-template-columns: 7fr 5fr; gap: 40px; }
    .offres-grid--solo { grid-template-columns: minmax(0, 1fr); }
}
.offre-feat { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: 28px; background: #151515; border: 1px solid #2A2A2A; border-radius: 16px; }
@container (min-width: 768px) { .offre-feat { padding: 40px; } }
/* Markup reads title then value; the value shows first. */
.offre-feat-main { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
.offre-feat-title { font-size: 26px; line-height: 1.1; font-weight: 900; margin-bottom: 8px; }
.offre-feat-desc { max-width: 60ch; color: #9CA3AF; font-size: 15px; line-height: 1.6; }
.offre-feat-value { font-size: 64px; line-height: .95; font-weight: 900; letter-spacing: -.03em; color: #E8820C; overflow-wrap: anywhere; }
.offre-feat-value.is-long { font-size: 44px; }
.offre-feat-value small, .offre-card-value small { font-size: .5em; letter-spacing: 0; }
@container (min-width: 768px) {
    .offre-feat-title { font-size: 30px; }
    .offre-feat-value { font-size: 88px; }
    .offre-feat-value.is-long { font-size: 60px; }
}
.offre-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: auto; }
@container (max-width: 479px) { .offre-actions .offre-btn { width: 100%; } }

.offre-list { display: flex; flex-direction: column; min-width: 0; }
.offre-list ul { list-style: none; padding: 0; border-top: 1px solid #2A2A2A; }
.offre-list li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid #2A2A2A; }
.offre-list li > div { min-width: 0; }
.offre-name + .offre-detail { margin-top: 4px; }
.offre-meta { margin-top: 4px; color: #9CA3AF; font-size: 12px; }
.offre-val { font-size: 20px; font-weight: 900; color: #E8820C; white-space: nowrap; }
.offre-list > .offre-link { margin-top: 12px; align-self: flex-start; }
@container (min-width: 960px) {
    .offre-list li { padding: 22px 0; }
    .offre-val { font-size: 22px; }
}

/* --- Cards: several offers, none featured (at most 3 per row) --- */
.offres-cards { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 640px) {
    .offres-cards { gap: 24px; grid-template-columns: repeat(auto-fit, minmax(max(16rem, calc((100% - 48px) / 3)), 1fr)); }
}
.offre-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; background: #151515; border: 1px solid #2A2A2A; border-radius: 16px; transition: border-color .2s; }
.offre-card:hover { border-color: rgba(232,130,12,.5); }
/* Always present in cards (even empty) so values line up across a row. */
.offre-card .offre-top { min-height: 18px; margin-bottom: 24px; }
.offre-card-value { margin-bottom: 12px; font-size: 52px; line-height: .95; font-weight: 900; letter-spacing: -.03em; color: #E8820C; overflow-wrap: anywhere; }
.offre-card-value.is-long { font-size: 36px; }
.offre-card .offre-name { font-size: 19px; }
.offre-card .offre-detail { margin-top: 6px; }
.offre-card .offre-legal { margin-top: 8px; }
.offres .offre-card .offre-link { margin-top: auto; width: 100%; padding-top: 12px; border-top: 1px solid #2A2A2A; }
/* Space above the link's divider, whatever optional fields precede it. */
.offre-card > :nth-last-child(2) { margin-bottom: 20px; }

/* --- Banner: a single offer, not featured --- */
.offres--strip .offres-inner { padding: 24px 16px 8px; }
@container (min-width: 768px) { .offres--strip .offres-inner { padding: 32px 16px 8px; } }
.offre-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; background: #151515; border: 1px solid #2A2A2A; border-radius: 16px; }
@container (min-width: 768px) { .offre-strip { padding: 14px 16px 14px 24px; } }
.offre-strip-label { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 9999px; background: #E8820C; color: #000; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; white-space: nowrap; }
.offre-strip-text { flex: 1 1 320px; color: #D1D5DB; font-size: 15px; line-height: 1.5; }
.offre-strip-text strong { color: #fff; font-weight: 700; }
.offre-strip-value { color: #E8820C; font-weight: 900; white-space: nowrap; }
.offres .offre-strip .offre-link { color: #E8820C; }
.offres .offre-strip .offre-link:hover { color: #F5A623; }
