:root {
    --canon-red: #cc0000;
    --canon-dark-red: #990000;
    --canon-light-red: #ff0000;
    --dark-bg: #0a0a0a;
    --light-bg: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-600: #525252;
    --gray-800: #262626;
    --gray-900: #171717;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HERO SECTION - 3 CARDS
   ======================================== */

.hero-section-firstly {
    /* min-height: 100vh; */
    position: relative;
    height: unset !important;
    background: #fff !important;
    display: unset !important;
    align-items: center;
    overflow: hidden;
    padding: 0 !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(204, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(204, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}


.hero-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

.canon-logo {
    width: 180px;
    height: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {

    0%,
    100% {
        filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }

    50% {
        filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(204, 0, 0, 0.6));
    }
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray-300);
    font-weight: 300;
}

/* ========================================
   CARDS GRID
   ======================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0px;
}

.user-card {
    position: relative;
    height: 80vh;
    overflow: hidden;
    /* cursor: pointer; */
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); */
}

.user-card:hover {
    /* transform: scale(1.02); */
    /* box-shadow: 0 30px 60px rgba(204, 0, 0, 0.4); */
    /* box-shadow: 0 30px 60px rgb(255 255 255); */
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.user-card:hover .card-background {
    transform: scale(1.15);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.9) 100%); */
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* .user-card:hover .card-overlay {
    background: linear-gradient(to bottom, rgba(204, 0, 0, 0.2) 0%, rgb(204 0 0 / 25%) 50%, rgba(10, 10, 10, 0.95) 100%)
} */

.card-content {
    position: relative;
    height: 39vh;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    z-index: 2;
}

.card-icon {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 20px;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.user-card:hover .card-icon {
    transform: translateY(-10px) scale(1.1);
    color: #fff;
    filter: drop-shadow(0 0 20px rgba(204, 0, 0, 0.8));
}

.card-title {
    /* font-family: 'Montserrat', sans-serif; */
    text-shadow: 0 0 25px #000;
    font-size: 2.7rem !important;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.user-card:hover .card-title {
    transform: translateY(-5px);
    color: #fff;
}

.card-description {
    font-size: 1rem;
    color: var(--gray-300);
    margin-bottom: 25px;
    line-height: 1.6;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.user-card:hover .card-description {
    transform: translateY(-5px);
    color: #ffffff;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.user-card:hover .card-features {
    opacity: 1;
    transform: translateY(0);
}

.card-features span {
    color: var(--gray-200);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-features i {
    color: var(--canon-red);
    font-size: 0.9rem;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 40px;

    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    /* opacity: 0; */
    width: 15rem;
    transform: translateY(30px);
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.3);
}

.user-card:hover .card-btn {
    opacity: 1;
    background: linear-gradient(135deg, var(--canon-red) 0%, var(--canon-dark-red) 100%);
    transform: translateY(0);
    /* box-shadow: 0 15px 40px rgba(204, 0, 0, 0.6); */
}

.card-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, var(--canon-light-red) 0%, var(--canon-red) 100%);
    box-shadow: 0 20px 50px rgba(255, 0, 0, 0.7);
    color: #fff !important;
}

.card-btn i {
    transition: transform 0.3s ease;
}

.card-btn:hover i {
    transform: translateX(5px);
}

/* ========================================
   POLICY SECTION
   ======================================== */

.policy-section {
    padding: 120px 20px;
    background: linear-gradient(to bottom, var(--gray-50) 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--canon-red) 0%, var(--canon-light-red) 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-top: 25px;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.policy-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid transparent;
}

.policy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(204, 0, 0, 0.15);
    border-color: var(--canon-red);
}

.policy-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--canon-red) 0%, var(--canon-dark-red) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.policy-card:hover .policy-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.4);
}

.policy-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.policy-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.policy-description {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.policy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
}

.policy-list li {
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.policy-list i {
    color: var(--canon-red);
    font-size: 0.9rem;
}

/* ========================================
   PROCESS SECTION
   ======================================== */

.process-section {
    padding: 120px 20px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(204, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(204, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.process-section .section-title {
    color: #ffffff;
    border-bottom: unset !important;
}

.process-section .section-subtitle {
    color: var(--gray-400);
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 35px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom,
            var(--canon-red) 0%,
            var(--canon-light-red) 50%,
            var(--canon-red) 100%);
    transform: translateX(-50%);
}

.process-step {
    position: relative;
    margin-bottom: 100px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:nth-child(even) .step-content {
    text-align: right;
}


.step-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--canon-red) 0%, var(--canon-dark-red) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(204, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.process-step:hover .step-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 20px 50px rgba(204, 0, 0, 0.7);
}

.step-icon i {
    font-size: 3rem;
    color: #ffffff;
}

.step-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.process-step:hover .step-content {
    background: rgba(204, 0, 0, 0.1);
    border-color: var(--canon-red);
    transform: translateY(-5px);
}

.step-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-details li {
    color: var(--gray-400);
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.step-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--canon-red);
    font-weight: bold;
}

.card-content a {
    text-shadow: 0 0 25px #000;
}

/* ========================================
   PROCESS CTA
   ======================================== */

.process-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(204, 0, 0, 0.3);
}

.process-cta h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.process-cta p {
    font-size: 1.2rem;
    color: var(--gray-300);
    margin-bottom: 35px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--canon-red) 0%, var(--canon-dark-red) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.4);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, var(--canon-light-red) 0%, var(--canon-red) 100%);
    box-shadow: 0 20px 50px rgba(255, 0, 0, 0.7);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(8px);
}

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

.footer {
    background: var(--dark-bg);
    color: var(--gray-300);
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(204, 0, 0, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    width: 140px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--gray-400);
}

.footer-links i {
    color: var(--canon-red);
    width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--canon-red);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-500);
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

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

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: 1fr;
        /* gap: 40px; */
    }

    .user-card {
        height: 550px;
    }

    .policy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .policy-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column !important;
        text-align: center;
    }

    .process-step:nth-child(even) .step-content {
        text-align: center;
    }

    .timeline-line {
        display: none;
    }

    .step-details li::before {
        content: '•';
    }

    .card-title {
        font-size: 2rem;
    }
}

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

    .canon-logo {
        width: 140px;
    }

    .user-card {
        height: 500px;
    }

    .card-content {
        padding: 30px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .process-cta h3 {
        font-size: 1.8rem;
    }
}

.hero-section-firstly {
    padding: 60px 0 !important;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%) !important;
}


/* Cartes utilisateur - design premium */
.user-card {
    position: relative;
    height: 45vh;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.user-card:hover {
    /* transform: translateY(-12px) scale(1.02); */
    box-shadow: 0 30px 70px rgba(204, 0, 0, 0.25);
}

/* Overlay plus subtil et sophistiqué */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.85) 100%);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Titre - plus d'impact */
.card-title {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    font-size: 2rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 30px;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.custom-hover {
    opacity: 0;
}

.user-card:hover .custom-hover {
    opacity: 1;
}

/* Bouton - design premium */
.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 40px;
    background: linear-gradient(135deg, var(--canon-red) 0%, var(--canon-dark-red) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    width: auto;
    max-width: 280px;
    transform: translateY(0);
    box-shadow: 0 12px 35px rgba(204, 0, 0, 0.35);
    border: 2px solid transparent;
}

.card-btn:hover {
    background: linear-gradient(135deg, var(--canon-light-red) 0%, var(--canon-red) 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 0, 0, 0.5);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   SECTION INSCRIPTION - DESIGN PREMIUM
   ======================================== */

/* Conteneur du texte d'inscription */
.card-content .text-white {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

/* Lien d'inscription - effet premium */
.card-content .text-white a {
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 2px 8px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    letter-spacing: 0.05em;
}

/* Effet de soulignement animé avec dégradé */
.card-content .text-white a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg,
            var(--canon-red) 0%,
            var(--canon-light-red) 50%,
            #ffffff 100%);
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.6);
}

/* Background lumineux au hover */
.card-content .text-white a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(204, 0, 0, 0.15) 0%,
            rgba(255, 0, 0, 0.1) 100%);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

/* Animation au hover */
.card-content .text-white a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8),
        0 0 30px rgba(255, 0, 0, 0.6);
    transform: translateY(-2px);
    letter-spacing: 0.08em;
}

.card-content .text-white a:hover::before {
    width: 100%;
}

.card-content .text-white a:hover::after {
    opacity: 1;
}

/* Effet sur la carte entière au hover du lien */
.user-card:hover .card-content .text-white {
    border-top-color: rgba(204, 0, 0, 0.4);
    color: #ffffff !important;
}

/* Animation du texte "Bạn chưa có tài khoản?" */
.card-content .text-white:hover {
    color: rgba(255, 255, 255, 1) !important;
}

/* ========================================
   RESPONSIVE AMÉLIORÉ
   ======================================== */

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 20px;
    }

    .user-card {
        height: 600px;
        border-radius: 20px;
    }

    .card-content {
        padding: 40px 35px;
    }
}

@media (max-width: 768px) {
    .hero-section-firstly {
        padding: 40px 0 !important;
    }

    .cards-grid {
        gap: 35px;
    }

    .user-card {
        height: 550px;
        border-radius: 16px;
    }

    .card-title {
        font-size: 2.2rem !important;
        margin-bottom: 25px;
    }

    .card-content .text-white {
        font-size: 0.95rem;
        margin-top: 28px !important;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .user-card {
        height: 500px;
    }

    .card-content {
        padding: 30px 25px;
    }

    .card-title {
        font-size: 1.9rem !important;
    }

    .card-btn {
        padding: 14px 35px;
        font-size: 1rem;
        max-width: 250px;
    }

    .card-content .text-white {
        font-size: 0.9rem;
        margin-top: 25px !important;
    }
}