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

html, body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

/* Style pour les pages simples (boutique, vote, etc.) */
.page-content {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.page-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.page-content p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #666;
}


.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-1 {
    background-image: url('../images/spawn.webp');
}

.slide-2 {
    background-image: url('../images/farm.webp');
}

.slide-3 {
    background-image: url('../images/crates.webp');
}

.slide-4 {
    background-image: url('https://via.placeholder.com/1200x500/f39c12/ffffff?text=Slide+4');
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: white;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.slide-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.slide-content p {
    font-size: 1.2em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    max-width: 800px;
}

.slide-content .btn {
    display: inline-block;
    padding: 12px 30px;
    background: #182D38;
    color: #F0E090;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s, transform 0.2s;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.slide-content .btn:hover {
    background: #1a3542;
    transform: translateY(-2px);
}

.copy-message {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(201, 241, 234, 0.95);
    color: #182D38;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5em;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    transition: background 0.3s;
    transform: translateY(-50%);
    padding: 0;
    margin: 0;
    line-height: 1;
    font-weight: 300;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.search-form {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.search-form h1 {
    margin-bottom: 20px;
    color: #333;
}

.search-form input {
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 300px;
    margin-right: 10px;
    transition: border-color 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: #C9F1EA;
}

.search-form button {
    padding: 12px 30px;
    font-size: 16px;
    background: #182D38;
    color: #F0E090;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: 600;
}

.search-form button:hover {
    background: #1a3542;
    transform: translateY(-2px);
}

/* Section Datapacks */
.datapacks-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.datapacks-container {
    position: relative;
}

.datapacks-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
}

.datapacks-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.datapacks-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.datapacks-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.datapack-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .datapack-card {
        flex: 0 0 calc(50% - 10px);
    }
}

.datapack-card:hover {
    transform: translateY(-5px);
}

.datapack-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
}

.datapack-name {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #182D38;
    font-weight: 600;
}

.datapack-description {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.datapack-btn-modrinth {
    display: inline-block;
    padding: 12px 24px;
    background: #182D38;
    color: #F0E090;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    margin-top: auto;
}

.datapack-btn-modrinth:hover {
    background: #1a3542;
    transform: translateY(-2px);
}

.datapacks-nav {
    background: #182D38;
    color: #F0E090;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2.5em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    flex-shrink: 0;
    padding: 0;
    line-height: 0.9;
    font-weight: 300;
}

.datapacks-prev {
    padding-top: 3px;
}

.datapacks-next {
    padding-top: 3px;
}

.datapacks-nav:hover {
    background: #1a3542;
    transform: scale(1.1);
}

.datapacks-nav:active {
    transform: scale(0.95);
}

.datapacks-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.datapack-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(24, 45, 56, 0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.datapack-indicator.active {
    background: #182D38;
    transform: scale(1.3);
}

/* Masquer les 4ème et 5ème indicateurs sur desktop */
.datapack-indicator:nth-child(4),
.datapack-indicator:nth-child(5) {
    display: none;
}

.datapack-indicator:hover {
    background: rgba(24, 45, 56, 0.6);
}

