.book-layout { display: flex; flex-direction: column; gap: 1.5rem; }
.book-layout-left-column { flex-shrink: 0; }
.book-layout-right-column {
    flex-grow: 1; min-width: 0; display: flex; justify-content: center;
    align-items: flex-start; padding-top: 1rem; padding-bottom: 3rem;
}
.about-panels-stage {
    width: 100%; max-width: 800px; position: relative; min-height: 500px;
}

@media (min-width: 992px) {
    .book-layout { flex-direction: row; gap: clamp(2.5rem, 4vw, 3.5rem); }
    .book-layout-left-column {
        width: clamp(280px, 30%, 360px); position: sticky;
        top: calc(var(--header-height, 65px) + 2.5rem); align-self: flex-start;
        height: calc(100vh - var(--header-height, 65px) - 5rem);
        overflow-y: auto; padding-bottom: 2rem; padding-right: 1.5rem;
    }
    .book-layout-left-column::-webkit-scrollbar { width: 4px; }
    .book-layout-left-column::-webkit-scrollbar-thumb { background-color: rgba(108, 99, 255, 0.25); border-radius: 8px; }
    .book-layout-left-column::-webkit-scrollbar-track { background-color: rgba(255,255,255,0.03); }
    .book-layout-right-column { padding-top: 0; }
}

.about-page-main-header .page-main-title .title-word,
.about-page-main-header .page-main-subtitle { opacity: 0; }
@keyframes aboutTitleWordEntryRevised {
    from { opacity: 0; transform: translateY(15px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.about-page-main-header .page-main-title .title-word[data-animation="title-word-entry"].is-visible {
    display: inline-block; animation-name: aboutTitleWordEntryRevised;
    animation-duration: 0.35s; animation-timing-function: cubic-bezier(0.2, 0.6, 0.3, 1);
    animation-fill-mode: forwards;
}
@keyframes aboutSubtitleEntryRevised {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.about-page-main-header [data-animation="subtitle-entry"].is-visible {
    animation-name: aboutSubtitleEntryRevised; animation-duration: 0.4s;
    animation-timing-function: ease-out; animation-fill-mode: forwards;
}

.about-section-navigation { opacity: 0; }
@media (max-width: 991px) {
    .about-section-navigation {
        position: sticky; top: calc(var(--mobile-header-height, 50px) + 0.75rem);
        background-color: rgba(19, 20, 31, 0.95); backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px); padding: 0.6rem 0; z-index: 40;
        margin: 0 -0.5rem 1.5rem -0.5rem; box-shadow: 0 3px 10px rgba(0,0,0,0.35);
        border-radius: 8px;
    }
    .about-section-navigation ul {
        display: flex; overflow-x: auto; padding: 0 0.5rem; gap: 0.4rem;
        -ms-overflow-style: none; scrollbar-width: none;
    }
    .about-section-navigation ul::-webkit-scrollbar { display: none; }
    .about-section-navigation .about-nav-button {
        flex-shrink: 0; font-size: 0.78rem !important;
        padding: 0.75em 1.35em !important;
    }
}
@keyframes aboutNavContainerEntryRevised {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.about-section-navigation[data-animation="nav-entry"].is-visible {
    animation-name: aboutNavContainerEntryRevised; animation-duration: 0.3s;
    animation-timing-function: ease-out; animation-fill-mode: forwards;
}
.about-nav-button {
    display: block; width: 100%; text-align: left;
    font-size: 0.9rem; font-weight: 500; color: #b0b8c5;
    padding: 0.8rem 1.3rem; border-radius: 8px;
    background: linear-gradient(145deg, rgba(30, 32, 50, 0.6), rgba(25, 27, 45, 0.7));
    border: 1px solid rgba(108, 99, 255, 0.15);
    box-shadow: 3px 3px 7px rgba(8, 8, 13, 0.6), -3px -3px 7px rgba(29, 30, 42, 0.2),
                inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease-out; position: relative; cursor: pointer;
    line-height: 1.4; transform-style: preserve-3d;
}
.about-nav-button:hover:not(.active) {
    color: #e0e0ff;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2) 0%, rgba(125, 100, 255, 0.15) 100%);
    border-color: rgba(108, 99, 255, 0.45);
    transform: translateY(-3px) scale(1.03) skewX(-3.5deg);
    box-shadow: 5px 5px 15px rgba(10, 10, 14, 0.65),
                -5px -5px 15px rgba(29, 30, 42, 0.28),
                0 0 12px rgba(108, 99, 255, 0.1);
}
.about-nav-button.active {
    color: #ffffff; font-weight: 600; background: var(--accent-gradient);
    border-color: rgba(108, 99, 255, 0.9); transform: translateY(-1px) scale(1.015);
    box-shadow: 0 0 18px 3px rgba(108, 99, 255, 0.55), 0 0 30px 6px rgba(108, 99, 255, 0.35),
                inset 0 0 10px rgba(255, 255, 255, 0.2), 3px 3px 7px rgba(10, 10, 14, 0.35);
}

.about-section-unit {
    opacity: 0; visibility: hidden; position: absolute;
    top: 0; left: 0; width: 100%;
    transform: translateY(15px);
    transition: opacity 0.25s ease-out, visibility 0s linear 0.25s, transform 0.25s ease-out;
    will-change: opacity, transform;
}
.about-section-unit.active {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition-delay: 0s; position: relative; z-index: 10;
}
.about-section-unit.active .section-panel-wrapper {

    box-shadow: 0 0 18px 3px rgba(108, 99, 255, 0.55), 0 0 30px 6px rgba(108, 99, 255, 0.35),
                inset 0 0 10px rgba(255, 255, 255, 0.2), 3px 3px 7px rgba(10, 10, 14, 0.35);
    box-shadow: 0 0 28px -2px var(--accent-glow, rgba(108, 99, 255, 0.22)),
                 0 0 12px -4px var(--accent-glow, rgba(108, 99, 255, 0.12));
     border-radius: 12px;
}

.section-external-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700; color: #e0e0ff; text-align: center;
    margin-bottom: 2.5rem;
    margin-top: 3rem; /* Marge haute augmentée */
    opacity: 1; /* Toujours visible quand la section est active */
    transform: translateY(0);
    transition: none; /* Pas d'animation propre pour le titre externe */
}
.section-external-title .title-word { display: inline-block; }

.section-panel-wrapper { position: relative; }
.section-character-image-container {
    position: absolute;
    top: 0; /* Aligné avec le haut du .about-panel (qui est dans section-panel-wrapper) */
    right: -15px; /* Ajusté pour être plus proche du bord du panneau */
    width: 90px; /* Taille réduite pour moins d'encombrement */
    height: auto;
    transform: translateY(-90%); /* Ajusté pour l'alignement avec le haut du PANNEAU */
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s ease-out 0.05s, transform 0.3s ease-out 0.05s;
    pointer-events: none;
}
.about-section-unit.active .section-character-image-container {
    opacity: 1;
    transform: translateY(-90%) translateX(0px);
}
.section-character-image {
    display: block; width: 100%; height: auto;
    filter: drop-shadow(2px 3px 5px rgba(0,0,0,0.5));
}
@media (max-width: 991px) {
    .section-character-image-container { display: none; }
    .section-external-title { margin-top: 0.5rem; font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
}

.about-panel {
    padding: clamp(25px, 4vw, 35px); border-radius: 10px;
}
.about-panel.neu-box {
    background: var(--primary-gradient);
    box-shadow: 10px 10px 30px -12px var(--neu-shadow-dark),
                -10px -10px 30px -12px var(--neu-shadow-light),
                inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-panel.neu-box:hover {
    transform: translateY(-4px);
    box-shadow: 12px 12px 35px -10px var(--neu-shadow-dark),
                -12px -12px 35px -10px var(--neu-shadow-light),
                inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.about-section-unit.active .about-panel.neu-box {
    border: 1px solid var(--accent-color); /* Bordure colorée pour le panneau actif */
    /* L'effet glowy est sur le .section-panel-wrapper */
}
/* Le hover du neu-box sur le panneau actif est conservé par défaut */

.about-panel .panel-text-content h3 {
    font-size: clamp(1.4rem, 3.2vw, 1.7rem); /* Taille augmentée */
    color: var(--accent-color); margin-top: 2.2rem; margin-bottom: 1.1rem; font-weight: 600;
    text-align: center; text-transform: uppercase;
}
.about-panel .panel-text-content p,
.about-panel .panel-text-content ul {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.75; color: #c0c8d8; margin-bottom: 1rem;
}
.about-panel .panel-text-content ul { list-style: none; padding-left: 0; }
.about-panel .panel-text-content li { padding-left: 1.8em; position: relative; margin-bottom: 0.6rem; }
.about-panel .panel-text-content li::before {
    font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute;
    left: 0; top: 2px; color: #8a9ff9; font-size: 0.8em;
}
.about-panel .panel-text-content a { color: #9facf7; text-decoration: none; border-bottom: 1px dotted #9facf7; }
.about-panel .panel-text-content a:hover { color: #bac8ff; border-bottom-color: #bac8ff; }
.about-panel .panel-text-content strong { color: #e0e0ff; font-weight: 600; }

#panel-a-propos .panel-text-content li::before { content: "\f05a"; }
#panel-comment-ca-marche .panel-text-content li::before { content: "\f054";  }
#panel-fonctionnalites .panel-text-content li::before { content: "\f005"; }
#panel-communaute .panel-text-content li::before { content: "\f004"; }

/* --- Animation de contenu interne retirée (affichage direct) --- */
.about-section-unit.active .panel-text-content > *,
.about-section-unit.active .section-external-title { /* Le titre externe est aussi affiché directement */
    opacity: 1;
    transform: translateY(0);
}

/* À AJOUTER À LA FIN DE widgets/about/widget_about.css */

@media (max-width: 767px) { /* Cible les écrans mobiles où space-y-3 est actif */
    .about-section-navigation ul.space-y-3 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0 !important;
    }
}



.widget-about-container .home-cta-button {
    padding: 0.9rem 2.2rem;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: 0.375rem;
    transition: transform 0.2s ease-out, background-color 0.2s ease-out, box-shadow 0.2s ease-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.widget-about-container .home-cta-button:hover {
    transform: translateY(-2px) scale(1.05) skewX(-5deg);
    background-color: color-mix(in srgb, var(--accent-color) 85%, black);
}

.widget-about-container .home-cta-button:active {
    transform: translateY(0px) scale(1.00);
    background-color: color-mix(in srgb, var(--accent-color) 70%, black);
}

.widget-about-container .home-cta-button i {
    margin-right: 0.75rem;
    font-size: 1.25em;
}