/* ==================================================
   ÆKOZ - UI KIT SPECIFIC
   Styles uniquement utilisés pour la page ui-kit.html
================================================== */

.ui-kit-header {
    padding-block: 160px 96px;
    background:
        radial-gradient(
            circle at top,
            rgba(231, 79, 1, 0.12),
            transparent 45%
        ),
        var(--color-bg);
}

.ui-kit-label {
    color: var(--color-orange);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.ui-kit-section {
    padding-block: 96px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ui-kit-section h2 {
    margin-bottom: 48px;
}

.ui-kit-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.color-swatch {
    min-height: 140px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.color-swatch.light {
    color: #05070B;
}

.color-swatch span {
    font-weight: var(--weight-semibold);
}

.color-swatch small {
    margin-top: 4px;
    opacity: 0.7;
}

.ui-kit-demo-block {
    display: grid;
    gap: 24px;
    padding: 48px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.ui-kit-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ui-kit-preview-box {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.ui-card-padding {
    padding: 40px;
}

.text-muted {
    color: var(--color-text-muted);
}

.form-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.form-input {
    width: 100%;
    padding: 18px 22px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--color-text);
    outline: none;
}

.form-input:focus {
    border-color: rgba(231,79,1,0.55);
    box-shadow: var(--glow-orange);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    background: rgba(231,79,1,0.12);
    border: 1px solid rgba(231,79,1,0.32);
    color: var(--color-orange);
    font-size: var(--text-sm);
}

.ui-effect-box {
    position: relative;
    overflow: hidden;
    padding: 72px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Responsive de la page UI Kit */
@media (max-width: 1024px) {
    .ui-kit-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .persona-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ui-kit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ui-kit-demo-block {
        padding: 24px;
    }

    .nav-links {
        display: none;
    }
}

/* ==================================================
   UI KIT - SCROLL ANIMATION DEMOS
   Styles de démonstration pour les animations au scroll
================================================== */

.scroll-demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* État initial commun */
.scroll-fade,
.scroll-rise {
    transition:
        opacity 0.9s ease,
        transform 0.9s ease,
        filter 0.9s ease;
    will-change: opacity, transform, filter;
}

/* Fade initial */
.scroll-fade {
    opacity: 0;
}

/* Rise initial */
.scroll-rise {
    opacity: 0;
    transform: translateY(48px);
}

/* État actif déclenché par le JS */
.scroll-fade.is-visible,
.scroll-rise.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .scroll-demo-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   MEMORY BLUR SCROLL
   L’élément devient progressivement flou
   lorsqu’il quitte le centre du viewport.
================================================== */

.memory-blur-scroll {

    transition:
        filter 0.2s linear,
        opacity 0.2s linear,
        transform 0.2s linear;

    will-change:
        filter,
        opacity,
        transform;
}

/* ==================================================
   TAG VARIANTS
================================================== */

.tag-org {
    color: var(--color-orange);
    border-color: rgba(231,79,1,0.35);
}

.tag-place {
    color: #3A86FF;
    border-color: rgba(58,134,255,0.35);
    background: rgba(58,134,255,0.1);
}

.tag-topic {
    color: #2EC4B6;
    border-color: rgba(46,196,182,0.35);
    background: rgba(46,196,182,0.1);
}

.tag-trait {
    color: #A1A1B3;
    border-color: rgba(161,161,179,0.35);
    background: rgba(161,161,179,0.1);
}

.tag-emotion {
    color: #FF5DA2;
    border-color: rgba(255,93,162,0.35);
    background: rgba(255,93,162,0.1);
}

.tag-muted {
    opacity: 0.45;
}


/* ==================================================
   MEMORY STATES
================================================== */

.memory-strong {
    box-shadow: 0 0 40px rgba(231,79,1,0.24);
}

.memory-soft {
    opacity: 0.72;
    filter: saturate(0.7);
}

.memory-lost {
    opacity: 0.42;
    filter: blur(3px) saturate(0.4);
}


/* ==================================================
   ÆKOZ INPUTS
================================================== */

.form-textarea {
    width: 100%;
    min-height: 160px;
    padding: 22px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--color-text);
    resize: vertical;
    outline: none;
}

.form-textarea:focus {
    border-color: rgba(231,79,1,0.55);
    box-shadow: var(--glow-orange);
}

.upload-zone {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 180px;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.025);
    text-align: center;
}

.upload-zone span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-full);
    background: rgba(231,79,1,0.14);
    color: var(--color-orange);
    font-size: 28px;
}


/* ==================================================
   GALAXY ELEMENTS
================================================== */

.galaxy-demo {
    position: relative;
    height: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 42%),
        rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
}

.galaxy-orbit {
    position: absolute;
    inset: 50%;
    border-radius: 50%;
    border: 1px solid rgba(231,79,1,0.45);
    transform: translate(-50%, -50%);
}

.galaxy-orbit-large {
    width: 360px;
    height: 360px;
}

.galaxy-orbit-small {
    width: 220px;
    height: 220px;
    border-color: rgba(255,255,255,0.18);
}

.galaxy-node {
    position: absolute;
    border-radius: 50%;
    background: var(--color-orange);
    box-shadow: var(--glow-orange);
}

.node-main {
    width: 22px;
    height: 22px;
    top: 50%;
    left: 50%;
}

.node-secondary {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.8);
}

.node-one {
    top: 30%;
    left: 38%;
}

.node-two {
    top: 62%;
    left: 60%;
}

.node-three {
    top: 42%;
    left: 68%;
}

/* ==================================================
   UI NAVIGATION
   Navigation dédiée au UI Kit
================================================== */

.ui-nav {

    width: 100%;

    padding: 20px 32px;

    border-radius: var(--radius-full);

    background:
        rgba(5, 7, 11, 0.82);

    border:
        1px solid rgba(255,255,255,0.08);
}

.ui-nav__inner {

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.ui-nav__logo {

    font-weight: var(--weight-bold);

    letter-spacing: 0.18em;
}

.ui-nav__links {

    display: flex;

    align-items: center;

    gap: 48px;
}

.ui-nav__item {

    position: relative;
}

.ui-nav__link {

    position: relative;

    display: inline-flex;

    align-items: center;

    height: 48px;

    color: var(--color-text-muted);

    transition:
        color var(--transition-fast);
}

/* ==================================================
   HOVER STATE
================================================== */

.ui-nav__item::after {

    content: "";

    position: absolute;

    left: 50%;
    bottom: -4px;

    width: 0;
    height: 2px;

    background:
        var(--color-orange);

    border-radius: 999px;

    transform:
        translateX(-50%);

    opacity: 0;

    box-shadow:
        0 0 14px rgba(231,79,1,0.85);

    transition:
        width var(--transition-fast),
        opacity var(--transition-fast);
}

.ui-nav__item:hover .ui-nav__link {

    color: var(--color-text);
}

.ui-nav__item:hover::after {

    width: 24px;

    opacity: 1;
}

/* ==================================================
   ACTIVE STATE
================================================== */

.ui-nav__item.is-active .ui-nav__link {

    color: var(--color-text);
}

.ui-nav__item.is-active::after {

    width: 32px;

    opacity: 1;
}

/* ==================================================
   BUTTON STATES
   États fonctionnels des boutons
================================================== */

.btn-primary {
    background: var(--color-orange);
    color: var(--color-text);
}

.btn-secondary {
    color: var(--color-text);
}

.btn-tertiary {

    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    box-shadow: none;
}

.btn-tertiary:hover {

    color: var(--color-text);

    background:
        rgba(231,79,1,0.06);

    border-color:
        rgba(231,79,1,0.18);

    box-shadow:
        0 0 18px rgba(231,79,1,0.12);
}

.btn-tertiary:active {

    transform: scale(0.98);
}

.btn.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.btn.is-loading::after {
    content: "";

    width: 14px;
    height: 14px;

    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: var(--color-text);

    animation: buttonLoading 0.8s linear infinite;
}

@keyframes buttonLoading {
    to {
        transform: rotate(360deg);
    }
}

.btn:disabled {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

.btn-tertiary:disabled {

    opacity: 0.35;

    background: transparent;

    border-color: transparent;

    box-shadow: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}


/* ==================================================
   SURFACE LABEL
   Petit label de démonstration pour les niveaux de card
================================================== */

.surface-label {
    display: inline-flex;
    margin-bottom: 24px;

    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--color-orange);
}

/* ==================================================
   TYPOGRAPHY CLASSES
================================================== */

/* ==================================================
   HERO TITLE
================================================== */

.hero-title {

    font-size: var(--text-hero);

    font-weight: var(--weight-bold);

    line-height: var(--line-height-tight);

    letter-spacing: var(--tracking-tight);

    color: var(--text-primary);

}

/* ==================================================
   TYPOGRAPHY - SECTION TITLE
   Titre secondaire utilisé dans les démonstrations typo
================================================== */

.section-title {
    display: block;

    width: 100%;
    max-width: none;

    margin-inline: 0;
    margin-top: 48px;
    margin-bottom: 40px;

    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    line-height: 1.1;
    letter-spacing: var(--tracking-tight);

    text-align: left;

    color: var(--text-primary);
}

/* ==================================================
   CARD TITLE
================================================== */

.card-title {

    font-size: var(--text-lg);

    font-weight: var(--weight-semibold);

    line-height: 1.3;

    color: var(--text-primary);

}

/* ==================================================
   BODY TEXT
================================================== */

.text-body {

    font-size: var(--text-md);

    line-height: var(--line-height-normal);

    color: var(--text-secondary);

}

/* ==================================================
   MUTED TEXT
================================================== */

.text-muted {

    font-size: var(--text-md);

    line-height: var(--line-height-normal);

    color: var(--text-muted);

}

/* ==================================================
   SOFT TEXT
================================================== */

.text-soft {

    font-size: var(--text-sm);

    line-height: var(--line-height-relaxed);

    color: var(--text-soft);

}

/* ==================================================
   EYEBROW LABEL
================================================== */

.text-eyebrow {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;

    color: var(--color-orange);
}

/* ==================================================
   TEXT UTILITIES
================================================== */

.text-orange {
    color: var(--color-orange);
}

/* ==================================================
   GLOW VARIANTS
================================================== */

.glow-strong {

    box-shadow:
        var(--glow-orange-strong);

    border:
        1px solid rgba(231,79,1,0.18);
}

/* ==================================================
   GLOW DEMO CARD - LENS FLARE RANDOM
   Source lumineuse + flare horizontal synchronisés
================================================== */

.glow-demo-card {
    position: relative;
    overflow: hidden;

    background: var(--surface-primary);
    border: 1px solid rgba(153,167,170,0.18);
    box-shadow: none;

    isolation: isolate;
}

/* Source lumineuse circulaire + aura */
.glow-demo-card::before {
    content: "";
    position: absolute;

    width: 1200px;
    height: 850px;

    left: var(--glow-x, 86%);
    top: var(--glow-y, 50%);

    transform: translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(255,185,80,0.5) 0%,
            rgba(231,79,1,0.4) 16%,
            rgba(231,79,1,0.2) 34%,
            rgba(231,79,1,0.1) 54%,
            transparent 76%
        );

    filter: blur(34px);
    opacity: 0.82;

    pointer-events: none;
    z-index: 0;
}

/* Trait horizontal type lens flare */
.glow-demo-card::after {
    content: "";
    position: absolute;

    width: 1850px;
    height: 2px;

    left: var(--glow-x, 86%);
    top: var(--glow-y, 50%);

    transform: translate(-50%, -50%);

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(231,79,1,0.10) 10%,
            rgba(255,120,20,0.34) 24%,
            rgba(255,150,35,0.72) 39%,
            rgba(255,210,120,0.95) 47%,
            rgba(255,255,245,1) 50%,
            rgba(255,210,120,0.95) 53%,
            rgba(255,150,35,0.72) 61%,
            rgba(255,120,20,0.34) 76%,
            rgba(231,79,1,0.10) 90%,
            transparent 100%
        );

    filter: blur(1.4px);
    opacity: 0.9;

    pointer-events: none;
    z-index: 0;
}

/* Point chaud central du flare */
.flare-core {
    position: absolute;

    width: 72px;
    height: 40px;

    left: var(--glow-x, 86%);
    top: var(--glow-y, 50%);

    transform:
        translate(-50%, -50%);

    border-radius:
        50%;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,1) 0%,
            rgba(255,250,225,0.95) 6%,
            rgba(255,205,105,0.60) 16%,
            rgba(255,120,20,0.26) 32%,
            rgba(231,79,1,0.10) 52%,
            transparent 74%
        );



    filter:
        blur(3px);

    pointer-events:
        none;

    z-index:
        1;
}

.glow-demo-card h3,
.glow-demo-card p {
    position: relative;
    z-index: 1;
}
