* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'MedievalSharp', cursive;
    line-height: 1.6;
    color: rgb(189, 172, 148);
}

/* Header */
header {
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header nav {
    display: flex;
    align-items: center;
    padding: 12px 36px;
}

header h1 {
    font-size: 1.7rem;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin-left: auto;
    font-size: 1.3rem;
}

header nav a {
    text-decoration: none;
    transition: color 0.3s;
    color: rgb(189, 172, 148);
}

header nav a:hover {
    color: rgb(111, 101, 87);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: rgb(189, 172, 148);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    margin-left: auto;
    transition: transform 0.3s;
}

.menu-toggle:hover {
    color: rgb(111, 101, 87);
    transform: scale(1.2);
}

section {
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    border-radius: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #000101;
}

section h2 {
    margin-bottom: 1rem;
    color: rgb(189, 172, 148);
}

section p {
    color: rgb(189, 172, 148);
}

/* Section 1 */

#section1 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#section1 img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
    position: relative;
}

#section1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 1));
    pointer-events: none;
    z-index: 1;
}

.scroll-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: transparent;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(189, 172, 148, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(189, 172, 148, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-arrow:hover {
    border: 1px solid rgba(189, 172, 148, 0.9);
    color: rgba(189, 172, 148, 0.9);
    animation: none;
    bottom: 40px;
}

@keyframes bounce {
    0%, 100% {
        bottom: 45px;
    }
    50% {
        bottom: 50px;
    }
}

.hero-content {
    position: absolute;
    text-align: left;
    color: rgb(189, 172, 148);
    z-index: 2;
    max-width: 80%;
    left: 50px;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    padding-bottom: 1rem;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 3px;
    background-color: rgb(189, 172, 148);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgb(189, 172, 148);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Section 2 */
#section2 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    width: 100%;
}

.info-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-left: -200px;
}

.info-image img {
    width: auto;
    height: 500px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
}

.info-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.info-text {
    flex: 0 0 auto;
    width: 600px;
    padding: 2rem;
    padding-left: 2.5rem;
    color: rgb(189, 172, 148);
    font-size: 1.2rem;
    position: relative;
}

.info-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: rgb(189, 172, 148);
}

/* Section 3 */
#section3 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pourquoi-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    width: 100%;
    flex-direction: row-reverse;
}

.pourquoi-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: -200px;
}

.pourquoi-image img {
    width: auto;
    height: 450px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 50%;
}

.pourquoi-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    pointer-events: none;
}

.pourquoi-text {
    flex: 0 0 auto;
    width: 600px;
    padding: 2rem;
    padding-right: 2.5rem;
    color: rgb(189, 172, 148);
    font-size: 1.2rem;
    position: relative;
}

.pourquoi-text ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pourquoi-text::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background-color: rgb(189, 172, 148);
}

/* Section 4 */
#section4 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.code-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-left: -200px;
}

.code-image img {
    width: auto;
    height: 350px;
    border-radius: 2%;
    z-index: 1;
}

.code-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.code-content {
    flex: 0 0 auto;
    width: 600px;
    color: rgb(189, 172, 148);
    font-size: 1.2rem;
    position: relative;
}

.code-content h2 {
    margin-bottom: 2rem;
}

.code-content p {
    margin-bottom: 1rem;
    font-weight: bold;
}

.code-content ul {
    position: relative;
    padding: 2rem 3rem;
}

.code-content ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    border-top: 2px solid rgb(189, 172, 148);
    border-left: 2px solid rgb(189, 172, 148);
}

.code-content ul::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 70px;
    border-bottom: 2px solid rgb(189, 172, 148);
    border-right: 2px solid rgb(189, 172, 148);
}

.code-content li {
    margin-bottom: 1.5rem;
}

/* Section 5 */
#section5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.champions-header {
    text-align: left;
    width: 100%;
    margin-left: 50px;
    margin-top: 25px;
}

.champions-header h2 {
    margin-bottom: 1rem;
    color: rgb(189, 172, 148);
}

.champions-header p {
    color: rgb(189, 172, 148);
    max-width: 440px;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.carousel-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    height: 100%;
}

.carousel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.4;
    transform: scale(0.5);
    transition: all 0.5s ease;
    flex: 0 0 auto;
    position: relative;
}

.carousel-item-left {
    transform: translateX(-150px) scale(0.5);
}

.carousel-item-right {
    transform: translateX(150px) scale(0.5);
}

.carousel-item.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.carousel-item.active::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 50px;
    height: 50px;
    border-top: 3px solid rgb(189, 172, 148);
    border-left: 3px solid rgb(189, 172, 148);
}

.carousel-item.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    border-bottom: 3px solid rgb(189, 172, 148);
    border-right: 3px solid rgb(189, 172, 148);
}

.champion-name-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.champion-name {
    color: rgb(189, 172, 148);
    font-size: 1.2rem;
    margin: 0;
    text-transform: capitalize;
}

.champion-name-line {
    width: 60px;
    height: 2px;
    background-color: rgb(189, 172, 148);
}

.carousel-item img {
    width: auto;
    height: 200px;
    object-fit: contain;
    display: block;
}

.carousel-item.active img {
    height: 350px;
}

.champion-line {
    width: 100%;
    max-width: 150px;
    height: 2px;
    background-color: rgb(189, 172, 148);
}

.champion-button {
    padding: 0.6rem 1.5rem;
    background-color: transparent;
    border: 1px solid rgb(189, 172, 148);
    color: rgb(189, 172, 148);
    font-family: 'MedievalSharp', cursive;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.champion-button:hover {
    background-color: rgb(189, 172, 148);
    color: #000101;
}

.carousel-arrow {
    background: none;
    border: none;
    color: rgb(189, 172, 148);
    font-size: 3rem;
    cursor: pointer;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    color: rgba(189, 172, 148, 0.7);
    transform: scale(1.2);
}

.carousel-arrow-left:hover {
    transform: translateX(-15px) scale(1.2);
}

.carousel-arrow-right:hover {
    transform: translateX(15px) scale(1.2);
}

.carousel-arrow .material-symbols-outlined {
    font-size: 3rem;
}

/* Footer */
footer {
    background-color: #000101;
    color: rgb(189, 172, 148);
    padding: 3rem 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid rgb(189, 172, 148);
}

.footer-left {
    flex: 1;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: rgb(189, 172, 148);
}

.footer-left p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    color: rgb(189, 172, 148);
    max-width: 400px;
}

.footer-center {
    margin-right: 150px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
}

.footer-nav a {
    color: rgb(189, 172, 148);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: rgba(189, 172, 148, 0.7);
}

.footer-right {
    flex: 0 0 auto;
    text-align: right;
}

.kills-counter {
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.kills-number {
    font-size: 2rem;
    font-weight: bold;
    color: rgb(189, 172, 148);
    text-shadow: 0 0 10px rgba(189, 172, 148, 0.3);
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* TABLETTE (768px - 1024px) */
@media (max-width: 1024px) {
    header nav {
        padding: 12px 20px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    header nav ul {
        gap: 1.5rem;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .info-container {
        gap: 5rem;
        flex-direction: column;
        padding: 2rem;
    }

    .info-image {
        margin-left: 0;
    }

    .info-image img {
        height: 350px;
    }

    .info-text {
        width: 100%;
        max-width: 600px;
    }

    .pourquoi-container {
        gap: 5rem;
        flex-direction: column;
        padding: 2rem;
    }

    .pourquoi-image {
        margin-right: 0;
    }

    .pourquoi-image img {
        height: 350px;
    }

    .pourquoi-text {
        width: 100%;
        max-width: 600px;
        padding-right: 2rem;
    }

    .code-container {
        gap: 2rem;
        flex-direction: column;
        padding: 2rem;
    }

    .code-image {
        margin-left: 0;
    }

    .code-image img {
        height: 250px;
    }

    .code-content {
        width: 100%;
    }

    .champions-header {
        margin-left: 2rem;
    }

    .carousel-container {
        gap: 1.5rem;
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .carousel-wrapper {
        height: 280px;
    }

    .carousel-track {
        gap: 1.5rem;
    }

    .carousel-item img {
        height: 130px;
    }

    .carousel-item.active img {
        height: 200px;
    }

    .carousel-item-left {
        transform: translateX(-70px) scale(0.5);
    }

    .carousel-item-right {
        transform: translateX(70px) scale(0.5);
    }

    .carousel-arrow {
        font-size: 2rem;
    }

    .carousel-arrow .material-symbols-outlined {
        font-size: 2rem;
    }

    footer {
        padding: 2rem;
        gap: 1.5rem;
    }

    .footer-center {
        margin-right: 0;
        flex: 1;
    }
}

/* MOBILE (< 768px) */
@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }

    header {
        padding: 0.5rem 0;
    }

    header nav {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        position: relative;
    }

    header h1 {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        flex: 1;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 1, 1, 0.98);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav-menu.menu-active {
        max-height: 300px;
        padding: 1rem 0;
    }

    .nav-menu li {
        list-style: none;
        text-align: center;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(189, 172, 148, 0.2);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        text-decoration: none;
        color: rgb(189, 172, 148);
        font-size: 1rem;
        display: inline-block;
        transition: color 0.3s;
    }

    .nav-menu a:hover {
        color: rgb(111, 101, 87);
    }

    .hero-content {
        max-width: 90%;
        left: 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .scroll-arrow {
        width: 40px;
        height: 40px;
    }

    .scroll-arrow:hover {
        border: 1px solid rgba(189, 172, 148, 0.9);
        bottom: 30px;
    }

    .info-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .info-image {
        margin-left: 0;
        width: 100%;
    }

    .info-image img {
        height: 250px;
    }

    .info-text {
        width: 100%;
        padding: 1.5rem;
        padding-left: 1.5rem;
        font-size: 1rem;
    }

    .info-text::before {
        display: none;
    }

    .pourquoi-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .pourquoi-image {
        margin-right: 0;
        width: 100%;
    }

    .pourquoi-image img {
        height: 250px;
    }

    .pourquoi-text {
        width: 100%;
        padding: 1.5rem;
        padding-right: 1.5rem;
        font-size: 1rem;
    }

    .pourquoi-text ul {
        gap: 1rem;
    }

    .pourquoi-text::after {
        display: none;
    }

    .code-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .code-image {
        margin-left: 0;
        width: 100%;
    }

    .code-image img {
        height: 200px;
    }

    .code-content {
        width: 100%;
        font-size: 1rem;
    }

    .code-content h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .code-content ul {
        padding: 1.5rem 2rem;
    }

    .code-content ul::before {
        width: 40px;
        height: 40px;
    }

    .code-content ul::after {
        width: 40px;
        height: 40px;
    }

    #section5 {
        padding: 2rem 1rem;
    }

    .champions-header {
        text-align: center;
        margin-left: 0;
        margin-bottom: 2rem;
    }

    .champions-header h2 {
        font-size: 1.8rem;
    }

    .champions-header p {
        font-size: 1rem;
        max-width: 100%;
    }

    .carousel-container {
        gap: 1rem;
        padding: 0;
        width: 100%;
        max-width: none;
    }

    .carousel-wrapper {
        height: 340px;
        max-width: 100%;
    }

    .carousel-track {
        gap: 1rem;
    }

    .carousel-item-left {
        display: none;
    }

    .carousel-item-right {
        display: none;
    }

    .carousel-item img {
        height: 120px;
    }

    .carousel-item.active img {
        height: 260px;
    }

    .champion-name {
        font-size: 1rem;
    }

    .champion-name-line {
        width: 50px;
    }

    .champion-button {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .carousel-arrow {
        font-size: 1.8rem;
        padding: 0.5rem;
    }

    .carousel-arrow .material-symbols-outlined {
        font-size: 1.8rem;
    }

    .carousel-arrow-left:hover {
        transform: translateX(-10px) scale(1.1);
    }

    .carousel-arrow-right:hover {
        transform: translateX(10px) scale(1.1);
    }

    footer {
        padding: 1.5rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-left {
        flex: 1;
        width: 100%;
        text-align: center;
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-left p {
        font-size: 0.85rem;
        max-width: 100%;
    }

    .footer-center {
        flex: 1;
        width: 100%;
        margin-right: 0;
        text-align: center;
    }

    .footer-nav {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-nav a {
        font-size: 0.9rem;
    }

    .footer-right {
        flex: 1;
        width: 100%;
        text-align: center;
    }

    .kills-counter {
        align-items: center;
    }

    .kills-number {
        font-size: 1.5rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1rem;
        margin-top: 1rem;
    }
}