/* ============================================================
   Al Soudani — Page Promotions
   Reset, variables et header/footer → header.css / footer.css
   ============================================================ */

.pm-main {
    padding-top: 64px; /* hauteur du header mobile fixe */
    padding-bottom: 48px;
    background: var(--background);
    color: var(--on-surface);
    overflow-x: clip;
}

.pm-main img { display: block; max-width: 100%; }

/* --- HERO ------------------------------------------------- */
.pm-hero {
    position: relative;
    padding: 56px 24px 48px;
    min-height: 340px;
    isolation: isolate;
}

.pm-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    opacity: .55;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%), linear-gradient(to bottom, #000 70%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, #000 55%), linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-composite: intersect;
}

.pm-hero__inner { max-width: 1280px; margin: 0 auto; }

.pm-hero__eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
}

.pm-hero__title {
    font-family: 'Noto Serif', serif;
    font-weight: 700;
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    line-height: 1.05;
    color: #fff;
    margin-bottom: 28px;
}

.pm-hero__title-accent {
    position: relative;
    display: inline-block;
    font-style: italic;
    color: var(--primary);
}

.pm-hero__swoosh {
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 92%;
    height: 12px;
    color: var(--primary-container);
}

.pm-hero__text {
    max-width: 520px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--on-surface);
}

/* --- CARTES ----------------------------------------------- */
.pm-offers { padding: 24px 24px 16px; }

.pm-offers__grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.pm-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
    min-height: 240px;
    overflow: hidden;
    border: 1px solid rgba(231, 189, 184, .22);
    border-radius: 20px;
    background:
        radial-gradient(120% 90% at 85% 100%, rgba(227, 30, 36, .10), transparent 60%),
        linear-gradient(135deg, #1b1a1a 0%, #131212 100%);
}

.pm-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 0 24px 28px;
}

.pm-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primary-container);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.pm-card__badge .material-symbols-outlined { font-size: 18px; }

.pm-card__title {
    font-family: 'Noto Serif', serif;
    font-weight: 700;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    line-height: 1.15;
    color: #fff;
}

.pm-card__meta { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 0; }

.pm-card__meta li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .88rem;
    color: var(--on-surface);
}

.pm-card__meta .material-symbols-outlined { font-size: 22px; color: var(--primary); }

.pm-card__price {
    margin-top: auto;
    padding: 6px 22px;
    border-radius: 999px;
    background: var(--primary-container);
    color: #fff;
    font-family: 'Noto Serif', serif;
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1.3;
    box-shadow: 0 10px 24px rgba(227, 30, 36, .25);
}

.pm-card__media {
    position: relative;
    z-index: 1;
    margin: 0 -8% 0 0;
}

.pm-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, #171616 0%, rgba(23, 22, 22, 0) 38%);
    pointer-events: none;
}

.pm-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- CTA -------------------------------------------------- */
.pm-cta { padding: 24px; }

.pm-cta__card {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px 28px;
    padding: 28px 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, #2a1a19 0%, #1f1514 100%);
    border: 1px solid rgba(231, 189, 184, .12);
}

.pm-cta__icon {
    font-size: 64px;
    color: var(--primary);
    padding-right: 28px;
    border-right: 1px solid rgba(231, 189, 184, .25);
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}

.pm-cta__copy h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 8px;
}

.pm-cta__copy p { font-size: .92rem; line-height: 1.55; color: var(--on-surface); opacity: .85; }

.pm-cta__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: transform .2s, opacity .2s, background .2s;
}

.pm-btn:hover { opacity: .92; }
.pm-btn:active { transform: scale(.97); }
.pm-btn .material-symbols-outlined { font-size: 20px; }

.pm-btn--primary { background: var(--primary-container); color: #fff; box-shadow: 0 10px 24px rgba(227, 30, 36, .25); }
.pm-btn--ghost { border: 1px solid rgba(229, 226, 225, .55); color: #fff; }
.pm-btn--ghost:hover { background: rgba(255, 255, 255, .06); }

/* --- MOBILE : carte empilée -------------------------------- */
@media (max-width: 599px) {
    .pm-card { grid-template-columns: 1fr; }
    .pm-card__body { padding: 24px 24px 8px; }
    .pm-card__price { margin-top: 8px; }
    .pm-card__media { margin: 0; height: 200px; }
    .pm-card__media::before { background: linear-gradient(to bottom, #171616 0%, rgba(23, 22, 22, 0) 40%); }
    .pm-cta__card { grid-template-columns: 1fr; padding: 24px; }
    .pm-cta__icon { border-right: 0; padding-right: 0; font-size: 48px; }
    .pm-btn { width: 100%; }
}

/* --- DESKTOP ------------------------------------------------ */
@media (min-width: 768px) {
    .pm-main { padding-top: 76px; padding-bottom: 80px; }
    .pm-hero { padding: 96px 32px 72px; min-height: 420px; }
    .pm-hero__bg {
        left: auto;
        width: 62%;
        background-size: cover;
        background-position: center;
        opacity: .95;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%), linear-gradient(to bottom, #000 65%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, #000 45%), linear-gradient(to bottom, #000 65%, transparent 100%);
    }
    .pm-offers { padding: 24px 32px 16px; }
    .pm-offers__grid { grid-template-columns: 1fr 1fr; }
    .pm-cta { padding: 24px 32px; }
    .pm-cta__card { grid-template-columns: auto 1fr auto; }
    .pm-cta__actions { grid-column: auto; flex-wrap: nowrap; }
}

@media (min-width: 600px) and (max-width: 767px) {
    .pm-offers__grid { grid-template-columns: 1fr; }
}

/* Carte cliquable (lien ACF optionnel) : un lien étiré couvre toute la carte */
.pm-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
}

.pm-card--link { transition: transform .25s, border-color .25s; }
.pm-card--link:hover { transform: translateY(-3px); border-color: rgba(255, 180, 171, .55); }
.pm-card__overlay:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
