/* ------------------------- GLOBAL ------------------------- */

body {
    margin: 0;
    padding: 0;
    font-family: 'Bebas Neue', sans-serif;
    background-color: #ffffff;
    color: #111111;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.didact-gothic-regular {
    font-family: "Didact Gothic", serif;
    font-weight: 400;
    font-style: normal;
}

main {
    width: 1080px;
    margin: 0 auto;
}
/* ------------------------- NAVBAR ------------------------- */

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    transition: background-color 0.3s ease-in-out;
}

.navbar:hover {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.favicon {
    width: 27px;
    height: 35px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin: 0 10px;
}

.navbar-menu a {
    text-decoration: none;
    color: #111111;
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.navbar-menu a:hover {
    color: #ffc400;
}

/* ------------------------- HEADER ------------------------- */

.image-background {
     /*  position: relative;
    width: 100%;
    height: auto;*/
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#image-background {
    width: 100%;
    height: auto;
    display: block;
}

.main-title {
    position: absolute;
    top: 35%;
    left: 30px;
    transform: translateY(-50%);
    /*font-size: 195px;*/
    font-family: 'Bebas Neue', sans-serif;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    text-align: left;
    line-height: 1.2;
    /*top: 50%; */
    width: 100%;
    transform: translateY(-50%);
    font-size: 10vw; /* Ajustement automatique */
    text-align: left;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    z-index: 10;
}
.image-background {
    position: relative;
    width: 100%;
    height: 100vh; /* Pleine hauteur de l'écran */
    overflow: hidden;
}

.carousel-inner > .item > img {
    width: 100%;
    height: 100vh;
    object-fit: cover; /* Évite la déformation */
    transition: transform 0.5s ease-in-out;
}

.carousel-control {
    z-index: 20;
}

/* ------------------------- TABLE ------------------------- */

.container {
    max-width: 90%;
    margin: 55px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#h1d {
    font-family: 'Anton', sans-serif;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 10px;
    color: #444;
}

#h2d {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-family: 'Sintony', sans-serif;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #eaeaea;
    color: #333;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #444;
    color: #fff !important;
    border: none;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 5px;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #555;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 4px;
}

/* ------------------------- CONTENT ------------------------- */

.content-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 55px;
    text-align: left;
    max-width: 80%;
    margin: 0 auto;
    margin-top: 55px;
    margin-bottom: 55px;
}

.left-section {
    position: relative;
    animation: slideInLeft 1s ease-out;
}

.illustrative-image {
    width: 410px;
    height: auto;
    border-radius: 0px;
}

.right-section {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.title-right {
    font-size: 48px;
    color: #111;
    margin: 0;
    position: relative;
}

.title-right::before {
    content: "";
    position: absolute;
    top: 10px;
    left: -50px;
    width: 70px;
    height: 70px;
    background: rgba(255, 200, 0, 0.3);
    z-index: -1;
    border-radius: 50%;
}

.description {
    margin-top: 15px;
    font-size: 18px;
    line-height: 1.5;
    color: #333;
    max-width: 500px;
}

.descriptionbis {
    margin-top: 15px;
    font-family: "Didact Gothic";
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    max-width: 500px;
}

/* ------------------------- ANIMATIONS ------------------------- */

h1, p {
    animation: fadeIn 2.2s ease-in-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ------------------------- VIDEO ------------------------- */

/*.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 0px;
    background-color: #111;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}*/
/* Arrière-plan vidéo */
/* Arrière-plan vidéo */
/* Conteneur de la vidéo en plein écran */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Indicateur de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    animation: bounce 1.5s infinite;
}

/* Animation de la flèche qui rebondit */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Formulaire placé sous la vidéo */
.form-container {
    background-color: #ffffff;
    padding: 0px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transform: translateY(0px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Effet de scroll fluide */
html {
    scroll-behavior: smooth;
}

/* ------------------------- galerie ------------------------- */
#galerie {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 400px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#galerie label {
    font-weight: bold;
    color: #1c1919;
}

#galerie input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Bouton */
#galerie input[type="submit"] {
    background-color: #ffc400;
    color: #1c1919;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#galerie input[type="submit"]:hover {
    background-color: #1c1919;
    color: white;
}

/* ------------------------- CAROUSEL ------------------------- */
.carousel {
  width: 100%;
  cursor: grab;
  overflow: hidden;
}

.carousel.dragging {
  cursor: grabbing;
}

.carousel--wrap {
  display: flex;
  gap: 2vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  padding: 2vw;
}
  
  .carousel--item iframe {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
  }

  .carousel--item {
    display: inline-block;
    width: 81vw;
    height: 3vh;
    padding: 14vw;
    position: relative;
    overflow: hidden;
}

.carousel--progress {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  bottom: 2vw;
  width: 20vw;
  left: 3vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.carousel--progress-bar {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  transform: scaleX(0);
  transform-origin: 0% 0%;
}


/* ------------------------- FOOTER ------------------------- */

.footer {
    background-color: #ffffff;
    color: #111111;
    padding: 30px 20px;
    border-top: 2px solid #ddd;
    font-family: 'Bebas Neue', sans-serif;
    text-align: center;
}

.footer-menu {
    margin-bottom: 20px;
}

.navbar-footer {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.navbar-footer li {
    margin: 0;
}

.navbar-footer a {
    text-decoration: none;
    color: #111111;
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.navbar-footer a:hover {
    color: #ffc400;
}

.footer-info {
    font-size: 16px;
    color: #555555;
}

/* ------------------------- formulaire ------------------------- */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding-left: 40px; 
    padding-right: 40px; 
    border-radius: 8px;
    width: 350px;
    max-width: 100%;
    animation: fadeIn 1s ease-out;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les inputs horizontalement */
    width: 100%;
    margin-bottom: 15px; /* Augmente l'espace entre les inputs */
}

.form-group input,
.form-group textarea,
.form-group button {
    width: 90%; /* Réduit légèrement la largeur pour créer une marge interne */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    color: #1c1919;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
}

.background-container {
    background-color: #ffc400;
    height: 115vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}



.form-header {
    display: flex;
    gap: 40px;
    opacity: 0;
    animation: slideIn 1s 1s forwards;
    padding-top: 25px;
}

.contact-container h1 {
    color: #1c1919;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    margin-bottom: -15px;
    opacity: 0;
    animation: slideIn 1s 0.5s forwards;
}

.form-group label {
    font-weight: bold;
    color: #1c1919;
    margin-bottom: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ffc400;
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 196, 0, 0.3);
}

.form-group textarea {
    resize: none;
    height: 100px;
}

.form-group button {
    background-color: #ffc400;
    margin-top: 20px;
    color: #1c1919;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

.form-group button:hover {
    background-color: #1c1919;
    color: #fff;
    transform: translateY(-3px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* ------------------------- MSG ERREUR ------------------------- */
.message-erreur {
    color: red;
    background-color: #ffe6e6;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

.message-success {
    color: ffc400;
    background-color: #e6ffe6;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

.error {
    color: red;
    font-weight: bold;
}

/* ------------------------- UPLOAD ------------------------- */

.gallery-container {
    position: relative;
    overflow: hidden;
    max-width: 90%;
    margin: auto;
    padding: 20px 0;
}

.gallery-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Style des images */
.gallery-item {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    margin-top: 0;
    transition: filter 0.5s ease, transform 0.3s ease;
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Flèches de navigation */
.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.gallery-prev:hover, .gallery-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

/* Responsive */
@media screen and (max-width: 768px) {
    .gallery-item {
        width: 100%;
        max-width: 180px;
        height: 180px;
    }
}
/* ------------------------- crédits ------------------------- */

.credits-container {
    padding: 20px;
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

.credits-container h2 {
    font-size: 1.5em;
    color: #333;
    margin-top: 30px;
    position: relative;
    display: inline-block; 
    cursor: pointer;
}

.credits-container h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px; 
    width: 100%;
    height: 3px;
    background-color: #ffc400;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.credits-container h2:hover::after {
    transform: scaleX(1);
}

p {
    font-size: 1em;
    color: #555;
    line-height: 1.5;
}

.film-credit {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.image-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
}

/* Conteneur des images pour les croper */
.image-container {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden; /* Cache les parties débordantes */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop l'image sans la déformer */
}

.image-container:hover {
    transform: scale(1.05);
}

/* Responsive pour petits écrans */
@media screen and (max-width: 600px) {
    .image-gallery {
        flex-wrap: wrap;
    }
    
    .image-container {
        width: 120px;
        height: 120px;
    }
}


footer {
    font-size: 0.9em;
    color: #777;
    margin-top: 40px;
}

/* ------------------------- Partenaires ------------------------- */
.carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 100px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    height: 100vh;
}

.text-box {
    background-color: #222;
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

.text-box h2 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}

.text-box p {
    font-size: 16px;
    line-height: 1.5;
}

.carousel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-left: 400px;
}

#illu2 {
    max-width: 532px;
    height: auto;
    margin-left: 9px;
}

input[type="radio"] {
    display: none;
}

.cards {
    position: relative;
    width: 500px;
    height: 400px; /* Augmentation de la hauteur pour que toutes les cartes s'affichent */
    margin-bottom: 20px;
}

.card {
    position: absolute;
    width: 80%; /* Augmentation de la largeur pour que les cartes soient plus grandes */
    height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    cursor: pointer;
    background-color: #1b1a1a;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
}

.card:first-child {
    opacity: 1; /* S'assurer qu'une carte est visible au départ */
}

.card-content {
    padding: 10px;
    text-align: center;
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    background-size: cover;
    background-position: center;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    color: white;
}

.card-description {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 10px;
}

.card-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #c7ad14;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    color: white;
}

.card-btn:hover {
    background-color: #a38f0e;
}

/* Animation des cartes lorsqu'un élément est sélectionné */
#item-1:checked ~ .cards #song-4,
#item-2:checked ~ .cards #song-1,
#item-3:checked ~ .cards #song-2,
#item-4:checked ~ .cards #song-3 {
    transform: translate(-50%, -50%) translateX(-40%) scale(0.8);
    opacity: 0.4;
    z-index: 0;
}

#item-1:checked ~ .cards #song-2,
#item-2:checked ~ .cards #song-3,
#item-3:checked ~ .cards #song-4,
#item-4:checked ~ .cards #song-1 {
    transform: translate(-50%, -50%) translateX(40%) scale(0.8);
    opacity: 0.4;
    z-index: 0;
}

#item-1:checked ~ .cards #song-1,
#item-2:checked ~ .cards #song-2,
#item-3:checked ~ .cards #song-3,
#item-4:checked ~ .cards #song-4 {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 1;
}

/* ------------------------- index sect2 ------------------------- */
.tarantino-section {
    position: relative;
    width: 100%;
    height: 70vh; 
    display: flex;
    margin-top: 70px;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%; 
}

#image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: -1; 
}

.tarantino-content {
    max-width: 40%;
    color: rgb(47, 39, 39); 
    padding: 20px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.tarantino-content.visible {
    opacity: 1;
    transform: translateX(0);
}



.bottom-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    width: 100%;
}

.bottom-links a {
    color: orange;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.bottom-links a:hover {
    text-decoration: none;
}
