/* ============================================================
   Majevor — Design System
   Thème enfant Astra · Palette navy / or
   ============================================================ */

:root {
    --mj-navy: #1A2340;
    --mj-navy-light: #2A3A5C;
    --mj-navy-bg: #0F1629;
    --mj-gold: #B8862E;
    --mj-gold-light: rgba(184, 134, 46, 0.08);
    --mj-gold-hover: #D4A03A;
    --mj-cream: #F6F5F1;
    --mj-cream-dark: #EDE9E0;
    --mj-green: #22c55e;
    --mj-red: #ef4444;
    --mj-gray-50: #F9F8F6;
    --mj-gray-100: #F1F0EC;
    --mj-gray-200: #E2DFD8;
    --mj-gray-300: #C8C4BA;
    --mj-gray-500: #5C5A52;
    --mj-gray-700: #3A3832;
    --mj-gray-900: #1A1A18;
    --mj-white: #ffffff;
    --mj-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mj-radius: 12px;
    --mj-radius-sm: 8px;
    --mj-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --mj-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --mj-container: 1100px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--mj-font);
    color: var(--mj-gray-900);
    background: var(--mj-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--mj-gold);
    text-decoration: none;
}

a:hover {
    color: var(--mj-gold-hover);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.mj-container {
    max-width: var(--mj-container);
    margin: 0 auto;
    padding: 0 24px;
}

.mj-section {
    padding: 80px 0;
}

.mj-section--alt {
    background: var(--mj-cream);
}

.mj-section__title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--mj-gray-900);
}

.mj-section__subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--mj-gray-500);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ============================================================
   HEADER
   ============================================================ */

.mj-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 35, 64, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 134, 46, 0.2);
}

.mj-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.mj-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--mj-white);
}

.mj-header__logo img {
    height: 36px;
    width: auto;
}

.mj-header__brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #D2A23F;
}

.mj-header__nav {
    display: flex;
    gap: 28px;
}

.mj-header__nav a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.mj-header__nav a:hover {
    color: var(--mj-gold);
}

/* Language switcher */
.mj-lang-switcher {
    display: flex;
    gap: 4px;
}

.mj-lang-switcher__link {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    transition: all 0.2s;
}

.mj-lang-switcher__link:hover {
    color: var(--mj-gold);
    background: rgba(184, 134, 46, 0.1);
}

.mj-lang-switcher__link--active {
    color: var(--mj-navy);
    background: var(--mj-gold);
}

.mj-lang-switcher__link--active:hover {
    color: var(--mj-navy);
    background: var(--mj-gold-hover);
}

/* Burger (mobile) */
.mj-header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mj-header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--mj-gold);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================================
   DÉMONSTRATIONS VIDÉO
   ============================================================ */

.mj-section--videos {
    background: #f4f6fa;
}

.mj-videos__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1080px;
    margin: 40px auto 0;
}

.mj-video-card {
    overflow: hidden;
    background: var(--mj-white);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.mj-video-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: var(--mj-navy);
    object-fit: cover;
}

.mj-video-card__body {
    padding: 24px;
}

.mj-video-card__body h3 {
    margin: 0 0 10px;
    color: var(--mj-navy);
    font-size: 1.2rem;
}

.mj-video-card__body p {
    margin: 0;
    color: #566074;
    line-height: 1.65;
}

@media (max-width: 820px) {
    .mj-videos__grid {
        grid-template-columns: 1fr;
        max-width: 430px;
    }
}

/* ============================================================
   HERO
   ============================================================ */

.mj-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--mj-navy) 0%, var(--mj-navy-bg) 100%);
    color: var(--mj-white);
}

.mj-hero .mj-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.mj-hero__content {
    flex: 1;
}

.mj-hero__visual {
    flex-shrink: 0;
}

.mj-hero__visual img {
    max-height: 500px;
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

.mj-hero__title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--mj-white);
    margin-bottom: 16px;
}

.mj-hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 520px;
}

.mj-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(184, 134, 46, 0.15);
    border: 1px solid rgba(184, 134, 46, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mj-gold);
    margin-bottom: 32px;
}

.mj-hero__cta {
    margin-bottom: 32px;
}

.mj-hero__qr {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mj-hero__qr img {
    width: 100px;
    height: 100px;
    border-radius: var(--mj-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mj-hero__qr-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   BOUTONS
   ============================================================ */

.mj-appstore-badge { display: inline-block; line-height: 0; transition: transform .15s ease, opacity .15s ease; }
.mj-appstore-badge:hover { transform: translateY(-2px); opacity: .88; }
.mj-appstore-badge img { display: block; width: auto; }

.mj-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--mj-font);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--mj-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.mj-btn--primary {
    background: var(--mj-gold);
    color: var(--mj-white);
}

.mj-btn--primary:hover {
    background: var(--mj-gold-hover);
    color: var(--mj-white);
}

.mj-btn--dark {
    background: var(--mj-navy);
    color: var(--mj-white);
}

.mj-btn--dark:hover {
    background: var(--mj-navy-light);
    color: var(--mj-white);
}

.mj-btn--large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.mj-icon-apple {
    width: 18px;
    height: 22px;
}

/* ============================================================
   DEMO 3 STEPS
   ============================================================ */

.mj-demo__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mj-demo__step {
    background: var(--mj-white);
    border: 1px solid var(--mj-gray-200);
    border-radius: var(--mj-radius);
    padding: 28px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.mj-demo__step:hover {
    box-shadow: var(--mj-shadow-md);
}

.mj-demo__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--mj-gold);
    color: var(--mj-white);
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
    margin-bottom: 16px;
}

.mj-demo__step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--mj-gray-900);
}

.mj-demo__step p {
    font-size: 0.9rem;
    color: var(--mj-gray-500);
    line-height: 1.6;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */

.mj-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mj-feature {
    background: var(--mj-white);
    border: 1px solid var(--mj-gray-200);
    border-radius: var(--mj-radius);
    padding: 24px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.mj-feature:hover {
    box-shadow: var(--mj-shadow-md);
    transform: translateY(-2px);
}

.mj-feature__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.mj-feature__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--mj-gray-900);
}

.mj-feature__desc {
    font-size: 0.82rem;
    color: var(--mj-gray-500);
    line-height: 1.5;
}

/* ============================================================
   EXAMPLES
   ============================================================ */

.mj-examples__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mj-example {
    background: var(--mj-white);
    border-radius: var(--mj-radius);
    padding: 24px;
    box-shadow: var(--mj-shadow);
}

.mj-example__phrase {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mj-navy);
    font-style: italic;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid var(--mj-gold);
}

.mj-example__result {
    font-size: 0.85rem;
    color: var(--mj-gray-500);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.mj-example__arrow {
    color: var(--mj-gold);
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================================
   VIE PRIVÉE
   ============================================================ */

.mj-privacy__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mj-privacy__item {
    background: var(--mj-white);
    border-radius: var(--mj-radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--mj-shadow);
}

.mj-privacy__icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 16px;
}

.mj-privacy__item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.mj-privacy__item p {
    font-size: 0.9rem;
    color: var(--mj-gray-500);
    line-height: 1.6;
}

/* ============================================================
   CLOUD IA
   ============================================================ */

.mj-ia__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.mj-ia__item {
    background: var(--mj-white);
    border: 1px solid var(--mj-gray-200);
    border-radius: var(--mj-radius);
    padding: 32px;
}

.mj-ia__item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--mj-navy);
}

.mj-ia__item p {
    font-size: 0.9rem;
    color: var(--mj-gray-700);
    line-height: 1.7;
}

.mj-ia__note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 800px;
    margin: 32px auto 0;
    padding: 20px 24px;
    background: var(--mj-gold-light);
    border: 1px solid var(--mj-gold);
    border-left: 4px solid var(--mj-gold);
    border-radius: var(--mj-radius-sm);
}

.mj-ia__note-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.mj-ia__note p {
    font-size: 0.92rem;
    color: var(--mj-gray-700);
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

/* ============================================================
   PRICING TABLE
   ============================================================ */

.mj-section--pricing {
    background: var(--mj-white);
}

.mj-pricing__wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 32px;
}

.mj-pricing__table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    font-size: 0.9rem;
    border: none;
}

.mj-pricing__table thead th {
    padding: 20px 16px;
    text-align: center;
    vertical-align: bottom;
    border-bottom: 2px solid var(--mj-gray-200);
    background: var(--mj-gray-50);
}

.mj-pricing__table thead th:first-child {
    background: transparent;
}

.mj-pricing__plan {
    position: relative;
    min-width: 140px;
}

.mj-pricing__plan-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mj-gray-900);
    margin-bottom: 4px;
}

.mj-pricing__plan-price {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mj-gold);
}

.mj-pricing__plan-period {
    display: block;
    font-size: 0.8rem;
    color: var(--mj-gray-500);
    margin-top: 2px;
}

.mj-pricing__plan--recommended {
    background: var(--mj-gold-light) !important;
}

.mj-pricing__badge {
    display: inline-block;
    background: var(--mj-gold);
    color: var(--mj-white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.mj-pricing__feature-col {
    text-align: left !important;
    min-width: 220px;
}

.mj-pricing__table tbody tr {
    border-bottom: 1px solid var(--mj-gray-100);
}

.mj-pricing__table tbody tr:hover {
    background: var(--mj-gray-50);
}

.mj-pricing__section-row td {
    padding: 14px 16px;
    padding-top: 24px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--mj-gold);
    background: rgba(184, 134, 46, 0.06) !important;
    border-top: 2px solid var(--mj-gold);
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

.mj-pricing__section-row {
    border-bottom: none !important;
}

.mj-pricing__section-row:hover {
    background: transparent !important;
}

.mj-pricing__table tbody tr:last-child {
    border-bottom: none;
}

.mj-pricing__table,
.mj-pricing__table thead th:first-child,
.mj-pricing__table thead th:last-child,
.mj-pricing__table tbody tr td:first-child,
.mj-pricing__table tbody tr td:last-child {
    border-left: none;
    border-right: none;
}

.mj-pricing__feature-name {
    padding: 14px 16px;
    font-size: 0.88rem;
    color: var(--mj-gray-700);
    text-align: left;
}

.mj-pricing__plan-price {
    color: #735314;
}

.mj-pricing__cell {
    padding: 14px 16px;
    text-align: center;
}

.mj-pricing__table tbody td:nth-child(3) {
    background: rgba(184, 134, 46, 0.03);
}

.mj-check {
    color: var(--mj-green);
    font-size: 1.3rem;
    font-weight: 700;
}

.mj-cross {
    color: var(--mj-red);
    font-size: 1.3rem;
    font-weight: 700;
}

.mj-limit {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mj-gold);
}

.mj-unlimited {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mj-gold);
}

.mj-pricing__recharges {
    max-width: 700px;
    margin: 0 auto 32px;
    padding: 24px;
    background: var(--mj-gold-light);
    border: 1px solid var(--mj-gold);
    border-radius: var(--mj-radius);
}

.mj-pricing__recharges h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mj-navy);
    margin-bottom: 8px;
}

.mj-pricing__recharges p {
    font-size: 0.9rem;
    color: var(--mj-gray-700);
    line-height: 1.6;
}

.mj-pricing__notes {
    max-width: 700px;
    margin: 0 auto;
}

.mj-pricing__notes ul {
    list-style: none;
    padding: 0;
}

.mj-pricing__notes li {
    font-size: 0.82rem;
    color: var(--mj-gray-500);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.mj-pricing__notes li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--mj-gray-300);
}

/* ============================================================
   CTA FINAL
   ============================================================ */

.mj-section--cta {
    background: var(--mj-navy);
    color: var(--mj-white);
    text-align: center;
    padding: 80px 0;
}

.mj-section--cta .mj-section__title {
    color: var(--mj-white);
}

.mj-section--cta .mj-section__subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.mj-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mj-cta__qr img {
    width: 120px;
    height: 120px;
    border-radius: var(--mj-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================================
   PAGES (Privacy, Terms, Support, Manual)
   ============================================================ */

.mj-page {
    padding: 60px 0 80px;
}

.mj-page__content {
    max-width: 760px;
}

.mj-page__content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.mj-page__updated {
    font-size: 0.85rem;
    color: var(--mj-gray-500);
    margin-bottom: 40px;
}

.mj-page__content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--mj-gray-900);
}

.mj-page__content p {
    font-size: 0.95rem;
    color: var(--mj-gray-700);
    line-height: 1.7;
    margin-bottom: 16px;
}

.mj-page__content ul {
    margin: 0 0 16px 20px;
}

.mj-page__content li {
    font-size: 0.95rem;
    color: var(--mj-gray-700);
    line-height: 1.7;
    margin-bottom: 6px;
}

.mj-page__contact {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--mj-gray-200);
}

/* ============================================================
   FAQ (Support)
   ============================================================ */

.mj-faq {
    margin: 40px 0;
}

.mj-faq__item {
    border-bottom: 1px solid var(--mj-gray-200);
}

.mj-faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    font-family: var(--mj-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--mj-gray-900);
    cursor: pointer;
    text-align: left;
}

.mj-faq__question:hover {
    color: var(--mj-gold);
}

.mj-faq__chevron {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--mj-gray-500);
}

.mj-faq__item.mj-faq__item--open .mj-faq__chevron {
    transform: rotate(180deg);
}

.mj-faq__answer {
    padding: 0 0 20px;
}

.mj-faq__answer p {
    font-size: 0.95rem;
    color: var(--mj-gray-700);
    line-height: 1.7;
}

/* ============================================================
   MANUAL (Download)
   ============================================================ */

.mj-manual {
    text-align: center;
}

.mj-manual__card {
    background: var(--mj-cream);
    border: 1px solid var(--mj-gray-200);
    border-radius: var(--mj-radius);
    padding: 48px 32px;
    max-width: 480px;
    margin: 40px auto 0;
}

.mj-manual__icon {
    color: var(--mj-gold);
    margin-bottom: 20px;
}

.mj-manual__card h2 {
    margin-top: 0;
    text-align: center;
}

.mj-manual__card p {
    text-align: center;
}

.mj-manual__format {
    font-size: 0.82rem !important;
    color: var(--mj-gray-500) !important;
    margin-top: 12px;
}

.mj-manual__card .mj-btn {
    margin-top: 20px;
}

/* ============================================================
   SUPPORT CONTACT
   ============================================================ */

.mj-support__contact {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: var(--mj-gold-light);
    border-radius: var(--mj-radius);
}

.mj-support__contact h2 {
    text-align: center;
    margin-top: 0;
}

.mj-support__contact p {
    text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */

.mj-footer {
    background: var(--mj-navy-bg);
    color: var(--mj-gray-300);
    padding: 48px 0 24px;
}

.mj-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.mj-footer__logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--mj-gold);
    margin-bottom: 8px;
}

.mj-footer__editor,
.mj-footer__address {
    font-size: 0.85rem;
    color: var(--mj-gray-300);
    margin: 0;
}

.mj-footer__links h2,
.mj-footer__contact h2 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mj-white);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mj-footer__links a,
.mj-footer__contact a {
    display: block;
    font-size: 0.85rem;
    color: var(--mj-gray-300);
    padding: 4px 0;
    transition: color 0.2s;
}

.mj-footer__links a:hover,
.mj-footer__contact a:hover {
    color: var(--mj-gold);
}

.mj-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.mj-footer__bottom p {
    font-size: 0.8rem;
    color: var(--mj-gray-300);
    margin: 0;
}

.mj-footer__disclaimer {
    margin-top: 8px !important;
    font-style: italic;
}
