/* Pop-up newsletter Just Hair */

.jh-pop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .25s ease;
}

.jh-pop.is-open { opacity: 1; }
.jh-pop[hidden] { display: none; }

.jh-pop__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, .62);
}

.jh-pop__card {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    transform: translateY(14px) scale(.98);
    transition: transform .25s ease;
}

.jh-pop.is-open .jh-pop__card { transform: none; }

.jh-pop__x {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #222;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.jh-pop__x:hover { background: #fff; }

.jh-pop__view {
    display: none;
    width: 100%;
    /* min-height: 0 est indispensable : sans lui un texte long déborde
       de l'écran au lieu de défiler dans le pop-up. */
    min-height: 0;
}

.jh-pop__view.is-active { display: flex; }

/* --- Vue inscription --- */

.jh-pop__media {
    flex: 0 0 42%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
}

.jh-pop__body {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 34px 32px;
}

.jh-pop__title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.2;
    color: #1a1a1a;
}

.jh-pop__text {
    margin: 0 0 16px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.jh-pop__benefits {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.jh-pop__benefits li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.45;
    color: #222;
}

.jh-pop__check {
    flex: 0 0 22px;
    height: 22px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
}

.jh-pop__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.jh-pop__input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

.jh-pop__input:focus {
    border-color: #1a1a1a;
    outline: 2px solid rgba(26, 26, 26, .15);
}

.jh-pop__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.jh-pop__consent {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 14px 0 18px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #666;
    cursor: pointer;
}

.jh-pop__consent input { margin-top: 2px; }

.jh-pop__submit {
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .2s ease;
}

.jh-pop__submit:hover { background: #333; }
.jh-pop__submit[disabled] { opacity: .6; cursor: default; }

.jh-pop__msg {
    margin: 12px 0 0;
    font-size: 13.5px;
    line-height: 1.45;
}

.jh-pop__msg.is-error { color: #b3261e; }
.jh-pop__msg.is-ok { color: #1b7f3b; font-weight: 600; }

.jh-pop__legal {
    margin: 16px 0 0;
    font-size: 12.5px;
}

.jh-pop__link {
    padding: 0;
    border: 0;
    background: none;
    color: #666;
    font-size: 12.5px;
    text-decoration: underline;
    cursor: pointer;
}

.jh-pop__link:hover { color: #1a1a1a; }

/* --- Vue règlement --- */

.jh-pop__view--reglement {
    flex-direction: column;
    max-height: calc(100vh - 40px);
}

.jh-pop__reg-head {
    display: flex;
    gap: 14px;
    align-items: center;
    flex: 0 0 auto;
    padding: 18px 56px 14px 24px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.jh-pop__back {
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 13.5px;
    cursor: pointer;
}

.jh-pop__back:hover { background: #f6f6f6; }

.jh-pop__reg-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 24px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #333;
}

.jh-pop__reg-body h2,
.jh-pop__reg-body h3 { font-size: 15px; margin: 18px 0 6px; }
.jh-pop__reg-body p { margin: 0 0 10px; }

.jh-pop__reg-foot {
    flex: 0 0 auto;
    padding: 12px 24px;
    border-top: 1px solid #eee;
    font-size: 12.5px;
}

/* --- Mobile --- */

@media (max-width: 680px) {
    .jh-pop { padding: 12px; align-items: flex-end; }

    .jh-pop__card {
        max-width: 100%;
        max-height: calc(100vh - 24px);
    }

    .jh-pop__view.is-active { flex-direction: column; }

    .jh-pop__media {
        flex: 0 0 150px;
        min-height: 150px;
    }

    .jh-pop__body { padding: 22px 20px 26px; }
    .jh-pop__title { font-size: 21px; }
}

/* Page publique du règlement */
.jh-reglement { font-size: 15px; line-height: 1.65; }
.jh-reglement p { margin: 0 0 12px; }
