/* Polices (chargées aussi depuis la boutique : cross-origin) */
@font-face { font-family: 'Cormorant'; font-weight: 400; font-style: normal; font-display: swap; src: url('https://podiumbeaute.com/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant'; font-weight: 500; font-style: normal; font-display: swap; src: url('https://podiumbeaute.com/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant'; font-weight: 500; font-style: italic; font-display: swap; src: url('https://podiumbeaute.com/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant'; font-weight: 600; font-style: normal; font-display: swap; src: url('https://podiumbeaute.com/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant'; font-weight: 600; font-style: italic; font-display: swap; src: url('https://podiumbeaute.com/fonts/cormorant-garamond-latin-600-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant'; font-weight: 700; font-style: normal; font-display: swap; src: url('https://podiumbeaute.com/fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2'); }

/* ========================================
   POP-UP BLACK FRIDAY : roue de la chance
   Mobile d'abord, fond sombre, rose et doré.
   Police et variables : voir style.css
   ======================================== */

html.bf-lock, html.bf-lock body { overflow: hidden !important; }

.bf-overlay {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 12px;
    background: rgba(12, 7, 16, 0.82);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    animation: bf-fade .35s ease both;
}
.bf-overlay[hidden] { display: none; }

.bf-dialog {
    position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 34px 22px 26px; text-align: center; color: #f6efe6;
    font-family: var(--font, 'Cormorant', Garamond, serif); font-weight: 500;
    background: radial-gradient(120% 70% at 50% 0%, #2a1833 0%, #1a1020 55%, #110a15 100%);
    border: 1px solid rgba(201, 166, 90, 0.55); border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    animation: bf-pop .45s cubic-bezier(.2, .9, .3, 1.15) both;
}
.bf-dialog:focus { outline: none; }

.bf-close {
    position: absolute; top: 10px; right: 10px; width: 40px; height: 40px;
    border: 0; border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 40px;
    color: #f6efe6; background: rgba(255, 255, 255, 0.08); transition: background .2s;
}
.bf-close:hover, .bf-close:focus-visible { background: rgba(255, 255, 255, 0.2); }

.bf-eyebrow { font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: #d9b96a; margin: 0 0 6px; }
.bf-title { font-size: 1.95rem; line-height: 1.12; font-weight: 600; color: #fff; margin: 0 0 12px; }
.bf-title em { font-style: normal; color: #e7c97b; }
.bf-text { font-size: 1.2rem; line-height: 1.35; color: #e9dfd6; margin: 0 0 16px; }

.bf-form { display: grid; gap: 12px; text-align: left; }
.bf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bf-input {
    width: 100%; padding: 14px 20px; font: inherit; font-size: 1.25rem; font-weight: 600; color: #fff;
    background: rgba(255, 255, 255, 0.07); border: 1.5px solid rgba(201, 166, 90, 0.6); border-radius: 999px;
}
.bf-input::placeholder { color: #bdb0b8; font-weight: 500; }
.bf-input:focus { outline: none; border-color: #f0d68a; box-shadow: 0 0 0 3px rgba(240, 214, 138, 0.25); }
.bf-input[aria-invalid="true"] { border-color: #ff8fb8; }

.bf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 1.05rem; line-height: 1.25; color: #d9cdd6; cursor: pointer; }
.bf-check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: #d6579b; }

.bf-error { min-height: 1.3em; margin: 0; font-size: 1.1rem; font-weight: 600; color: #ff9cc2; text-align: center; }

.bf-btn {
    display: inline-block; width: 100%; padding: 15px 26px; border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: 1.3rem; font-weight: 700; letter-spacing: .06em; text-align: center; text-decoration: none;
    color: #2a1608; background: linear-gradient(100deg, #b98d33 0%, #efd58c 45%, #c79a3c 100%);
    box-shadow: 0 6px 20px rgba(201, 166, 90, 0.35); transition: transform .15s, filter .2s;
}
.bf-btn:hover { filter: brightness(1.08); }
.bf-btn:active { transform: scale(.98); }
.bf-btn[disabled] { opacity: .6; cursor: progress; }
.bf-btn--rose { color: #fff; background: linear-gradient(100deg, #b13f86 0%, #e16aa6 55%, #b13f86 100%); box-shadow: 0 6px 20px rgba(214, 87, 155, 0.35); }
.bf-btn--ghost { color: #f6efe6; background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.35); box-shadow: none; font-size: 1.1rem; letter-spacing: .02em; }

.bf-link { display: inline-block; margin-top: 10px; padding: 8px; background: none; border: 0; cursor: pointer; font: inherit; font-size: 1.1rem; color: #d9cdd6; text-decoration: underline; }
.bf-small { margin: 14px 0 0; font-size: .98rem; color: #bfb2ba; }
.bf-small a { color: #e7c97b; }

/* ----- Roue ----- */
.bf-wheel-wrap { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 22px auto 4px; }
.bf-wheel-rim { position: absolute; inset: -9px; border-radius: 50%; background: linear-gradient(145deg, #f0d68a, #a67c26 55%, #efd58c); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }
.bf-wheel { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; transform: rotate(0deg); will-change: transform; background: #1a1020; }
.bf-wheel canvas { width: 100%; height: 100%; display: block; }
.bf-pointer {
    position: absolute; top: -20px; left: 50%; width: 0; height: 0; z-index: 3; transform: translateX(-50%);
    border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 30px solid #f0d68a;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .6));
}
.bf-hub { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; z-index: 2; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1c4, #c79a3c 70%); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }

/* ----- Résultat ----- */
.bf-result .bf-title { font-size: 2.05rem; }
.bf-code-row { display: flex; align-items: center; gap: 8px; margin: 6px 0 18px; }
.bf-code {
    flex: 1; padding: 13px 14px; border: 2px dashed #e7c97b; border-radius: 14px; background: rgba(255, 255, 255, 0.06);
    font-size: 1.55rem; font-weight: 700; letter-spacing: .16em; color: #fff; user-select: all;
}
.bf-copy { flex: none; width: auto; padding: 13px 18px; font-size: 1.1rem; letter-spacing: .02em; }
.bf-valid { font-size: 1.1rem; color: #e7c97b; margin: 0 0 16px; font-weight: 600; }
.bf-contact { display: grid; gap: 8px; margin: 0 0 16px; }
.bf-contact a { color: #f6efe6; font-weight: 700; }

@keyframes bf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bf-pop { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }

@media (min-width: 600px) {
    .bf-dialog { padding: 40px 34px 30px; }
    .bf-title { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .bf-overlay, .bf-dialog { animation: none; }
}
