/* Style principal pour le site Valorant Coaching */

:root {
    --valorant-red: #ff4655;
    --valorant-blue: #0f1923;
    --valorant-white: #ece8e1;
    --valorant-light-blue: #1f2731;
    --valorant-gray: #768079;
    --valorant-accent: #bd3944;
    --font-main: 'Tungsten', 'DINNextLTPro-Bold', Arial, sans-serif;
    --font-body: 'Mark Pro', Arial, sans-serif;
}

/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--valorant-blue);
    color: var(--valorant-white);
    line-height: 1.6;
    position: relative;
}

/* Animation de chargement Valorant */
.valorant-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--valorant-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.valorant-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.valorant-loader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: var(--valorant-red);
    border-radius: 50%;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    position: relative;
}

h1 {
    font-size: 3rem;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--valorant-red) 0%, transparent 100%);
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, var(--valorant-red) 0%, transparent 100%);
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--valorant-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--valorant-red);
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header */
header {
    background-color: rgba(15, 25, 35, 0.9);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 70, 85, 0.3);
    height: 60px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

/* Navigation */
.nav-wrapper {
    display: flex;
    align-items: center;
}

.nav-main {
    margin-right: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 1.5rem;
    position: relative;
}

.nav-links a {
    font-family: var(--font-main);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.3rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--valorant-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--valorant-red);
}

/* Auth section */
.nav-auth {
    display: flex;
    align-items: center;
}

/* Navigation buttons */
.btn-nav {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--valorant-white);
    border-radius: 3px;
    margin-right: 0.7rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-nav-accent {
    background-color: var(--valorant-red);
    border-color: var(--valorant-red);
}

.btn-nav-accent:hover {
    background-color: var(--valorant-accent);
    border-color: var(--valorant-accent);
}

/* Agent avatar in navbar */
.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(255, 70, 85, 0.2);
    border: 2px solid var(--valorant-red);
    position: relative;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.agent-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Hamburger menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 25px;
    height: 18px;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--valorant-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

/* Hero Section */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(15, 25, 35, 0.7);
    border-left: 4px solid var(--valorant-red);
    backdrop-filter: blur(5px);
    transform: skewX(-5deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-content > * {
    transform: skewX(5deg);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--valorant-red);
    color: var(--valorant-white);
    border: none;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: var(--valorant-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(189, 57, 68, 0.4);
}

/* Forum Styles */
.forum-section {
    padding: 3rem 0;
}

.forum-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background-color: rgba(31, 39, 49, 0.8);
    border-radius: 5px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid var(--valorant-red);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.1) 0%, transparent 100%);
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.category-card h3 {
    display: flex;
    align-items: center;
}

.category-card h3 i {
    margin-right: 0.5rem;
    color: var(--valorant-red);
}

.category-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.category-stats span {
    display: flex;
    align-items: center;
}

.category-stats i {
    margin-right: 0.5rem;
    color: var(--valorant-gray);
}

.recent-topics {
    margin-top: 4rem;
}

.topic-list {
    background-color: rgba(31, 39, 49, 0.8);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.topic-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    padding: 1rem;
    background-color: rgba(15, 25, 35, 0.9);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--valorant-red);
}

.topic-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.topic-item:hover {
    background-color: rgba(255, 70, 85, 0.1);
}

.topic-title {
    font-weight: bold;
}

.topic-author, .topic-replies, .topic-last-post {
    display: flex;
    align-items: center;
}

.topic-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 0.5rem;
    border: 2px solid var(--valorant-red);
}

/* Packs Styles */
.packs-section {
    padding: 3rem 0;
}

.packs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pack {
    perspective: 1000px;
    height: 400px;
}

.pack-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.pack:hover .pack-inner {
    transform: rotateY(180deg);
}

.pack-front, .pack-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 5px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(31, 39, 49, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 70, 85, 0.3);
    overflow: hidden;
}

.pack-front::before, .pack-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.1) 0%, transparent 100%);
    z-index: -1;
}

.pack-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pack-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
}

.pack-icon {
    font-size: 3rem;
    color: var(--valorant-red);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.pack:hover .pack-icon {
    transform: scale(1.2);
}

.pack-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--valorant-white);
    margin: 1rem 0;
}

.pack-description {
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--valorant-gray);
}

.pack-features {
    list-style: none;
    margin-top: 1rem;
}

.pack-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.pack-features li i {
    color: var(--valorant-red);
    margin-right: 0.5rem;
    margin-top: 0.3rem;
}

.pack-cta {
    margin-top: auto;
    text-align: center;
}

.pack-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--valorant-red);
    color: var(--valorant-white);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transform: rotate(5deg);
}

/* Pack Comparison */
.pack-comparison {
    margin-top: 4rem;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background-color: rgba(31, 39, 49, 0.8);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.comparison-table th, .comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background-color: rgba(15, 25, 35, 0.9);
    color: var(--valorant-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table th:first-child, .comparison-table td:first-child {
    text-align: left;
    font-weight: bold;
}

.comparison-table tr:hover td {
    background-color: rgba(255, 70, 85, 0.1);
}

.comparison-table .check {
    color: var(--valorant-red);
    font-size: 1.2rem;
}

.comparison-table .times {
    color: var(--valorant-gray);
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: rgba(15, 25, 35, 0.9);
    padding: 3rem 0;
    margin-top: 3rem;
    position: relative;
    border-top: 2px solid rgba(255, 70, 85, 0.3);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    margin-right: 1rem;
}

.footer-social {
    display: flex;
    margin-top: 1rem;
}

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

.footer-social a:hover {
    background-color: var(--valorant-red);
    transform: translateY(-3px);
}

.footer-links h3, .footer-newsletter h3 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--valorant-red);
    transform: translateX(5px);
}

.footer-newsletter p {
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--valorant-white);
    border-radius: 3px 0 0 3px;
}

.newsletter-form button {
    padding: 0.8rem 1.2rem;
    background-color: var(--valorant-red);
    color: var(--valorant-white);
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--valorant-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Valorant-specific elements */
.valorant-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--valorant-red), transparent);
    margin: 2rem 0;
    position: relative;
}

.valorant-divider::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 20px;
    height: 9px;
    background-color: var(--valorant-red);
}

.valorant-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--valorant-red);
    color: var(--valorant-white);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    margin-left: 1rem;
}

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

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 1s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 1s ease forwards;
}

.animate-slide-up {
    animation: slideInUp 1s ease forwards;
}

/* Responsive styles */
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }
    
    .nav-wrapper {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 0;
        flex-direction: column;
        background-color: rgba(15, 25, 35, 0.95);
        overflow: hidden;
        transition: height 0.3s ease;
        z-index: 99;
    }
    
    .nav-wrapper.active {
        height: auto;
        padding: 1rem 0;
    }
    
    .nav-main, .nav-auth {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-main {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-links li {
        margin: 0.7rem 0;
        text-align: center;
    }
    
    .nav-auth {
        flex-direction: row;
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .topic-header, .topic-item {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .topic-last-post {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .topic-header, .topic-item {
        grid-template-columns: 2fr 1fr;
    }
    
    .topic-replies {
        display: none;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .pack-front, .pack-back {
        padding: 1.5rem;
    }
}

/* Valorant-themed scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--valorant-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--valorant-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--valorant-accent);
}
