@import url('https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@700&family=Raleway:wght@400;500;600;700;800&display=swap');

body {
    margin: 0;
    padding: 0;
}

h1{
    text-align: center;
    margin: 50px;
}

header {
    display: flex;
    align-items: center;
    background: white;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

nav img {
    height: 40px;
}

.topnav {
    overflow: hidden;
    background-color: white;
    width: 100%;
    display: flex;
    align-items: center;
}

.topnav a {
    float: left;
    display: block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    color: #2eea4a;
}

.topnav .icon {
    display: none;
    font-size: 38px;
}

@media screen and (max-width: 576px) {
    .topnav a:not(:first-child) {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
    }

    .topnav {
        display: block;
    }

    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
    footer {
        font-size: 5px;
    }
    footer a {
        font-size: 5px;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        margin-bottom: 10px;
    }
    
}

div#slider {
    width: 100%;
    overflow: hidden
}

div#slider figure {
    position: relative;
    width: 500%;
    margin: 0;
    padding: 0;
    font-size: 0;
    left: 0;
    text-align: left;
    animation: 30s slidy infinite;
}

div#slider figure img {
    width: 20%;
    height: auto;
    float: left;
}

@keyframes slidy {
    0% {
        left: 0%;
    }

    20% {
        left: 0%;
    }

    25% {
        left: -100%;
    }

    45% {
        left: -100%;
    }

    50% {
        left: -200%;
    }

    70% {
        left: -200%;
    }

    75% {
        left: -300%;
    }

    95% {
        left: -300%;
    }

    100% {
        left: -400%;
    }
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    width: 90%;
    margin: auto;
}

/*------------------------------PAGE LISTING------------------------------------*/

.card{
    margin:0 30px 50px 30px;
    width:300px;
    font-family:'Zilla Slab', serif;
    background-color:#fff;
    border:5px solid black;
    box-shadow:0 0 0 7px #fff,0 0  8px 5px #000;
  }
  .card-image{
    position: relative;
    width:100%;
    border-bottom:5px solid #000;
    z-index:1;
  }
  .card-image>img{
    position: absolute;
    z-index:2;
    width:100%;
  }
  .card-image{
    height:330px;
  }
  
  .card-text{
    padding: 0 5%;
    position: relative;
  }

  .nbvues{
    position: absolute;
    top: -55px;
    right: 5%;
  }

  .card-info p{
    margin: 0;
    font-size: 1rem;
  }

  .card-text h2{
    font-family:'Open Sans Condensed', sans-serif;
    text-align:center;
    font-weight: bold;
    font-size: 1.5rem;
    margin: 50px 0 20px 0;
  }

  .card-info{
    display: flex;
    justify-content: space-between;
  }

  .resume {
    text-align: justify;
  }

/*------------------------------PAGE RECHERCHE----------------------------------*/
.search-container {
    margin-bottom: 20px;
    width: 80%;
}
.search-container input {
    padding: 10px;
    width: 100%;
    height: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    outline: none;
}

form button{
    height: 42px;
}

/*------------------------------PAGE ADMIN----------------------------------*/

.adminbutton {
    margin: 20px;
    background-color: #18cd33;  
    border: none;
    border-radius: 25px;
    color: white;
    padding: 15px 15px;
    text-align: center;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.5) 3px 3px 10px;
}

.adminbutton a {
    text-decoration: none;
    font-size: 16px;
    color: white;
    font-weight: bold;
}

/* Style du tableau */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid black;
    text-align: center;
}

table th, table td {
    padding: 15px;
    border: 1px solid black;
}

table tr:hover {
    background: #a6fbb3;
    transition: 0.3s;
}


/*-----------------------------FOOTER----------------------------------------*/
footer {
    background: #f8f8f8;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #ddd;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-socials {
    margin-bottom: 10px;
}

.social-icon {
    text-decoration: none;
    font-size: 20px;
    margin: 0 8px;
}

.footer-text {
    font-size: 12px;
    color: #777;
    margin-top: 20px;
    margin-bottom: 5px;
}