*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
header{
    width: 100%;
    height: 100vh;
    display: flex;
    top: 0;
    left: 0;
    position: relative;
    background-color: #191919;
}
.logo{
    position: absolute;
    top: 3%;
    left: 3%;
}

nav{
    width: 100%;
    display: flex;
}
nav ul{
    position: absolute;
    width: 100%;
    list-style: none;
    display: flex;
    gap: 50px;
    padding-left: 50%;
    padding-top: 3%;
}
nav ul li a{
    font-family:"Marcellus SC", serif;
    font-weight: 400;
    font-size: 20px;
    color: #ffad01;
    text-decoration: none;
}
.logo2 img{
    
    position: absolute;
    max-width: 35%;
    height: auto;
    top: 15%;
    left: 30%;
    animation: tourComplet 4s ease-in-out forwards;
}
@keyframes tourComplet {
  from {
    transform: scaleX(-1) rotateY(0deg);
  }
  to {
    transform: scaleX(-1) rotateY(180deg);
  }
}
.logo3 img{
    opacity: 0;
    position: absolute;
    max-width: 35%;
    height: auto;
    top: 75%;
    left: 30%;
    animation: apparition 2s ease-out 5s forwards;
}
@keyframes apparition {
  from { opacity: 0; transform: scale(0.8); } /* Cachée et un peu plus petite */
  to   { opacity: 1; transform: scale(1); }   /* Visible et taille normale */
}
#presentation{
    width: 100%;
    height: 100vh;
    display: flex;
    position: relative;
}
.gauche img{
    position: absolute;
    width: 35%;
    height: 100vh;
    object-fit: cover;
}
.droite{
    width: 65%;
    height: 100vh;
    position: relative;
}
.droite h2{
    position: absolute;
    font-family:"Marcellus SC", serif; 
    top: 15%;
    left: 65%;
}
.histoire{
    text-align: justify;
    font-family:"Marcellus SC", serif; 
    font-size: 15px;
    top: 20%;
    left: 65%;
    width: 80%;
    position: absolute;
}
.banderolle{
    width: 100%;
    height: 1.5vh;
    background-color: #ffad01;
}
#personnages{
    display: block;
    width: 100%;
    height: 100vh;
    position: relative;
}
#personnages h2{
    position: absolute;
    font-family:"Marcellus SC", serif;
    font-weight: 600;
    font-size: 60px;
    left: 40%;
    top: 5%;
    color: #ffad01;
    z-index: 5;
}
.fond{
    background-image: url(photos/images/wall.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    height: 140vh;
    position: relative;
    z-index: 1;
}
.persos{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    position: absolute;
    z-index: 2;
    top: 20%;
    border-top: 1.5vh solid #ffad01;
    border-bottom: 1.5vh solid #ffad01;
}
.carte-perso{
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 50vh;
}
.carte-perso img{
    filter: grayscale(1);
    width: 100%;
    height: 50vh;
    object-fit: cover;
}
.carte-perso img:hover {
    filter: none;
    cursor: pointer;
    transition: ease 1s;
}
.survol {
    top: 40%;
    transform: translateX(-50%);
    left: 50%;
    position: absolute;
    color: #ffad01;
    font-size: 65px;
    text-align: center;
    justify-content: center;
    font-family: "Marcellus SC", serif;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    font-weight: bold;
}

.carte-perso:hover .survol {
    opacity: 1;
}
#galerie{
    position: relative;
    display: block;
    width: 100%;
    height: 160vh;
    position: relative;
    background-color: #191919; 
}
#galerie h2{
    position: absolute;
    font-family:"Marcellus SC", serif;
    font-weight: 600;
    font-size: 60px;
    left: 43%;
    top: 15%;
    z-index: 5;
    color: #ffad01;
}
.gal{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    position:relative;
    top: 40vh;
    padding-left: 8%;
    padding-top: 7%;
    gap: 80px;
    border-top: 1.5vh solid #ffad01;
}
.gal img{
    width: 75%;
    height: 30vh;
    object-fit: contain;
    border: 1vh solid #ffad01;
}
#contact{
    width: 100%;
    height: 100vh;
    display: flex;
}
#contact .gauche {
    width: 55%;
    height: 100vh;
    background: #fdfbe8;
    font-family: "Marcellus SC", serif;
    padding: 40px;
  }

  .contact-form {
    max-width: 500px;
  }

  h2 {
    font-variant: small-caps;
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 30px;
  }

  .field {
    margin-bottom: 22px;
  }

  label {
    display: block;
    font-variant: small-caps;
    font-size: 18px;
    margin-bottom: 6px;
  }

  input[type="text"],input[type="email"],textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: "Marcellus SC", serif;
    font-size: 18px;
    color: #888;
    border: 1px solid #999;
    padding: 6px 8px;
    background: #fff;
  }
  textarea {
    height: 260px;
    resize: vertical;
  }

  button {
    font-family: "Marcellus SC", serif;
    font-size: 18px;
    background: #e7e7e7;
    border: 1px solid #999;
    padding: 6px 18px;
    cursor: pointer;
  }

  button:hover {
    background: #ddd;
  }
  #contact .droite {
    width: 45%;
    height: 100vh;
  }
  #contact .droite img{
    width: 100%;
    height: 100vh;
    object-fit: cover;
  }
.perso-card {
    display: none;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #8e8e8e;
    background-color: #ffffff;
    max-width: 500px;
}

.perso-card.active {
    display: block;
}
.btn-perso {
    font-family: 'Papyrus', fantasy, serif;
    font-size: 1.1rem;
    padding: 8px 16px;
    margin-right: 10px;
    background-color: #e9e9ed;
    border: 1px solid #8f8f9d;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-perso:hover {
    background-color: #d0d0d8;
}
main{
    background-image: url(photos/images/wall.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    height: 170vh;
    position: relative;
    z-index: 1;
}
#mk{
    width: 100%;
    height: 140vh;
    background-color: #191919;
    position: relative;
}
#mk h2{
    position: absolute;
    font-family:"Marcellus SC", serif;
    font-weight: 600;
    font-size: 40px;
    left: 0;
    right: 0;
    text-align: center;
    top: 5%;
    color: #ffad01;
}
#mk img{
    position: absolute;
    top: 10%;
    width: 50%;
    height: 95vh;
    left: 25%;
    object-fit: cover;
    object-position: top center;
}
#mk h4{
    max-width: 90%;
    position: absolute;
    font-family:"Marcellus SC", serif;
    font-weight: 300;
    font-size: 14px;
    left: 5%;
    top: 85%;
    color: rgb(243, 235, 235);
    line-height: 1.6 ;
}
main h3{
    position: absolute;
    font-family:"Marcellus SC", serif;
    font-weight: 600;
    font-size: 75px;
    left: 40%;
    top: 90%;
    z-index: 5;
    color: #ffad01;
}
main h5{
    position: absolute;
    left: 45%;
    transform: translateY(-60px);
    width: 100px;
    height: 50px;
    background-color: #ffad01;
}
main h5 a{
    display: flex;
    color: rgb(243, 235, 235);
    font-family: "Marcellus SC", serif;
    font-size: 20px;
    text-decoration: none;
    padding-top: 10px;
    justify-content: center;
    
}
.gal2{
    display: grid;
    background-color: #191919;
    height: 90vh;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: (1fr);
    position:relative;
    padding-left: 12%;
    
    gap: 100px;
    border-bottom: 1.5vh solid #ffad01;
}
.gal2 img{
    display: flex;
    width: 55%;
    height: 30vh;
    object-fit: contain;
    border: 1vh solid #ffad01; 
}
.carte{
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 50vh;
}

.carte img:hover {
    opacity: 0.3;
    cursor: pointer;
    transition: ease 1s;
}
.pointer {
    top: 0;
    transform: translateX(-50%);
    left: 35%;
    position: absolute;
    color: #ffad01;
    font-size: 25px;
    text-align: center;
    line-height: 4;
    justify-content: center;
    font-family: "Marcellus SC", serif;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    font-weight: bold;
}

.carte:hover .pointer {
    opacity: 1;
    pointer-events: auto;
}
