/* RESET */
html {
  box-sizing: border-box;
  font-size: 16px;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

ol, ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}
/* END RESET */

/* GENERAL */
body {
    background-color: #000000;
    color: #ff0000;
    font-family: 'Poppins-extralight', sans-serif;
    overflow-x: hidden;
}

@font-face {
  font-family: 'Nosifer';
  src: url('../font/Nosifer-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins-extralight';
    src: url('../font/Poppins-ExtraLight.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins-light';
    src: url('../font/Poppins-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Poppins-medium';
    src: url('../font/Poppins-Medium.ttf') format('truetype');
}

.title {
    padding: 40px 0 40px 0;
    font-family: 'Poppins-medium', sans-serif;
}

footer {
    display: flex;
    justify-content: center;
    height: 30px;
    font-size: 0.7rem;
}

/* END GENERAL */


/* HEADER */

/* Header Sticky */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 196px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Menu de navigation */
.menu {
    display: flex;
    gap: 2rem;
}

.menu-item {
    color: #ff0000;
    text-decoration: none;
    font-size: 1.3rem;
    font-family: 'Poppins-light', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ff0000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-item:hover::after,
.menu-item.active::after {
    width: 100%;
}

.menu-item:hover {
    text-shadow: 0 0 10px #ff0000;
}/* END HEADER */


/* Section principale */
.main-content {
    margin-top: 196px;
    height: calc(100vh - 196px - 30px);
    display: flex;
    box-sizing: border-box;
}

/* Carrousel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    /* Permettre à l'ombre d'être visible verticalement */
    overflow-x: hidden;
    overflow-y: visible;
    padding: 20px 0; /* Ajouter du padding pour l'ombre */
}

.carousel-track {
    display: flex;
    gap: 30px;
    align-items: center;
    height: calc(100% - 40px); /* Ajuster la hauteur pour le padding */
    cursor: grab;
    user-select: none;
    /* Ajouter de la marge pour l'ombre */
    padding: 20px 0;
}

.carousel-track:active {
    cursor: grabbing;
}

/* Cartes avec ratio 681:1000 */
.card {
    flex-shrink: 0;
    position: relative;
    perspective: 1000px;
    overflow: hidden;
    position: relative;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.8;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}


/* Styles pour l'effet de retournement */

.card-back-content {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-back-title, .card-back-subtitle {
    font-family: 'Nosifer', sans-serif;
    text-transform: uppercase;
}

.card-back-title {
    font-size: 2.2rem;
}

.card-back-subtitle {
    font-size: 1.8rem;
}

.aka {
    font-family: 'Poppins-medium', sans-serif;
    font-size: 1.3rem;
    text-transform: lowercase;
}

.card-back-text {
    margin-top: 30px;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 80%;
}


.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-inner.flipping {
    pointer-events: none;
}

.card:hover {
    opacity: 1;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
}

.card-front {
    z-index: 2;
}

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

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card-back-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.8) 30%,
        rgba(0, 0, 0, 0.4) 60%,
        transparent 100%);
    padding: 4rem 1.5rem 2rem;
}


/* Boutons du carrousel */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    border: 3px solid #ff0000;
    color: #ff0000;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-button:hover {
    background-color: #ff0000;
    color: #000000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

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

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

.carousel-button svg {
    width: 35px;
    height: 35px;
}

/* RED ZONE */
.container-redzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    margin: 50px auto 0 auto;
}

.form-redzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 60%;
}

.form-row-redzone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 50%;
    padding: 20px;
}

.label-redzone {
    font-family: 'Poppins-light', sans-serif;
    font-size: 1.1rem;
}

.input-redzone {
    padding: 5px;
    width: 50%;
    height: 2.2rem;
    border: 2px solid #ff0000;
    border-radius: 5%;
    background-color: #1f1f1f;
    font-family: 'Poppins-light', sans-serif;
    font-size: 1.1rem;
    color: #ff0000;
}

.button-redzone {
    background-color: #ff0000;
    color: #ffffff;
    border: 2px solid #ff0000;
    border-radius: 5px;
    margin-top: 20px;
    padding: 5px 20px;
    font-family: 'Poppins-light', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-redzone:hover {
    background-color: #1f1f1f;
    color: #ff0000;
    border: 2px solid #ff0000;
}

.button-redzone:active {
    transform: scale(0.95);
}

.button-redzone:focus {
    outline: none;
    box-shadow: 0 0 10px #ff0000;
}


/* Responsive - Tablette */
@media (max-width: 1024px) {
    .main-content {
        padding: 40px;
    }

    .card-title {
        font-size: 1.6rem;
    }

    .carousel-button {
        width: 60px;
        height: 60px;
    }

    .carousel-button svg {
        width: 30px;
        height: 30px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }

    .carousel-track {
        gap: 20px;
    }

    .card-title {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .card-overlay {
        padding: 3rem 1rem 1.5rem;
    }

    .carousel-button {
        width: 50px;
        height: 50px;
    }

    .carousel-button svg {
        width: 25px;
        height: 25px;
    }

    .carousel-button-prev {
        left: 10px;
    }

    .carousel-button-next {
        right: 10px;
    }
}

/* Très petit écran */
@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }

    .carousel-button {
        width: 45px;
        height: 45px;
    }

    .carousel-button svg {
        width: 20px;
        height: 20px;
    }
}

/* Masquer la scrollbar si elle apparaît */
.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/*** NEW ***/
/* Désactiver le curseur grab sur desktop */
@media (min-width: 769px) {
    .carousel-track {
        cursor: default;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .card-back-title {
        font-size: 1.8rem;
    }

    .card-back-text {
        font-size: 1rem;
    }

    .card-back-content {
        padding: 2rem 1.5rem;
    }
}