/* ========================================
   LAYOUT GÉNÉRAL
   ======================================== */

.index-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}



/* ========================================
   FRAME TOP
   ======================================== */

.index-frame-top {
    min-height: 100vh;
    width: 77%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.index-title {
    font-size: 64px;
    line-height: 68px;
    font-weight: 900;
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    letter-spacing: -1px;
    background-image: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 8px;
    margin-top: 60px;
}

.index-subtitle {
    color: var(--text-secondary);
    font-size: 22px;
    line-height: 26px;
    font-weight: 600;
    width: 70%;
    text-align: center;
    margin: auto;
}

.index-top-row {
    margin-top: 60px;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 60px;
    align-items: end;
}

.index-top-row a:visited {
    color: white
}

.btn-joins-us,
.btn-discover {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(to right, var(--primary-color), hsl(187, 85%, 53%));
    border: 1px solid var(--border-color);
    border-radius: 40px;
    box-shadow: var(--shadow-medium);
    padding: 12px;
    font-size: 18px;
    cursor: pointer;
    color: white;
    font-weight: 700;
    position: relative;
    transition: transform 0.25s ease;
}

.btn-joins-us:hover,
.btn-discover:hover {
    transform: translateY(-2px);
    scale: 1.04;
}

.btn-discover {
    background: linear-gradient(to right,
            hsl(187, 85%, 53%),
            var(--primary-color));

}





#arrow-boucing-left {
    position: relative;
    top: -2px;
}

.frame-hero-img {
    margin-top: 50px;
    width: 80%;
    max-width: 1400px;
    border-radius: 60px;
    border: 1px solid var(--border-color);

    background: url("./../images/dashboard-mockup-D_KDJa_L.png") center / contain no-repeat;
    aspect-ratio: 16 / 10;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
}

.card-hero-floating {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: fit-content;
    background-color: var(--card-background);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px;
    position: absolute;
}

.card-hero-floating-text p {
    white-space: nowrap;
    margin: 0;
}

.card-hero-floating-text p:nth-child(1) {
    font-size: 18px;
    font-weight: 700;
}

.card-hero-floating-text p:nth-child(2) {
    font-weight: 600;
    color: var(--text-secondary);
}

.card-hero-floating:nth-child(1) {
    top: 92%;
    left: -10%;
}

.card-hero-floating:nth-child(2) {
    left: 80%;
    top: -5%;
}

.card-hero-floating-text {
    display: flex;
    flex-direction: column;
}

.card-hero-floating-badge {
    border-radius: 50%;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-hero-floating:nth-child(1) .card-hero-floating-badge {
    background: linear-gradient(135deg, #6deea9, #1d8838);
    color: white;
}

.card-hero-floating:nth-child(2) .card-hero-floating-badge {
    background: linear-gradient(135deg, #5294e6, #5045ac);
    color: white;
    font-weight: 700;
    font-size: 20px;
}






/* ========================================
   FRAME BOTTOM
   ======================================== */

.index-frame-bottom {
    min-height: 80vh;
    width: 100%;
    display: flex;
    align-items: start;
    justify-content: center;
    margin-bottom: 50px;
}

.index-frame-bottom header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.index-frame-bottom-title {
    font-size: 42px;
    line-height: 50px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0;
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    letter-spacing: -1px;
    background-image: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.index-frame-bottom-subtitle {
    width: 70%;
    line-height: 26px;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0;
    margin-bottom: 60px;
}

.frame-row {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 30px;
    width: 100%;
    justify-content: center;
}








/* ========================================
   CARDS SERVICES
   ======================================== */

.index-card-services {
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border-radius: 15px;
    width: 30%;
    max-width: 500px;
    transition: transform 0.25s ease;
}

.index-card-services:hover {
    box-shadow: var(--shadow-large);
    transform: translateY(-2px);
}

.card-svg {
    background-color: #EDF1FD;
    border-radius: 5px;
    color: var(--primary-color);
    height: 120px;
    padding: 10px;
}

.card-title {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-color);
    margin: 0;
    margin-top: 8px;
    letter-spacing: -0.5px;
}








/* ========================================
   FRAME PLAN
   ======================================== */

.frame-plan {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.frame-plan .card {
    height: 100%;
}

.card {
    border: 1px solid var(--border-color);
    width: 35%;
    max-width: 430px;
    padding: 20px;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: var(--shadow-large);
    transition: transform 0.25s ease;
}

.frame-plan .card header p {
    margin: 0;
    line-height: 1.7em;
}

.plan-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.8px;
    display: inline-flex;
    gap: 5px;
}

.svg-title-card-plan {
    box-sizing: initial;
    padding: 7px;
    background-color: #CFECFA;
    border-radius: 8px;
    color: #1FD0EC;
}

.price {
    color: var(--text-secondary);
}

.price-number {
    font-size: 24px;
    font-weight: 700;
    color: black;
}

.plan-row-1 .card:nth-child(2) {
    transform: translateY(-20px);
    border: 1px solid #1FD0EC;
    position: relative;
}

.frame-plan .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.plan-row-1 .card:nth-child(2):hover {
    transform: translateY(-30px);
}

.plan-row-1 .card:nth-child(2)::before {
    content: "Populaire";
    position: absolute;
    width: 50%;
    height: 20px;
    padding: 5px 10px;
    background: linear-gradient(45deg, #95dbe5, #26aabb);
    color: white;
    font-weight: 600;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-plan button {
    width: 100%;
}

li {
    padding-left: 5px;
}

.li-plan::before,
.li-noplan::before,
.li-plan-custom::before {
    content: "\2714";
    height: 20px;
    width: 20px;
    border-radius: 10px;
    font-size: 10px;
    background-color: #CFECFA;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 5px;
}

.li-noplan::before {
    content: "✖";
    background-color: #dae1e4;

}

.li-plan-custom::before {
    content: "⚙";
    font-size: 20px
}

.card-spacing {
    height: 100%;
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* ========================================
   FRAME FOOTER
   ======================================== */

.index-frame-footer {
    width: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 70px;
    border-radius: 32px;
    padding: 80px 60px;
    position: relative;
}


.index-frame-footer header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 50px;
    position: relative;
}

.index-frame-footer div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    z-index: 1;
}


.index-frame-footer .index-frame-bottom-subtitle {
    font-size: 22px;
    line-height: 32px;
    width: 80%;
    margin-bottom: 0;
}

.index-frame-footer a:visited {
    color: white
}

.cta-note {
    margin-top: 30px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-note::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #6deea9, #1d8838);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}



/* ========================================
   ANIMATIONS SVG
   ======================================== */

.bar1 {
    animation: barAnim1 1.2s ease-in-out infinite;
}

.bar2 {
    animation: barAnim2 1.2s ease-in-out infinite 0.2s;
}

.bar3 {
    animation: barAnim3 1.2s ease-in-out infinite 0.4s;
}

.bar4 {
    animation: barAnim4 1.2s ease-in-out infinite 0.6s;
}

.drag-element {
    animation: float 2s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes barAnim1 {

    0%,
    100% {
        height: 20px;
        y: 40px;
    }

    50% {
        height: 50px;
        y: 10px;
    }
}

@keyframes barAnim2 {

    0%,
    100% {
        height: 35px;
        y: 25px;
    }

    50% {
        height: 55px;
        y: 5px;
    }
}

@keyframes barAnim3 {

    0%,
    100% {
        height: 45px;
        y: 15px;
    }

    50% {
        height: 30px;
        y: 30px;
    }
}

@keyframes barAnim4 {

    0%,
    100% {
        height: 25px;
        y: 35px;
    }

    50% {
        height: 60px;
        y: 0px;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    
    .index-frame-top,
    .index-frame-bottom,
    .frame-plan,
    .index-frame-footer {
        width: 100%;
        padding: 20px;
        margin: 0
    }

    .card-hero-floating-text p {
        font-size: 14px !important;
    }

    .frame-row {
        flex-direction: column;
        padding: 10px;
        width: 100%;
    }

    .index-card-services {
        width: 100%;
    }

    .index-top-row {
        gap: 20px;
        width: fit-content;
        align-items: center;
    }

    .frame-hero-img {
        width: 90%;
    }

    .card-hero-floating {
        padding: 5px;
        gap: 5px
    }

    .card-hero-floating:nth-child(2) {
        left: 80%
    }

    .card-hero-floating-text p {
        font-size: 16px
    }

    .card-hero-floating-badge {
        width: 35px;
        height: 35px;
    }


    .index-top-row {
        flex-direction: column;
    }

    .btn-discover {
        background: linear-gradient(to right, var(--primary-color), hsl(187, 85%, 53%));
    }

    .index-card-services {
        width: 70%;
        margin: auto;
    }

    .index-frame-bottom-subtitle {
        text-align: center;
    }

    .frame-plan {
        gap: 20px;
    }

    .frame-plan .card {
        width: 80%;
        margin: auto;
    }

    .frame-plan .card:hover {
        transform: none;
    }

    .frame-plan .frame-row {
        margin-top: 0;
    }

    .plan-row-1 .card:nth-child(2) {
        transform: translateY(0px);
    }

    .plan-row-1 .card:nth-child(2):hover {
        transform: translateY(0px);
    }
}

@media (max-width: 768px) {

    .index-frame-top,
    .index-frame-bottom,
    .frame-plan,
    .index-frame-footer {
        width: 100%;
        padding: 20px
    }

    .index-frame-bottom-subtitle {
        margin-bottom: 0
    }

    .index-card-services {
        width: 100%;
    }

    header {
        width: 100%;
        margin-bottom: 40px
    }

    .index-title {
        font-size: 48px;
        line-height: 54px;
    }

    .index-subtitle {
        font-size: 20px;
        line-height: 24px;
    }

    .frame-hero-img {
        margin-top: 100px !important
    }

    .card-hero-floating {
        display: none
    }

    .frame-hero-img {
        width: 100%;
        border-radius: 24px;
        margin-top: 32px;
    }

    .index-card-services {
        width: 100%;
        margin: none;
        max-width: none;
    }

    .frame-plan {
        width: 100%;
    }

    .frame-row {
        margin-top: 0;
        width: 100%;
    }

    .plan-row-1 {
        width: 100%;
    }

    .card-spacing {
        min-width: 100%;
        margin: none
    }
}

@media (max-width: 480px) {

    .index-frame-top,
    .index-frame-bottom,
    .frame-plan,
    .index-frame-footer {
        padding: 10px
    }

    header{
        margin-bottom:0
    }
}