/* ============================================================
   NEEMA BIBLE — SYSTÈME DE DESIGN PARTAGÉ
   La Parole de Dieu à portée de main

   Ce fichier est chargé par TOUTES les pages. Il contient :
   1. Réinitialisation + polices
   2. Jetons de design (couleurs, typographie, espacements)
   3. Composants partagés (en-tête, navigation, cartes, boutons)
   4. Utilitaires + accessibilité
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Lora:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600;700;800&display=swap");

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* ------------------------------------------------------------
   1. JETONS DE DESIGN
------------------------------------------------------------ */

:root {
    /* Fond — noir chaud tirant vers le bordeaux, jamais un noir pur */
    --bg: #100809;
    --bg-soft: #170b0c;

    /* Surfaces (cartes, barres) — un cran au-dessus du fond */
    --surface: #1e1012;
    --surface-2: #281618;
    --surface-3: #331b1e;

    /* Rouge bordeaux — couleur de marque principale */
    --wine: #7c1420;
    --wine-deep: #4a0c14;
    --wine-bright: #9c1c28;

    /* Or — accent, statuts actifs, étoiles */
    --gold: #c9a227;
    --gold-light: #e8cd75;
    --gold-dim: #8a7230;

    /* Texte */
    --text: #f4ecdf;
    --text-dim: #cdbfae;
    --muted: #93816f;

    /* Traits, ombres */
    --border: rgba(232, 205, 117, 0.12);
    --border-strong: rgba(232, 205, 117, 0.22);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-deep: 0 20px 50px rgba(0, 0, 0, 0.5);

    /* Formes */
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-pill: 999px;

    /* Rythme */
    --gap: 16px;
    --nav-h: 70px;
    --top-h: 64px;

    /* Texte toujours clair sur un fond bordeaux plein (boutons, cartes
       "Lire la Bible", onglets actifs) — reste inchangé entre les thèmes,
       car ces fonds restent sombres même en thème clair. */
    --text-on-wine: #f6ecdd;

    /* Sécurité d'encoche */
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);

    /* Dégradé de l'écran de démarrage */
    --splash-glow-1: rgba(124, 20, 32, 0.55);
    --splash-glow-2: rgba(201, 162, 39, 0.12);
    --splash-bg-1: #170b0c;
    --splash-bg-2: #0c0506;

    color-scheme: dark;
}

/* ------------------------------------------------------------
   1bis. THÈME CLAIR — bordeaux, blanc et or
   Activé via <html data-theme="light">, choisi dans Paramètres.
------------------------------------------------------------ */

:root[data-theme="light"] {
    /* Fond — ivoire chaud, jamais un blanc froid */
    --bg: #fbf6ec;
    --bg-soft: #f4ead4;

    /* Surfaces (cartes, barres) */
    --surface: #ffffff;
    --surface-2: #f8efdd;
    --surface-3: #f0e2c4;

    /* Rouge bordeaux — identique, reste la couleur de marque */
    --wine: #7c1420;
    --wine-deep: #5c0f18;
    --wine-bright: #9c1c28;

    /* Or — assombri pour rester lisible sur fond clair */
    --gold: #a9821e;
    --gold-light: #c9a227;
    --gold-dim: #8a7230;

    /* Texte — brun bordeaux profond plutôt qu'un noir pur */
    --text: #2a1417;
    --text-dim: #5b3d3f;
    --muted: #8d7267;

    /* Traits, ombres — teintés de bordeaux plutôt que gris neutre */
    --border: rgba(124, 20, 32, 0.14);
    --border-strong: rgba(124, 20, 32, 0.28);
    --shadow-soft: 0 10px 30px rgba(124, 20, 32, 0.08);
    --shadow-deep: 0 20px 40px rgba(124, 20, 32, 0.14);

    --splash-glow-1: rgba(124, 20, 32, 0.16);
    --splash-glow-2: rgba(201, 162, 39, 0.16);
    --splash-bg-1: #fbf6ec;
    --splash-bg-2: #f4ead4;

    color-scheme: light;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(var(--nav-h) + var(--safe-b));
}

body.no-nav {
    padding-bottom: var(--safe-b);
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    outline: none;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

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

::selection {
    background: var(--gold);
    color: #1a0e0f;
}

.screen {
    max-width: 560px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
}

/* ------------------------------------------------------------
   TYPOGRAPHIE
------------------------------------------------------------ */

h1, h2, h3, .font-display {
    font-family: "Cinzel", serif;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.font-read {
    font-family: "Lora", Georgia, serif;
}

p {
    line-height: 1.5;
}

/* ------------------------------------------------------------
   2. EN-TÊTE (topbar)
------------------------------------------------------------ */

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--top-h);
    padding: var(--safe-t) 8px 0;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
}

.topbar.bordered {
    border-bottom-color: var(--border);
}

.topbar-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: var(--r-pill);
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 15px;
    color: var(--text);
    transition: transform 0.15s ease, background 0.15s ease;
}

.topbar-btn:active {
    transform: scale(0.92);
}

.topbar-title {
    flex: 1;
    min-width: 0;
    font-family: "Cinzel", serif;
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ------------------------------------------------------------
   3. NAVIGATION BASSE
------------------------------------------------------------ */

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    height: calc(var(--nav-h) + var(--safe-b));
    padding-bottom: var(--safe-b);
    display: flex;
    justify-content: space-around;
    background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
}

.bottom-nav a {
    flex: 1;
    max-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.15s ease;
}

.bottom-nav a i {
    font-size: 18px;
}

.bottom-nav a.active {
    color: var(--gold-light);
}

.bottom-nav a.active i {
    text-shadow: 0 0 18px rgba(201, 162, 39, 0.5);
}

/* ------------------------------------------------------------
   4. BOUTONS
------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--wine-bright), var(--wine-deep));
    color: var(--text-on-wine);
    box-shadow: 0 12px 25px rgba(124, 20, 32, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary:active {
    filter: brightness(1.08);
}

.btn-ghost {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-text {
    width: auto;
    padding: 10px;
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
}

.btn[disabled] {
    opacity: 0.45;
    pointer-events: none;
}

/* ------------------------------------------------------------
   5. CARTES & LISTES
------------------------------------------------------------ */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
}

.row-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.row-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.row-card:active {
    background: var(--surface-2);
}

.row-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--gold);
    font-size: 15px;
}

.row-body {
    flex: 1;
    min-width: 0;
}

.row-title {
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-chevron {
    color: var(--muted);
    font-size: 13px;
}

/* Pastille de sélection (radio) */

.row-check {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
    display: grid;
    place-items: center;
    color: transparent;
    font-size: 12px;
    transition: 0.15s ease;
}

.row-card.selected {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--wine) 30%, var(--surface)),
        var(--surface)
    );
    border-color: var(--gold-dim);
}

.row-card.selected .row-check {
    background: var(--gold);
    border-color: var(--gold);
    color: #1a0e0f;
}

/* ------------------------------------------------------------
   6. BADGES / ONGLETS / PUCES
------------------------------------------------------------ */

.pill-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
}

.pill-tabs button {
    flex: 1;
    padding: 10px 12px;
    border-radius: var(--r-pill);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    text-align: center;
}

.pill-tabs button.active {
    background: linear-gradient(135deg, var(--wine-bright), var(--wine-deep));
    color: var(--text-on-wine);
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.4px;
}

/* ------------------------------------------------------------
   7. FORMULAIRES
------------------------------------------------------------ */

.field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 13px 16px;
}

.field input,
.field textarea {
    flex: 1;
    min-width: 0;
    background: transparent;
    color: var(--text);
}

.field i {
    color: var(--muted);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted);
}

label.field-label {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
    margin: 18px 0 8px;
}

select.field-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text);
}

/* ------------------------------------------------------------
   8. ÉTATS VIDES / CHARGEMENT
------------------------------------------------------------ */

.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--muted);
}

.empty-state i {
    font-size: 30px;
    color: var(--gold-dim);
    margin-bottom: 14px;
    display: block;
}

.empty-state p {
    font-size: 13.5px;
}

.skeleton {
    background: linear-gradient(
        100deg,
        var(--surface) 40%,
        var(--surface-2) 50%,
        var(--surface) 60%
    );
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--r-md);
}

@keyframes shimmer {
    from { background-position: 150% 0; }
    to { background-position: -50% 0; }
}

/* ------------------------------------------------------------
   9. TOAST (confirmation discrète)
------------------------------------------------------------ */

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--nav-h) + var(--safe-b) + 14px);
    transform: translate(-50%, 12px);
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-deep);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast i {
    color: var(--gold);
}

/* ------------------------------------------------------------
   10. UTILITAIRES
------------------------------------------------------------ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.stack { display: flex; flex-direction: column; gap: var(--gap); }
.px { padding-left: 20px; padding-right: 20px; }

/* ------------------------------------------------------------
   11. ACCESSIBILITÉ
------------------------------------------------------------ */

:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ------------------------------------------------------------
   12. RESPONSIVE — au-delà du format téléphone
------------------------------------------------------------ */

@media (min-width: 561px) {
    body {
        background: var(--bg-soft);
    }

    .screen {
        margin-top: 22px;
        margin-bottom: 22px;
        min-height: calc(100vh - 44px);
        border-radius: 34px;
        overflow: hidden;
        box-shadow: var(--shadow-deep);
        border: 1px solid var(--border);
    }

    .bottom-nav,
    .topbar {
        max-width: 560px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0 0 34px 34px;
    }

    .topbar {
        border-radius: 34px 34px 0 0;
    }
}
/* ============================================================
   13. FICHES / BOTTOM SHEETS
   À PROPOS — AIDE — etc.
   
   IMPORTANT :
   Les fiches sont totalement cachées par défaut.
   Elles deviennent visibles uniquement lorsque JavaScript
   ajoute la classe .open.
============================================================ */

.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;

    display: none;
    visibility: hidden;
    opacity: 0;

    align-items: flex-end;
    justify-content: center;

    background: rgba(0, 0, 0, 0.65);

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

/* Fiche ouverte */

.sheet-backdrop.open {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* ------------------------------------------------------------
   CONTENU DE LA FICHE
------------------------------------------------------------ */

.sheet {
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    max-height: 88dvh;

    overflow-y: auto;
    overscroll-behavior: contain;

    background: var(--surface);

    border: 1px solid var(--border-strong);
    border-bottom: 0;

    border-radius: 28px 28px 0 0;

    padding:
        10px
        20px
        calc(24px + var(--safe-b));

    box-shadow: var(--shadow-deep);

    transform: translateY(100%);
    transition: transform 0.3s ease;
}

/* Animation d'ouverture */

.sheet-backdrop.open .sheet {
    transform: translateY(0);
}

/* ------------------------------------------------------------
   PETITE BARRE EN HAUT DE LA FICHE
------------------------------------------------------------ */

.sheet::before {
    content: "";
    display: block;

    width: 42px;
    height: 4px;

    margin: 2px auto 18px;

    border-radius: var(--r-pill);

    background: var(--border-strong);
}

/* ------------------------------------------------------------
   TITRE
------------------------------------------------------------ */

.sheet h2,
.sheet h3 {
    color: var(--text);
}

.sheet h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.sheet h3 {
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 8px;
}

/* ------------------------------------------------------------
   TEXTE
------------------------------------------------------------ */

.sheet p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.65;
}

.sheet p + p {
    margin-top: 10px;
}

/* ------------------------------------------------------------
   BOUTON DE FERMETURE
------------------------------------------------------------ */

.sheet [data-close-sheet] {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    margin-left: auto;
    margin-bottom: 10px;

    border-radius: 50%;

    background: var(--surface-2);
    border: 1px solid var(--border);

    color: var(--text);
    font-size: 15px;

    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.sheet [data-close-sheet]:active {
    transform: scale(0.92);
    background: var(--surface-3);
}

/* ------------------------------------------------------------
   ICÔNES DANS LES FICHES
------------------------------------------------------------ */

.sheet i {
    color: var(--gold);
}

/* ------------------------------------------------------------
   ÉTAT OUVERT DU BODY
------------------------------------------------------------ */

body.sheet-open {
    overflow: hidden;
}

/* ------------------------------------------------------------
   ACCESSIBILITÉ
------------------------------------------------------------ */

.sheet-backdrop[aria-hidden="true"] {
    pointer-events: none;
}

.sheet-backdrop[aria-hidden="false"] {
    pointer-events: auto;
}

/* ------------------------------------------------------------
   DESKTOP
------------------------------------------------------------ */

@media (min-width: 561px) {
    .sheet {
        border-radius: 28px;
        border-bottom: 1px solid var(--border-strong);

        margin-bottom: 22px;

        max-height: calc(100vh - 44px);
        max-height: calc(100dvh - 44px);
    }
}
/* =========================================================
   NEEMA BIBLE — À PROPOS
   ========================================================= */

.about-language {
    display:inline-flex;
    align-items:center;
    padding:7px 10px;
    border-radius:999px;
    background:var(--bg);
    border:1px solid var(--border);
    color:var(--text-dim);
    font-size:11.5px;
}

.about-feature {
    min-height:54px;
    display:flex;
    align-items:center;
    gap:9px;
    padding:9px;
    border-radius:13px;
    background:var(--bg);
    border:1px solid var(--border);
    color:var(--text-dim);
    font-size:11.5px;
}

.about-feature i {
    width:25px;
    height:25px;
    flex:none;
    display:grid;
    place-items:center;
    border-radius:8px;
    color:var(--primary, #0A66FF);
    background:var(--primary-soft, #eef4ff);
    font-size:11px;
}


/* =========================================================
   BARRE DES PARTENAIRES
   ========================================================= */

.about-partners-wrapper {
    width:100%;
    overflow:hidden;
    position:relative;
    padding:4px 0 7px;
    mask-image:linear-gradient(
        to right,
        transparent,
        black 5%,
        black 95%,
        transparent
    );
    -webkit-mask-image:linear-gradient(
        to right,
        transparent,
        black 5%,
        black 95%,
        transparent
    );
}

.about-partners-track {
    display:flex;
    width:max-content;
    gap:12px;
    padding-left:15px;
    animation:neemaPartnersScroll 25s linear infinite;
}

.about-partners-wrapper:hover .about-partners-track {
    animation-play-state:paused;
}

.about-partner {
    width:125px;
    min-width:125px;
    padding:10px 9px;
    border-radius:16px;
    background:var(--surface);
    border:1px solid var(--border);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:7px;
    box-shadow:0 5px 16px rgba(0,0,0,.04);
}

.about-partner-logo {
    width:45px;
    height:45px;
    display:grid;
    place-items:center;
    border-radius:12px;
    overflow:hidden;
    background:var(--bg);
    border:1px solid var(--border);
}

.about-partner-logo img {
    width:100%;
    height:100%;
    object-fit:contain;
    padding:6px;
}

.about-partner span {
    width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    text-align:center;
    font-size:10.5px;
    color:var(--text-dim);
}

@keyframes neemaPartnersScroll {
    from {
        transform:translateX(0);
    }

    to {
        transform:translateX(-50%);
    }
}


/* Respect du réglage système */
@media (prefers-reduced-motion: reduce) {
    .about-partners-track {
        animation:none;
    }
}
/* =========================================================
NEEMA BIBLE — À PROPOS
========================================================= */

.about-info-card {
padding:15px;
margin-bottom:12px;
border-radius:18px;
background:var(--surface);
border:1px solid var(--border);
}

.about-section-title {
display:flex;
align-items:center;
gap:10px;
margin-bottom:11px;
}

.about-section-icon {
width:34px;
height:34px;
flex:none;
display:grid;
place-items:center;
border-radius:11px;
background:var(--primary-soft, #eef4ff);
color:var(--primary, #0A66FF);
}

.about-info-card p {
margin:0 0 8px;
font-size:13px;
line-height:1.65;
color:var(--text-dim);
}

.about-info-card p:last-child {
margin-bottom:0;
}

.about-languages {
display:flex;
flex-wrap:wrap;
gap:7px;
}

.about-languages span {
padding:7px 10px;
border-radius:999px;
background:var(--bg);
border:1px solid var(--border);
color:var(--text-dim);
font-size:11px;
}

.about-features {
display:grid;
grid-template-columns:1fr 1fr;
gap:8px;
}

.about-feature {
min-height:50px;
display:flex;
align-items:center;
gap:8px;
padding:8px;
border-radius:13px;
background:var(--bg);
border:1px solid var(--border);
color:var(--text-dim);
font-size:11px;
}

.about-feature i {
width:25px;
height:25px;
flex:none;
display:grid;
place-items:center;
border-radius:8px;
background:var(--primary-soft, #eef4ff);
color:var(--primary, #0A66FF);
}

/* =========================================================
PARTENAIRES
========================================================= */

.about-partners-section {
margin-bottom:14px;
padding:3px 0 8px;
}

.about-partners-wrapper {
width:100%;
overflow:hidden;
position:relative;
padding:4px 0 7px;

mask-image:linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
);

-webkit-mask-image:linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
);

}

.about-partners-track {
display:flex;
width:max-content;
gap:12px;
padding-left:15px;
animation:neemaPartnersScroll 25s linear infinite;
}

.about-partner {
width:125px;
min-width:125px;
padding:10px 9px;
border-radius:16px;
background:var(--surface);
border:1px solid var(--border);
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:7px;
}

.about-partner-logo {
width:45px;
height:45px;
display:grid;
place-items:center;
overflow:hidden;
border-radius:12px;
background:var(--bg);
border:1px solid var(--border);
}

.about-partner-logo img {
width:100%;
height:100%;
object-fit:contain;
padding:5px;
}

.about-partner span {
width:100%;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
text-align:center;
font-size:10.5px;
color:var(--text-dim);
}

@keyframes neemaPartnersScroll {

from {
    transform:translateX(0);
}

to {
    transform:translateX(-50%);
}

}

/* =========================================================
DÉVELOPPEUR
========================================================= */

.about-developer {
margin:5px 0 12px;
padding:17px 14px;
text-align:center;
border-radius:18px;
background:var(--surface);
border:1px solid var(--border);
}

.about-developer-icon {
width:42px;
height:42px;
margin:0 auto 9px;
display:grid;
place-items:center;
border-radius:13px;
background:var(--primary-soft, #eef4ff);
color:var(--primary, #0A66FF);
}

.about-developer-label {
display:block;
font-size:10.5px;
color:var(--muted);
}

.about-developer-link {
display:inline-flex;
align-items:center;
gap:7px;
margin-top:5px;
color:var(--text);
text-decoration:none;
font-size:14px;
font-weight:700;
}

.about-developer-link i {
font-size:10px;
}

.about-developer-description {
display:block;
margin-top:7px;
font-size:10.5px;
line-height:1.5;
color:var(--muted);
}

.about-copyright {
padding:3px 10px 20px;
text-align:center;
font-size:10.5px;
line-height:1.6;
color:var(--muted);
}

/* ACCESSIBILITÉ */
@media (prefers-reduced-motion: reduce) {
.about-partners-track {
animation:none;
}
}

/* ============================================================
   NEEMA BIBLE — ÉNIGMES BIBLIQUES
   Page de jeu indépendante
============================================================ */

body {
    padding-bottom: calc(
        var(--nav-h) + var(--safe-b)
    );
}

/* ------------------------------------------------------------
   HERO DU JEU
------------------------------------------------------------ */

.game-hero {
    position: relative;
    overflow: hidden;

    margin: 4px 0 18px;

    padding: 26px 20px 24px;

    border-radius: var(--r-lg);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(201,162,39,.24),
            transparent 48%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(156,28,40,.30),
            transparent 52%
        ),
        linear-gradient(
            145deg,
            var(--wine-bright),
            var(--wine-deep)
        );

    border: 1px solid
        rgba(255,255,255,.09);

    box-shadow: var(--shadow-soft);

    color: var(--text-on-wine);
}

.game-hero::after {
    content: "?";

    position: absolute;

    right: -10px;
    bottom: -34px;

    font-family: "Cinzel", serif;

    font-size: 150px;
    font-weight: 700;

    color: rgba(255,255,255,.055);

    pointer-events: none;
}

.game-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin-bottom: 18px;

    border-radius: 50%;

    background: rgba(255,255,255,.10);

    border: 1px solid
        rgba(255,255,255,.13);

    color: var(--text-on-wine);

    transition:
        transform .15s ease,
        background .15s ease;
}

.game-back:active {
    transform: scale(.92);
}

.game-hero-content {
    position: relative;
    z-index: 2;
}

.game-eyebrow {
    display: inline-flex;

    align-items: center;
    gap: 7px;

    margin-bottom: 8px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;

    color: var(--gold-light);
}

.game-hero h1 {
    font-size: 25px;
    line-height: 1.18;

    color: var(--text-on-wine);
}

.game-hero p {
    max-width: 310px;

    margin-top: 8px;

    color: rgba(244,236,223,.82);

    font-size: 13px;
    line-height: 1.55;
}

/* ------------------------------------------------------------
   BARRE DE PROGRESSION
------------------------------------------------------------ */

.progress-card {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 16px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--r-md);
}

.progress-info {
    flex: 1;
    min-width: 0;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 8px;
}

.progress-label {
    font-size: 11px;
    font-weight: 700;

    color: var(--muted);
}

.progress-value {
    font-size: 11px;
    font-weight: 800;

    color: var(--gold);
}

.progress-track-game {
    height: 7px;

    overflow: hidden;

    border-radius: 999px;

    background: var(--surface-2);
}

.progress-fill-game {
    width: 0%;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--wine-bright),
            var(--gold)
        );

    transition: width .35s ease;
}

.level-badge {
    width: 45px;
    height: 45px;

    min-width: 45px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            var(--wine-bright),
            var(--wine-deep)
        );

    border: 1px solid
        var(--border-strong);

    color: var(--gold-light);

    font-family: "Cinzel", serif;
    font-size: 14px;
    font-weight: 700;
}

/* ------------------------------------------------------------
   SCORE
------------------------------------------------------------ */

.game-stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 9px;
}

.game-stat {
    padding: 13px 8px;

    text-align: center;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--r-md);
}

.game-stat i {
    display: block;

    margin-bottom: 6px;

    font-size: 15px;

    color: var(--gold);
}

.game-stat strong {
    display: block;

    font-size: 15px;
}

.game-stat span {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 9.5px;
    font-weight: 600;
}

/* ------------------------------------------------------------
   QUESTION
------------------------------------------------------------ */

.question-card {
    position: relative;

    padding: 22px 18px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--r-lg);

    overflow: hidden;
}

.question-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--wine-bright),
            var(--gold),
            var(--wine-bright)
        );
}

.question-category {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 14px;

    color: var(--gold);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .7px;
    text-transform: uppercase;
}

.question-text {
    font-family: "Lora", Georgia, serif;

    font-size: 18px;
    font-weight: 600;

    line-height: 1.5;

    text-align: center;

    color: var(--text);
}

/* ------------------------------------------------------------
   RÉPONSE EN LETTRES
------------------------------------------------------------ */

.answer-area {
    margin-top: 22px;
}

.answer-slots {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    min-height: 42px;
}

.answer-slot {
    width: 29px;
    height: 36px;

    display: grid;
    place-items: center;

    border-bottom: 2px solid
        var(--gold-dim);

    color: var(--text);

    font-family: "Cinzel", serif;

    font-size: 16px;
    font-weight: 700;
}

.answer-slot.filled {
    border-bottom-color: var(--gold);
}

/* ------------------------------------------------------------
   LETTRES DISPONIBLES
------------------------------------------------------------ */

.letters-grid {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 7px;

    margin-top: 18px;
}

.letter-btn {
    min-height: 39px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--surface);

    border: 1px solid var(--border-strong);

    color: var(--text-dim);

    font-size: 13px;
    font-weight: 800;

    transition:
        transform .12s ease,
        background .12s ease,
        border-color .12s ease;
}

.letter-btn:active {
    transform: scale(.94);
}

.letter-btn.used {
    opacity: .28;

    pointer-events: none;
}

.letter-btn.correct {
    border-color: var(--gold);

    color: var(--gold-light);

    background:
        color-mix(
            in srgb,
            var(--gold) 12%,
            var(--surface)
        );
}

/* ------------------------------------------------------------
   ACTIONS
------------------------------------------------------------ */

.game-actions {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 9px;

    margin-top: 14px;
}

.game-action {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 12px;

    border-radius: var(--r-md);

    background: var(--surface);

    border: 1px solid var(--border);

    color: var(--text-dim);

    font-size: 11.5px;
    font-weight: 700;
}

.game-action i {
    color: var(--gold);
}

.game-action:active {
    background: var(--surface-2);
}

/* ------------------------------------------------------------
   INDICE
------------------------------------------------------------ */

.hint-box {
    display: none;

    margin-top: 13px;

    padding: 13px 14px;

    border-radius: var(--r-md);

    background:
        color-mix(
            in srgb,
            var(--gold) 7%,
            var(--surface)
        );

    border: 1px solid
        rgba(201,162,39,.18);

    color: var(--text-dim);

    font-size: 12px;

    line-height: 1.55;
}

.hint-box.show {
    display: flex;

    align-items: flex-start;

    gap: 9px;
}

.hint-box i {
    margin-top: 2px;

    color: var(--gold);
}

/* ------------------------------------------------------------
   MESSAGE
------------------------------------------------------------ */

.game-message {
    min-height: 20px;

    margin-top: 12px;

    text-align: center;

    font-size: 12px;
    font-weight: 700;

    color: var(--muted);
}

.game-message.success {
    color: #78c47d;
}

.game-message.error {
    color: #d67b7b;
}

/* ------------------------------------------------------------
   NIVEAUX
------------------------------------------------------------ */

.level-section {
    margin-top: 4px;
}

.section-title-game {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 10px;
}

.section-title-game strong {
    font-family: "Cinzel", serif;

    font-size: 15px;
}

.section-title-game span {
    color: var(--muted);

    font-size: 10px;
}

.level-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 9px;
}

.level-card {
    position: relative;

    min-height: 94px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 10px;

    border-radius: var(--r-md);

    background: var(--surface);

    border: 1px solid var(--border);

    color: var(--text-dim);

    transition:
        transform .15s ease,
        border-color .15s ease;
}

.level-card:active {
    transform: scale(.97);
}

.level-card i {
    font-size: 20px;

    color: var(--gold-dim);
}

.level-card strong {
    font-family: "Cinzel", serif;

    font-size: 12px;
}

.level-card span {
    font-size: 9px;

    color: var(--muted);
}

.level-card.active {
    border-color: var(--gold-dim);

    background:
        linear-gradient(
            145deg,
            color-mix(
                in srgb,
                var(--wine) 25%,
                var(--surface)
            ),
            var(--surface)
        );
}

.level-card.active i {
    color: var(--gold);
}

.level-card.locked {
    opacity: .52;
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */

@media (max-width: 360px) {

    .letters-grid {
        gap: 5px;
    }

    .letter-btn {
        min-height: 36px;
        font-size: 12px;
    }

    .answer-slot {
        width: 25px;
    }

    .game-hero h1 {
        font-size: 22px;
    }
}
/* ============================================================
   V2.2.1 — ACCUEIL : CONTINUER, PRIÈRE, PROGRESSION, EXPLORER
   ============================================================ */

.continue-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    animation: neemaFadeUp .4s ease forwards;
}

.continue-card .cc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.continue-card .cc-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.continue-card .cc-title {
    font-family: "Cinzel", serif;
    font-size: 17px;
    margin: 2px 0 12px;
}

.cc-progress-track {
    height: 6px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    overflow: hidden;
    margin-bottom: 12px;
}

.cc-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold));
    transition: width .5s ease;
}

.cc-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
}

.dual-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mini-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px;
    text-decoration: none;
    color: inherit;
    min-height: 128px;
    opacity: 0;
    animation: neemaFadeUp .4s ease forwards;
    font: inherit;
    text-align: left;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.mini-card .mc-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--gold);
    font-size: 14px;
}

.mini-card .mc-title {
    font-size: 13.5px;
    font-weight: 700;
}

.mini-card .mc-sub {
    font-size: 12px;
    color: var(--muted);
    flex: 1;
    line-height: 1.4;
}

.mini-card .mc-action {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
}

.explore-header {
    font-family: "Cinzel", serif;
    font-size: 15px;
    margin: 4px 2px 10px;
}

.row-card.disabled {
    opacity: .55;
    pointer-events: none;
}

.row-badge-soon {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-2);
    border-radius: var(--r-pill);
    padding: 3px 8px;
    white-space: nowrap;
}

@keyframes neemaFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.continue-card { animation-delay: 50ms; }
.dual-cards .mini-card:nth-child(1) { animation-delay: 100ms; }
.dual-cards .mini-card:nth-child(2) { animation-delay: 150ms; }

@media (prefers-reduced-motion: reduce) {
    .continue-card, .mini-card { animation: none; opacity: 1; }
}

@media (max-width: 360px) {
    .dual-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   ASSISTANT IA — conversation (assistant.html)
   Les couleurs viennent uniquement des jetons du design partagé :
   le thème clair / sombre s'applique donc automatiquement.
   ============================================================ */

.ai-page { padding-bottom: 8px; }

.ai-welcome {
    text-align: center;
    padding: 22px 18px 4px;
}

.ai-welcome .ah-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: var(--r-lg);
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--wine-bright), var(--wine-deep));
    color: var(--gold-light);
    font-size: 24px;
    box-shadow: var(--shadow-soft);
}

.ai-welcome h1 { font-size: 18px; margin-bottom: 8px; }

.ai-welcome p {
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.6;
    max-width: 340px;
    margin: 0 auto;
}

.ai-starters { margin: 22px 14px 0; }

.ai-starters .ai-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-dim);
    margin: 0 2px 10px;
}

.ai-starters .row-card { cursor: pointer; width: 100%; text-align: left; }

.ai-log {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 14px 118px;
}

.ai-msg {
    display: flex;
    gap: 8px;
    animation: aiIn 0.28s ease both;
    scroll-margin-top: calc(var(--top-h) + var(--safe-t) + 10px);
}

.ai-msg.user { justify-content: flex-end; }

.ai-avatar {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-top: 2px;
    border-radius: var(--r-pill);
    display: grid;
    place-items: center;
    font-size: 13px;
    color: var(--gold-light);
    background: linear-gradient(135deg, var(--wine-bright), var(--wine-deep));
}

.ai-bubble {
    min-width: 0;
    max-width: 100%;
    font-size: 14.5px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ai-msg.user .ai-bubble {
    max-width: 84%;
    padding: 10px 15px;
    color: var(--text-on-wine);
    background: linear-gradient(135deg, var(--wine-bright), var(--wine-deep));
    border-radius: 20px 20px 6px 20px;
    white-space: pre-wrap;
}

.ai-msg.bot .ai-bubble {
    flex: 1;
    padding: 12px 14px 10px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.ai-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-head strong {
    font-family: "Cinzel", serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.ai-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--gold-light);
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
    padding: 2px 9px;
}

.ai-p { margin: 0; }

.ai-note {
    padding: 9px 12px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border-left: 3px solid var(--gold-dim);
    font-size: 13.5px;
}

.ai-note.interp { border-left-color: var(--wine-bright); font-style: italic; }
.ai-note.more { border-left-color: var(--gold); }

.ai-note .ai-note-label {
    display: block;
    font-style: normal;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 3px;
}

.ai-verse {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--r-sm);
    padding: 10px 12px 8px;
}

.ai-verse-ref {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.ai-verse-text {
    font-family: "Lora", Georgia, serif;
    font-size: 15.5px;
    line-height: 1.7;
}

.ai-verse-text sup {
    font-family: "Inter", sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--gold);
    margin-right: 3px;
}

.ai-verse-more {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.ai-verse-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ai-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-dim);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.ai-mini:active { transform: scale(0.95); }
.ai-mini i { color: var(--gold); font-size: 11px; }

.ai-trans {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-strong);
    display: none;
    flex-direction: column;
    gap: 8px;
}

.ai-trans.open { display: flex; }

.ai-trans-name {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--muted);
}

.ai-trans-text {
    font-family: "Lora", Georgia, serif;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-dim);
}

.ai-list-title,
.ai-group-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 5px;
}

.ai-list {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
}

.ai-list li { margin: 2px 0; }

.ai-rows { display: flex; flex-direction: column; gap: 8px; }

.ai-row {
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    text-align: left;
    width: 100%;
    color: var(--text);
    font: inherit;
}

button.ai-row { cursor: pointer; }

.ai-row-name {
    font-family: "Cinzel", serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 3px;
}

.ai-row-text { font-size: 13.5px; line-height: 1.55; }

.ai-row-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }

.ai-row-tags span {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-dim);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 1px 8px;
}

.ai-chiplist { display: flex; flex-wrap: wrap; gap: 6px; }

.ai-chip,
.ai-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-pill);
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: transform 0.15s ease, background 0.15s ease;
}

.ai-chip:active,
.ai-read:active { transform: scale(0.95); }

.ai-read i { color: var(--gold); font-size: 11px; }

.ai-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 2px;
}

.ai-suggest .ai-chip {
    background: transparent;
    color: var(--gold-light);
    font-size: 12px;
}

.ai-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: -2px;
}

.ai-foot .ai-mini { border-color: transparent; background: transparent; }

.ai-typing .ai-bubble {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 14px 16px;
    flex: 0 0 auto;
}

.ai-typing i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.35;
    animation: aiDot 1.1s infinite ease-in-out;
}

.ai-typing i:nth-child(2) { animation-delay: 0.15s; }
.ai-typing i:nth-child(3) { animation-delay: 0.3s; }

.ai-composer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--nav-h) + var(--safe-b));
    z-index: 150;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
}

.ai-composer-inner {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.ai-input {
    flex: 1;
    min-height: 44px;
    max-height: 130px;
    resize: none;
    padding: 11px 16px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    outline: none;
}

.ai-input::placeholder { color: var(--muted); }
.ai-input:focus { border-color: var(--gold); }

.ai-send {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: var(--r-pill);
    border: 0;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: var(--text-on-wine);
    background: linear-gradient(135deg, var(--wine-bright), var(--wine-deep));
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.ai-send:active { transform: scale(0.92); }
.ai-send[disabled] { opacity: 0.45; cursor: default; }

.ai-clear.armed { background: var(--wine); color: var(--text-on-wine); border-color: var(--wine-bright); }

@keyframes aiIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@keyframes aiDot {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
    40% { opacity: 1; transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
    .ai-msg, .ai-typing i { animation: none; }
}
