/* ════════════════════════════════════════════════════════════════════════
   Popup promo « Vente privée » — page d'accueil.

   S'appuie sur .confirm-modal-overlay (confirm-modal.css) pour l'overlay
   flouté + l'affichage via .open. Tout le reste est propre à la promo :
   palette éditoriale noir sur crème (≠ tokens bleus du site, voulu — la
   maquette est volontairement dans un autre registre, luxe / mode).
   Préfixe .hp- partout pour éviter toute collision.

   Layout large 2 colonnes → étale le contenu en horizontal pour réduire
   au maximum le scroll vertical de la popup.
════════════════════════════════════════════════════════════════════════ */

.hp-overlay {
    /* fond un peu plus neutre/sombre que le bleuté par défaut */
    background: rgba(15, 15, 18, .5);
    padding: 2.5vh 2.5vw;
    /* Au-dessus de TOUT : nav (9999), bandeau cookies (9998/9999),
       flashes (9999), page-loader (99999). La promo prime. */
    z-index: 100000;
}

/* Verrou de scroll de la page tant que la popup est ouverte (cf. home-promo.js) */
body.hp-modal-open { overflow: hidden; }

/* Le panneau (≠ .confirm-modal : on repart de zéro, full contrôle) */
.hp-modal {
    --hp-ink:   #16161a;
    --hp-muted: #6c6c72;
    --hp-cream: #f3ede4;
    --hp-line:  rgba(0, 0, 0, .12);

    position: relative;
    background: #ffffff;
    color: var(--hp-ink);
    width: 100%;
    max-width: 1080px;
    max-height: 95vh;
    border: 1px solid var(--hp-line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
    overflow: hidden;
    animation: hpModalIn .35s cubic-bezier(.16, 1, .3, 1);
}

@keyframes hpModalIn {
    from { opacity: 0; transform: translateY(14px) scale(.99); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Zone scrollable (la modale peut dépasser la hauteur d'écran) */
.hp-scroll {
    max-height: 95vh;
    overflow-y: auto;
    padding: 40px 48px 32px;
    text-align: center;
    -webkit-overflow-scrolling: touch;
}

.hp-scroll::-webkit-scrollbar       { width: 8px; }
.hp-scroll::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .14); border-radius: 8px; }

/* ── Bouton fermer ── */
.hp-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--hp-line);
    border-radius: 50%;
    color: var(--hp-ink);
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.hp-close:hover  { background: #f0eae1; transform: rotate(90deg); }
.hp-close svg    { width: 19px; height: 19px; }

/* ── En-tête marque ── */
.hp-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--hp-line);
    margin-bottom: 28px;
}
.hp-brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.1rem;
    font-weight: 500;
    letter-spacing: .14em;
    line-height: 1;
}
.hp-brand-sub {
    font-family: 'Urbanist', sans-serif;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .42em;
    color: var(--hp-muted);
    padding-left: .42em;
}

/* Logo d'en-tête uploadé (remplace le texte marque) */
.hp-brand--logo { gap: 8px; }
.hp-brand-logo {
    max-height: 70px;
    width: auto;
    max-width: 80%;
    object-fit: contain;
    display: block;
}

/* ════════════ Bloc 1 : photo modèle | discours ════════════ */
.hp-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 36px;
    align-items: stretch;
    margin-bottom: 30px;
}
.hp-hero-media {
    overflow: hidden;
    background: var(--hp-cream);
    min-height: 100%;
}
.hp-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hp-hero-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* Pas de photo modèle → une seule colonne (sinon colonne vide à gauche) */
.hp-hero--solo { grid-template-columns: 1fr; }

.hp-eyebrow {
    font-family: 'Urbanist', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--hp-muted);
    margin: 0 auto 14px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.hp-eyebrow::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 42px;
    height: 1px;
    background: var(--hp-ink);
}

.hp-title { margin: 0 0 20px; line-height: 1; }
.hp-title-1,
.hp-title-2 {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase;
}
.hp-title-1 {
    font-size: clamp(2.6rem, 4.6vw, 3.6rem);
    font-weight: 500;
    letter-spacing: .04em;
}
.hp-title-2 {
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    font-weight: 400;
    letter-spacing: .5em;
    padding-left: .5em;
    margin-top: 4px;
}

.hp-find {
    font-family: 'Urbanist', sans-serif;
    font-size: .9rem;
    color: var(--hp-muted);
    margin: 0;
}
.hp-script {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(2.4rem, 4vw, 3rem);
    font-weight: 500;
    margin: 2px 0 6px;
    line-height: 1;
}
.hp-address {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 22px;
}
.hp-address sup { font-size: .6em; }

.hp-discount {
    background: var(--hp-cream);
    padding: 20px 18px 22px;
    margin: 0 0 22px;
}
.hp-discount-value {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4.5rem, 9vw, 6.5rem);
    font-weight: 600;
    line-height: .9;
    letter-spacing: -.02em;
}
.hp-discount-pct { font-size: .85em; }
.hp-discount-label {
    display: block;
    font-family: 'Urbanist', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-top: 8px;
}
.hp-discount-label sup { color: var(--hp-muted); }

.hp-desc {
    font-family: 'Urbanist', sans-serif;
    font-size: .9rem;
    line-height: 1.65;
    color: #44444a;
    max-width: 440px;
    margin: 0 auto;
}
.hp-desc strong { font-weight: 600; color: var(--hp-ink); }

/* ════════════ Bloc 2 : CTA | photo portant ════════════ */
.hp-cta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    border: 1px solid var(--hp-line);
    margin-bottom: 30px;
    overflow: hidden;
}

/* Pas de photo secondaire → une seule colonne (sinon colonne vide à droite) */
.hp-cta-row--solo { grid-template-columns: 1fr; }
.hp-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 28px;
}
.hp-cta-icon {
    width: 36px;
    height: 36px;
    color: var(--hp-ink);
    margin-bottom: 12px;
}
.hp-cta-title {
    font-family: 'Urbanist', sans-serif;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.hp-cta-sub {
    font-family: 'Urbanist', sans-serif;
    font-size: .86rem;
    line-height: 1.55;
    color: var(--hp-muted);
    max-width: 320px;
    margin: 0 auto 18px;
}
.hp-btn {
    display: inline-block;
    background: var(--hp-ink);
    color: #fff;
    font-family: 'Urbanist', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 34px;
    transition: background .18s, transform .18s;
}
.hp-btn:hover { background: #000; transform: translateY(-1px); }

.hp-cta-media {
    overflow: hidden;
    background: var(--hp-cream);
    min-height: 100%;
}
.hp-cta-media img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
}

/* ════════════ Bloc 3 : dates ════════════ */
.hp-dates {
    display: flex;
    align-items: center;
    gap: 22px;
    text-align: left;
    background: var(--hp-cream);
    padding: 22px 28px;
    margin-bottom: 32px;
}
.hp-dates-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 1px solid rgba(0, 0, 0, .25);
    border-radius: 50%;
    color: var(--hp-ink);
}
.hp-dates-body {
    flex: 0 0 auto;
    border-right: 1px solid var(--hp-line);
    padding-right: 22px;
}
.hp-dates-pre {
    display: block;
    font-family: 'Urbanist', sans-serif;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--hp-muted);
}
.hp-dates-range {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.1;
}
.hp-dates-note {
    display: block;
    font-family: 'Urbanist', sans-serif;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--hp-muted);
}
.hp-dates-text {
    font-family: 'Urbanist', sans-serif;
    font-size: .86rem;
    line-height: 1.55;
    color: #44444a;
    margin: 0;
}
.hp-dates-text strong { font-weight: 700; color: var(--hp-ink); }

/* ════════════ Bloc 4 : infos pratiques (image 2) ════════════ */
.hp-infos { margin-bottom: 30px; }
.hp-infos-head {
    font-family: 'Urbanist', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--hp-muted);
    margin: 0 0 20px;
    position: relative;
    display: inline-block;
    padding: 0 36px;
}
.hp-infos-head::before,
.hp-infos-head::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 26px;
    height: 1px;
    background: var(--hp-line);
}
.hp-infos-head::before { left: 0; }
.hp-infos-head::after  { right: 0; }

.hp-infos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    /* cellules en pleine hauteur (stretch par défaut) → les traits
       séparateurs gardent une hauteur identique */
}
.hp-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* contenu (icône + texte) centré verticalement dans la cellule pleine
       hauteur → toutes les colonnes alignées sur la même ligne médiane */
    justify-content: center;
    gap: 10px;
    padding: 0 10px;
}
.hp-info + .hp-info { border-left: 1px solid var(--hp-line); }
.hp-info-ico {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, .22);
    border-radius: 50%;
    color: var(--hp-ink);
}
.hp-info-ico svg { width: 21px; height: 21px; }
.hp-info-text {
    font-family: 'Urbanist', sans-serif;
    font-size: .74rem;
    line-height: 1.5;
    color: var(--hp-muted);
    margin: 0;
}
.hp-info-text strong {
    font-weight: 700;
    color: var(--hp-ink);
    letter-spacing: .04em;
}

/* ════════════ Pied ════════════ */
.hp-welcome {
    background: var(--hp-ink);
    color: #fff;
    font-family: 'Urbanist', sans-serif;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 17px;
    margin: 0 0 14px;
}
.hp-welcome span { color: #fff; }
.hp-fineprint {
    font-family: 'Urbanist', sans-serif;
    font-size: .68rem;
    color: var(--hp-muted);
    margin: 0;
}

/* ════════════ Responsive ════════════ */

/* Tablette : le bloc 1 garde 2 colonnes mais on resserre */
@media (max-width: 880px) {
    .hp-scroll { padding: 34px 30px 28px; }
    .hp-hero { gap: 26px; }
}

/* Mobile : tout s'empile */
@media (max-width: 680px) {
    /* marge tout autour → on aperçoit la home derrière sur les bords,
       pour bien lire « popup » et pas « page » */
    .hp-overlay { padding: 16px; }
    .hp-modal { max-width: 100%; max-height: 92vh; height: auto; }
    .hp-scroll { max-height: 92vh; padding: 30px 20px 26px; }

    .hp-hero {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .hp-hero-media { max-height: 320px; }

    .hp-cta-row { grid-template-columns: 1fr; }
    .hp-cta-media { min-height: 200px; }
    .hp-cta-media img { min-height: 200px; }
    /* photo du portant en premier visuellement, puis le CTA */
    .hp-cta-media { order: -1; }

    .hp-dates {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .hp-dates-body {
        border-right: none;
        border-bottom: 1px solid var(--hp-line);
        padding-right: 0;
        padding-bottom: 12px;
        width: 100%;
    }

    /* infos pratiques : 2 colonnes sur mobile */
    .hp-infos-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
    .hp-info:nth-child(odd)  { border-left: none; }
    .hp-info:nth-child(even) { border-left: 1px solid var(--hp-line); }
}
