/*=================================
    Custom Enhancements pour Airsoft
    Inspiré de WeAreBrand.io
==================================*/

/* ===== TYPOGRAPHIE AMÉLIORÉE ===== */
body {
    font-family: 'Gantari', 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== HERO SECTION ENHANCED ===== */
.th-hero-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden !important;
}

.hero-inner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.th-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.th-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(128, 0, 128, 0.85) 0%, 
        rgba(75, 0, 130, 0.7) 50%,
        rgba(128, 0, 128, 0.85) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.th-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-style1 {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* ===== SECTION SPACING ===== */
section {
    padding: 120px 0;
    position: relative;
}

.space {
    padding: 120px 0;
}

.space-extra3 {
    padding: 100px 0;
}

/* ===== COURSE CARDS MODERN ===== */
.course-area {
    position: relative;
    padding: 80px 0;
}

.course-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.course-card_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(128, 0, 128, 0.4) 50%,
        rgba(75, 0, 130, 0.9) 100%
    );
    z-index: 1;
    transition: opacity 0.5s ease;
}

.course-card:hover .course-card_overlay {
    opacity: 0.8;
}

.course-card_img {
    position: relative;
    width: 100%;
    height: 332px;
    overflow: hidden;
}

.course-card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.course-card:hover .course-card_img img {
    transform: scale(1.15) rotate(2deg);
}

.course-card_content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(75, 0, 130, 0.9) 100%
    );
}

.course-card_content .box-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    transition: all 0.3s ease;
}

.course-card:hover .course-card_content .box-title {
    transform: translateY(-5px);
}

.course-card_content .box-title a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.course-card:hover .course-card_content .box-title a {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== TITLE AREA ===== */
.title-area {
    margin-bottom: 50px;
}

.title-area .sub-title {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.title-area .sec-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

/* ===== BUTTONS MODERN ===== */
.th-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.th-btn.style2 {
    background: white;
    color: purple;
    border-color: white;
}

.th-btn.style2:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.th-btn.style4 {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.th-btn.style4:hover {
    background: white;
    color: purple;
    border-color: white;
}

/* ===== LINE BUTTONS ===== */
.line-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.line-btn::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.line-btn:hover {
    color: white;
    transform: translateX(5px);
}

.line-btn:hover::before {
    width: calc(100% - 30px);
}

/* ===== SLIDER ARROWS MODERN ===== */
.slider-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    font-size: 18px;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slider-arrow.default {
    width: 50px;
    height: 50px;
}

/* ===== IMAGE BOX ENHANCED ===== */
.img-box1 {
    position: relative;
    padding: 30px;
}

.img-box1 .img1 {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.img-box1 .img2 {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 60%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    border: 5px solid purple;
}

.img-box1 .img1 img,
.img-box1 .img2 img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.img-box1:hover .img1 img {
    transform: scale(1.1);
}

.img-box1:hover .img2 img {
    transform: scale(1.15);
}

/* ===== INFO BOXES MODERN ===== */
.info-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.info-box:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.info-box_icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 28px;
    color: white;
    transition: all 0.4s ease;
}

.info-box:hover .info-box_icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(10deg);
}

.info-box_subtitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.info-box_text {
    font-size: 15px;
    color: white;
    margin: 0;
}

.info-box_link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.info-box_link:hover {
    color: white;
    transform: translateX(5px);
}

/* ===== ABOUT SECTION ===== */
.about-desc {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    margin-bottom: 15px;
}

.badge-success {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* ===== HEADER ENHANCED ===== */
.header-layout1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.4s ease;
}

.header-top {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-links ul {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.header-links li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.header-links i {
    color: white;
    opacity: 0.8;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 5px;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
}

.sticky-wrapper {
    padding: 15px 0;
    transition: all 0.4s ease;
}

.sticky-wrapper.sticky {
    background: rgba(128, 0, 128, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ===== NAVIGATION MENU ===== */
.main-menu ul {
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    padding: 10px 0;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.main-menu a:hover::after {
    width: 100%;
}

.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: rgba(75, 0, 130, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .sub-menu li {
    padding: 0;
}

.main-menu .sub-menu a {
    padding: 12px 25px;
    display: block;
}

.main-menu .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}

/* ===== FOOTER ENHANCED ===== */
.footer-wrapper {
    position: relative;
    background: rgba(75, 0, 130, 0.95) !important;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-area {
    padding: 80px 0;
}

.copyright-wrap {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
}

.copyright-text a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.copyright-text a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== SCROLL TOP BUTTON ===== */
.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== CAROUSEL INDICATORS ===== */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 1;
    transition: all 0.4s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

/* ===== MOBILE MENU ===== */
.th-menu-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(75, 0, 130, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: right 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
}

.th-menu-wrapper.th-body-visible {
    right: 0;
}

.th-menu-area {
    padding: 30px;
    height: 100%;
    overflow-y: auto;
}

.mobile-logo {
    margin-bottom: 40px;
    text-align: center;
}

.mobile-logo img {
    max-width: 150px;
}

.th-menu-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.th-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ===== SIDEMENU ===== */
.sidemenu-wrapper {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: rgba(75, 0, 130, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1001;
    transition: right 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.sidemenu-wrapper.show {
    right: 0;
}

.sidemenu-content {
    padding: 40px;
}

.closeButton {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.closeButton:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1199px) {
    section {
        padding: 80px 0;
    }
    
    .space {
        padding: 80px 0;
    }
}

@media (max-width: 991px) {
    section {
        padding: 60px 0;
    }
    
    .space {
        padding: 60px 0;
    }
    
    .course-card_img {
        height: 250px;
    }
    
    .img-box1 .img2 {
        width: 50%;
    }
}

@media (max-width: 767px) {
    section {
        padding: 50px 0;
    }
    
    .hero-inner {
        min-height: 80vh;
    }
    
    .course-card_img {
        height: 200px;
    }
    
    .info-box {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== ANIMATIONS KEYFRAMES ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== SMOOTH SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELECTION STYLING ===== */
::selection {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* ===== FOCUS STATES ===== */
a:focus,
button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

/* ===== LOADING STATE ===== */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* ===== PREVENT TEXT SELECTION ON ANIMATIONS ===== */
.hero-big_text {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}
