/* Base Styles */
:root {
    --primary-color: #ff6b00;
    --secondary-color: #1a1a1a;
    --background-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ff4d4d;
    --card-bg: #1e1e1e;
    --gradient-start: rgba(0, 0, 0, 0.8);
    --gradient-end: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

h1 {
    font-size: 4rem;
    /* Bebas Neue est déjà en majuscules par son design */
    line-height: 1.2;
}

h2 {
    font-size: 3rem;
    line-height: 1.2;
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Hover pour les liens normaux mais pas pour les CTA */
a:not(.create-account-btn):not(.main-cta-btn):not(.mobile-cta-btn):hover {
    color: var(--accent-color);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
    background-color: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.logo img {
    height: 30px; /* Réduction de la taille du logo */
}

.create-account-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem; /* Réduction de la taille du texte */
}

.create-account-btn:hover {
    color: var(--text-color);
}

.create-account-btn .icon {
    margin-right: 0.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: auto;
    width: 100%;
    max-width: 100%;
    padding: 0 2rem;
    margin-top: 0;
    overflow: hidden;
}

#hero-video {
    display: block;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    z-index: -1;
}

/* Main Title Section */
.main-title {
    text-align: center;
    padding: 4rem 2rem 2rem;
    background-color: var(--background-color);
}

.title-content {
    max-width: 1200px;
    margin: 0 auto;
}

.main-title h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.1;
}

.main-title h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 400;
    line-height: 1.1;
}

/* Mid-Page CTA Section */
.mid-page-cta {
    text-align: center;
    padding: 1rem 2rem 2.5rem;
    background-color: var(--background-color);
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
}

.main-cta-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.main-cta-btn:hover {
    color: var(--text-color);
}

/* Explore Characters Section */
.explore-characters {
    text-align: center;
    padding-top: 1rem;
}


/* Tab styles removed as they are no longer used */

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.character-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.character-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

.card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Focus sur la partie supérieure de l'image */
}

.card-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.card-favorite:hover {
    background-color: var(--accent-color);
}

.heart-icon {
    color: white;
    font-size: 1.2rem;
}

.exclusive-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-content {
    padding: 1rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.create-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 0.5rem;
    cursor: pointer;
    z-index: 10;
    position: relative;
}

.create-btn:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.create-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* How to Create Section */
.how-to-create {
    text-align: center;
}

.how-to-create h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.steps-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-icon {
    margin-bottom: 1.5rem;
}

.step-icon img {
    width: 80px;
    height: 80px;
}

.step h3 {
    margin-bottom: 1rem;
}

/* About Section */
.about {
    max-width: 800px;
    margin: 0 auto;
}

.about h2, .about h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Call to Action */
.cta {
    text-align: center;
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 3rem 2rem;
}

.cta-link {
    color: var(--primary-color);
    font-weight: 600;
}

.cta-link:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-bottom: 1px solid #333;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none; /* Hidden by default, shown only on mobile */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.mobile-cta-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.5);
    width: 100%;
}

.mobile-cta-btn:hover {
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.rta-logo img, .brand-logo img {
    height: 30px;
}

.copyright {
    font-size: 0.9rem;
    color: #888;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #888;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Styles */
/* Grands écrans */
@media (min-width: 1200px) {
    /* Header et Hero occupent 100vh ensemble */
    hero-container{
        height: 100vh;
    }
    /* Pas besoin de marge supplémentaire */
    
    header {
        flex: 0 0 auto;
        padding: 1.5rem 3rem;
    }

    
    /* Ajustements pour les cartes sur grands écrans */
    .card-image {
        height: 400px; /* Hauteur augmentée pour grands écrans */
    }
    
    .card-image img {
        object-position: center 10%; /* Focus encore plus haut sur l'image */
    }
    
    .logo img {
        height: 45px; /* Taille plus grande du logo pour desktop */
    }
    
    .create-account-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 5px;
    }
}

/* Écrans moyens */
@media (min-width: 992px) and (max-width: 1199px) {
    .card-image {
        height: 350px;
    }
    
    .card-image img {
        object-position: center 15%;
    }
    
    /* Ajustements pour le header sur écrans moyens */
    header {
        padding: 1.2rem 2.5rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .create-account-btn {
        padding: 0.5rem 1.2rem;
        font-size: 1rem;
    }
}

/* Petits écrans mais pas mobiles */
@media (min-width: 768px) and (max-width: 991px) {
    .card-image {
        height: 320px;
    }
    
    .card-image img {
        object-position: center 18%;
    }
    
    /* Ajustements pour le header sur petits écrans */
    header {
        padding: 1rem 2rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .create-account-btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }

    .main-title {
        padding: 2rem 1rem 1rem;
    }
    
    .main-title h1 {
        font-size: 2.5rem;
    }
    
    .main-title h2 {
        font-size: 1.5rem;
    }
    
    .mid-page-cta {
        padding: 0.75rem 1rem 2rem;
    }
    
    .main-cta-btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .hero {
        padding: 0 1.5rem;
    }
    
    .explore-characters{
        padding: 0.75rem 1rem 0;
    }
    
    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-logos {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Ajustements pour le header sur tablette */
    header {
        padding: 0.8rem 1.5rem;
    }
    
    .logo img {
        height: 25px;
    }
    
    .create-account-btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.85rem;
    }

    #hero-video{
        height: auto;
    }
    
    /* Show mobile sticky CTA */
    .mobile-sticky-cta {
        display: block;
    }
    
    /* Add padding to the bottom of the body to prevent content from being hidden behind the sticky CTA */
    body {
        padding-bottom: 80px;
    }
    
    /* Adjust footer margin to account for sticky CTA */
    footer {
        margin-bottom: 70px;
    }
}


@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .main-title h1 {
        font-size: 2rem;
    }
    
    .main-title h2 {
        font-size: 1.2rem;
    }
    
    .mid-page-cta {
        padding: 0.5rem 1rem 1.5rem;
    }
    
    .main-cta-btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.85rem;
    }
    
    /* Remplace les hauteurs en vh pour mobile */
    .hero {
        height: auto;
        /* aspect-ratio: 1/1;
        min-height: 250px;
        max-height: 250px; */
        width: 100%;
        padding: 0 1rem;
    }
    
    #hero-video {
        width: 100%;
        object-position: center 25%; /* Focus sur la partie supérieure de la vidéo */
    }
    
    /* Adjust mobile sticky CTA for smaller screens */
    .mobile-cta-btn {
        padding: 0.7rem 1rem;
        font-size: 1rem;
    }
    
    /* Reduce bottom padding slightly */
    body {
        padding-bottom: 70px;
    }
    
    footer {
        margin-bottom: 60px;
    }
    
    .hero::before {
        width: 100%;
        height: 100%;
    }
    
    .character-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ajustement des cartes pour afficher les têtes des modèles */
    .card-image {
        height: 250px; /* Hauteur réduite pour mobile */
    }
    
    .card-image img {
        object-position: center 20%; /* Focus sur la partie supérieure de l'image */
    }
    
    .category-tabs, .filter-tabs {
        flex-wrap: wrap;
    }
    
    /* Ajustements pour le header sur mobile */
    header {
        padding: 0.6rem 1rem;
    }
    
    .logo img {
        height: 22px;
    }
    
    /* Ajustements supplémentaires pour les très petits écrans */
    @media (max-width: 400px) {
        .card-image {
            height: 220px;
        }
        
        .card-image img {
            object-position: center 15%;
        }
        
        /* Further adjustments for mobile sticky CTA on very small screens */
        .mobile-cta-btn {
            padding: 0.6rem 0.8rem;
            font-size: 0.9rem;
            max-width: 95%;
        }
        
        /* Adjust main CTA for very small screens */
        .main-cta-btn {
            padding: 0.25rem 0.6rem;
            font-size: 0.8rem;
        }
    }
    
    .create-account-btn {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Ajustement de la hauteur de la vidéo sur mobile */
    /* .hero {
        height: 70vh;
    } */
}