/* Import Common Styles */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&family=Cinzel:wght@400;500;600;700&display=swap');

/* Base Styles */
:root {
    --primary-color: #efcb3e;  /* Or doré */
    --primary-light: #ffde63;
    --primary-dark: #d1ae31;
    --secondary-color: #efcb3e;
    --accent-color: #efcb3e;
    --text-light: #ffffff;
    --text-dark: #0a0a18;
    --bg-dark: #0a0a18;
    --bg-darker: #050510;
    --bg-gradient: linear-gradient(to bottom, #0a0a18 0%, #050510 100%);
    --card-bg: rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --border-radius: 5px;
}

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.separator {
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(239, 203, 62, 0.3);
}

.cta-button:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(239, 203, 62, 0.5);
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-button.secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

/* Hero Section with Video Background */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 16, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-logo {
    margin: 0 auto 1rem;
    width: 600px;
    max-width: 90%;
    animation: fade-in 2s ease-out;
}

.hero-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(239, 203, 62, 0.5));
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: fade-in 2s ease-out 0.3s;
    animation-fill-mode: both;
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: fade-in 2s ease-out 0.6s;
    animation-fill-mode: both;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    color: var(--text-light);
    animation: fade-in 2s ease-out 0.3s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fade-in 2s ease-out 0.6s;
    animation-fill-mode: both;
}

.hero-server-info {
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    animation: fade-in 2s ease-out 1.2s;
    animation-fill-mode: both;
}

.server-hours {
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-hours i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Status Indicator for Server */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.online {
    background-color: #4CAF50;
    box-shadow: 0 0 8px #4CAF50;
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background-color: #F44336;
}

.players-count {
    margin-left: 10px;
    font-weight: bold;
    color: var(--primary-color);
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-down a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.5rem;
    transition: var(--transition);
}

.scroll-down a:hover {
    background-color: var(--primary-light);
    color: var(--text-dark);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Server Section */
.serveur-section {
    background: url('../images/illu/chemin.jpg') center/cover no-repeat;
    position: relative;
}

.serveur-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 16, 49, 0.85);
}

.serveur-section .container {
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(10, 10, 24, 0.8);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    box-shadow: 0 0 15px rgba(239, 203, 62, 0.3);
    border: 2px solid var(--primary-color);
}

.server-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.info-block {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.info-block h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.info-block ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-block ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.info-block ul li strong {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.discord-widget {
    flex: 1;
    min-width: 300px;
    height: 100%;
}

.discord-widget iframe {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
    min-height: 350px;
}

/* Factions Section */
.factions-section {
    background: url('../images/illu/champs.jpg') center/cover no-repeat;
    position: relative;
}

.factions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 16, 49, 0.8);
    backdrop-filter: blur(5px);
}

/* Factions Section - Choose Your Camp */
.choose-camp {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.choose-title h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.camp-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.camp-option {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.camp-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: -1;
    transition: var(--transition);
}

.camp-option.alliance {
    background-color: rgba(26, 60, 138, 0.3);
    border: 2px solid #1a3c8a;
}

.camp-option.alliance::before {
    background: url('../images/illu/roi.jpg') center/cover no-repeat;
}

.camp-option.horde {
    background-color: rgba(138, 26, 26, 0.3);
    border: 2px solid #8a1a1a;
}

.camp-option.horde::before {
    background: url('../images/illu/horde_chef.jpg') center/cover no-repeat;
}

.camp-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.camp-option:hover::before {
    opacity: 0.4;
}


/* Logos Alliance et Horde */
.camp-option.alliance .faction-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.camp-option.horde .faction-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.camp-option h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.camp-vs {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    padding: 0 1rem;
    font-family: 'Cinzel', serif;
}

.join-info {
    background-color: rgba(239, 203, 62, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-top: 2rem;
    text-align: left;
}

.join-info p {
    margin: 0;
}

.join-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.factions-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.faction-card {
    display: flex;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.faction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.faction-card.reversed {
    flex-direction: row-reverse;
}

.faction-image {
    flex: 1;
    min-width: 40%;
}

.faction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faction-content {
    flex: 1.5;
    padding: 2rem;
}

.faction-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faction-features {
    margin-top: 1.5rem;
}

.faction-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.faction-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Fonctionnalités Section */
.fonctionnalites-section {
    background: url('../images/illu/houses.jpg') center/cover no-repeat;
    position: relative;
}

.fonctionnalites-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 16, 49, 0.9);
}

.fonctionnalites-section .container {
    position: relative;
    z-index: 1;
}

.features-tabs {
    margin-top: 2rem;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 1rem;
}

.tab-button {
    padding: 0.8rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tab-button:hover,
.tab-button.active {
    background-color: var(--primary-light);
    color: var(--text-dark);
}

.tabs-content {
    position: relative;
    min-height: 500px;
    z-index: 1;
    margin-bottom: 2rem;
    overflow: visible;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
    position: absolute;
    width: 100%;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: auto;
    min-height: 500px;
}

.tab-content.active {
    display: flex;
    flex-wrap: wrap;
    opacity: 1;
    transform: translateX(0);
}

.content-image {
    flex: 1;
    min-width: 300px;
    overflow: hidden;
    position: relative;
}

.content-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 100%;
}

.content-text {
    flex: 1.5;
    padding: 2rem;
    min-width: 300px;
}

.content-text h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.content-text ul {
    margin: 1.5rem 0;
}

.content-text li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-text li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Nested Tabs for Classes */
.nested-tabs {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.nested-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.nested-tab-button {
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nested-tab-button:hover,
.nested-tab-button.active {
    background-color: var(--primary-light);
    color: var(--text-dark);
}

.nested-tabs-content {
    min-height: 150px;
    position: relative;
    overflow: visible;
}

.nested-tab-content {
    display: none;
    position: relative !important;
    width: 100%;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.nested-tab-content.active {
    display: block;
}

.nested-tab-content ul {
    margin: 0;
}

/* Gallery Section */
.gallery-section {
    background: url('../images/illu/cathedrale.jpg') center/cover no-repeat;
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 16, 49, 0.85);
    backdrop-filter: blur(3px);
}

.gallery-container {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.gallery-carousel .owl-stage {
    display: flex;
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay-content h3 {
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
}

.overlay-content p {
    font-size: 0.9rem;
    margin: 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-caption {
    margin: auto;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/illu/chemin.jpg') center/cover no-repeat;
    padding: 6rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    padding-top: 4rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    width: 120px;
    margin-bottom: 1rem;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 150px;
}

.footer-column h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: var(--text-light);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--accent-color);
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-light);
    transform: translateY(-5px);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Faction Logos */
.faction-logo {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.alliance-logo {
    background: url('../images/logo_alliance.png') center/contain no-repeat;
}

.horde-logo {
    background: url('../images/logo_horde.png') center/contain no-repeat;
}

/* RESPONSIVE STYLES - ENHANCED */
/* Styles for screens up to 1200px */
@media screen and (max-width: 1200px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Styles for screens up to 992px */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    /* Content Adjustments */
    .faction-card, 
    .faction-card.reversed {
        flex-direction: column;
    }

    .faction-image {
        height: 250px;
    }
    
    .join-info {
        text-align: center;
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Tab content positioning fix */
    .tab-content {
        position: static;
        display: none;
        opacity: 1;
        transform: none;
        transition: opacity 0.3s ease;
    }
    
    .tab-content.active {
        display: block;
    }
    
    .tabs-content {
        overflow: hidden;
        min-height: auto;
        margin-bottom: 3rem;
    }
    
    /* Assurer qu'il n'y a pas de superposition de contenu */
    .fonctionnalites-section {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
    
    .gallery-section {
        position: relative;
        clear: both;
        padding-top: 3rem;
    }
    
    /* Correction pour les images dans les onglets */
    .content-image {
        width: 100%;
        height: 250px;
    }
    
    .content-image img {
        position: static;
    }
    
    .content-text {
        padding: 1.5rem;
    }
}

/* Styles for screens up to 768px */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .tab-content.active {
        display: flex;
        flex-direction: column;
    }
    
    .content-image {
        height: 300px;
        min-height: 300px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        width: 100%;
    }
    
    .footer-column {
        min-width: 45%;
    }
    
    /* Adjustments for better mobile viewing */
    .camp-options {
        flex-direction: column;
        align-items: center;
    }
    
    .camp-option {
        max-width: 100%;
        width: 100%;
    }
    
    .camp-vs {
        margin: 1rem 0;
    }
    
    .faction-content, 
    .content-text {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .server-info {
        flex-direction: column;
    }
    
    .join-info {
        border-left: none;
        border-top: 4px solid var(--primary-color);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    
    /* Gallery adjustments */
    .gallery-item {
        height: 250px;
    }
    
    .gallery-overlay {
        opacity: 0.8;
        padding: 1rem;
    }
    
    /* Correction de la section des fonctionnalités */
    .tabs-content {
        min-height: auto;
    }
    
    .tab-content {
        position: relative;
        height: auto;
        min-height: auto;
    }
    
    .tab-content.active {
        position: relative;
        display: block;
    }
    
    /* Ajustement des images dans les onglets */
    .content-image {
        height: 200px;
        min-height: 200px;
        position: relative;
    }
    
    .content-image img {
        position: relative;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Correction pour la section galerie */
    .gallery-section {
        padding-top: 3rem;
        clear: both;
        position: relative;
    }
    
    .gallery-carousel .owl-stage {
        display: block;
        gap: 0;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    /* Assurer que la galerie n'est pas cachée */
    .gallery-container {
        opacity: 1;
        visibility: visible;
    }
    
    /* Correction de la section hero */
    .hero-logo {
        width: 70%;
        max-width: 300px;
    }
    
    .hero-logo img {
        width: 100%;
        height: auto;
    }
    
    /* Ajustement des tailles de titre */
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Assurer que les boutons du hero sont bien alignés */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-buttons .cta-button {
        width: 80%;
        margin-bottom: 0.8rem;
        text-align: center;
    }
}

/* Styles for screens up to 576px */
@media screen and (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Content adjustments for very small screens */
    .faction-card, 
    .faction-card.reversed,
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .nested-tabs {
        padding: 0.8rem;
    }
    
    .nested-tab-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .tab-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .footer {
        padding-top: 2.5rem;
    }
    
    .footer-column {
        min-width: 100%;
    }
    
    .overlay-content h3 {
        font-size: 1.2rem;
    }
    
    .overlay-content p {
        font-size: 0.8rem;
    }
    
    /* Réduire l'espace entre les sections */
    .section {
        padding: 2rem 0;
    }
    
    /* Correction pour les onglets des fonctionnalités */
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-button {
        width: 48%;
        margin-bottom: 0.5rem;
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
        text-align: center;
    }
    
    /* Corrections pour les onglets imbriqués */
    .nested-tab-button {
        width: 31%;
        padding: 0.4rem 0.2rem;
        font-size: 0.75rem;
        text-align: center;
    }
    
    /* S'assurer que la section "Galerie" est clairement séparée */
    .gallery-section {
        margin-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 2rem;
    }
    
    /* Ajustement de la disposition des factions */
    .camp-options {
        margin: 1rem 0;
    }
    
    .camp-vs {
        margin: 0.5rem 0;
    }
    
    /* Réduction de la taille des cartes de faction */
    .faction-card {
        margin-bottom: 2rem;
    }
}

/* Styles for screens up to 375px - Specifically for very small screens */
@media screen and (max-width: 375px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .content-text, 
    .faction-content {
        padding: 1rem;
    }
    
    .cta-button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .info-block {
        padding: 1.5rem;
    }
    
    .footer-logo img {
        width: 100px;
    }
    
    .footer-column h3 {
        font-size: 1.1rem;
    }
}