/* ===================================================
   MYT Holiday Notice — Popup Bilingue FR/AR
   Med You Tek © 2026
   =================================================== */

/* ── Variables ─────────────────────────────────── */
#myt-hn-overlay,
#myt-hn-popup,
#myt-hn-popup * {
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ── Overlay ────────────────────────────────────── */
#myt-hn-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(10, 20, 50, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: myt-fade-in 0.35s ease;
}

@keyframes myt-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#myt-hn-overlay.myt-hidden {
    display: none;
}

/* ── Popup ──────────────────────────────────────── */
#myt-hn-popup {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    padding: 30px 30px 20px;
    box-shadow: 0 24px 64px rgba(10, 20, 50, 0.28);
    border-top: 5px solid #E8511A;
    animation: myt-slide-up 0.38s cubic-bezier(0.34, 1.36, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes myt-slide-up {
    from { transform: translateY(32px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Bouton fermer (×) ──────────────────────────── */
#myt-hn-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
#myt-hn-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* ── Header : icône + badge ─────────────────────── */
.myt-hn-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.myt-hn-icon svg {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.myt-hn-badge {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.myt-hn-badge-fr {
    display: inline-block;
    background: #E8511A;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.myt-hn-badge-ar {
    display: inline-block;
    background: #1A3A6B;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    direction: rtl;
}

/* ── Titres bilingues ───────────────────────────── */
.myt-hn-titles {
    margin-bottom: 16px;
}

.myt-hn-title-fr {
    font-size: 20px;
    font-weight: 700;
    color: #1A3A6B;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.myt-hn-title-ar {
    font-size: 18px;
    font-weight: 700;
    color: #1A3A6B;
    margin: 0;
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    line-height: 1.4;
}

/* ── Corps du message ───────────────────────────── */
.myt-hn-body {
    font-size: 14px;
    color: #333;
    line-height: 1.65;
    margin-bottom: 14px;
}

.myt-hn-body-ar {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    text-align: right;
    border-top: 1px dashed #e5e5e5;
    padding-top: 12px;
    margin-top: 12px;
}

.myt-hn-body p {
    margin: 0 0 8px 0;
}

.myt-hn-body strong {
    color: #1A3A6B;
}

.myt-hn-accent {
    color: #E8511A !important;
    font-size: 15px;
}

.myt-hn-available {
    background: #EAF3DE;
    color: #27500A;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    margin-top: 6px !important;
}

/* ── Compte à rebours ───────────────────────────── */
.myt-hn-countdown-wrap {
    background: #1A3A6B;
    border-radius: 12px;
    padding: 14px 16px 12px;
    margin: 16px 0;
    text-align: center;
}

.myt-hn-countdown-label-fr,
.myt-hn-countdown-label-ar {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.myt-hn-countdown-label-ar {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

.myt-hn-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.myt-hn-cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
}

.myt-hn-cd-block span {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.myt-hn-cd-block small {
    font-size: 10px;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
    text-align: center;
}

.myt-hn-cd-sep {
    font-size: 28px;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    margin-bottom: 12px;
}

/* ── Divider ────────────────────────────────────── */
.myt-hn-divider {
    height: 1px;
    background: #eee;
    margin: 16px 0;
}

/* ── Blocs dates ─────────────────────────────────── */
.myt-hn-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.myt-hn-date-block {
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
}

.myt-hn-date-closed {
    background: #FCEBEB;
    border: 1px solid #E24B4A;
}

.myt-hn-date-open {
    background: #EAF3DE;
    border: 1px solid #639922;
}

.myt-hn-date-icon {
    font-size: 18px;
}

.myt-hn-date-label-fr {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
}

.myt-hn-date-label-ar {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

.myt-hn-date-closed strong {
    color: #791F1F;
    font-size: 13px;
}

.myt-hn-date-open strong {
    color: #27500A;
    font-size: 13px;
}

/* ── CTA WhatsApp ────────────────────────────────── */
.myt-hn-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #075E54;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: background 0.2s, transform 0.15s;
}

.myt-hn-wa-btn:hover {
    background: #128C7E;
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
}

.myt-hn-wa-fr { }

.myt-hn-wa-ar {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 13px;
    opacity: 0.85;
}

.myt-hn-wa-ar::before {
    content: " / ";
    opacity: 0.5;
}

/* ── Bouton "J'ai compris" ───────────────────────── */
.myt-hn-dismiss-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.myt-hn-dismiss-btn:hover {
    background: #ebebeb;
}

.myt-hn-dismiss-ar {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 12px;
    opacity: 0.7;
}

.myt-hn-dismiss-ar::before {
    content: " / ";
    opacity: 0.5;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 480px) {
    #myt-hn-popup {
        padding: 24px 20px 20px;
        border-radius: 12px;
    }

    .myt-hn-title-fr { font-size: 17px; }
    .myt-hn-title-ar  { font-size: 15px; }

    .myt-hn-cd-block span { font-size: 26px; }
    .myt-hn-cd-block { min-width: 52px; }

    .myt-hn-dates { grid-template-columns: 1fr; }

    .myt-hn-wa-btn {
        flex-wrap: wrap;
        font-size: 13px;
    }
}
