/* ========================================
   HOMEPAGE - GENERAL OVERRIDES
   ======================================== */

/* Override footer margin for homepage */
.home_trust_section + .shop_content .footer {
    margin-top: 5%;
}

/* ========================================
   HOMEPAGE - HERO SECTION
   ======================================== */

.home_hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 90px 0 0 0;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

/* Supprimer l'espace sous la barre multicolore utilisée comme séparation après le hero
   (la barre est ajoutée APRÈS un <script>, donc on utilise un sélecteur de frère général) */
.home_hero ~ .animated_gradient_line {
    margin-bottom: 0 !important;
}

.home_hero_clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.home_hero_cloud {
    position: absolute;
    left: -20%;
    opacity: 0.3;
    animation-name: home_hero_cloud_drift;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.home_hero_cloud img {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes home_hero_cloud_drift {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(140vw);
    }
}

.home_hero_texts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    position: relative;
}

.home_hero_title {
    font-weight: 800;
    font-size: 5rem;
    margin: 0;
    color: #2C123B;
    line-height: 1.05;
    letter-spacing: -2px;
}

.home_hero_title_gradient {
    background: linear-gradient(30deg, #FF31D2, #63eafc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.home_hero_subtitle {
    font-weight: 400;
    font-size: 1.3rem;
    color: #666a81;
    margin: 0;
    max-width: 500px;
}

.home_hero_cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 14px 40px;
    border-radius: 50px;
    background: linear-gradient(30deg, #FF31D2, #63eafc, #FF31D2);
    background-size: 200% 200%;
    animation: gradient-border-flow 3s ease infinite;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 49, 210, 0.3);
}

.home_hero_cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 49, 210, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.home_hero_image_wrapper {
    width: 110%;
    max-width: 1400px;
    margin-top: -70px;
    position: relative;
    z-index: 1; /* image behind the step cards but above background */
}

.home_hero_image_wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px 20px 0 0;
}

.home_hero_leaves {
    position: absolute;
    bottom: 0px; /* overlap davantage pour coller au début du fond noir */
    width: 32%;
    max-width: 400px;
    pointer-events: none;
    z-index: 4; /* devant l'image hero et l'arrière-plan */
}

.home_hero_leaves--left {
    left: 0;
}

.home_hero_leaves--right {
    right: 0;
    transform: scaleX(-1); /* horizontal inversion for right side */
    transform-origin: center;
}

/* Placeholder for hero image */
.home_hero_image_placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f0e6f6 0%, #e6f0fc 50%, #fce6f4 100%);
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d8e98;
    font-size: 1.2rem;
    font-weight: 400;
}

/* ========================================
   SECTION 2 - HOW IT WORKS (3 STEPS)
   ======================================== */

.home_steps_section {
    width: 100%;
    position: relative;
    padding: 40px 0 80px 0; /* espace au-dessus et en dessous des cartes */
     background-color: #0d0b10; /* fond complètement noir derrière les cartes */
    z-index: 11111;
}

.home_steps_container {
    display: flex;
    flex-direction: row;
    gap: 24px;
    position: relative;
    z-index: 5; /* cartes au tout premier plan, devant les décorations */
    justify-content: center;
}

.home_step_card {
    flex: 1;
    max-width: 380px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    box-shadow: 0 15px 40px rgba(45, 37, 91, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.home_step_card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(45, 37, 91, 0.18);
}

.home_step_number {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: #ffffff;
    flex-shrink: 0;
}

.home_step_icon {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
}

.home_step_title {
    font-weight: 700;
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0;
}

.home_step_description {
    font-weight: 300;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   SECTION 3 - VIDEO SHOWCASE
   ======================================== */

.home_video_section {
    width: 100%;
    background-color: #0d0b10;
    padding: 64px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home_video_texts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.home_video_title {
    font-weight: 800;
    font-size: 3.6rem;
    color: #ffffff;
    margin: 0;
}

.home_video_subtitle {
    font-weight: 300;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 600px;
}

.home_video_wrapper {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    background: #1a1720;
}

.home_video_wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder for video */
.home_video_placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    font-weight: 300;
}

.home_video_placeholder_icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home_video_placeholder_icon svg {
    width: 30px;
    height: 30px;
    fill: rgba(255, 255, 255, 0.3);
}

/* ========================================
   SECTION 4 - PRODUCT CAROUSEL
   ======================================== */

.home_products_section {
    width: 100%;
    background-color: #ffffff;
    padding: 80px 0 40px 0;
}

.home_products_section .carousel::before {
    background: none;
}

.home_products_section .carousel::after {
    background: none;
}

/* Masquer les flèches de navigation dans la section Fan-Favorite Widgets */
.home_products_section .carousel-controls {
    display: none !important;
}

.home_section_header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 40px;
}

.home_section_tag {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    background: rgba(255, 49, 210, 0.08);
    color: #FF31D2;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.home_section_title {
    font-weight: 800;
    font-size: 2.8rem;
    color: #2C123B;
    margin: 0;
}

.home_section_subtitle {
    font-weight: 300;
    font-size: 1.1rem;
    color: #666a81;
    margin: 0;
    max-width: 550px;
}

.home_products_cta {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.home_products_cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 35px;
    border-radius: 50px;
    background: #2C123B;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #2C123B;
}

.home_products_cta a:hover {
    background: #ffffff;
    color: #2C123B;
}

/* Hide the carousel-nav title when empty in homepage */
.home_products_section .carousel-nav h1:empty {
    display: none;
}

.home_products_section .carousel-nav {
    justify-content: flex-end;
}

/* ========================================
   SECTION 5 - FAQ
   ======================================== */

.home_faq_section {
    width: 100%;
    background-color: #ffffff;
    padding: 80px 0;
}

.home_faq_section .home_section_header {
    align-items: flex-start;
    text-align: left;
}

.home_faq_layout {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.home_faq_column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home_faq_image_column {
    flex: 0 0 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3;
}

.home_faq_image_column img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 20px;
}

/* Placeholder for FAQ image */
.home_faq_image_placeholder {
    width: 280px;
    height: 280px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f0e6f6 0%, #e6f0fc 50%, #fce6f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d8e98;
    font-size: 0.9rem;
    font-weight: 300;
}

.home_faq_item {
    border: 1.5px solid rgba(44, 18, 59, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
}

.home_faq_item:hover {
    border-color: rgba(255, 49, 210, 0.15);
}

.home_faq_item.active {
    border-color: rgba(255, 49, 210, 0.2);
    box-shadow: 0 4px 20px rgba(255, 49, 210, 0.06);
}

.home_faq_question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    cursor: pointer;
    user-select: none;
    gap: 12px;
    transition: background 0.2s ease;
}

.home_faq_question:hover {
    background: rgba(44, 18, 59, 0.02);
}

.home_faq_question_text {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2C123B;
    margin: 0;
    line-height: 1.4;
}

.home_faq_icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(44, 18, 59, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.home_faq_item.active .home_faq_icon {
    transform: rotate(45deg);
    background: linear-gradient(30deg, #FF31D2, #63eafc);
}

.home_faq_icon svg {
    width: 14px;
    height: 14px;
    stroke: #2C123B;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s ease;
}

.home_faq_item.active .home_faq_icon svg {
    stroke: #ffffff;
}

.home_faq_answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.home_faq_item.active .home_faq_answer {
    max-height: 300px;
}

.home_faq_answer_text {
    padding: 0 22px 18px 22px;
    font-weight: 300;
    font-size: 0.9rem;
    color: #666a81;
    margin: 0;
    line-height: 1.7;
}

/* ========================================
   SECTION 6 - DISCORD CTA
   ======================================== */

.home_discord_section {
    width: 100%;
    padding: 0 0 80px 0;
    background-color: #ffffff;
}

.home_discord_card {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #5865F2 0%, #7B68EE 25%, #9B59B6 50%, #FF31D2 75%, #FF6B9D 100%);
    background-size: 300% 300%;
    animation: discordGradient 8s ease infinite;
}

@keyframes discordGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.home_discord_card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    z-index: 1;
}

.home_discord_content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 50px 60px;
    position: relative;
    z-index: 2;
    gap: 40px;
}

.home_discord_texts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.home_discord_tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
    backdrop-filter: blur(10px);
}

.home_discord_title {
    font-weight: 800;
    font-size: 2.8rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
}

.home_discord_subtitle {
    font-weight: 300;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 480px;
    line-height: 1.6;
}

.home_discord_button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 14px 40px;
    border-radius: 50px;
    background: #ffffff;
    color: #5865F2;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: fit-content;
}

.home_discord_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    color: #5865F2;
    text-decoration: none;
}

.home_discord_button svg {
    width: 22px;
    height: 22px;
    fill: #5865F2;
}

.home_discord_image {
    flex: 0 0 320px;
    max-width: 320px;
    position: relative;
}

.home_discord_video {
    width: 100%;
    border-radius: 20px;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.home_discord_image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* Placeholder for Discord image */
.home_discord_image_placeholder {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 300;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   SECTION 7 - TRUSTED BY / SOCIAL PROOF
   ======================================== */

.home_trust_section {
    width: 100%;
    background-color: #ffffff;
    padding: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.home_trust_text {
    font-weight: 300;
    font-size: 0.95rem;
    color: #8d8e98;
    margin: 0;
}

.home_trust_platforms {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    opacity: 0.4;
}

.home_trust_platforms span {
    font-weight: 700;
    font-size: 1.3rem;
    color: #2C123B;
    letter-spacing: 1px;
}

/* ========================================
   RESPONSIVE - TABLET (1024px)
   ======================================== */

@media (max-width: 1024px) {
    .home_hero_title {
        font-size: 3.8rem;
    }

    /* Masquer les feuilles décoratives sur tablette et mobile */
    .home_hero_leaves {
        display: none;
    }

    .home_step_card {
        padding: 30px 24px;
    }

    .home_discord_content {
        padding: 40px 40px;
    }

    .home_discord_title {
        font-size: 2.3rem;
    }

    .home_discord_image {
        flex: 0 0 250px;
        max-width: 250px;
    }

    .home_faq_image_column {
        flex: 0 0 220px;
    }

    .home_faq_image_placeholder {
        width: 220px;
        height: 220px;
    }
}

/* ========================================
   RESPONSIVE - TABLET SMALL (768px)
   ======================================== */

@media (max-width: 768px) {
    .home_hero {
        padding: 60px 0 0 0;
    }

    .home_hero_title {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .home_hero_subtitle {
        font-size: 1.1rem;
    }

    .home_hero_cta {
        padding: 12px 32px;
        font-size: 1rem;
    }

    .home_steps_container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 5%;
    }

    .home_steps_section::before {
        height: 30%;
    }

    .home_steps_section::after {
        height: 70%;
    }

    .home_step_card {
        max-width: 100%;
        width: 100%;
        flex-direction: row;
        text-align: left;
        padding: 24px;
        gap: 20px;
    }

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

    .home_video_section {
        padding: 48px 0;
    }

    .home_video_title {
        font-size: 2.5rem;
    }

    .home_video_wrapper {
        border-radius: 14px;
    }

    .home_products_section {
        padding: 60px 0 30px 0;
    }

    .home_section_title {
        font-size: 2rem;
    }

    .home_faq_section {
        padding: 60px 0;
    }

    .home_faq_layout {
        flex-direction: column;
        gap: 30px;
    }

    .home_faq_image_column {
        order: -1;
        flex: none;
        width: 100%;
    }

    .home_faq_image_placeholder {
        width: 200px;
        height: 200px;
    }

    .home_faq_image_column img {
        max-width: 200px;
    }

    .home_discord_section {
        padding: 0 0 60px 0;
    }

    .home_discord_card {
        min-height: auto;
    }

    .home_discord_content {
        flex-direction: column;
        padding: 40px 30px;
        text-align: center;
    }

    .home_discord_texts {
        align-items: center;
    }

    .home_discord_tag {
        margin: 0 auto;
    }

    .home_discord_title {
        font-size: 2rem;
    }

    .home_discord_image {
        flex: none;
        max-width: 200px;
    }

    .home_discord_image_placeholder {
        width: 200px;
        height: 200px;
    }

    .home_trust_platforms {
        gap: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .home_trust_platforms span {
        font-size: 1.1rem;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (480px)
   ======================================== */

@media (max-width: 480px) {
    .home_hero {
        padding: 40px 0 0 0;
    }

    .home_hero_title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .home_hero_subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .home_hero_cta {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .home_hero_image_placeholder {
        height: 220px;
    }

    .home_steps_section {
        padding-bottom: 50px;
    }

    .home_step_card {
        padding: 20px;
    }

    .home_step_number {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .home_step_title {
        font-size: 1.1rem;
    }

    .home_step_description {
        font-size: 0.85rem;
    }

    .home_video_section {
        padding: 32px 0;
    }

    .home_video_title {
        font-size: 2rem;
    }

    .home_video_subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .home_video_wrapper {
        border-radius: 12px;
    }

    .home_products_section {
        padding: 50px 0 20px 0;
    }

    .home_section_title {
        font-size: 1.7rem;
    }

    .home_section_subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .home_faq_section {
        padding: 40px 0;
    }

    .home_faq_question {
        padding: 14px 18px;
    }

    .home_faq_question_text {
        font-size: 0.88rem;
    }

    .home_faq_answer_text {
        font-size: 0.85rem;
        padding: 0 18px 16px 18px;
    }

    .home_discord_content {
        padding: 30px 20px;
    }

    .home_discord_title {
        font-size: 1.7rem;
    }

    .home_discord_subtitle {
        font-size: 0.95rem;
    }

    .home_discord_button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .home_discord_image {
        max-width: 160px;
    }

    .home_discord_image_placeholder {
        width: 160px;
        height: 160px;
    }
}
