:root {
    --black: #2d2d2d;
    --white: #ffffff;
    --dark-blue: #000b33;
    --dark-blue-two: #2e3b5b;
    --dark-blue-three: #000929;
    --text: #000000;
    --light-blue: #3064ff;
    --light-blue-two: #2da1ff;
    --light-blue-three: #0ea5e91a;
    --ligh-blue-four: #e3f0f9;
    --blue: #3469f9;
    --blueAccent: #86b7fe;
    --gray: #a4a4a4;
    --gray-two: #d9d9d9;
    --dark-gray: #464646;
    --gray-700: #4b5563;
    --light-gray-three: #e7e7e7;
    --input-color: #e9e9e933;
    --red: #ff1a3f;
    --transparent-blue: #dceeff;
    --transparent-blue-two: #eff4ff;
    --transparent-gray: #6b6b6bad;
    --Primary-500: #0a65cc;
    --Primary-50: #e7f0fa;
    --Danger-500: #e05151;
    --Success-500: #0ba02c;
    --Gray-00: #fff;
    --Gray-700: #474c54;
    --Gray-900: #18191c;
    --Gray-300: #dee2e6;
    --Gray-600: #5e6670;

    --primary-color: var(--light-blue);
    --secondary-color: var(--dark-blue);
}

@font-face {
    font-family: "kanit-regular";
    src: url("../fonts/Kanit-Regular.woff2") format("woff2"),
        url("../fonts/Kanit-Regular.woff") format("woff");
}

@font-face {
    font-family: "kanit-bold";
    src: url("../fonts/Kanit-Bold.woff2") format("woff2"),
        url("../fonts/Kanit-Bold.woff") format("woff");
}

@font-face {
    font-family: "kanit-semibold";
    src: url("../fonts/Kanit-SemiBold.woff2") format("woff2"),
        url("../fonts/Kanit-SemiBold.woff") format("woff");
}

@font-face {
    font-family: "kanit-medium";
    src: url("../fonts/Kanit-Medium.woff2") format("woff2"),
        url("../fonts/Kanit-Medium.woff") format("woff");
}

html,
body {
    font-family: "kanit-regular";
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

main {
    flex: 1 0 auto;
}

.regular-font {
    font-family: "kanit-regular";
}

.bold-font {
    font-family: "kanit-bold";
}

.semibold-font {
    font-family: "kanit-semibold";
}

.medium-font {
    font-family: "kanit-medium";
}

.cta-button {
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.cta-button-sm {
    padding: 8px 10px;
    font-size: 0.875rem;
    border-radius: 30px;
}

.arrow-btn {
    width: 3.4375rem;
    height: 3.4375rem;
    border-radius: 50%;
}

.group-hover-parent:hover .arrow-btn .animated-arrow {
    animation: arrowTravel 0.5s ease forwards;
}

.animated-arrow {
    display: inline-block;
}

.icon-large {
    font-size: 1.5rem;
}

.cta-button:hover {
    box-shadow: 0 0 9px 1px rgba(48, 100, 255, 0.7);
    border: 1px solid white;
    text-decoration: none;
}

.cta-button:hover .cta-text {
    animation: slideUpFade 0.15s ease forwards;
}

.cta-button-sm {
    padding: 8px 10px;
    font-size: 0.875rem;
    border-radius: 30px;
}

.cta-hover {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 1px solid;
    border-color: var(--secondary-color);
}

.btn-balck {
    background-color: var(--black);
    color: var(--white);
    border-color: var(--white);
}
.round-6 {
    border-radius: 0.625rem;
}
img {
    max-width: 100%;
}

*,
::after,
::before {
    box-sizing: border-box;
}

/* * {
    scrollbar-color: var(--dark-blue) transparent;
    scrollbar-width: thin;
} */

.read-more-btn2,
.read-more-btn1,
.read-more-btn {
    padding: 14px 30px;
    background-color: var(--black);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid var(--black);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.read-more-btn2,
.read-more-btn1 {
    background-color: var(--dark-blue);
}

.read-more-btn2:hover,
.read-more-btn1:hover,
.read-more-btn:hover {
    border-color: white;
    box-shadow: 0 0 10px 0 var(--light-blue);
}

.read-more-btn:hover .read-more-text {
    animation: slideUpFade 0.15s ease forwards;
}
.read-more-text {
    display: inline-block;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.hover-text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
}

.hover-text-btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
    border-radius: 25px;
}

.hover-text-btn-md {
    padding: 12px 30px;
    font-size: 1rem;
}

.hover-text-btn-lg {
    padding: 16px 40px;
    font-size: 1.125rem;
    border-radius: 60px;
}

.hover-text-button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.hover-text-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 1.4em;
    overflow: hidden;
}

.hover-text-default,
.hover-text-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Texte par défaut - état initial */
.hover-text-default {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

/* Texte de survol - état initial */
.hover-text-hover {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(15px);
}

/* États au survol */
.hover-text-button:hover .hover-text-default {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-15px);
}

.hover-text-button:hover .hover-text-hover {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

/* Variantes de couleurs */
.hover-text-button.btn-primary {
    background: linear-gradient(135deg, var(--light-blue), #1d4ed8);
    color: white;
}

.hover-text-button.btn-primary:hover {
    box-shadow: 0 0 15px 2px rgba(48, 100, 255, 0.6);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.hover-text-button.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.hover-text-button.btn-secondary:hover {
    box-shadow: 0 0 15px 2px rgba(107, 114, 128, 0.6);
}

.hover-text-button.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.hover-text-button.btn-success:hover {
    box-shadow: 0 0 15px 2px rgba(16, 185, 129, 0.6);
}

.hover-text-button.btn-outline {
    background: transparent;
    border: 2px solid var(--light-blue);
    color: var(--light-blue);
}

.hover-text-button.btn-outline:hover {
    background: var(--light-blue);
    color: white;
    box-shadow: 0 0 15px 2px rgba(48, 100, 255, 0.4);
}

/* États focus pour l'accessibilité */
.hover-text-button:focus {
    outline: 2px solid var(--light-blue);
    outline-offset: 2px;
}

/* toggle button header  */
.custom-toggler {
    background-color: var(--light-blue);
    border: none;
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Adaptation mobile */
@media (hover: none) {
    .hover-text-button:hover {
        transform: none;
    }

    .hover-text-button:active .hover-text-default {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-15px);
    }

    .hover-text-button:active .hover-text-hover {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

@keyframes slideUpFade {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    30% {
        transform: translateY(-40%);
        opacity: 0;
    }
    70% {
        transform: translateY(40%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes arrowTravel {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    40% {
        transform: translate(10px, -10px);
        opacity: 0;
    }
    60% {
        transform: translate(-10px, 10px);
        opacity: 0;
    }
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}
