/* =========================================================
   Home / landing only — charger uniquement sur index.php
   ========================================================= */
/* Fond cœurs blancs flottants (page d'accueil) : plein écran, opacité très faible, mouvements doux */

.hearts_bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hearts_bg .heart {
  position: absolute;
  color: var(--text-on-color);
  opacity: 0.06;
  font-size: clamp(14px, 2.2vw, 28px);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* Directions et durées variées pour un effet naturel */

@keyframes hearts-float_up {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2%, -15%); }
}

@keyframes hearts-float_down {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-1%, 12%); }
}

@keyframes hearts-float_left {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18%, 3%); }
}

@keyframes hearts-float_right {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(14%, -2%); }
}

@keyframes hearts-float_diag1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10%, 10%); }
}

@keyframes hearts-float_diag2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8%, -10%); }
}

@keyframes hearts-float_diag3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12%, -8%); }
}

@keyframes hearts-float_diag4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10%, 8%); }
}

/* Répartition sur tout l'écran et variantes d'animation */

.hearts_bg .heart--1  { left: 5%;   top: 8%;   animation: hearts-float_up 28s ease-in-out infinite; animation-delay: 0s; }

.hearts_bg .heart--2  { left: 18%;  top: 22%;  animation: hearts-float_down 32s ease-in-out infinite; animation-delay: -2s; }

.hearts_bg .heart--3  { left: 88%;  top: 12%;  animation: hearts-float_left 26s ease-in-out infinite; animation-delay: -5s; }

.hearts_bg .heart--4  { left: 72%;  top: 45%;  animation: hearts-float_right 30s ease-in-out infinite; animation-delay: -1s; }

.hearts_bg .heart--5  { left: 12%;  top: 55%;  animation: hearts-float_diag1 34s ease-in-out infinite; animation-delay: -8s; }

.hearts_bg .heart--6  { left: 92%;  top: 68%;  animation: hearts-float_diag2 27s ease-in-out infinite; animation-delay: -3s; }

.hearts_bg .heart--7  { left: 35%;  top: 15%;  animation: hearts-float_up 29s ease-in-out infinite; animation-delay: -6s; }

.hearts_bg .heart--8  { left: 55%;  top: 78%;  animation: hearts-float_down 31s ease-in-out infinite; animation-delay: -4s; }

.hearts_bg .heart--9  { left: 78%;  top: 28%;  animation: hearts-float_diag3 33s ease-in-out infinite; animation-delay: -7s; }

.hearts_bg .heart--10 { left: 25%;  top: 72%;  animation: hearts-float_diag4 25s ease-in-out infinite; animation-delay: -9s; }

.hearts_bg .heart--11 { left: 42%;  top: 5%;   animation: hearts-float_right 28s ease-in-out infinite; animation-delay: -1.5s; }

.hearts_bg .heart--12 { left: 8%;  top: 38%;  animation: hearts-float_left 30s ease-in-out infinite; animation-delay: -5.5s; }

.hearts_bg .heart--13 { left: 65%;  top: 18%;  animation: hearts-float_up 26s ease-in-out infinite; animation-delay: -3.5s; }

.hearts_bg .heart--14 { left: 48%;  top: 52%;  animation: hearts-float_down 35s ease-in-out infinite; animation-delay: -6.5s; }

.hearts_bg .heart--15 { left: 95%;  top: 35%;  animation: hearts-float_diag1 27s ease-in-out infinite; animation-delay: -2.5s; }

.hearts_bg .heart--16 { left: 22%;  top: 88%;  animation: hearts-float_diag2 32s ease-in-out infinite; animation-delay: -8.5s; }

.hearts_bg .heart--17 { left: 85%;  top: 82%;  animation: hearts-float_diag3 29s ease-in-out infinite; animation-delay: -4.5s; }

.hearts_bg .heart--18 { left: 38%;  top: 42%;  animation: hearts-float_diag4 31s ease-in-out infinite; animation-delay: -7.5s; }

.hearts_bg .heart--19 { left: 62%;  top: 62%;  animation: hearts-float_up 28s ease-in-out infinite; animation-delay: -0.5s; }

.hearts_bg .heart--20 { left: 15%;  top: 25%;  animation: hearts-float_down 33s ease-in-out infinite; animation-delay: -9.5s; }

.hearts_bg .heart--21 { left: 75%;  top: 55%;  animation: hearts-float_left 25s ease-in-out infinite; animation-delay: -2s; }

.hearts_bg .heart--22 { left: 52%;  top: 32%;  animation: hearts-float_right 34s ease-in-out infinite; animation-delay: -5s; }

.hearts_bg .heart--23 { left: 28%;  top: 48%;  animation: hearts-float_diag1 26s ease-in-out infinite; animation-delay: -6s; }

.hearts_bg .heart--24 { left: 82%;  top: 42%;  animation: hearts-float_diag2 30s ease-in-out infinite; animation-delay: -3s; }

.hearts_bg .heart--25 { left: 5%;  top: 65%;  animation: hearts-float_diag3 32s ease-in-out infinite; animation-delay: -7s; }

.hearts_bg .heart--26 { left: 58%;  top: 8%;  animation: hearts-float_diag4 28s ease-in-out infinite; animation-delay: -4s; }

.hearts_bg .heart--27 { left: 45%;  top: 85%;  animation: hearts-float_up 27s ease-in-out infinite; animation-delay: -1s; }

.hearts_bg .heart--28 { left: 32%;  top: 62%;  animation: hearts-float_down 29s ease-in-out infinite; animation-delay: -8s; }

.hearts_bg .heart--29 { left: 68%;  top: 72%;  animation: hearts-float_left 31s ease-in-out infinite; animation-delay: -5s; }

.hearts_bg .heart--30 { left: 12%;  top: 92%;  animation: hearts-float_right 33s ease-in-out infinite; animation-delay: -2s; }

/* Animation vague idle sur le titre "Community Widget" */

/* Sur petits écrans, .shop_content porte déjà le gutter — pas de padding % en plus */

.home_header:has(.landing_hero) {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-top: -1rem;
    margin-bottom: 2rem;
    overflow: visible;
}

.landing_hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    position: relative;
    overflow: visible;
}

/* Entrée + flottement léger (titre, puis cartes viewer / streamer juste après) */

@keyframes landing-stagger-enter {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes landing-stagger-float {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    35% {
        transform: translateY(-6px) scale(1.006) rotate(0.35deg);
    }
    65% {
        transform: translateY(-3px) scale(1.003) rotate(-0.3deg);
    }
}

.landing_hero__logo-wrap {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    opacity: 0;
    animation:
        landing-stagger-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        landing-stagger-float 5.5s ease-in-out infinite;
    will-change: transform, opacity;
}

.landing_hero__logo {
    width: min(90vw, 860px);
    height: auto;
    aspect-ratio: 1095 / 333;
    display: block;
    position: relative;
}

.landing_hero__characters {
    width: min(98vw, 1080px);
    height: auto;
    /* Réserve la hauteur avant chargement (width/height HTML + fallback CSS) */
    aspect-ratio: var(--landing-hero-ar, 1519 / 474);
    display: block;
    margin-top: -10%;
    position: relative;
    z-index: 2;
}

/* Papillons décoratifs : premier plan, hors flux (n'affecte pas le layout) */

.landing_hero__butterflies {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}

.landing_hero__butterfly {
    position: absolute;
    display: block;
    height: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.landing_hero__butterfly--1 {
    width: clamp(36px, 6vw, 76px);
    left: 0;
    top: 6%;
    animation: butterfly-float-1 7.5s ease-in-out infinite;
}

.landing_hero__butterfly--2 {
    width: clamp(20px, 3.25vw, 41px);
    right: 2%;
    top: 22%;
    transform: scaleX(-1);
    animation: butterfly-float-2 8.5s ease-in-out infinite;
    animation-delay: -2.5s;
}

.landing_hero__butterfly--3 {
    width: clamp(13px, 2.1vw, 28px);
    left: 10%;
    bottom: 4%;
    animation: butterfly-float-3 9s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes butterfly-float-1 {
    0%, 100% { transform: translate(0, 0) rotate(-6deg); }
    33% { transform: translate(12px, 6px) rotate(4deg); }
    66% { transform: translate(-8px, 4px) rotate(-3deg); }
}

@keyframes butterfly-float-2 {
    0%, 100% { transform: scaleX(-1) translate(0, 0) rotate(5deg); }
    40% { transform: scaleX(-1) translate(-12px, 5px) rotate(-4deg); }
    70% { transform: scaleX(-1) translate(8px, 6px) rotate(7deg); }
}

@keyframes butterfly-float-3 {
    0%, 100% { transform: translate(0, 0) rotate(8deg); }
    50% { transform: translate(14px, 5px) rotate(-5deg); }
}

@media (prefers-reduced-motion: reduce) {
.landing_hero__butterfly {
        animation: none !important;
    }

.landing_hero__logo-wrap,
    .community_exttrainfo_enter-wrap {
        opacity: 1;
        animation: none !important;
        filter: none;
    }
}

@media (min-width: 1200px) {
.landing_hero__logo {
        width: min(86vw, 820px);
    }

.landing_hero__characters {
        width: min(98vw, 1140px);
    }
}

@media (max-width: 768px) {
.home_header:has(.landing_hero) {
        margin-top: 1rem;
    }

.landing_hero__characters {
        margin-top: -8%;
    }

.landing_hero__butterfly--1 {
        left: 2%;
        top: 4%;
    }

.landing_hero__butterfly--2 {
        right: 0;
        top: 16%;
    }

.landing_hero__butterfly--3 {
        left: 5%;
        bottom: 2%;
    }
}

/* Styles pour la section Community */

.community-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.community-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.community-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.community-content {
    position: absolute;
    z-index: 2;
    color: rgb(18, 11, 11);
    text-align: left;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
}

.community-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    margin-bottom: 0.5rem;
    text-align: left;
}

.community-subtitle {
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0;
    text-align: left;
    opacity: 0.9;
}

/* Responsive pour la section Community */

@media (max-width: 768px) {
.community-title {
        font-size: 2.5rem;
    }

.community-subtitle {
        font-size: 1.8rem;
    }

.community-content {
        padding-left: 3%;
    }
}

@media (max-width: 480px) {
.community-title {
        font-size: 2rem;
    }

.community-subtitle {
        font-size: 1.5rem;
    }

.community-content {
        padding-left: 2%;
    }
}

/* Barre défilante (ticker) - même fond que la barre du haut, pleine largeur écran (hors .shop_content) */

.ticker_bar_wrapper {
    width: 100%;
    overflow: hidden;
    background: var(--accent-gradient);
    background-size: 200% 200%;
    animation: gradient-border-flow 3s ease infinite;
    padding: 0;
    margin: 0;
    line-height: 1;
    box-sizing: border-box;
}

.ticker_bar {
    display: flex;
    width: max-content;
    animation: ticker-scroll 45s linear infinite;
    padding: 10px 0;
    white-space: nowrap;
}

.ticker_content {
    color: var(--text-on-color);
    font-size: 1.2rem;
    font-weight: 500;
    padding-right: 2rem;
    flex-shrink: 0;
}

/* --- Discord CTA bubble animations --- */

@keyframes discord-bubble-enter {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes discord-bubble-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1);
    }
}

@keyframes discord-bubble-shine {
    0% {
        left: -60%;
        opacity: 0;
    }
    15% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    85% {
        opacity: 0.6;
    }
    100% {
        left: 120%;
        opacity: 0;
    }
}

/* Reflet lumineux léger sur les cartes viewer / streamer */

.community_exttrainfo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 15%,
        rgba(255, 255, 255, 0.35) 45%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.35) 55%,
        transparent 85%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    animation: discord-bubble-shine 6s ease-in-out infinite;
}

#community_exttrainfo_viewer::before {
    animation-delay: 0s;
}

#community_exttrainfo_streamer::before {
    animation-delay: 3s;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section vidéo : fond noir pleine largeur */

.community_video_section {
    width: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 4% 0;
    box-sizing: border-box;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.community_video_section_header {
    text-align: center;
    margin: 0;
}

.community_video_section_title {
    color: var(--text-on-color);
    margin: 0 0 0.1em 0;
}

.community_video_section_subtitle {
    color: var(--text-on-color);
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.75;
    margin: 0;
}

/* Wrapper pour l'effet de perspective au scroll */

.community_video_perspective_wrapper {
    perspective: 1400px;
    perspective-origin: center center;
    width: 85%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.community_video_section_video {
    width: 100%;
    max-width: 1000px;
    border-radius: 30px;
    display: block;
    transform-style: preserve-3d;
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.08s ease-out;
}

/* Styles pour le conteneur vidéo principal - Classe principale */

.video-home {
    width: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 3;
    overflow: visible;
}

/* Vidéo principale */

.video-home video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
}

.video-home img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (min-width: 1470px) {
.video-home {
        margin-top: -5%;
    }
}

@media (max-width: 1380px) {
.video-home {
        margin-top: 18%;
    }
}

@media (max-width: 1024px) {
.video-home {
        margin-top: 30%;
    }
}

@media (max-width: 667px) {
.video-home {
        margin-top: 40%;
    }
}

@media (max-width: 480px) {
.video-home {
        margin-top: 60%;
    }
}

/* Zone rose : démarre à mi-hauteur des cartes, espace égal autour du logo Twitch */

.community_cards_pink_zone {
    position: relative;
    width: 100%;
    margin: 0;
    --pink-zone-gap: clamp(3.5rem, 9vw, 6.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--pink-zone-gap);
    padding-bottom: var(--pink-zone-gap);
    overflow: visible;
    z-index: 1;
    box-sizing: border-box;
}

/* Fond rose pleine largeur (100% zone), démarre à mi-hauteur des cartes */

.community_cards_pink_zone::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    top: calc(50% - var(--pink-zone-gap) - 1.5rem);
    height: 140vh;
    background-color: var(--accent);
    z-index: 0;
    pointer-events: none;
}

.community_cards_pink_zone__inner {
    width: 74%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.community_cards_pink_zone__twitch-row {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.45rem, 1.5vw, 0.85rem);
    margin: 0;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}

.community_cards_pink_zone__twitch-text {
    color: var(--text-on-color);
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    line-height: 1;
    letter-spacing: 0.03em;
    opacity: 0.95;
}

.community_cards_pink_zone__twitch-logo {
    display: block;
    width: clamp(72px, 14vw, 130px);
    height: auto;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.community_extrainfos{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(0.65rem, 2.5vw, 2rem);
    width: min(98%, 100%);
    padding-bottom: 0;
    padding-top: 0;
    margin-top: -0.5rem;
    padding-left: 1%;
    padding-right: 1%;
    position: relative;
    z-index: 5;
    box-sizing: border-box;
}

.community_exttrainfo_enter-wrap {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    opacity: 0;
    animation:
        landing-stagger-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        landing-stagger-float 5.5s ease-in-out infinite;
    will-change: transform, opacity;
}

.community_exttrainfo_enter-wrap .community_exttrainfo {
    flex: 1 1 auto;
    width: 100%;
}

.community_exttrainfo{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 0;
    min-width: 0;
    padding: clamp(0.85rem, 2.2vw, 1.75rem);
    border-radius: clamp(16px, 3vw, 30px);
    position: relative;
    overflow: hidden;
    align-items: stretch;
    gap: clamp(0.5rem, 2vw, 1.25rem);
    z-index: 6;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 28px rgba(45, 37, 91, 0.25);
    transition: transform 0.12s ease-out, box-shadow 0.2s ease;
    will-change: transform;
}

#community_exttrainfo_viewer,
#community_exttrainfo_streamer{
    background-color: var(--bg-surface);
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 28px rgba(45, 37, 91, 0.25);
}

.community_exttrainfo.shadow1{
    box-shadow: 0 10px 28px rgba(45, 37, 91, 0.25);
}

.community_exttrainfo_texts{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: clamp(0.25rem, 1.2vw, 1rem);
    z-index: 2;
    position: relative;
    padding-bottom: 0;
    line-height: 1.15;
}

.community_exttrainfo_texts .text_3_bold{
    font-size: clamp(1rem, 2.8vw, 2.5rem);
    white-space: nowrap;
}

.community_extrainfos .button_link{
    width: 100%;
    max-width: 770px;
    min-width: 0;
    align-self: center;
}

#community_exttrainfo_streamer_button{
    background-color: #39A9FF;
    border: none;
    color: white !important;
    text-decoration: none !important;
}

#community_exttrainfo_streamer_button:hover{
    background-color: #5bb8ff;
}

#community_exttrainfo_streamer_button:active{
    background-color: #2B8FD4;
}

#community_exttrainfo_viewer_button{
    background-color: var(--accent);
    border: none;
    color: white !important;
    text-decoration: none !important;
}

#community_exttrainfo_viewer_button:hover{
    background-color: var(--accent-hover);
}

#community_exttrainfo_viewer_button:active{
    background-color: var(--accent-active);
}

.community_exttrainfo_button{
    display: flex;
    width: 100%;
    max-width: 770px;
    min-width: 0;
    max-height: none;
    align-items: center;
    justify-content: center;
    padding: clamp(0.55rem, 1.6vw, 0.75rem) clamp(0.75rem, 2.5vw, 1.35rem);
    border-radius: var(--radius-pill);
    font-size: clamp(0.72rem, 1.85vw, 1.9rem);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
}

.community_exttrainfo_button a {
    color: white !important;
    text-decoration: none !important;
}

.community_exttrainfo_button a:hover {
    color: white !important;
    text-decoration: none !important;
}

.community_exttrainfo_btn-label--short{
    display: none;
}

.community_exttrainfo_image{
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    z-index: 1;
}

.community_video_header_desktop{
    margin-top: 5%;
}

/* Cartes viewer / streamer : toujours côte à côte, contenu adaptatif */

@media (max-width: 900px) {
.community_exttrainfo_texts{
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }

.community_exttrainfo_texts .text_3_bold{
        white-space: normal;
    }
}

@media (max-width: 680px) {
#community_exttrainfo_streamer_button .community_exttrainfo_btn-label--full{
        display: none;
    }

#community_exttrainfo_streamer_button .community_exttrainfo_btn-label--short{
        display: inline;
    }
}

@media (max-width: 520px) {
.community_extrainfos{
        gap: 0.5rem;
        padding-left: 0.5%;
        padding-right: 0.5%;
    }

.community_exttrainfo{
        padding: 0.65rem 0.55rem;
        border-radius: var(--radius-14);
        gap: 0.45rem;
    }

.community_exttrainfo_texts .text_3_bold{
        font-size: clamp(0.82rem, 3.6vw, 1.05rem);
    }

.community_exttrainfo_button{
        font-size: clamp(0.62rem, 2.8vw, 0.78rem);
        padding: 0.45rem 0.4rem;
    }
}

/* Styles pour les liens button_link qui englobent maintenant les boutons */

.button_link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.button_link:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.button_link:focus {
    text-decoration: none !important;
    color: inherit !important;
    outline: none;
}

/* Section How it works : fond noir sur toute la section (titre + cartes), comme les sections au-dessus */

.how_it_works_section {
    width: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 4%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    /* Intensité globale de la lumière (JS au scroll) : 0.3 = léger, 0.85 = max restant discret */
    --light-opacity: 0.4;
}

/* Lumière verte en bas : plus intense au centre (ellipse), moins aux bords ; opacité de la couche = --light-opacity */

.how_it_works_section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: radial-gradient(
        ellipse 65% 100% at 50% 100%,
        rgba(104, 255, 160, 0.22),
        rgba(104, 255, 160, 0.08) 45%,
        transparent 70%
    );
    opacity: var(--light-opacity);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.2s ease-out;
}

/* Bande noire moitié haute (même fond que la section vidéo) */

.how_it_works_black_top {
    width: 100%;
    background: #000;
    flex: 0 0 50%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem 0 1rem;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.how_it_works_title {
    text-align: center;
    margin: 0;
    color: var(--text-on-color);
}

/* Conteneur des cartes : espace titre→bulles réduit, plus d’espace en bas pour voir le fond noir */

.how_it_works_cards_wrapper {
    width: 74%;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 0 3rem;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.how_it_works_cards {
    display: flex;
    flex-direction: row;
    gap: 3%;
    width: 100%;
    justify-content: center;
    align-items: stretch;
}

/* Wrapper pour les effets au scroll (conserve le flex) */

.how_it_works_card_scroll_wrapper {
    flex: 1;
    display: flex;
    perspective: 1200px;
    max-width: 400px;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.how_it_works_card {
    flex: 1;
    border: none;
    border-radius: 30px;
    padding: 3%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px;
}

.how_it_works_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(45, 37, 91, 0.25);
}

/* Bulle 1 : accent rose */

.how_it_works_card_scroll_wrapper:nth-child(1) .how_it_works_card {
    background-color: var(--accent-muted);
}

.how_it_works_card_scroll_wrapper:nth-child(1) .how_it_works_card_title,
.how_it_works_card_scroll_wrapper:nth-child(1) .how_it_works_card_text {
    color: var(--accent);
}

.how_it_works_card_scroll_wrapper:nth-child(1) .how_it_works_card_number {
    background-color: var(--accent);
    color: #000;
    border: none;
}

/* Bulle 2 : vert #68FFA0 */

.how_it_works_card_scroll_wrapper:nth-child(2) .how_it_works_card {
    background-color: rgba(104, 255, 160, 0.15);
}

.how_it_works_card_scroll_wrapper:nth-child(2) .how_it_works_card_title,
.how_it_works_card_scroll_wrapper:nth-child(2) .how_it_works_card_text {
    color: #68FFA0;
}

.how_it_works_card_scroll_wrapper:nth-child(2) .how_it_works_card_number {
    background-color: #68FFA0;
    color: #000;
    border: none;
}

/* Bulle 3 : bleu lavande #B5BBE3 */

.how_it_works_card_scroll_wrapper:nth-child(3) .how_it_works_card {
    background-color: rgba(181, 187, 227, 0.15);
}

.how_it_works_card_scroll_wrapper:nth-child(3) .how_it_works_card_title,
.how_it_works_card_scroll_wrapper:nth-child(3) .how_it_works_card_text {
    color: #B5BBE3;
}

.how_it_works_card_scroll_wrapper:nth-child(3) .how_it_works_card_number {
    background-color: #B5BBE3;
    color: #000;
    border: none;
}

.how_it_works_card_number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.how_it_works_card_title {
    /* 30px = emprise du pastille (top -20px + hauteur 50px) + 1.25rem d’air */
    margin-top: calc(30px + 1.25rem);
    margin-bottom: 0;
}

.how_it_works_card_text {
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

/* Responsive pour How it works */

@media (max-width: 1256px) {
.how_it_works_cards {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

/* Pas d’animation scroll 3D en colonne (ligne unique = desktop) */.how_it_works_card_scroll_wrapper {
        transform: none !important;
        will-change: auto;
        perspective: none;
        width: 100%;
        max-width: 400px;
    }

.how_it_works_card {
        width: 100%;
    }
}

@media (max-width: 768px) {
.how_it_works_black_top {
        min-height: 180px;
        padding: 2rem 1rem 0 1rem;
    }

.how_it_works_cards_wrapper {
        width: 90%;
        padding: 1rem 0 2.5rem;
    }

.how_it_works_title {
        font-size: 1.8rem;
    }

.how_it_works_card {
        padding: 4%;
    }

.how_it_works_card_number {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
        top: -18px;
        left: 25px;
    }

.how_it_works_card_title {
        margin-top: calc(27px + 1.25rem);
    }
}

@media (max-width: 480px) {
.how_it_works_black_top {
        min-height: 160px;
        padding: 1.5rem 0.5rem 0 0.5rem;
    }

.how_it_works_cards_wrapper {
        width: 95%;
        padding: 1rem 0 2rem;
    }

.how_it_works_title {
        font-size: 1.5rem;
    }

.how_it_works_card {
        padding: 5%;
        border: 0px;
        box-shadow: 0 0px 0px !important;

    }

.how_it_works_card_number {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: -15px;
        left: 20px;
    }

.how_it_works_card_title {
        margin-top: calc(25px + 1.25rem);
    }
}

/* Section FAQ */

.faq_section {
    width: 98%;
    padding: 10% 1% 4%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Titre FAQ : section pleine largeur, séparée */

.faq_title_section {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 2.5rem;
}

.faq_title {
    margin: 0;
    text-align: left;
    line-height: 1.2;
    width: 100%;
}

/* Row : image + questions côte à côte */

.faq_container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 5%;
    width: 100%;
    max-width: 1200px;
}

.faq_image_wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq_image {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-xl);
}

.faq_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq_accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq_item {
    border-bottom: 1px solid var(--border-neutral);
}

.faq_item:first-child {
    border-top: 1px solid var(--border-neutral);
}

.faq_question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
    transition: color 0.2s ease;
}

.faq_question:hover {
    color: var(--text-ink) !important;
}

.faq_icon {
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--accent);
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.faq_question[aria-expanded="true"] .faq_icon {
    transform: rotate(180deg);
}

.faq_answer_wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq_answer {
    padding-bottom: 1.25rem;
}

.faq_answer p {
    margin: 0;
    line-height: 1.6;
}

/* FAQ Responsive */

@media (max-width: 1256px) {
.faq_title_section {
        margin-bottom: 2rem;
    }

.faq_container {
        flex-direction: column;
        gap: 3rem;
    }

.faq_content {
        width: 100%;
        max-width: 600px;
    }

.faq_title {
        text-align: center;
    }
}

@media (max-width: 768px) {
.faq_section {
        padding: 10% 2% 4%;
    }

.faq_title_section {
        margin-bottom: 1.5rem;
    }

.faq_title {
        font-size: 1.8rem;
    }

.faq_image {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
.faq_section {
        padding: 10% 3% 4%;
    }

.faq_title_section {
        margin-bottom: 1.25rem;
    }

.faq_title {
        font-size: 1.5rem;
    }

.faq_question {
        padding: 1rem 0;
        font-size: 1rem;
    }

.faq_image {
        max-width: 340px;
    }
}

/* Section Discord CTA - Bulle style site avec vidéo personnage */

@media (max-width: 1199px) {
.discord_cta_section {
        display: none !important;
    }
}

.discord_cta_section {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Moins de vide en bas avant la section "Avis" */
    padding: 4% clamp(16px, 4%, 48px) 5%;
    perspective: 1200px;
    perspective-origin: center center;
}

/* Wrapper pour l'effet au scroll (parallax + inclinaison 3D) */

.discord_cta_bubble_wrapper {
    width: 100%;
    max-width: 1100px;
    min-width: 0;
    margin-inline: auto;
    will-change: transform;
    transform-style: preserve-3d;
}

.discord_cta_bubble {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 3%;
    box-sizing: border-box;
    border-radius: 30px;
    text-decoration: none !important;
    overflow: hidden;
    border: none;
    background: linear-gradient(135deg, #A7B0FF 0%, #B8C0FF 50%, #CED4FF 100%);
    position: relative;
    /* Ombre portée très distante, diffuse, légèrement bleutée et discrète */
    box-shadow:
        0 35px 100px -15px rgba(88, 101, 242, 0.06),
        0 20px 55px -10px rgba(100, 115, 255, 0.05);
    /* Entrée en scène puis flottement infini */
    animation:
        discord-bubble-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        discord-bubble-float 4.2s ease-in-out 0.85s infinite;
    transition:
        transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
        box-shadow 0.5s ease,
        filter 0.4s ease;
    opacity: 0;
}

/* Reflet lumineux qui traverse la bulle */

.discord_cta_bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 15%,
        rgba(255, 255, 255, 0.18) 45%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.18) 55%,
        transparent 85%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 2;
    animation: discord-bubble-shine 6s ease-in-out 1.5s infinite;
}

.discord_cta_bubble:hover {
    animation-play-state: paused;
    transform: translateY(-10px) scale(1.02);
    filter: brightness(1.03);
}

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

.discord_cta_video video,
.discord_cta_video .video-fallback-image {
    position: absolute;
    right: 0;
    top: -5%;
    bottom: 0;
    width: 42%;
    object-fit: cover;
    object-position: left top;
}

.discord_cta_content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 75%;
    min-width: 0;
    overflow-wrap: break-word;
}

.discord_cta_title {
    margin: 0;
    line-height: 1.2;
}

.discord_cta_subtitle {
    margin: 0;
    line-height: 1.6;
    opacity: 0.95;
    overflow-wrap: break-word;
}

.discord_cta_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    background-color: #5865F2;
    border: 2px solid #5865F2;
    color: white !important;
    font-weight: 600;
    margin-top: 0.5rem;
}

.discord_cta_bubble:hover .discord_cta_button {
    background-color: #4752C4;
}

/* Réduction des animations si l'utilisateur le préfère */

@media (prefers-reduced-motion: reduce) {
.discord_cta_bubble {
        animation: discord-bubble-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        opacity: 0;
    }

.discord_cta_bubble::before {
        animation: none;
        display: none;
    }

.community_exttrainfo::before {
        animation: none;
        display: none;
    }
}

.discord_cta_bubble:active .discord_cta_button {
    background-color: #3c45a0;
}

/* Discord CTA Responsive */

@media (max-width: 900px) {
.discord_cta_video video,
    .discord_cta_video .video-fallback-image {
        width: 38%;
        top: -3%;
        bottom: 0;
    }

.discord_cta_content {
        max-width: 100%;
        text-align: center;
    }

.discord_cta_button {
        align-self: center;
    }
}

@media (max-width: 768px) {
.discord_cta_section {
        padding: 4% 5% 8%;
    }

.discord_cta_video video,
    .discord_cta_video .video-fallback-image {
        width: 35%;
    }
}

@media (max-width: 480px) {
.discord_cta_section {
        padding: 4% 6% 8%;
    }
}

/* Signature / tampon "Created by Noe" - sous la section Discord */

.created_by_stamp_wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.15rem 0 0.25rem;
    /* Match la couleur de fin du dégradé de la section avis */
    background-color: var(--bg-surface);
}

.created_by_stamp {
    display: inline-block;
    padding: 0.35em 1.4em;
    font-size: 1.26rem;
    font-weight: 200;
    color: var(--text-on-color);
    text-decoration: none;
    background-color: #5c6b7a;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    opacity: 0.5;
    box-shadow: 0 0 transparent;
    animation: created-by-stamp-float 3.5s ease-in-out infinite;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.created_by_stamp:hover {
    opacity: 0.85;
    animation-play-state: paused;
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.created_by_stamp strong {
    font-weight: 700;
}

@keyframes created-by-stamp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
.created_by_stamp {
        animation: none;
    }
}

@keyframes desktopAppCtaBadgeIdle {
    0%,
    100% {
        transform: rotate(9deg) translateY(0);
    }
    50% {
        transform: rotate(12deg) translateY(-3px);
    }
}

@media (max-width: 768px) {
.community_cards_pink_zone__inner {
        width: 90%;
    }

.community_extrainfos {
        margin-top: 0.5rem;
    }

.community_cards_pink_zone {
        --pink-zone-gap: clamp(3rem, 8vw, 5.5rem);
    }
}

@media (max-width: 480px) {
.community_cards_pink_zone__inner {
        width: 94%;
    }

.community_extrainfos {
        margin-top: 0.75rem;
    }

.home_header:has(.landing_hero) {
        margin-bottom: 1.25rem;
    }

.landing_hero__characters {
        margin-top: -7%;
    }
}
