/* =================================================================
   OFERTA.CSS — landing pages komisionadas (DienShop)
   Variable d'accent : --kom-color  (injectée inline par oferta.php)
   Discipline footer  : DC → #990033 / CB → #f0c6de (rose pâle CB)
   ================================================================= */

/* ── Variables & reset local ─────────────────────────────────────── */
:root {
    --kom-color: #990033;          /* override par PHP sur chaque page */
    --oferta-radius: 12px;
    --oferta-shadow: 0 4px 20px rgba(0,0,0,.3);
    --oferta-gap: 2rem;
    --oferta-max-w: 820px;
}

/* ── HERO komisionada ────────────────────────────────────────────── */
.oferta-hero {
    background-color: var(--kom-color);
    color: #fff;
    padding: 0.4rem 0 0;
}
.oferta-hero-inner {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    max-width: var(--oferta-max-w);
    margin: 0 auto;
}
.oferta-portrait-link { flex-shrink: 0; line-height: 0; }
.oferta-portrait {
    width:200px;
    height: auto;
    display: block;
    z-index: 999;
}
.oferta-hero-text { flex: 1; }
.oferta-alias {
    font-size: 1.4rem;
    margin-bottom: .3rem;
    letter-spacing: .04em;
}
.oferta-h1 {
    font-family: "Cormorant", Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.2;
    margin: 0;
}
.oferta-hero-info-link {
    display: inline-block;
    margin: 0.4rem 0 0.7rem;
    font-size: .8rem;
    color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.5);
    padding: .15rem .6rem;
    border-radius: 2rem;
    text-decoration: none;
}
.oferta-hero-info-link:hover { background: rgba(255,255,255,.15); }

/* Fond page : teinte légère de la couleur komisionada */
.site-main { background: color-mix(in srgb, var(--kom-color) 55%, #fff); }

/* ── MAIN ────────────────────────────────────────────────────────── */
.oferta-main {
    max-width: var(--oferta-max-w);
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: var(--oferta-gap);
}

/* ── VIDÉO ───────────────────────────────────────────────────────── */
.oferta-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--oferta-radius);
    box-shadow: var(--oferta-shadow);
}
.oferta-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ── BOÎTE CTA ───────────────────────────────────────────────────── */
.oferta-cta-box {
    background: #fff;
    border-radius: var(--oferta-radius);
    box-shadow: var(--oferta-shadow);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 4px solid var(--kom-color);
}
.oferta-product-name {
    font-family: "Cormorant", Georgia, serif;
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    font-weight: 300;
    margin-bottom: .4rem;
}

.oferta-kom-credit {
    font-size:1.25rem;
    color: #888;
    margin-bottom: 1.2rem;
}

/* Prix */
.oferta-special-badge {
    display: inline-block;
    background: var(--kom-color);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .2rem .8rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.oferta-expired-badge {
    display: inline-block;
    background: #e0e0e0;
    color: #555;
    font-size: .8rem;
    padding: .25rem .9rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.oferta-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    margin-bottom: 1rem;
}
.oferta-price-label {
    font-size: .75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.oferta-price-regular {
    font-size: 1.1rem;
    color:#6e6d7d;
    text-decoration: line-through;
}
.oferta-price-main {
    font-family: "Cormorant", Georgia, serif;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    color: var(--kom-color);
    line-height: 1;
    text-shadow: 1px 1px 1px #000;
}

.oferta-expires {
    font-size: .82rem;
    color: #777;
    margin: .5rem 0 .3rem;
}

.oferta-countdown {
    font-size: .95rem;
    font-weight: 700;
    color: var(--kom-color);
    margin-bottom: .6rem;
    min-height: 1.4em;
    letter-spacing: .02em;
}
.oferta-resum {
    text-align: left;
    font-size: .92rem;
    color: #444;
    line-height: 1.7;
    margin: 1.2rem 0;
    padding: 1rem 1.2rem;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 3px solid var(--kom-color);
    border-right: 3px solid var(--kom-color);
}

.oferta-resum p { margin: 0 0 .5em; }
.oferta-resum p:last-child { margin-bottom: 0; }

/* Bouton CTA */
.oferta-buy-btn {
    display: inline-block;
    background: var(--kom-color);
    color: #fff;
    border: none;
    padding: .9rem 2.5rem;
    border-radius: 3rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    letter-spacing: .03em;
    margin-top: .5rem;
    width: 100%;
    max-width: 360px;
}
.oferta-buy-btn:hover { opacity: .88; transform: translateY(-1px); }
.oferta-buy-btn:active { transform: translateY(0); }
.oferta-buy-btn.added {
    background: #27ae60;
    cursor: default;
}
.oferta-buy-btn:disabled { opacity: .7; cursor: default; transform: none; }

/* ── BLOCS CONTENU ───────────────────────────────────────────────── */
.oferta-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.oferta-block {
    background: #fff;
    border-radius: var(--oferta-radius);
    box-shadow: var(--oferta-shadow);
    padding: 1.5rem;
    overflow: hidden;
}
.oferta-block-title {
    font-family: "Cormorant", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding-bottom: .5rem;
}
.oferta-img-full {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: cover;
    max-height: 320px;
}
.oferta-block-body {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}
.oferta-block-body--right { flex-direction: row-reverse; }
.oferta-img-side {
    width: 40%;
    max-width: 240px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.oferta-block-text { flex: 1; }
.oferta-block-text .block-heading { font-weight: 600; margin-bottom: .4em; }
.oferta-block-text p { margin: 0 0 .6em; font-size: .92rem; line-height: 1.65; color: #333; }
.oferta-list {
    list-style: none;
    margin: .5rem 0;
    padding: 0;
}
.oferta-list li {
    padding: .3rem 0 .3rem 1.4rem;
    position: relative;
    font-size: .9rem;
    color: #333;
    line-height: 1.5;
}
.oferta-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--kom-color);
}
.oferta-link-btn {
    display: inline-block;
    margin-top: .8rem;
    padding: .45rem 1.2rem;
    border: 2px solid var(--kom-color);
    color: var(--kom-color);
    border-radius: 2rem;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.oferta-link-btn:hover { background: var(--kom-color); color: #fff; }
.oferta-video-inline {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-top: .8rem;
    border-radius: 8px;
    overflow: hidden;
}
.oferta-video-inline iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ── FOOTER DISCIPLINE ───────────────────────────────────────────── */
/* DC : footer bordure rouge Dien Chan */
.oferta-discipline-dc .site-footer {
    border-top: 4px solid #990033;
}
/* CB : footer bordure rose pâle Chan'beauté (--cb-accent2 #c47faf) */
.oferta-discipline-cb .site-footer {
    border-top: 4px solid #c47faf;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .oferta-hero-inner { flex-direction: column; text-align: center; align-items: center; }
    .oferta-portrait   { width: 80px; height: auto; }
    .oferta-alias      { font-size: .8rem; }

    .oferta-block-body,
    .oferta-block-body--right { flex-direction: column; }
    .oferta-img-side  { width: 100%; max-width: 100%; }

    .oferta-cta-box { padding: 1.5rem 1rem; }
    .oferta-buy-btn { max-width: 100%; }
}
