* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Quicksand", sans-serif;
    color: black;
    overflow-x: hidden;
    background: #FFF9F2;
}
.page {
    min-height: 100vh;
    background: #FFF9F2;
    animation: pageReveal 1.2s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes pageReveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;

    display: flex;
    align-items: center;
    padding: 0 35px;
    gap: 35px;

    background: rgba(255, 249, 242, 0.856);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(23, 50, 77, 0.09);

    box-shadow:
        0 8px 25px rgba(23, 50, 77, 0.08);

    z-index: 100000;

    animation:
        navReveal .9s
        cubic-bezier(.22, 1, .36, 1)
        .1s both;
}

@keyframes navReveal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.brand {
    text-decoration: none;
}

.brand:link,
.brand:visited,
.brand:hover,
.brand:active {
    text-decoration: none;
}

.brand-name {
    text-decoration: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    transition:
        transform .3s ease;
}
.brand:hover {
    transform:
        translateY(-2px);
}
.fox {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 28px;
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}
.brand:hover .fox {
    transform:
        rotate(-4deg)
        scale(1.04);
}
.brand-name {
    font-size: 30px;
    font-weight: 600;
    color: #17324D;
    text-decoration: none;

}
.index-1,
.about-1,
.faq-1,
.story-1,
.involve-1,
.donate-1 {
    position: absolute;
    display: flex;
    align-items: center;
    border: none;
    background: transparent;
    color: #17324D;
    font-family:
        "Quicksand",
        sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform .3s ease,
        color .25s ease,
        opacity .25s ease;
}
.index-1 {
    margin-left: 365px;
}
.about-1 {
    margin-left: 515px;
}
.faq-1 {
    margin-left: 565px;
}
.story-1 {
    margin-left: 610px;
}
.involve-1 {
    margin-left: 665px;
}
.donate-1 {
    margin-left: 790px;
}
.index-1,
.involve-1 {
    cursor: pointer;
}
.index-1.open .triangle,
.involve-1.open .triangle {
    transform:
        rotate(180deg);
}
.triangle {
    display: inline-block;
    margin-left: 5px;
    font-size: 19px;
    transform-origin: center;
    transition:
        transform .35s ease;
}
.index-1:hover,
.about-1:hover,
.faq-1:hover,
.story-1:hover,
.involve-1:hover,
.donate-1:hover {
    color: #39A6A3;
    transform:
        translateY(-2px);
}
.donate-1 {
    border:
        3px solid #17324D;
    border-radius: 35px;
    padding:
        9px 21px;
}
.donate-1:hover {
    color: #39A6A3;
    border-color:
        #39A6A3;
}

/* ===== MENU DÉROULANT ===== */

.explore-menu {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    height: calc(100vh - 75px);
    background:
        rgba(255, 249, 242, 0.82);
    backdrop-filter:
        blur(12px);
    -webkit-backdrop-filter:
        blur(12px);
    border-top:
        1px solid rgba(23, 50, 77, 0.07);
    border-bottom:
        1px solid rgba(23, 50, 77, 0.07);
    box-shadow:
        0 15px 40px rgba(23, 50, 77, .08);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform:
        translateY(-100%);
    pointer-events: none;
    transition:
        transform .5s cubic-bezier(.22, 1, .36, 1),
        opacity .35s ease,
        visibility .5s ease;
}
.explore-menu.open {
    opacity: 1;
    visibility: visible;
    transform:
        translateY(0);
    pointer-events: auto;
}
.explore-menu-content {
    width: 100%;
    height: 100%;
    padding:
        45px 8%;
    overflow-y: auto;
}
.explore-menu-header {
    margin-bottom: 35px;
}
.explore-menu-header h2 {
    font-family:
        "Quicksand",
        sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #17324D;
    letter-spacing: -1.5px;
}
.explore-menu-header p {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #526A7A;
}
.explore-menu-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}
.explore-item {
    padding: 25px;
    background:none;
    display:block;
    border:none;
    border-radius: 16px;
    backdrop-filter:
        blur(10px);
    -webkit-backdrop-filter:
        blur(10px);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}
.explore-item:hover {
    transform:
        translateY(-5px);
    background:
        rgba(255, 249, 242, .65);
    box-shadow:
        0 10px 30px rgba(23, 50, 77, .08);
}
.explore-item h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #17324D;
}
.explore-item p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #526A7A;
}

.signin-button {
    border: none;
    border-radius: 20px;
    padding:
        12px 25px;
    background:
        transparent;
    color: #17324D;
    font-family:
        "Quicksand",
        sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform .3s ease,
        color .25s ease,
        background .25s ease;
}
.signin-button:hover {
    transform:
        translateY(-2px);
    color:
        #39A6A3;
    background:
        rgba(57, 166, 163, .08);
}
.signup-button {
    border: none;
    height: 45px;
    min-width: 100px;
    padding:
        0 22px;
    border-radius: 35px;
    background:
        #17324D;
    color:
        #FFF9F2;
    font-family:
        "Quicksand",
        sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 18px rgba(23, 50, 77, .13);
    transition:
        transform .3s ease,
        background .25s ease,
        box-shadow .25s ease;
}
.signup-button:hover {
    transform:
        translateY(-3px);
    background:
        #39A6A3;
    box-shadow:
        0 12px 25px rgba(57, 166, 163, .22);
}

/* ===== BANDEAU ROSE ===== *//* =========================================================
   HERO STORIES — background
   Même style que le site : crème, rose (#f2b8d0 / #be4678),
   turquoise (#1F7F7C) et navy (#17324D).
   Tes mesures (500px, 1200px, marges, radius) sont gardées.
========================================================= */

.hero-stories {
    position: relative;
    height: 500px;
    width: 1200px;
    margin-top: 90px;
    margin-left: 75px;
    border-radius: 30px;
    overflow: hidden;
    isolation: isolate;

    background-color: #FFF9F2;

    /* de haut en bas : lueurs, anneaux, voile rose crème, texture */
    background-image:
        radial-gradient(circle at 88% 12%, rgba(242, 184, 208, .55), transparent 34%),
        radial-gradient(circle at 6% 94%, rgba(31, 127, 124, .18), transparent 36%),
        repeating-radial-gradient(
            circle at 80% 78%,
            transparent 0 86px,
            rgba(190, 70, 120, .10) 86px 88px
        ),
        linear-gradient(
            135deg,
            rgba(255, 249, 242, .93) 0%,
            rgba(251, 232, 240, .92) 55%,
            rgba(246, 212, 227, .90) 100%
        ),
        url("/image_1.jpg/texture-bleu1.jpg");

    background-size: auto, auto, auto, auto, cover;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow:
        inset 0 -40px 70px rgba(190, 70, 120, .08),
        0 22px 50px rgba(23, 50, 77, .10);
}

/* fines lignes verticales (comme les tiennes, un peu plus visibles) */
.hero-stories::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0 96%,
        rgba(190, 70, 120, .16) 96% 96.4%,
        transparent 96.4%
    );
    background-size: 55px 100%;
    opacity: .7;
    z-index: -1;
}

/* cercle rose (le tien) + un 2e cercle plus petit, qui flottent doucement */
.hero-stories::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    right: 500px;
    bottom: 360px;
    border-radius: 50%;
    background: #f2b8d0;
    opacity: .5;
    box-shadow:
        470px 250px 0 -22px rgba(31, 127, 124, .22),
        -330px 300px 0 -34px rgba(242, 184, 208, .7);
    animation: storiesFloat 9s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes storiesFloat {
    from { transform: translate(0, 0); }
    to   { transform: translate(18px, 26px); }
}

@media (max-width: 1300px) {
    .hero-stories {
        width: calc(100% - 150px);
    }
}

@media (max-width: 700px) {
    .hero-stories {
        width: calc(100% - 40px);
        margin-left: 20px;
        height: 420px;
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-stories::after { animation: none; }
}
.community-text{
    font-size: 20px;
    font-weight: 600;
    margin-left:80px;
    text-align:center;
    padding-top:75px;
     color:white;
    border-color: #080808;
border-width: solid;
}

.Learnivia-stories-text{
    font-size: 50px;
    font-weight: 600;
    margin-left:75px;
    padding-top:10px;
    color:white;
    text-align:center;
border-width: 1px solid;}

.Learnivia-Stories-world{
    font-size: 19px;
    font-weight: 200;
    margin-left:80px;
    color:white;
    width:700px;
    margin-left:300px;
    margin-top:20px;
    margin-bottom:20px;
    }
.share-your-story-button{
    background-color:white;
    width:275px;
    height:50px;
    border:none;
    border:rgb(255, 255, 255) solid 2px;
    color:rgb(250, 131, 151);
    font-family:"Quicksand",sans-serif;
    font-size:15px;
    font-weight:600;
    border-radius:30px;
    margin-left:80px;
    cursor:pointer;
    transition:.25s ease;
    margin-left:500px;
    margin-top:20px;
}

.share-your-story-button:hover{
    background-color:#39A6A3;
    border-color:#39A6A3;
    transform:translateY(-2px);
}

/* ================================= */
/* STORIES SECTION                   */
/* ================================= */

.stories-section {
    width: 100%;
    background: #ffffff;
    padding: 55px 0 70px;
    box-sizing: border-box;
}


/* GRID */

.stories-grid {
    width: 1180px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    column-gap: 32px;
    row-gap: 65px;
}


/* CARD */

.story-card {
    width: 100%;
}


/* BUBBLE */

.story-bubble {
    position: relative;

    min-height: 185px;

    padding: 24px 24px 28px;

    box-sizing: border-box;

    border: 2px solid #c5cfdf;
    border-radius: 8px;

    background: #ffffff;
}


/* PETIT TRIANGLE SOUS LA CARTE */

.story-bubble::after {
    content: "";

    position: absolute;

    bottom: -14px;
    left: 18px;

    width: 24px;
    height: 24px;

    background: #ffffff;

    border-right: 2px solid #c5cfdf;
    border-bottom: 2px solid #c5cfdf;

    transform: rotate(45deg);
}


/* YELLOW MARK */

.yellow-mark {
    position: absolute;

    top: 7px;
    left: 14px;

    font-size: 55px;
    line-height: 1;

    font-family: Georgia, serif;

    color: #ffe24b;

    z-index: 0;
}


/* TITLE */

.story-bubble h3 {
    position: relative;
    z-index: 1;

    margin: 0 0 8px;

    font-family: "Quicksand", sans-serif;

    font-size: 25px;
    line-height: 1.08;

    font-weight: 700;

    color: #080808;
}


/* DATE */

.story-date {
    display: block;

    margin-bottom: 17px;

    font-family: "Quicksand", sans-serif;

    font-size: 14px;
    font-weight: 600;

    color: #929daf;
}


/* TEXT */

.story-bubble p {
    margin: 0;

    font-family: "Quicksand", sans-serif;

    font-size: 16px;
    line-height: 1.5;

    font-weight: 500;

    color: #202020;
}


/* USER */

.story-user {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 15px;
}


/* AVATAR */

.story-user img {
    width: 58px;
    height: 58px;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid #edf1f5;

    box-sizing: border-box;
}


/* NAME */

.story-user h4 {
    margin: 0 0 2px;

    font-family: "Quicksand", sans-serif;

    font-size: 19px;
    line-height: 1.1;

    font-weight: 700;

    color: #080808;
}


/* ROLE */

.story-user span {
    font-family: "Quicksand", sans-serif;

    font-size: 14px;
    font-weight: 600;

    color: #657083;
}


/* SEE MORE */

.see-more-button {
    display: block;

    margin: 55px auto 0;

    padding: 12px 38px;

    border: none;
    border-radius: 7px;

    background: #2f9b83;
    color: #ffffff;

    font-family: "Quicksand", sans-serif;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.see-more-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.see-more-button2 {
    display: block;
    margin: 25px auto 0;
    padding: 12px 38px;

    border: none;
    border-radius: 7px;

    background: #2f9b83;
    color: #ffffff;

    font-family: "Quicksand", sans-serif;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
    transition: 0.2s ease;
}
.see-more-button2:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}


/* =========================================
   STORY POPUP / MODAL
========================================= */

.story-modal {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(23, 50, 77, 0.25);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 200000;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}


/* OPEN */

.story-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* WHITE POPUP */

.story-modal-box {
    position: relative;

    width: 100%;
    max-width: 550px;

    max-height: 88vh;

    background: #ffffff;

    border-radius: 5px;

    padding: 18px 17px 28px;

    overflow-y: auto;

    box-shadow:
        0 20px 60px rgba(23, 50, 77, 0.20);

    transform: translateY(15px) scale(.98);

    transition:
        transform .3s cubic-bezier(.22, 1, .36, 1);
}

.story-modal.active .story-modal-box {
    transform: translateY(0) scale(1);
}


/* CLOSE BUTTON */

.story-modal-close {
    position: absolute;

    top: 10px;
    right: 12px;

    width: 30px;
    height: 30px;

    border: none;
    background: transparent;

    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 300;

    line-height: 30px;

    color: #111;

    cursor: pointer;

    padding: 0;

    transition:
        transform .2s ease,
        color .2s ease;
}

.story-modal-close:hover {
    transform: scale(1.15);
    color: #39A6A3;
}


/* TITLE */

.sessions-title{
    margin-left:380px;
    margin-top:40px;
    margin-bottom:30px;
}
.story-modal-box h2 {
    margin: 0 40px 25px 0;

    font-family: "Quicksand", sans-serif;

    font-size: 22px;
    line-height: 1.2;

    font-weight: 700;

    color: #111;
}


/* USER */

.modal-user {
    display: flex;
    align-items: center;

    margin-bottom: 30px;
}

.modal-user > img {
    width: 38px;
    height: 38px;

    object-fit: cover;

    border-radius: 50%;

    margin-right: 10px;
}


/* User information */

.modal-user-info {
    width: calc(100% - 48px);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-user-info > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.modal-user-info strong {
    font-family: "Quicksand", sans-serif;

    font-size: 16px;
    font-weight: 700;

    color: #111;
}


/* Learner / Tutor badge */

.modal-role {
    display: inline-flex;

    align-items: center;

    padding: 4px 9px;

    border-radius: 5px;

    background: #e7efff;

    color: #3d72d8;

    font-family: "Quicksand", sans-serif;

    font-size: 13px;
    font-weight: 700;
}


/* Date */

.modal-date {
    font-family: "Quicksand", sans-serif;

    font-size: 15px;
    font-weight: 700;

    color: #9aa4b5;
}


/* FULL STORY */

.modal-story-text {
    font-family: "Quicksand", sans-serif;

    font-size: 16px;

    line-height: 1.5;

    font-weight: 500;

    color: #171717;
}


/* Chaque paragraphe */

.modal-story-text p {
    margin: 0 0 14px;
}

.modal-story-text p:last-child {
    margin-bottom: 0;
}


/* SCROLLBAR */

.story-modal-box::-webkit-scrollbar {
    width: 6px;
}

.story-modal-box::-webkit-scrollbar-track {
    background: transparent;
}

.story-modal-box::-webkit-scrollbar-thumb {
    background: #cbd3df;
    border-radius: 10px;
}
@media (max-width: 1200px) {
    .index-1 {
        margin-left: 300px;
    }
    .about-1 {
        margin-left: 440px;
    }
    .faq-1 {
        margin-left: 490px;
    }
    .story-1 {
        margin-left: 540px;
    }
    .involve-1 {
        margin-left: 590px;
    }
    .donate-1 {
        margin-left: 705px;
    }
    .stories-container {
        grid-template-columns:
            repeat(3, 1fr);
        gap: 20px;
    }
}
@media (max-width: 900px) {
    .top {
        padding:
            0 20px;
        gap: 15px;
    }
    .brand-name {
        font-size: 24px;
    }
    .fox {
        width: 45px;
        height: 45px;
    }
    .index-1,
    .about-1,
    .faq-1,
    .story-1,
    .involve-1,
    .donate-1 {
        position: static;
        margin-left: 0;
    }
    .stories-container {
        grid-template-columns:
            1fr;
        max-width: 500px;
    }
    .space {
        padding:
            100px 8%;
    }
    .creator {
        margin-left: 8%;
        margin-right: 8%;
    }
}
@media (max-width: 768px) {
    .space .bga-05__terrain,
    .space .bga-05__ridge {
        inset:
            -100%;
    }
    .front_text {
        font-size: 65px;
        word-spacing: 100px;
    }
    .front_text2 {
        font-size: 38px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior:
            auto;
    }
    *,
    *::before,
    *::after {
        animation-duration:
            .01ms !important;
        animation-iteration-count:
            1 !important;
        transition-duration:
            .01ms !important;
    }
    .space .bga-05__terrain,
    .space .bga-05__ridge {
        filter:
            none;
        opacity:
            .4;
    }
}
@media (max-width: 650px) {
    .top {
        height: 65px;
        padding:
            0 15px;
        gap: 8px;
    }
    .fox {
        width: 40px;
        height: 40px;
    }
    .brand-name {
        font-size: 20px;
    }
    .index-1,
    .about-1,
    .faq-1,
    .story-1,
    .involve-1,
    .donate-1 {
        display:
            none;
    }
    .signin-button {
        padding:
            8px 12px;
        font-size:
            13px;
    }
    .signup-button {
        height:
            38px;
        min-width:
            75px;
        padding:
            0 12px;
        font-size:
            12px;
    }
    .space {
        min-height:
            500px;
        margin-top:
            65px;
        padding:
            80px 7%;
        border-radius:
            0 0 20px 20px;
    }
    .front {
        width:
            100%;
        margin-top:
            80px;
    }
    .front_text {
        font-size:
            52px;
        word-spacing:
            normal;
        letter-spacing:
            -2px;
    }
    .front_text2 {
        font-size:
            32px;
        margin-top:
            30px;
    }
    .front2 {
        width:
            100%;
        margin-left:
            0;
        margin-top:
            20px;
    }
    .start-learning-button {
        width:
            calc(100% - 20px);
    }
    .for-parents,
    .for-educator {
        width:
            42%;
        font-size:
            11px;
    }
    .for-parents {
        margin-left:
            0;
    }
    .for-educator {
        margin-left:
            46%;
    }
    .creator {
        height:
            650px;
        margin:
            80px 20px;
        padding:
            35px;
    }
    .testimonial-line {
        display:
            none;
    }
    .testimonial-text {
        position:
            relative;
        top:
            auto;
        left:
            auto;
        margin:
            50px 20px;
    }
    .testimonial-author {
        position:
            relative;
        top:
            auto;
        left:
            auto;
        margin-left:
            20px;
    }
    .How-text {
        font-size:
            32px;
    }
    .How-text2 {
        font-size:
            17px;
        padding:
            0 25px;
    }
    .stories-container {
        margin:
            50px 20px 200px;
        padding:
            0;
        grid-template-columns:
            1fr;
    }
}

/* =====================================================
   DROPDOWN PANELS
   ===================================================== */

.explore-menu-content {
    display: block;
}

.dropdown-panel {
    display: none;
    width: 100%;
}

.dropdown-panel.active {
    display: block;
}

.get-involved-menu {
    display: contents;
}

.explore-menu-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.get-involved-panel .explore-item {
    min-height: 150px;
}

/* =====================================================
   DROPDOWN ITEMS — VERTICAL, NO BACKGROUND, PAGE LINKS
   ===================================================== */

.explore-menu-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

.explore-item {
    display: block;
    width: 100%;
    padding: 18px 0;
    margin: 0;
    background: transparent !important;
    border: none;
    border-radius: 0;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #17324D;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform .25s ease,
        color .25s ease;
}

.explore-item:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: translateX(8px);
}

.explore-item h3 {
    margin: 0 0 7px;
    color: #17324D;
    font-size: 20px;
    font-weight: 600;
}

.explore-item p {
    margin: 0;
    max-width: 650px;
    color: #526A7A;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.explore-item:focus-visible {
    outline: 3px solid rgba(57, 166, 163, .35);
    outline-offset: 6px;
    border-radius: 4px;
}

.get-involved-panel .explore-item {
    min-height: 0;
}

@media (max-width: 650px) {
    .explore-menu {
        top: 65px;
        height: calc(100vh - 65px);
    }

    .explore-menu-content {
        padding: 35px 7%;
    }

    .explore-menu-list {
        gap: 0;
    }

    .explore-item {
        padding: 15px 0;
    }
}

/* =========================================================
   LEARNIVIA — AMÉLIORATIONS (typographie + couleurs)
   ========================================================= */

/* 1. COULEURS DE LA MARQUE */
:root {
    --ink: #382727;
    --navy: #17324D;
    --teal: #1F7F7C;
    --muted: #5C6872;
    --raspberry: #AD0062;
}

/* 2. RENDU GÉNÉRAL DU TEXTE */
body {
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(57, 166, 163, .25);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #39A6A3;
    outline-offset: 3px;
}

/* 3. MENU DU HAUT */
.index-1:hover,
.about-1:hover,
.faq-1:hover,
.story-1:hover,
.involve-1:hover,
.donate-1:hover,
.signin-button:hover {
    color: var(--teal);
}

.donate-1:hover {
    border-color: var(--teal);
}

.signup-button:hover {
    background: var(--teal);
}

/* 4. BANDEAU ROSE */
.hero-stories {
    background: var(--raspberry);
}

.Learnivia-stories-world {
    font-weight: 500;
}

.share-your-story-button {
    color: var(--raspberry);
}

.share-your-story-button:hover {
    background-color: var(--teal);
    border-color: var(--teal);
    color: #ffffff;
}

/* 5. CARTES D'HISTOIRES */
.story-bubble h3,
.story-user h4 {
    color: var(--navy);
}

.story-bubble p {
    color: var(--ink);
}

.story-date,
.story-user span {
    color: var(--muted);
}

.see-more-button {
    background: var(--teal);
}

/* 6. FENÊTRE D'UNE HISTOIRE (popup) */
.story-modal-box h2 {
    color: var(--navy);
}

.modal-user-info strong,
.modal-story-text {
    color: var(--ink);
}

.story-modal-close {
    color: var(--ink);
}

.story-modal-close:hover {
    color: var(--teal);
}

.modal-role {
    color: #2A5BB5;
}

.modal-date {
    color: var(--muted);
}

/* Cartes d'histoires cliquables */
.story-card {
    cursor: pointer;
    transition: transform .25s ease;
}

.story-card:hover {
    transform: translateY(-4px);
}

.story-card:hover .story-bubble,
.story-card:focus-visible .story-bubble {
    border-color: #39A6A3;
}

.story-card:focus-visible {
    outline: none;
}

.about-description {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 60px 6%;
    background: #ffffff;
    color: #111111;
    overflow: hidden;
    box-sizing: border-box;
}

.about-description::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 240px;
    height: 420px;
    background-image: radial-gradient(
        circle,
        rgba(23, 50, 77, 0.10) 1px,
        transparent 1.3px
    );
    background-size: 12px 12px;
    mask-image: linear-gradient(to right, black, transparent);
    -webkit-mask-image: linear-gradient(to right, black, transparent);
    pointer-events: none;
    z-index: -1;
}

.about-description-main {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 auto 40px;
}

.about-description-main p {
    margin: 0 0 30px;
    font-family: "Quicksand", sans-serif;
    font-size: 23px;
    line-height: 1.55;
    font-weight: 600;
    letter-spacing: -0.35px;
    color: #111111;
}

.about-description-columns {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.about-description-column {
    min-width: 0;
}

.about-description-column p {
    margin: 0 0 27px;
    font-family: "Quicksand", sans-serif;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 500;
    color: #64717e;
}

@media (max-width: 768px) {
    .about-description {
        padding: 40px 6%;
    }

    .about-description-main p {
        font-size: 20px;
        line-height: 1.6;
    }

    .about-description-columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about-description-column p {
        font-size: 17px;
        line-height: 1.7;
    }
}

/* =========================================================
   BOUTON LIKE DANS LE POPUP
   ========================================================= */

.modal-actions {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e3e8ef;
    display: flex;
    justify-content: flex-start;
}

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 2px solid #c5cfdf;
    border-radius: 30px;
    background: #ffffff;
    color: var(--navy);
    font-family: "Quicksand", sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease,
                background .2s ease, color .2s ease;
}

.like-button:hover {
    border-color: var(--raspberry);
    transform: translateY(-2px);
}

.like-heart {
    font-size: 20px;
    line-height: 1;
}

.like-count {
    min-width: 16px;
    text-align: center;
    color: var(--muted);
}

.like-button.liked {
    background: var(--raspberry);
    border-color: var(--raspberry);
    color: #ffffff;
}

.like-button.liked .like-count {
    color: #ffffff;
}

.like-button.liked .like-heart {
    animation: heartPop .35s ease;
}

@keyframes heartPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* =========================================================
   EXTRAIT SUR LES CARTES (4 lignes max, le reste dans le popup)
   ========================================================= */

.story-bubble p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}