/* Styles existants conservés */
.star {
    width: 10px;
    height: 10px;
    position: absolute;
    z-index: 2;
    background: linear-gradient(45deg, #6a89cc, #4a69bd);
    clip-path: polygon(50% 0%, 57% 35%, 100% 50%, 57% 65%, 50% 100%, 43% 65%, 0% 50%, 43% 35%);
    opacity: 1;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    animation: twinkle 1.8s infinite ease-in-out alternate, drift 8s linear infinite;
}

.mf-star {
    display: block;
    position: absolute;
    z-index: 2;
    background: linear-gradient(45deg, #6a89cc, #4a69bd);
    clip-path: polygon(50% 0%, 57% 35%, 100% 50%, 57% 65%, 50% 100%, 43% 65%, 0% 50%, 43% 35%);
    opacity: 0.9;
    will-change: transform, opacity;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -15px) rotate(5deg); }
    50% { transform: translate(10px, 20px) rotate(-3deg); }
    75% { transform: translate(-15px, 10px) rotate(2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes drift-slow {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, 25px) rotate(8deg); }
    66% { transform: translate(-20px, 15px) rotate(-6deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes drift-fast {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(30px, -20px) rotate(12deg); }
    40% { transform: translate(-25px, 30px) rotate(-8deg); }
    60% { transform: translate(20px, 25px) rotate(10deg); }
    80% { transform: translate(-30px, -15px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes drift-circular {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(25px, 0) rotate(90deg); }
    50% { transform: translate(0, 25px) rotate(180deg); }
    75% { transform: translate(-25px, 0) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes twinkle-slow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.9; }
}

@keyframes twinkle-fast {
    0%, 100% { opacity: 0.4; }
    25% { opacity: 1; }
    50% { opacity: 0.6; }
    75% { opacity: 0.8; }
}

.inner-banner { overflow: hidden; }

section {
    padding: 50px;
}

.text_gradient {
    background: linear-gradient(45deg, #347AF0, #F20074);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
}

.text_primary {
    font-style: SemiBold;
    font-size: 64.64px;
    width: 541.35107421875px;
    font-weight: 600;
    height: 234px;
    line-height: 120%;
}

h1.text_gradient {
    font-size: 50px;
}

.btn_gradent {
    font-size: 14px;
    position: relative;
    display: inline-block;
    border-radius: 50px;
    border: none !important;
    padding: 10px 15px;
    background-color: #fff; /* keep button background white */
    color: inherit;
    font-weight: 600;
    z-index: 0;
    /* create space for the border effect */
    box-sizing: border-box;
}

/* gradient text inside the button */
.btn_gradent__text {
    display: inline-block;
    background-image: linear-gradient(45deg, #347AF0, #F20074);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* for browsers that support background-clip */
    -webkit-text-fill-color: transparent;
}

/* gradient border using border-image with a fallback to the mask technique for modern browsers */
.btn_gradent {
    border-width: 2px;
    border-style: solid;
    /* border-image: linear-gradient(45deg, #347AF0, #F20074) 1; */
}

/* keep the previous mask-based approach as a progressive enhancement for browsers that support it */
.btn_gradent::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 50px;
    background: linear-gradient(45deg, #347AF0, #F20074);
    /* mask fallback for browsers that support mask-composite */
    -webkit-mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
}

.pricing-section {
    padding: 30px 64px;
}

.pricing-card {
    display: flex;
    position: relative;
    border-radius: 25px;
    background: #F4EDFF;
    padding: 60px;
    width: 100%;
    height: auto;
    margin: clamp(30px, 5vw, 69px) auto clamp(15px, 1.4vw, 20px) auto;
    max-width: 1000px;
    align-items: start;
    justify-content: space-between;
    z-index: 1;
    gap: clamp(20px, 3vw, 40px);
}

.pricing-card::before {
    content: "";
    position: absolute;
    inset: 0px;
    border-radius: 25px;
    padding: 1px;
    background: linear-gradient(45deg, #347AF0, #F20074CF);
    background-size: 200% 200%;
    animation: moveGradient 3s linear infinite;
    -webkit-mask:
        linear-gradient(#ffffff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.pricing-header {
    flex: 1;
    position: relative;
    text-align: start;
}

.pricing-badge {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pricing-badge-icon {
    width: 42px;
    height: 42px;
}

.pricing-title {
    font-size: 55px;
    font-weight: 700;
    text-align: start;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #347AF0, #F20074CF);
    -webkit-background-clip: text;   
    -webkit-text-fill-color: transparent;
    line-height: 120%;
}

.fees-title {
    font-size: 55px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #347AF0, #F20074CF);
    -webkit-background-clip: text;   
    -webkit-text-fill-color: transparent;
    line-height: 120%;
}

.pricing-decoration-line {
    position: absolute;
    right: 50px;
    bottom: 40px;
    margin-left: 40%;
    margin-bottom: 20px;
    z-index: -1;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-feature {
    font-style: SemiBold;
    font-weight: 400;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: clamp(8px, 0.7vw, 10px);
    border-radius: clamp(6px, 0.65vw, 9px);
    margin: clamp(6px, 0.6vw, 8px) 0px;
    width: 100%;
    max-width: 733px;
    height: auto;
    min-height: clamp(35px, 3.5vw, 48px);
    display: flex;
    align-items: center;
}

.pricing-feature-icon {
    margin-right: clamp(10px, 1.4vw, 20px);
    flex-shrink: 0;
    width: clamp(20px, 2vw, 28px);
    height: clamp(20px, 2vw, 28px);
}

.star1-icon {
    position: absolute;
    margin-left: 890px;
    margin-top: 350px;
    width: 30px;
    opacity: 0.5;
    height: auto;
    pointer-events: none;
    z-index: -1; /* behind content */
    transform-origin: center;
}

.star2-icon {
    position: absolute;
    margin-top: 345px;
    width: 20px;
    opacity: 0.5;
    height: auto;
    pointer-events: none;
    z-index: 0; /* behind content */
    transform-origin: center;
}

.box-icon {
    position: absolute;
    margin-left: 400px;
    margin-top: 55px;
    width: 25px;
    height: auto;
    pointer-events: none;
    z-index: 0; /* behind content */
    transform-origin: center;
}

.ellipse-icone {
    position: absolute;
    margin-left: 400px;
    margin-top: 370px;
    height: auto;
    pointer-events: none;
    z-index: 0; /* behind content */
    transform-origin: center;
}

/* different placements for multiple decorative icons inside the pricing header */
.pricing-header > img.invisible-icon:nth-of-type(1) {
    top: -16px;
    left: -28px;
    transform: rotate(-18deg) scale(1.05);
}

.pricing-header > img.invisible-icon:nth-of-type(2) {
    bottom: -8px;
    right: -28px;
    transform: rotate(22deg) scale(1.0);
}

/* fallback if there are more icons (scatter around corners) */
.pricing-header > img.invisible-icon:nth-of-type(3) {
    top: 10%;
    right: 5%;
    transform: rotate(8deg) scale(0.9);
}

.pricing-header > img.invisible-icon:nth-of-type(4) {
    bottom: 8%;
    left: 6%;
    transform: rotate(-12deg) scale(0.85);
}

.pricing-feature-value {
    background: linear-gradient(45deg, #347AF0, #F20074);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
    margin-left: 9px;
}

.pricing-feature-link {
    margin-left: 9px;
    color: #347AF0;
    text-decoration: underline;
}

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

.visa-cards-section {
    padding: 50px 20px;
}

.visa-cards-header {
    text-align: center;
    margin-bottom: 50px;
}

.visa-cards-title {
    background: linear-gradient(45deg, #347AF0, #F20074);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 50px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.visa-cards-container {
    display: flex;
    flex-direction: row;
    gap: clamp(20px, 3vw, 40px);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.visa-card {
    position: relative;
    border-radius: clamp(18px, 1.7vw, 23.7px);
    background: #FFFFFF;
    width: 100%;
    height: auto;
    margin: clamp(15px, 1.4vw, 20px) 0;
    max-width: 680px;
    min-width: 300px;
    flex: 1 1 400px;
    z-index: 1;
    padding: 10px 39px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.visa-card::before {
    content: "";
    position: absolute;
    inset: 0px;
    border-radius: clamp(18px, 1.7vw, 23.7px);
    padding: 1px;
    background: linear-gradient(45deg, #347AF0, #F20074CF);
    background-size: 200% 200%;
    animation: moveGradient 3s linear infinite;
    -webkit-mask:
        linear-gradient(#ffffff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.visa-card-features {
    position: relative;
    border-radius: clamp(18px, 1.7vw, 23.7px);
    background: #FFF9F2;
    width: 100%;
    height: auto;
    margin: clamp(15px, 1.4vw, 20px) 0;
    max-width: 680px;
    min-width: 300px;
    flex: 1 1 400px;
    z-index: 1;
    padding: 30px 24px;
}

.visa-card-features::before {
    content: "";
    position: absolute;
    inset: 0px;
    border-radius: clamp(18px, 1.7vw, 23.7px);
    padding: 1px;
    background: linear-gradient(45deg, #cddaf0, #f1a5cacf);
    background-size: 200% 200%;
    animation: moveGradient 3s linear infinite;
    -webkit-mask:
        linear-gradient(#ffffff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.visa-card-title {
    background: linear-gradient(45deg, #347AF0, #F20074);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
    font-size: clamp(20px, 2.5vw, 32px);
    margin-top: clamp(30px, 4vw, 50px);
    margin-bottom: clamp(20px, 2.5vw, 30px);
    padding: 0 20px;
}

.visa-card-feature {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 25px);
    margin-bottom: 30px;
}

.visa-card-feature-icon {
    width: clamp(20px, 2.5vw, 28px);
    height: clamp(20px, 2.5vw, 28px);
    flex-shrink: 0;
}

.visa-card-feature-value {
    background: linear-gradient(45deg, #347AF0, #F20074);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 600;
    margin-left: 10px;
    font-size: clamp(14px, 1.6vw, 18px);
}

.visa-card-feature.multiline {
    display: block;
    text-align: justify;
    text-indent: -45px;
    padding-left: 45px;
}

.visa-card-button {
    position: relative;
    display: inline-block;
    border-radius: 50px;
    padding: clamp(10px, 1.5vw, 12px) clamp(20px, 3vw, 30px);
    border: 2px solid transparent;
    color: transparent;
    background: linear-gradient(45deg, #347AF0, #F20074);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    z-index: 0;
    margin-top: clamp(15px, 2vw, 20px);
    font-size: clamp(14px, 1.6vw, 16px);
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.visa-card-button:hover {
    transform: translateY(-2px);
}

.visa-card-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, #347AF0, #F20074);
    -webkit-mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
}

.pricing-container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 60px;
}

.pricing-description {
    color: #64748b;
    display: block;
    text-align: justify;
    font-size: 18px;
    font-weight: 400;
    font-style: Regular;
    line-height: 1.6;
    margin-bottom: 40px;
    width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.custom-table {
    width: 60%;
    border-collapse: separate;
    border-spacing: 0;
    border: 0.71px solid #050C18;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
}

.custom-table thead th {
    font-family: 'Titillium Web';
    font-weight: 600;
    font-size: clamp(14px, 1.1vw, 16px);
    background: #FFF9F2;
    color: #050C18;
    padding: 18px 20px;
    text-align: center;
    vertical-align: middle;
}

.custom-table tbody td {
    padding: 18px 20px;
    text-align: center;
    border-bottom: 1px solid #050C18;
    vertical-align: middle;
    font-size: clamp(13px, 1vw, 15px);
}

.custom-table:not(:first-child) {
    width: 60% !important;
    margin-left: auto;
    margin-right: auto;
}

.country-cell {
    font-family: 'Titillium Web';
    background-color: #FFF9F2;
    font-weight: 600;
    color: #050C18;
    width: 30%;
    border-right: 1px solid #050C18;
    text-align: center;
    vertical-align: middle;
}

.method-cell {
    font-family: 'Titillium Web';
    font-weight: 400;
    background-color: #FFF9F2;
    color: #0D1F3C;
    border-right: 1px solid #050C18;
    text-align: center;
    vertical-align: middle;
}

.commission-cell {
    font-family: 'Titillium Web';
    background-color: #FFF9F2;
    font-weight: 400;
    color: #0D1F3C;
    width: 25%;
    text-align: center;
    vertical-align: middle;
}

.custom-table[style*="margin-top"] {
    margin-top: 20px;
    width: 60% !important;
    margin-left: auto;
    margin-right: auto;
}

/* Améliorations de la responsivité */

/* Pour les écrans très larges */
@media (min-width: 1600px) {
    .pricing-card, .visa-cards-container, .pricing-container {
        max-width: 1400px;
    }
}

/* Pour les tablettes en mode paysage */
@media (max-width: 1200px) {
    .pricing-card {
        flex-direction: column;
        padding: 40px;
        gap: 30px;
    }
    
    .pricing-header, .pricing-features {
        width: 100%;
    }
    
    .pricing-decoration-line {
        display: none;
    }
    
    .star1-icon, .star2-icon, .box-icon, .ellipse-icone {
        display: none;
    }
    
    .visa-cards-container {
        gap: 20px;
    }
    
    .visa-card {
        flex: 1 1 45%;
    }
}

/* Pour les tablettes en mode portrait */
@media (max-width: 992px) {
    section {
        padding: 30px;
    }
    
    .pricing-section {
        padding: 20px;
    }
    
    .pricing-card {
        padding: 30px;
        margin: 40px auto 15px auto;
    }
    
    .pricing-title, .fees-title {
        font-size: 40px;
    }
    
    .pricing-badge {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .visa-cards-container {
        flex-direction: column;
        align-items: center;
    }
    
    .visa-card {
        max-width: 100%;
        margin: 15px 0;
    }
    
    .pricing-container {
        padding: 40px 30px;
    }
    
    .pricing-description {
        width: 100%;
        font-size: 16px;
    }
    
    .custom-table {
        width: 80%;
    }
    
    .custom-table thead th,
    .custom-table tbody td {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Pour les smartphones en mode paysage */
@media (max-width: 768px) {
    section {
        padding: 20px;
    }
    
    .pricing-section {
        padding: 15px;
    }
    
    .pricing-card {
        padding: 20px;
        margin: 30px auto 10px auto;
        border-radius: 20px;
    }
    
    .pricing-title, .fees-title {
        font-size: 32px;
        line-height: 1.3;
    }
    
    .pricing-feature {
        font-size: 14px;
        padding: 8px;
        min-height: auto;
        flex-direction: row;
        gap: 8px;
    }
    
    .pricing-feature-icon {
        margin-right: 10px;
        width: 18px;
        height: 18px;
    }
    
    .visa-cards-section {
        padding: 30px 15px;
    }
    
    .visa-cards-header {
        margin-bottom: 30px;
    }
    
    .visa-cards-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .visa-card {
        padding: 10px 20px;
        margin: 10px 0;
    }
    
    .visa-card-title {
        margin-top: 20px;
        margin-bottom: 15px;
        font-size: 24px;
        padding: 0 15px;
    }
    
    .visa-card-features {
        padding: 20px 15px;
    }
    
    .visa-card-feature {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 15px;
        gap: 12px;
    }
    
    .visa-card-feature.multiline {
        text-indent: -30px;
        padding-left: 30px;
    }
    
    .pricing-container {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .pricing-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .custom-table {
        width: 95%;
    }
    
    .custom-table thead th,
    .custom-table tbody td {
        padding: 10px 8px;
        font-size: 12px;
    }
}

/* Pour les smartphones en mode portrait */
@media (max-width: 576px) {
    section {
        padding: 15px;
    }
    
    .pricing-section {
        padding: 10px;
    }
    
    .pricing-card {
        padding: 15px;
        margin: 20px auto 10px auto;
        border-radius: 15px;
    }
    
    .pricing-title, .fees-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .pricing-badge {
        justify-content: center;
    }
    
    .pricing-feature {
        font-size: 13px;
        padding: 6px;
        gap: 6px;
    }
    
    .pricing-feature-icon {
        margin-right: 8px;
        width: 16px;
        height: 16px;
    }
    
    .visa-cards-section {
        padding: 20px 10px;
    }
    
    .visa-cards-header {
        margin-bottom: 20px;
    }
    
    .visa-cards-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .visa-card {
        padding: 10px 15px;
        margin: 10px 0;
        border-radius: 15px;
    }
    
    .visa-card-title {
        margin-top: 15px;
        margin-bottom: 10px;
        font-size: 20px;
        padding: 0 10px;
    }
    
    .visa-card-features {
        padding: 15px 10px;
    }
    
    .visa-card-feature {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 10px;
        gap: 8px;
    }
    
    .visa-card-feature-text {
        font-size: 14px;
    }
    
    .visa-card-feature-value {
        font-size: 14px;
        margin-left: 0;
        align-self: flex-start;
    }
    
    .visa-card-feature.multiline {
        text-indent: 0;
        padding-left: 0;
    }
    
    .visa-card-feature.multiline .visa-card-feature-icon {
        margin-bottom: 5px;
    }
    
    .pricing-container {
        padding: 20px 15px;
    }
    
    .pricing-description {
        font-size: 13px;
        margin-bottom: 30px;
    }
    
    .custom-table thead th,
    .custom-table tbody td {
        padding: 8px 6px;
        font-size: 11px;
    }
}

/* Pour les très petits écrans */
@media (max-width: 375px) {
    section {
        padding: 10px;
    }
    
    .pricing-card {
        padding: 12px;
        margin: 15px auto 8px auto;
    }
    
    .pricing-title, .fees-title {
        font-size: 20px;
    }
    
    .visa-cards-section {
        padding: 15px 5px;
    }
    
    .visa-card {
        margin: 5px 0;
    }
    
    .visa-card-features {
        padding: 10px 8px;
    }
    
    .visa-card-feature {
        font-size: 13px;
    }
    
    .visa-card-feature-text,
    .visa-card-feature-value {
        font-size: 13px;
    }
    
    .pricing-container {
        padding: 15px 10px;
    }
    
    .pricing-description {
        font-size: 12px;
    }
    
    .custom-table thead th,
    .custom-table tbody td {
        padding: 6px 4px;
        font-size: 10px;
    }
}

/* Pour les écrans très petits en hauteur */
@media (max-height: 600px) and (orientation: landscape) {
    .pricing-card, .visa-card {
        padding: 15px;
    }
    
    .pricing-feature, .visa-card-feature {
        margin-bottom: 10px;
    }
}

/* Amélioration de l'accessibilité pour les préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    .star, .mf-star {
        animation: none;
    }
    
    .pricing-card::before, .visa-card::before, .visa-card-features::before {
        animation: none;
    }
    
    .visa-card-button:hover {
        transform: none;
    }
}