/* ============================================================
   Site du studio NawatStudio (studio.php) — charge apres marketing.css.
   Reutilise les tokens --m-* et les classes m-wrap / m-btn / m-section.
   Prefixe st-. Proprietes logiques pour le RTL (arabe).
   ============================================================ */

:root:has(.st-page) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    :root:has(.st-page) { scroll-behavior: auto; }
}
.st-section { scroll-margin-top: 80px; }

/* Page sobre : pas de pulsation ni de reflet sur les boutons. */
.st-page .m-btn-brand { animation: none; }
.st-page .m-btn-brand.m-btn-lg::before { display: none; }

/* La section contact a deja son padding bas : pas de double marge avant le pied de page. */
.st-page ~ .m-foot { margin-top: 0; }

/* Arabe : pas d'interlettrage negatif (casse les liaisons) ; Tajawal parait plus petit, +1px. */
[dir="rtl"] .st-page h1,
[dir="rtl"] .st-page h2,
[dir="rtl"] .st-page h3 { letter-spacing: 0; }
[dir="rtl"] .st-card-desc,
[dir="rtl"] .st-point p { font-size: 16px; }
[dir="rtl"] .st-card--soon .st-card-desc,
[dir="rtl"] .st-card-tagline { font-size: 15px; }

/* ============================================================
   Hero
   ============================================================ */
.st-hero {
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, #E0E7FF 0%, rgba(238, 242, 255, 0) 70%),
        linear-gradient(180deg, #F8F9FF 0%, #FFFFFF 100%);
    padding-block: 96px 88px;
    border-bottom: 1px solid var(--m-border);
}
.st-hero-inner {
    max-width: 880px;
    text-align: center;
}
.st-eyebrow {
    display: inline-block;
    margin: 0 0 22px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #C7D2FE;
    color: var(--m-brand-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.st-hero-title {
    margin: 0 auto 20px;
    max-width: 820px;
    font-size: clamp(34px, 5.2vw, 56px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--m-ink);
    text-wrap: balance;
}
[dir="rtl"] .st-hero-title { line-height: 1.3; }
.st-hero-lede {
    margin: 0 auto;
    max-width: 640px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--m-ink-2);
    text-wrap: pretty;
}
.st-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

/* ============================================================
   Produits
   ============================================================ */
.st-live-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.st-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-lg);
    padding: 28px;
    box-shadow: var(--m-shadow-sm);
}
.st-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
/* Logo du produit (icône ronde + nom bicolore + slogan, image) : le nom de la carte. Hauteur fixe,
   réduite si la carte est trop étroite (max-width garde les proportions). */
.st-card-logo {
    margin: 0;
    min-width: 0;
    line-height: 0;
}
.st-card-logo img { display: block; width: auto; height: auto; max-height: 72px; max-width: 100%; }
.st-card-top .st-badge { flex-shrink: 0; }
.st-card-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex-shrink: 0; }
.st-card-tagline {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--m-brand);
}
.st-card-desc {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--m-ink-2);
}

/* Badges d'etat */
.st-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}
.st-badge--live {
    background: var(--m-success-bg);
    color: #065F46;
}
.st-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--m-success);
}
.st-badge--free {
    background: var(--m-brand-bg);
    color: var(--m-brand-dark);
}
.st-badge--soon {
    background: var(--m-bg-3);
    color: var(--m-ink-3);
}

/* Produits en ligne : toute la carte est cliquable (lien etire). */
.st-card--live { transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.st-card--live:hover,
.st-card--live:focus-within {
    border-color: #C7D2FE;
    box-shadow: var(--m-shadow);
    transform: translateY(-2px);
}
.st-card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    font-size: 15px;
    font-weight: 700;
    color: var(--m-brand);
}
.st-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}
.st-card-link:focus-visible { outline: none; }
.st-card--live:has(.st-card-link:focus-visible) {
    outline: 2px solid var(--m-brand);
    outline-offset: 3px;
}
.st-card--live:hover .st-card-link { color: var(--m-brand-dark); }
.st-arrow {
    display: inline-block;
    transition: transform 0.15s;
}
.st-card--live:hover .st-arrow { transform: translateX(3px); }
[dir="rtl"] .st-arrow { transform: scaleX(-1); }
[dir="rtl"] .st-card--live:hover .st-arrow { transform: scaleX(-1) translateX(3px); }

/* Produits a venir : attenues, sans lien. */
.st-soon-label {
    margin: 48px 0 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--m-ink-3);
}
[dir="rtl"] .st-soon-label { letter-spacing: 0; }
.st-soon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.st-card--soon {
    background: var(--m-bg-2);
    box-shadow: none;
    padding: 22px;
}
.st-card--soon .st-card-top { margin-bottom: 12px; }
.st-card--soon .st-card-logo img { max-height: 58px; }
.st-card--soon .st-card-tagline {
    color: var(--m-ink-3);
    margin-bottom: 8px;
}
.st-card--soon .st-card-desc {
    margin: 0;
    font-size: 14px;
    color: var(--m-ink-3);
}

/* ============================================================
   Approche
   ============================================================ */
.st-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}
.st-point h3 {
    margin: 18px 0 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--m-ink);
}
.st-point p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--m-ink-2);
}
.st-point-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--m-border);
    color: var(--m-brand);
}

/* ============================================================
   Contact
   ============================================================ */
.st-contact {
    max-width: 760px;
    margin-inline: auto;
    padding: 56px 48px;
    background: #fff;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-lg);
    box-shadow: var(--m-shadow);
    text-align: center;
}
.st-contact-title {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--m-ink);
}
.st-contact-lede {
    margin: 0 auto 28px;
    max-width: 520px;
    font-size: 17px;
    color: var(--m-ink-2);
}
.st-btn-wa {
    background: #047857;
    border-color: #047857;
    color: #fff;
}
.st-btn-wa:hover {
    background: #065F46;
    border-color: #065F46;
    color: #fff;
}
.st-btn-wa:focus-visible,
.st-contact-item:focus-visible {
    outline: 2px solid var(--m-brand);
    outline-offset: 3px;
}
.st-contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.st-contact-list li { display: flex; }
.st-contact-list li:only-child { grid-column: 1 / -1; }
.st-contact-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius);
    background: var(--m-bg-2);
    text-align: start;
    color: var(--m-ink);
    transition: border-color 0.15s, background 0.15s;
}
.st-contact-item:hover {
    border-color: #C7D2FE;
    background: var(--m-brand-bg);
    color: var(--m-ink);
}
.st-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--m-border);
    color: var(--m-brand);
}
.st-contact-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.st-contact-label {
    font-size: 13px;
    color: var(--m-ink-3);
}
.st-contact-value {
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .st-hero { padding-block: 64px 60px; }
    .st-soon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .st-points { grid-template-columns: 1fr; gap: 28px; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 720px) {
    .st-live-grid { grid-template-columns: 1fr; }
    .st-contact-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .st-hero { padding-block: 48px 48px; }
    .st-hero-lede { font-size: 16px; }
    .st-hero-actions .m-btn { flex: 1 1 100%; justify-content: center; }
    .st-soon-grid { grid-template-columns: 1fr; }
    .st-card { padding: 22px; }
    .st-contact { padding: 36px 20px; }
    .st-contact-title { font-size: 26px; }
    .st-btn-wa { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .st-card--live,
    .st-arrow { transition: none; }
    .st-card--live:hover,
    .st-card--live:focus-within { transform: none; }
}
