/* ==========================================================================
   Mastering – page unique
   S'appuie sur booking-page.css (boutons, formulaire en étapes, animations)
   et ajoute uniquement les blocs propres au mastering.
   ========================================================================== */

/* ---------- Message temporaire (vacances…) ---------- */
#master-message-container:empty { display: none; }
#master-message-container { margin-top: 24px; }

/* ---------- Étapes : comment ça marche ---------- */
.ms-process {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--bk-line);
    background: var(--bk-surface);
}
.ms-process li {
    position: relative;
    padding: 26px 24px 24px;
    border-right: 1px solid var(--bk-line);
}
.ms-process li:last-child { border-right: 0; }
.ms-process-num {
    display: block;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px #8a8b8a;
    margin-bottom: 16px;
}
.ms-process h4 { font-size: 17px; font-weight: 700; }
.ms-process p {
    margin-top: 8px !important;
    font-size: 13px;
    line-height: 1.6;
    color: #d6d6d6;
}
.ms-process li:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -13px;
    top: 30px;
    z-index: 1;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    font-size: 13px;
    background: var(--bk-bg);
    border: 1px solid var(--bk-line);
}

/* ---------- Ce que vous obtenez ---------- */
.ms-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.ms-feature {
    padding: 24px;
    border: 1px solid var(--bk-line);
    background: var(--bk-bg);
    transition: border-color .3s, background-color .3s;
}
.ms-feature:hover { border-color: #8a8b8a; background: var(--bk-surface); }
.ms-feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--bk-line);
    margin-bottom: 18px;
}
.ms-feature-icon svg { width: 22px; height: 22px; }
.ms-feature h4 { font-size: 16px; font-weight: 700; }
.ms-feature p { margin-top: 8px !important; font-size: 13px; line-height: 1.6; color: #d6d6d6; }

/* ---------- Délais de livraison ---------- */
.ms-delivery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.ms-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--bk-line);
    background: var(--bk-surface);
}
.ms-plan-fast { border-top: 4px solid #fff; }
.ms-plan-label {
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--bk-muted);
}
.ms-plan-time {
    margin-top: 14px !important;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}
.ms-plan-time small { display: block; font-size: 13px; font-weight: 400; color: #d6d6d6; margin-top: 4px; }
.ms-plan p.ms-plan-desc { margin-top: 14px !important; font-size: 13px; line-height: 1.6; color: #d6d6d6; }
.ms-plan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 4px 8px;
    border: 1px solid var(--bk-line);
    color: #d6d6d6;
}
.ms-plan-fast .ms-plan-badge { background: #fff; border-color: #fff; color: #0d0e0d; font-weight: 700; }
.ms-delivery-note { margin-top: 12px !important; font-size: 12px; color: var(--bk-muted); }

/* ---------- Préparer son fichier : checklist interactive ---------- */
.ms-prep {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 12px;
}
.ms-checklist {
    border: 1px solid var(--bk-line);
    background: var(--bk-surface);
}
.ms-checklist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bk-line);
    background: var(--bk-deep);
}
.ms-checklist-head strong { font-size: 14px; }
.ms-progress-text { font-size: 12px; letter-spacing: .12em; color: var(--bk-muted); white-space: nowrap; }
.ms-progress {
    height: 3px;
    background: #343634;
}
.ms-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
    transition: width .5s var(--bk-ease);
}
.ms-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #333433;
    cursor: pointer;
    transition: background-color .25s;
}
.ms-check:last-of-type { border-bottom: 0; }
.ms-check:hover { background: #222322; }
.ms-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ms-check-box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1px solid #8a8b8a;
    display: grid;
    place-items: center;
    font-size: 13px;
    color: transparent;
    transition: background-color .25s, border-color .25s, color .25s;
}
.ms-check input:checked + .ms-check-box { background: #fff; border-color: #fff; color: #0d0e0d; }
.ms-check input:focus-visible + .ms-check-box { outline: 2px solid #fff; outline-offset: 2px; }
.ms-check-text strong { display: block; font-size: 14px; }
.ms-check-text span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.5; color: var(--bk-muted); }
.ms-check input:checked ~ .ms-check-text strong { color: #d6d6d6; }
.ms-ready {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--bk-line);
    font-size: 13px;
    font-weight: 700;
}
.ms-checklist.is-complete .ms-ready { display: flex; animation: msFade .5s var(--bk-ease); }
.ms-ready a { margin-left: auto; color: #fff; font-weight: 400; }

.ms-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ms-card {
    padding: 22px;
    border: 1px solid var(--bk-line);
    background: var(--bk-bg);
}
.ms-card h4 { font-size: 15px; font-weight: 700; }
.ms-card p { margin-top: 8px !important; font-size: 13px; line-height: 1.6; color: #d6d6d6; }
.ms-card p strong { color: #fff; }
.ms-card a { color: inherit; font-weight: 700; }
.ms-stems {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px !important;
}
.ms-stems li {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 9px;
    border: 1px solid var(--bk-line);
    color: #d6d6d6;
}
.ms-card-note { border-left: 4px solid #fff; }

/* ---------- Formulaire d'envoi ---------- */
.ms-order-badge {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: .08em;
    color: #d6d6d6;
    margin-top: 4px;
}
.ms-order-badge.is-visible { display: inline-flex; }
.ms-link-hint {
    min-height: 16px;
    font-size: 12px;
    color: var(--bk-muted);
}
.ms-link-hint.is-ok { color: #9fe3b0; }
.ms-link-hint.is-warn { color: #ffcf7a; }
.ms-send-highlight { animation: msPulse 1.6s var(--bk-ease) 2; }

@keyframes msFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes msPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
    50% { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
}

@media (prefers-reduced-motion: reduce) {
    .ms-send-highlight, .ms-checklist.is-complete .ms-ready { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .ms-process, .ms-features, .ms-delivery { grid-template-columns: 1fr; }
    .ms-process li { border-right: 0; border-bottom: 1px solid var(--bk-line); }
    .ms-process li:last-child { border-bottom: 0; }
    .ms-process li:not(:last-child)::after { content: '↓'; right: auto; left: 24px; top: auto; bottom: -13px; }
    .ms-prep { grid-template-columns: 1fr; }
}
