/* ==============================
   ABOUT
================================= */

.about-section {
    position: relative;
}

.about-layout {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(430px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 64px;
}

/* ==============================
   ABOUT VISUAL
================================= */

.about-visual {
    position: relative;
    width: 100%;
    min-width: 0;
    justify-self: center;
}

.about-visual-stage {
    position: relative;
    width: min(540px, 100%);
    height: 620px;
    margin: 0 auto;
}

/* Forme turquoise principale */
.about-visual-stage::before {
    content: "";
    position: absolute;
    top: 48%;
    left: 50%;

    width: 390px;
    height: 390px;

    background: linear-gradient(
        135deg,
        rgba(155, 216, 198, 0.88),
        rgba(59, 167, 166, 0.76)
    );
    border-radius: 50%;

    transform: translate(-50%, -50%);
}

/* Forme secondaire */
.about-visual-stage::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 58px;

    width: 250px;
    height: 250px;

    background: rgba(155, 216, 198, 0.32);
    border-radius: 50%;
}

/* ==============================
   SHOWCASE
================================= */

.about-showcase {
    position: absolute;
    top: 48%;
    left: 50%;
    z-index: 3;

    width: 330px;
    height: 460px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 34px;

    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);

    transform: translate(-50%, -50%) rotate(-3deg);
}

.about-showcase img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
    object-position: center;

    transition: opacity 0.25s ease, transform 0.45s ease;
}

.about-showcase img.is-changing {
    opacity: 0;
    transform: scale(1.04);
}

.about-showcase-content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;

    padding: 16px;

    color: var(--color-text);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;

    box-shadow: 0 14px 34px rgba(31, 31, 31, 0.12);
    backdrop-filter: blur(12px);
}

.about-showcase-content span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 9px;

    color: var(--color-white);
    background: var(--color-primary);
    border-radius: var(--radius-pill);

    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.about-showcase-content strong {
    display: block;

    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

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

.about-inspiration-card {
    position: absolute;
    z-index: 5;

    padding: 12px 18px;

    color: var(--color-text);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-pill);

    cursor: pointer;

    font-family: var(--font-title);
    font-size: 0.82rem;
    font-weight: 800;

    box-shadow: 0 18px 45px rgba(31, 31, 31, 0.12);
    backdrop-filter: blur(12px);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.about-inspiration-card:hover,
.about-inspiration-card.active {
    color: var(--color-white);
    background: var(--color-primary);
    transform: translateY(-2px);
}

.about-cinema {
    top: 82px;
    left: 20px;
}

.about-games {
    top: 190px;
    right: 0;
}

.about-anime {
    left: 20px;
    bottom: 150px;
}

.about-music {
    right: 20px;
    bottom: 96px;
}

/* ==============================
   QUOTE FIXE
================================= */

.about-quote-card {
    position: relative;
    z-index: 6;

    width: min(430px, 90%);
    height: 150px;
    margin: -6px auto 0;
    padding: 22px 24px;

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

    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;

    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.about-quote-card p {
    margin: 0;

    color: var(--color-text);
    font-weight: 800;
    text-align: center;
    line-height: 1.6;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* ==============================
   ABOUT CONTENT
================================= */

.about-content {
    width: 100%;
    min-width: 0;

    padding: 36px;

    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-card);

    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.about-content > p {
    margin: 0;
}

.about-content > p + p {
    margin-top: 18px;
}

/* ==============================
   CAROUSEL DESSINS
================================= */

.about-drawing-carousel {
    position: relative;

    width: 100%;
    height: 150px;
    margin-bottom: 28px;

    overflow: hidden;

    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.92);

    box-shadow: 0 18px 40px rgba(31, 31, 31, 0.08);
}

.about-drawing-carousel::before,
.about-drawing-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    z-index: 2;

    width: 72px;
    height: 100%;

    pointer-events: none;
}

.about-drawing-carousel::before {
    left: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0)
    );
}

.about-drawing-carousel::after {
    right: 0;
    background: linear-gradient(
        270deg,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0)
    );
}

.about-drawing-track {
    height: 100%;
    width: max-content;

    display: flex;
    align-items: center;
    gap: 16px;

    padding: 0 18px;

    animation: aboutDrawingScroll 30s linear infinite;
    will-change: transform;
}

.about-drawing-carousel:hover .about-drawing-track {
    animation-play-state: paused;
}

.about-drawing-item {
    flex: 0 0 120px;

    width: 120px;
    height: 120px;

    overflow: hidden;

    border-radius: 20px;
    background: #ffffff;

    box-shadow: 0 12px 28px rgba(31, 31, 31, 0.12);
}

.about-drawing-item img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
    object-position: center;
}

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

    to {
        transform: translateX(-544px);
    }
}

/* ==============================
   VALUES
================================= */

.about-values {
    margin-top: 34px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.about-value {
    position: relative;

    min-width: 0;
    padding: 24px 22px;

    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 167, 166, 0.22);
    border-radius: 24px;

    box-shadow: 0 18px 40px rgba(31, 31, 31, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.about-value::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;

    height: 4px;

    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-primary-light)
    );
    border-radius: 0 0 999px 999px;
}

.about-value:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(31, 31, 31, 0.12);
}

.about-value span {
    width: 34px;
    height: 34px;
    margin-bottom: 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--color-white);
    background: var(--color-primary);
    border-radius: 50%;

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.about-value h3 {
    margin-bottom: 12px;
}

.about-value p {
    font-size: 0.9rem;
}

/* ==============================
   TABLETTE
================================= */

@media screen and (max-width: 1180px) {

    .about-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .about-content {
        order: 1;

        width: 100%;
        max-width: 820px;
        margin: 0 auto;
    }

    .about-visual {
        order: 2;

        width: min(620px, 100%);
        margin: 0 auto;
    }

    .about-visual-stage {
        width: min(540px, 100%);
        height: 620px;
    }

    .about-showcase {
        width: 320px;
        height: 440px;
    }
}

/* ==============================
   MOBILE
================================= */

@media screen and (max-width: 768px) {

    .about-layout {
        gap: 32px;
    }

    .about-content {
        order: 1;

        padding: 24px;
        border-radius: 24px;
    }

    .about-visual {
        order: 2;

        width: 100%;
    }

    .about-visual-stage {
        width: 100%;
        height: 560px;
    }

    .about-visual-stage::before {
        width: 270px;
        height: 270px;
    }

    .about-visual-stage::after {
        right: 0;
        bottom: 92px;

        width: 180px;
        height: 180px;
    }

    .about-showcase {
        width: min(260px, 82vw);
        height: 370px;
        border-radius: 28px;
    }

    .about-showcase-content {
        left: 14px;
        right: 14px;
        bottom: 14px;
        padding: 13px;
        border-radius: 18px;
    }

    .about-showcase-content span {
        font-size: 0.62rem;
    }

    .about-showcase-content strong {
        font-size: 0.95rem;
    }

    .about-inspiration-card {
        padding: 9px 12px;
        font-size: 0.68rem;
    }

    .about-cinema {
        top: 34px;
        left: 0;
    }

    .about-games {
        top: 118px;
        right: 0;
    }

    .about-anime {
        left: 4px;
        bottom: 116px;
    }

    .about-music {
        right: 4px;
        bottom: 66px;
    }

    .about-quote-card {
        width: min(400px, 94%);
        height: 140px;
        margin-top: -20px;
        padding: 18px;
        border-radius: 20px;
    }

    .about-quote-card p {
        font-size: 0.9rem;
        line-height: 1.55;
        -webkit-line-clamp: 4;
    }

    .about-drawing-carousel {
        height: 126px;
        margin-bottom: 22px;
        border-radius: 20px;
    }

    .about-drawing-carousel::before,
    .about-drawing-carousel::after {
        width: 42px;
    }

    .about-drawing-track {
        gap: 12px;
        padding: 0 14px;
        animation-duration: 24s;
    }

    .about-drawing-item {
        flex: 0 0 96px;

        width: 96px;
        height: 96px;

        border-radius: 16px;
    }

    .about-values {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-value {
        padding: 22px;
    }

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

        to {
            transform: translateX(-432px);
        }
    }
}

/* ==============================
   PETIT MOBILE
================================= */

@media screen and (max-width: 420px) {
    .about-visual-stage {
        height: 540px;
    }

    .about-showcase {
        width: min(245px, 82vw);
        height: 350px;
    }

    .about-cinema {
        top: 32px;
        left: 0;
    }

    .about-games {
        top: 108px;
        right: 0;
    }

    .about-anime {
        left: 0;
        bottom: 110px;
    }

    .about-music {
        right: 0;
        bottom: 62px;
    }

    .about-quote-card {
        height: 138px;
    }
}