* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}
body {
    position: relative;
    background-image: url(images/mer.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    object-fit: cover;
    width: 100vw;
    height: 100vh;
}
.navbar2 {
    position: absolute;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 70px;
    box-sizing: border-box;
    align-items: center;
}
a.logo {
    position: relative;
    overflow: hidden;
    padding: 3px;
    border-radius: 10px;
    height: 55px;
    width: 160px;
    left: 8px;
    border-radius: 15px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 8px 2px 15px rgb(0, 0, 0);
    font-size: 3em;
    color: cyan;
    font-weight: bold;
}

a.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
            0deg,
            transparent,
            transparent 30%,
            rgba(0, 255, 255, 0.3)
    );
    transform: rotate(-45deg);
    transition: all 0.5s ease;
    opacity: 0;
}
a.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}
a.logo:hover::before {
    opacity: 1;
    transform: rotate(-45deg) translateY(100%);
}
a.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
            0deg,
            transparent,
            transparent 30%,
            rgba(0, 255, 255, 0.3)
    );
    transform: rotate(-45deg);
    transition: all 0.5s ease;
    opacity: 0;
}
a.contact:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}
a.contact:hover::before {
    opacity: 1;
    transform: rotate(-45deg) translateY(100%);
}
a.contact {
    position: relative;
    overflow: hidden;
    padding: 3px;
    border-radius: 10px;
    height: 55px;
    width: 160px;
    right: 2vw;
    border-radius: 15px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 8px 2px 15px rgb(0, 0, 0);
}
.contact {
    font-size: 1.5em;
    color: cyan;
    font-weight: bold;
    overflow: hidden;
}
a.contact span{
    position: absolute;
    display: block;
}
a.contact span:nth-child(1){
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,transparent,aqua);
    animation: animate1 4s linear infinite;
}
@keyframes animate1{
    0%{
        left: -100%;
    }
    50%,100%{
        left: 100%;
    }
}
a.contact span:nth-child(2){
    top: -100%; 
    right: 0;
    width: 2px; 
    height: 100%;
    background: linear-gradient(180deg,transparent,aqua);
    animation: animate2 4s linear infinite;
    animation-delay: 1s;
}

@keyframes animate2{
    0%{ top: -100%; }
    50%,100%{ top: 100%; }
}
a.contact span:nth-child(3){
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg,transparent,aqua);
    animation: animate3 4s linear infinite;
    animation-delay: 2s;
}
@keyframes animate3{
    0%{
        right: -100%;
    }
    50%,100%{
        right: 100%;
    }
}
a.contact span:nth-child(4){
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg,transparent,aqua);
    animation: animate4 4s linear infinite;
    animation-delay: 3s;
}

@keyframes animate4{
    0%{
        bottom: -100%;
    }
    50%,100%{
        bottom: 100%;
    }
}
a.logo span{
    position: absolute;
    display: block;
}
a.logo span:nth-child(1){
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,transparent,aqua);
    animation: animate1 4s linear infinite;
}
@keyframes animate1{
    0%{
        left: -100%;
    }
    50%,100%{
        left: 100%;
    }
}
a.logo span:nth-child(2){
    top: -100%; 
    right: 0;
    width: 2px; 
    height: 100%;
    background: linear-gradient(180deg,transparent,aqua);
    animation: animate2 4s linear infinite;
    animation-delay: 1s;
}

@keyframes animate2{
    0%{ top: -100%; }
    50%,100%{ top: 100%; }
}
a.logo span:nth-child(3){
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg,transparent,aqua);
    animation: animate3 4s linear infinite;
    animation-delay: 2s;
}
@keyframes animate3{
    0%{
        right: -100%;
    }
    50%,100%{
        right: 100%;
    }
}
a.logo span:nth-child(4){
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg,transparent,aqua);
    animation: animate4 4s linear infinite;
    animation-delay: 3s;
}

@keyframes animate4{
    0%{
        bottom: -100%;
    }
    50%,100%{
        bottom: 100%;
    }
}
.insta {
    position: absolute;
    top: 11px;
    left: 250px;
}
.albums {
    position: absolute;
    top: 10vh;
    left: 5vw;
    display: grid;
    grid-template-columns: 30vw 30vw 30vw;
    grid-template-rows: auto;
    gap: 20px;
}
.article1, .article2, .article3, .article4, .article5, .article6 {
    background-color: rgb(0, 0, 0);
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    width: auto;
    height: auto; 
    padding: 10px;
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}
p.lienmesanimaux, p.lienanimaux, p.lienmariage, p.lienfleur, p.lienpaysage, p.lienboule {
    position: relative;
    top: 0;
    width: 100%;
    text-align: center; 
    margin-top: 10px;
}
.mesanimaux, .animaux, .mariage, .fleur, .paysage, .boule {
    position: relative;
    top: 0;
    height: 400px; 
    width: 100%; 
    border-radius: 15px;
    margin: 20px 0 10px 0;
}
.mesanimaux:hover, .animaux:hover, .mariage:hover, .fleur:hover, .paysage:hover, .boule:hover {
  transform: scale(1.1) translate(-5%, -5%);
  transition: 2s ease;
}
a.lienmesanimaux, a.lienanimaux, a.lienmariage, a.lienfleur, a.lienpaysage, a.lienboule {
    position: relative;
    left: 0;
    color: beige;
    display: block;
    text-align: center;
}
.gallerie {position: absolute;
    top: 1040px;
    left: 7%;
    width: 85%;
    height: 170px;
    margin: 0 auto;
}

.carte{
    width: 200px;
    height: 150px;
    border-radius: 30px;
    margin-right: 10px;
}
.container {
    position: relative;
    left: 6vw;
    top: 1200px;
    width: 87vw;
    height: 200px;
     display: flex;
    overflow: hidden;
}
.carte:hover{
  scale: 1.2;
  transition: 1s;
}
.container .gallerie {
    position: absolute;
    display: flex;
    transition: transform 0.5s ease-in-out;
    margin-left: 50px;
    width: 200px;
    top: 1%;
}
#light2box{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0, 0, 0, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}
#light2box img{
    width: 35%;
    object-fit: cover;
    position: relative;
    left: 0%;
    top: 0%;
}

#light2box.active2{
    display: flex;
}
.exit2 {
    text-decoration: none;
    color: aliceblue;
    position: absolute;
    top: 8%;
    right: 10%;
    
}
.exit2 .material-icons{
    font-size: 60px;
}
.exit2 .material-icons:hover{
     scale: 1.5;
  transition: 1s ease;
}
#prev, #next {
    position: fixed;
    font-size: 100px;
    color: rgb(0, 0, 0);
    top: 50%;
    background-color: rgb(255, 255, 255, 0.2);
    cursor: pointer;
    opacity: 0;
}
#prev{
left: 20px;
}
#next{
right: 20px;
}
#light2box:hover #prev, #light2box:hover #next {
    opacity: 1;
}
#prec, #suiv {
    top: 35%;
    width: 50px;
    cursor: pointer;
}

#prec {
    position: absolute;
    left: -0;
    opacity: 0.3;
}

#suiv {
    position: absolute;
    right: -0;
    opacity: 0.3;
}
#suiv:hover {
    opacity: 1;
}
#prec:hover {
opacity: 1;
}

@media screen and (max-width: 1800px) {
    .container {
    left: 6vw;
    top: 88vh;
    width: 85vw;
    height: 120px;
}
.carte{
    width: 150px;
    height: 110px;
    border-radius: 30px;
    margin-right: 10px;
}
.mesanimaux, .animaux, .mariage, .fleur, .paysage, .boule {
    height: 200px;

}
.albums {
    top: 17vh;
    left: 15vw;
    grid-template-columns: 20vw 20vw 20vw;
    grid-template-rows: auto;
    gap: 18px;
}}
@media screen and (max-width: 1300px) {
    .container {
    top: 80vh;
}
.mesanimaux, .animaux, .mariage, .fleur, .paysage, .boule {
    height: 120px;

}
.albums {
    top: 25vh;
}}
@media screen and (max-width: 600px){
.albums {
    left: 1px;
    top: 30vh;
    grid-template-columns: 31vw 31vw 31vw;
    grid-template-rows: auto;
    gap: 10px;
    padding: 5px;
}
a.lienmesanimaux, a.lienanimaux, a.lienmariage, a.lienfleur, a.lienpaysage, a.lienboule {
    font-size: 10px
}
.mesanimaux, .animaux, .mariage, .fleur, .paysage, .boule {
    height: 80px;
    margin: 5px 0 5px 0;
}
  .container {
    left: 5vw;
    top: 80vh;
    width: 90vw;
    height: 100px;
}
.carte{
    width: 110px;
    height: 80px;
    border-radius: 30px;
    margin-right: 10px;
}
.navbar2 {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 180px;
    top: 5px;
}
a.contact, a.logo{
left: 0;
height: 50px;
font-size: 20px;
}
.insta{
    left: 45vw;
    top: 70px;
}
#prec, #suiv {
    top: 25%;
    width: 30px;

}

#light2box img{
    width: 80%;
}
#prev, #next {
    font-size: 50px;
}
#prev{
left: 5px;
}
#next{
right: 5px;
}
}
