@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

*{
    font-family:"Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.295)20%, rgba(0, 0, 0, 0.535)), 
                url('../img/main.jpg') repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: black;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
h1 {
    color: #fff;
}
h2 {
    color: #fff;
}
p {
    color: #fff;
    line-height: 1.5em;
}
.p-1 {
    padding-top: 10px;
}
i {
    margin-left: 10px
}
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    margin-bottom: 50px;
    padding: 20px 100px;
    background: black;
    display:flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    
}
.Logo {
    font-size: 32px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
sup {
    font-size: 16px;
}
.navbar a {
    position: relative;
    font-size: 18px;
    color: #fff;
    text-shadow: 1px 1px 15px #000000;
    font-weight: 500;
    text-decoration: none;
    margin-left: 40px;
}
.navbar a::before {
    content: '';
    position: absolute;
    top:100%;
    left:0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: .3s;
}
.navbar a:hover::before {
    width: 50%;
}
.navbar .toggle_btn {
    color:white;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

main {
    position: relative;
    padding: 20px 20px;
    /* border: 2px solid white; */
    border-radius: 20px;
    background-color: #00000098;
    width: 95%;
    height: auto;
}
/*block news*/

.news {
    display: flex;
    flex-direction: row;
}
.news img{
    width: 90%;
    border-radius: 10px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    top:0;
    left:0;
    box-shadow: 0 0 10px 5px #000;
    margin-bottom: 15px;
    object-fit: cover;
    overflow: hidden;
}
.title-n {
    display: flex;
    justify-content: flex-start;
    margin-right: auto;
    margin-left: auto;
    flex-wrap: wrap;
    flex-direction: row;
    padding-left: 20px;
}

/* Middle bande */
.middle_band {
    margin-top: 30px;
    margin-bottom: 30px;
    background-color: #000;
    width: 100%;
    height: 200px;
    box-shadow: 0 0 12px 8px #000;
}
.middle_band h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}
.middle_band p {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    align-items: center;
    justify-content: center;
    text-align:justify;
}


/*block artciles par 3*/
section {
    display: flex;
    justify-content: space-evenly;
}
.art1, .art2, .art3 {
    top:0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: relative;
    padding: 20px 20px;
    /* border: 2px solid white; */
    border-radius: 20px;
    background-color: #00000098;
    width: 30%;
    height: auto;
}

.art1 .art2, img {
    width: 90%;
    border-radius: 10px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 10px 5px #000;
    margin-bottom: 15px;
    object-fit: cover;
    overflow: hidden;
}

/* FOOTER */

footer {
    width: 100%;
    height: auto;
    background-color: #000;
    margin-top: 20px;
    padding-top: 20px;
    padding-bottom: 20px ;
    
}
footer ul, li {
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    color: white;
    list-style-type: none;
    padding-left: 10px;
}
footer ul {
    padding-bottom: 20px;
}
 footer p {
    padding: 5px;
    opacity: 0.5;
    align-items: center;
    text-align: center;
 }
 footer a {
    text-decoration: none;
    color: white;
 }
 footer li a:hover {
    color: orange;
 }

/* dropdown */
.dropdown_menu {
    display: none;
    position: absolute;
    right: 2rem;
    top: 70px;
    width: 300px;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.dropdown_menu.open {
    height: 200px;
}
.dropdown_menu a {
    display: flex;
    justify-content: center;
    align-items: center;
    color:white;
    text-decoration: none;
    padding: 0.7rem;
}
.dropdown_menu a:hover {
    color: orange;
}

/* responsive */
@media (max-width: 850px) {
    header {
        background-color: black !important;
    }
    .navbar a{
        display: none;
    }
    .navbar .toggle_btn {
        display:block;
    }
    .dropdown_menu {
        display: block;
    }
    .news img{
    width: auto;
    object-fit: cover;
    overflow: hidden;
    }
    
}
@media (max-width: 576px) {
    .dropdown_menu {
        left: 2rem;
        width:unset;
    }
    .news {
        display: flex;
        flex-direction: column;
    }
    .header {
        padding: 20px;
    }
    
    main {
        padding: 0;
    }
    .news img {
        width: 100%;
        border-radius: 20px 20px 0 0;
        border: none;
        box-shadow: none;
        margin-left: 0;
        margin-right: 0;
        margin-bottom:10px;
        object-fit: cover;
        overflow: hidden;
    }
    .news p {
        padding-bottom: 20px;
    }
    .middle_band {
        height: auto;
    }
    section {
        display: flex;
        flex-direction: column;
    }
    .art1, .art2, .art3 {
        display: flex;
        width: 100%;
        padding: 10px;
        border-radius: 0;
    }
    .art1 {
        padding-top: 20px;
    }
    section p {
        margin-bottom: 20px;
    }
    .lineSeparat {
        display: flex;
        position:relative;
        flex-wrap: wrap;
        width: 60%;
        background-color: white;
        height: 3px;
        margin: 10px;
        margin-left: auto;
        margin-right: auto;
    }
}