:root {
    --brand-1: #7c0e3f;
    --brand-2: #b4235b;
    --brand-gradient: linear-gradient(135deg, #7c0e3f 0%, #b4235b 100%);
    --bg: #ffffff;
    --card-bg: #ffffff;
    --border: rgba(0, 0, 0, 0.06);
    --text: #1b1b1f;
    --muted: #707079;
    --shadow: 0 18px 45px rgba(15, 14, 56, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Cairo", system-ui;
    background: var(--bg);
    color: var(--text);
}

body.rtl,
*.rtl {
    direction: rtl;
    text-align: right;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-shell {
    max-width: 1200px;
    width: 100%;
}

.course-glass {
    position: relative;
    border-radius: 28px;
    padding: 30px 30px 24px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* bandeau haut */
.course-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}
.course-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    color: #ffffff;
    background: var(--brand-gradient);
}
.course-label span.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffcf72;
    box-shadow: 0 0 0 3px rgba(255, 207, 114, 0.35);
}
.hero-ribbon {
    background: linear-gradient(120deg, #ffb347, #ff7b54);
    /*color: #3b1a32;*/
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    column-gap: 0.3rem;
    box-shadow: 0 8px 18px rgba(255, 123, 84, 0.4);
}
.hero-ribbon i {
    font-size: 0.9rem;
}
.hero-ribbon span,
.hero-ribbon i {
    background: linear-gradient(90deg, #2b1024, #5a0f33, #7c0e3f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* layout principal */
.course-main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: stretch;
}

/* colonne texte */
.course-content h1 {
    font-size: 28px;
    line-height: 1.6;
    margin-bottom: 6px;
}
.course-content .item-title {
    background: linear-gradient(90deg, #2b1024, #5a0f33, #7c0e3f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.course-content p.lead {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 18px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 12px;
}
.meta-chip {
    border-radius: 999px;
    padding: 6px 12px;
    background: #fafafe;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
}
.meta-chip strong {
    color: var(--text);
}
.teacher-box {
    margin-bottom: 5px;
}
.teacher-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-1);
    margin-bottom: 2px;
}
.learn-box {
    margin-bottom: 20px;
}
.learn-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-1);
    margin-bottom: 6px;
}
.learn-list {
    list-style: none;
    font-size: 13px;
    color: var(--text);
}
.learn-list li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
}
.learn-list span.icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(50, 196, 141, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #24a36d;
    flex-shrink: 0;
    margin-top: 2px;
}

.cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}
.price-block {
    font-size: 13px;
    color: var(--muted);
}
.price-block .amount {
    font-size: 24px;
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-pill {
    border-radius: 999px;
    padding: 9px 24px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-primary {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 12px 32px rgba(124, 14, 63, 0.35);
}
.btn-ghost {
    background: #ffffff;
    color: var(--brand-1);
    border: 1px solid rgba(124, 14, 63, 0.25);
}

.hero-price-note {
    font-size: 0.8rem;
    color: #6b6b6b;
}

.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 0.3rem;
}
.btn-payment {
  width: 100%;
}

.hero-cta-primary {
    background: linear-gradient(120deg, #7c0e3f, #b4235b);
    border-color: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 0.7rem 2.8rem;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 16px 32px rgba(124, 14, 63, 0.55);
}

.hero-cta-primary:hover {
    background: linear-gradient(120deg, #ffb347, #ff7b54);
    color: #3b1a32;
}

/* colonne média */
.course-media {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border);
    max-height: 75%;
}
.course-media-img {
    position: absolute;
    inset: 0;
    opacity: 0.9;
}
.media-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.1)
    );
}

.media-inner {
    position: relative;
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: #ffffff;
}

.pill-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.pill-live span.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4b6a;
    box-shadow: 0 0 0 3px rgba(255, 75, 106, 0.35);
}

.media-play {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}
.media-play button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: radial-gradient(
        circle at 30% 20%,
        #ffffff,
        #ffe0eb 55%,
        #7c0e3f 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
    color: #7c0e3f;
    font-size: 26px;
}

.media-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}
.media-footer strong {
    color: #ffffff;
}

@media (max-width: 900px) {
    .course-main {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-wrapper {
        padding: 0px 12px 0px;
    }
    .course-glass {
        padding: 24px 20px 20px;
    }
    .cta-row {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .course-content h1 {
        font-size: 23px;
    }
    .course-media {
        max-height: 100%;
    }
}

.btn-close-modal {
    height: 32px !important;
}
.btn-close-modal.btn-primary:hover{
    border-color: #592050 !important;
}
/***********************************************/
.info-icon {
    font-size: 1rem;
    display: flex; /* Centrage vertical icône */
    align-items: center;
}
.bg-blue {
    background-color: #f0f7ff;
}
.bg-green {
    background-color: #f0fff4;
}
.bg-yellow {
    background-color: #fffbf0;
}

.text-blue {
    color: #1a56db;
}
.text-green {
    color: #2e7d32;
}
.text-yellow {
    color: #d48806;
}

.text-purple {
    color: var(--brand-1);
}
/******************************/
.course-card,
.auth-card,
.payment-card,
.student-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 25px;
}
/******************************/
/********Colonne Login/Register*******/
.center-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 6px;
}
.center-sub {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 18px;
}
.auth-tabs {
    display: flex;
    background: #e5edff;
    border-radius: 999px;
    margin-bottom: 18px;
}
.auth-tab {
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 8px 0;
    font-size: 13px;
    cursor: pointer;
    background: transparent;
    color: #4b5563;
}
.auth-tab.active {
    background: #5b0c46;
    color: #fff;
    box-shadow: 0 8px 18px rgba(91, 12, 70, 0.4);
}

.input-wrap {
    position: relative;
}
.input-wrap span.icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #9ca3af;
}
html[lang="en"] .input-wrap span.icon {
    right: 12px !important;
}
.rtl .input-wrap span.icon {
    left: 12px !important;
}
.input-wrap input,
.input-wrap select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    background: #f9fafb;
}
.input-wrap input:focus,
.input-wrap select:focus {
    outline: none;
    border-color: #5b0c46;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(91, 12, 70, 0.25);
}

.btn-arround {
    border-radius: 999px;
}

.small-link a {
    color: #5b0c46;
    font-weight: bold;
}

#password-rules li {
    font-size: 13px;
}

#password-rules li.inside {
    list-style: inside;
    padding-right: 4px;
    padding-left: 4px;
}

.rule-valid {
    color: #1c7c1c !important;
}

.rule-invalid {
    list-style: inside;
    padding-right: 4px;
    padding-left: 4px;
    color: #f00 !important;
}

li.rule-valid::before {
    content: "✓";
    color: #28a745; /* Vert */
    font-weight: bold;
}

/*********Colonne payment***********/

.payment-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.payment-card.disabled input,
.payment-card.disabled .payment-option {
    pointer-events: none;
}
.pay-note {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}
.pay-locked-text {
    font-size: 15px;
    color: #b91c1c;
    text-align: center;
    font-weight: bold;
}
