/* Import font */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans');

/* Custom properties */

:root{
    --light-color: #fff;
    --light-color-alt: #afb6cd;
    --primary-background-color: #131417;
    --secondary-background-color: #252830;
    --hover-light-color: var(--light-color);
    --hover-dark-color: var(--primary-background-color);
    --gradient-color: linear-gradient(
        115deg,#4fcf70,#fad648,#a767e5,#12bcfe,#44ce7b);
    --transparent-light-color: rgba(255,255,255,.05);
    --transparent-dark-color: rgba(0,0,0,.75);
    --font-family: 'Poppins', sans-serif;
    --font-size-xxsm: 0.5rem;
    --font-size-xsm: 1.2rem;
    --font-size-sm: 1.6rem;
    --font-size-md: 2.4rem;
    --font-size-lg: 3rem;
    --font-size-xl: 4rem;
    --gap: 2rem;
    --margin-sm: 2rem;
    --margin-md: 3rem;
    --item-min-height-sm: 20rem;
    --item-min-height-md: 30rem;
}

/* Base styles */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} 

html{
    /* font-size: 10px; */
    font-size: 62.5%;
}

body{
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--light-color-alt);
    background-color: var(--primary-background-color);
    letter-spacing: 1px;
    transition: background-color .25s, color .25s;
    
}

a{
    text-decoration: none;
    color: inherit;
}

img{
    max-width: 100%;
    display: block;
}

ul{
    list-style: none;
}

input,
button{
    font: inherit;
    color: inherit;
    border: none;
    background-color: transparent;
    outline: none;
}

i{
    font-size: var(--font-size-md);
}

/* Theme color change */

body.light-theme{
    --light-color: #3d3d3d;
    --light-color-alt: rgba(0,0,0,.6);
    --primary-background-color: #fff;
    --secondary-background-color: #f1f1f1;
    --hover-light-color: #fff;
    --transparent-dark-color: #f1f1f1;
    --transparent-light-color: rgba(0,0,0,.1);
    /* --transparent-dark-color: rgba(80, 12, 12, 0.1); */
    
}

/* Reusable classes */

.container{
    max-width: 160rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.place-items-center{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.place-items-right{
    display: inline-flex;
    align-items: right;
    justify-content: right;
}

.screen-sm-hidden{
    display:none;
}

.section:not(.featured-articles){
    padding-block: 5rem;
}

.d-grid{
    display: grid;
}

.section{
    padding-block: 5rem;
}

/* Header */

.header{
    background-color: var(--secondary-background-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.navbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.5rem;
}

.logo{
    font-size: var(--font-size-md);
    color: var(--light-color);
    padding-right: 0px;
}

.menu{
    position: absolute;
    top: 8.5rem;
    right: 1.5rem;
    width: 23rem;
    padding: 1.5rem;
    background-color: var(--secondary-background-color);
    opacity: 0;
    transform: scale(0);
    transition: opacity .25 aese-in;
}

.list{
    display: flex;
    align-items: center;
    gap: var(--gap);
}

.list-center{
    display: flex;
    align-items: center;
    margin: auto;
    gap: var(--gap);
}

.menu > .list{
    flex-direction: column;
}

.close-menu-icon{
    display: none;
}

.btn{
    cursor: pointer;
}

.list-link:hover,
.btn:hover,
.btn:hover span{
    color: var(--light-color);
}

.moon-icon{
    display: none;
}

.light-theme .sun-icon{
    display: none;
}

.light-theme .moon-icon{
    display: block;
}

/* language selection */

.choosen-language{
    /* border: 1px solid red; */
    /* padding-left: 10%;
    padding-right: 10%; */
    margin-left: 15%;
    margin-right: 15%;
    margin-top: 1%;
    margin-bottom: -4%;
    text-align: center;
    
}

/* Header JavaScript Styles */

.header.activated{
    box-shadow: 0 1px .5rem --transparent-light-color;
}

.menu.activated{
    box-shadow: 1px 1px 1rem --transparent-light-color;
    opacity: 1;
    transform: scale(1);
}

.menu-toggle-icon.activated .open-menu-icon{
    display: none;
}

.menu-toggle-icon.activated .close-menu-icon{
    display: block;
}
/* Search */

.search-form-container{
    width: 100%;
    max-width: 100%;
    height: 100vh;
    background-color: var(--primary-background-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    opacity: 0;
    transform: scale(0);
    transition: opacity .5s;
}

.form-container-inner{
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    text-align: center;
}

.form{
    display: flex;
    justify-content: center;
}
.form-input,
.form-btn{
    display: inline-block;
    border: 2px solid var(--secondary-background-color);
    padding: 1.5rem;
}

.form-input{
    border-right: none;
    width: 100%;
}

.form-btn{
    margin-left: -.5rem;
    border-left: none;
    background-color: var(--secondary-background-color);
    width: 8rem;
}

.form-note{
    font-size: var(--font-size-xsm);
    align-self: flex-end;
}

.form-close-btn{
    position: absolute;
    top:1.5rem;
    right: 1.5rem;
    border: 2px solid var(--secondary-background-color);
    width: 4rem;
    height: 4rem;
    
}

/* Form JavaScript styles */

.search-form-container.activated{
    opacity: 1;
    transform: scale(1);
}

.presentation{

    text-align: justify;
    width: 100%;
}

/* Featured articles */

.featured-articles{
    padding-block: 2rem;
    display: block;
}

.section-header-offset{
    margin-top: 7.4rem;
}

.featured-articles-container,
.featured-content{
    gap: var(--gap);

}

.headline-description{
    max-width: 70%;
    /* border: 1px solid red; */
}

.headline-description-breaking-news{
    max-width: 70%;
    padding-left: 7px;
    /* border: 1px solid red; */
}

.headline-banner{
    background-color: var(--secondary-background-color);
    display: flex;
    align-items: center;
    gap: var(--gap);
    font-size: var(--font-size-xsm);
}
.headline-banner-breaking-news{
    background-color: var(--secondary-background-color);
    display: flex;
    align-items: center;
    /* gap: var(--gap); */
    font-size: var(--font-size-xsm);
}

.headline{
    color: var(--light-color);
    background-color: #000;
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    padding: .4rem;
    height: 100%;
}

.headline span{
    height: inherit;
}

.fancy-border{
    position: relative;
    overflow: hidden;
    /* padding-right: 10px; */
}

.output p{
    padding-left: 5px;
}

.fancy-border::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: var(--gradient-color);
    background-size: 50% 100%;
    z-index: 5;
}

.fancy-border span{
    position: relative;
    z-index: 10;
    display: inline-flex;
    padding: .6rem 1.5rem;
    background-color: var(--secondary-background-color);
}

.article{
    position: relative;
    min-height: var(--item-min-height-md); 
    max-height: auto; 
}

/* old version */

/* .article-image{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-fit: fill; 
    transition: transform .25s;
    padding-bottom: 20px;  
} */

.article-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* Focus on the top of the image to avoid cropping heads */
    transition: transform 0.25s;
    padding-bottom: 20px;
  }



#article-image-1{
    padding-bottom: 20px;
}
#article-image-2{
    padding-bottom: 20px;
}
#article-image-3{
    padding-bottom: 20px;
}

.article-image2{    /*utilisé pour artparjournal.php */
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* object-position: 100% 0; */
    transition: transform .25s;
}

.article-image-voici{    /*utilisé pour voici.php */
    position: absolute;
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    object-fit: fill;
    /* object-position: 100% 0px;  */
    object-position: 0px 0px; 
    
    transition: transform .25s;
}

.article-category{
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 1rem;
    font-size: 1rem;
    background-color: var(--primary-background-color);
    color: var(--light-color);
    text-transform: uppercase;
    z-index:10;
    /* display: flex; */
    /* height:max-content; */
}

.article-data-container{
    width: 100%;
    position: absolute;
    bottom:0;  
    /* Probleme: le container n'allais pas jusqu'au bas de l'image. Alors j'ai hardcodé le truc en chipotant a bottom */
    left: 0;
    padding: 2rem 1.5rem;
    background-color: var(--transparent-dark-color);
    z-index: 10;
    transition: background-color .5s;
    }

.article:hover .article-data-container{
    background-color: var(--hover-dark-color);
    color: var(--hover-light-color);
}

.article:hover .article-data-spacer{
    background-color: var(--hover-light-color);
    
}

.article-data{
    display: flex;
    align-items: center;
    gap: var(--gap);
    font-size: var(--font-size-xsm);
    margin-bottom: 1rem;
}

.article:hover .article-title{
    color: var(--hover-light-color)
}

.article-data-spacer{
    width: .5rem;
    height: .5rem;
    background-color: var(--light-color-alt);
    transform: rotate(45deg);
}

.article:hover .article-title{
    color: var(--hover-light-color);
}

.title{
    color: var(--light-color);
}

.article-title{
    font-size: var(--font-size-md);

}




.sidebar{
    background-color: var(--secondary-background-color);
    padding: 2.5rem;
    padding-top: 1.5rem;

}

.trending-news-box{
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    padding-block: 2rem;
    border: 1px solid --transparent-light-color;
}

.trending-news-box:last-of-type{
    border-bottom: none;
}

.trending-news-image-box{
    position: relative;
    width: 100%;
    height: var(--item-min-height-sm);
}

.featured-content-title{
    font-size: var(--font-size-md);
    text-align: center;
    padding: 1rem;
}

.trending-number{
    position: absolute;
    top: -1rem;
    left: -1rem;
    z-index: 15;
    width: 3rem;
    height: 3rem;
    background-color: var(--secondary-background-color);
    color: var(--light-color);
    border-radius: 50%;
}

.trending-news-data .article-title{
    font-size: var(--font-size-sm);
}

.trending-news-box:hover .article-title{
    color: var(--light-color-alt);
}

/* Quick read */

.section-title{
    position: relative;
    font-size: var(--font-size-md);
    margin-bottom: 6rem;
}

.section-title::after{
    content: attr(data-name);
    font-size: var(--font-size-lg);
    text-transform: uppercase;
    opacity: .1;
    position: absolute;
    top: 1.5rem;
    left: 2rem;
}

.article.swiper-slide{
    height: 40rem;
}

/* Quick read - Swiper */

.swiper-wrapper{
    height: auto;
}

.swiper-controls{
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--secondary-background-color);
}

.swiper-controls{
    font-size: 1.6rem;
    color: var(--light-color);
}

.swiper-pagination{
    bottom:.5rem !important;
}

.swiper-pagination-bullet{
    background-color: var(--light-color);
}

/* Older posts */

.older-posts-grid-wrapper{
    gap: var(--gap);
}

.older-posts-article-image-wrapper,
.older-posts .article{
    min-height: var(--item-min-height-sm);
}

.older-posts .article{
    background-color: var(--secondary-background-color);
}

.older-posts-article-image-wrapper{
    position: relative;
}

.older-posts-grid-wrapper .article-data-container{
    position: static;
    background-color: transparent;
}

.older-posts-grid-wrapper .article-title{
    margin-bottom: var(--margin-sm);
}

.see-more-container{
    margin-top: var(--margin-md);
    white-space: nowrap;
    width: 50%;
    margin-left: 25% ;
    margin-right: 25% ;
}

#see-more-container-next-page, #see-more-container-previous-page{
    display: inline;
    
}

.see-more-btn{
    text-transform: uppercase;
    margin-left:40%;
}

.see-more-btn i{
    transition: .25s;
}

.see-more-btn:hover i{
    transform: translateX(.5rem);
}

/* Popular tags */

.popular-tags-container{
    gap: var(--gap);
}

.popular-tags-container .article{
    min-height:  var(--item-min-height-sm);
    overflow: hidden;
}

.tag-name{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--transparent-dark-color);
    padding: 1rem 2rem;
    z-index: 10;
}

.popular-tags-container .article:hover .tage-name{
    color: var(--light-color);
}

.popular-tags-container .article:hover .article-image{
    transform: scale(1.05);
}

/* Newsletter */

.newsletter{
    padding-bottom: 6rem;
}

.newsletter-title{
    font-size: var(--font-size-lg);
}

.newsletter-description{
    margin-bottom: 3rem;
}

/* Footer */

/* .footer{
    background-color: var(--secondary-background-color);

}

.footer-container{
    gap: var(--gap);
}

.company-data{
    display: flex;
    flex-direction: column;
    order: 1;

    text-align: justify;
    text-justify: inter-word;

}

.company-description{
    margin-block: var(--margin-sm);
}

.social-media{
    margin-bottom: var(--margin-md);
}

.copyright-notice{
    opacity: .8;
    
}

.footer-list{
    flex-direction: column;
    align-items: flex-start;
}

.footer-title{
    font-size: var(--font-size-md);
    transform: uppercase;
    margin-bottom:  var(--margin-sm);
}

.copyright-notice a{
    color: rgb(134, 134, 201);
} */

/* .footer {
    background-color: var(--secondary-background-color);
    color: var(--light-color);
    padding: 2rem 0;
    text-align: left;
}

.footer-container {
    display: grid;
    gap: 2rem;
}

.company-data {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-links-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-section {
    flex: 1;
}

.vertical-divider {
    width: 1px;
    background-color: #ccc;
    margin: 0 2rem;
    height: 100%;
}

.footer-title {
    font-size: var(--font-size-md);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list .list-link {
    color: var(--light-color-alt);
    transition: color 0.3s;
}

.footer-list .list-link:hover {
    color: var(--light-color);
} */

.footer-grid {
    display: grid;
    grid-template-columns: auto 50%  auto; /* 3 equal-width columns */
    gap: 20px; /* Optional: space between grid cells */
    padding: 20px; /* Optional: padding around the grid */
    background-color: #333; /* Optional: footer background color */
    color: white; /* Optional: text color */
    /* position: fixed; */
    bottom: 0; 
  }
  
  .footer-cell {
    padding: 10px;
    /* background-color: #444; Optional: cell background color */
    text-align: center; /* Optional: center text in each cell */
  }


  


/* Scrollbar styles */

::-webkit-scrollbar{
    width: 1rem;
}

::-webkit-scrollbar-track{
   background-color: #f1f1f1;
}


::-webkit-scrollbar-thumb{
    background-color: #3f4252;
}

::-webkit-scrollbar-thumb:hover{
    background-color: #2e303b;
}
/* Blog post */

.blog-post{
    padding-bottom: 5rem;
}

.blog-post-data{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-block: 2.5rem;
}

.blog-post-title{
    font-size: clamp(3rem, 5vw, 6rem);           /* responsive typography */
}

.blog-post-data .article-data{
    margin-bottom: 2.5rem;
}

.blog-post-data img{
    width: 100%;
    height: var(--item-min-height-sm);
    object-fit: cover;
    object-position: center 10%;
}

.blog-post-container .container{
    max-width: 90rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.quote{
    background-color: var(--secondary-background-color);
    padding: 2.5rem;
    border-radius: 10px;
}

.quote p{
    font-style: italic;
}

.quote span i{
    font-size: 3.5rem;
}

.author{
    margin-top: 5rem;
    gap: var(--gap);
    background-color: var(--secondary-background-color);
    border-radius: 10px;
}

.author-image-box{
    position: relative;
    height: var(--item-min-height-sm);
    display: flex;

}

.author-about{
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 15px;
}

.author-name{
    color: var(--light-color);
    font-weight: 400;
}

.author p{
    max-width: 50rem;
    margin-bottom: 1rem;
}

.author-about .social-media{
    margin-top: auto;
    margin-bottom: 0;
}

/* pagination styling */

.pagination {
    display: flex;
    justify-content: space-between;
    padding-left: 35%;
    padding-right: 35%;

}

.partie-recherche{
    border: 1px solid red; 
    display: flex;
    justify-content: center;
    align-items: center;
    width:100%;
    height: 30%;
}

.partie-recherche-form-container{
    border: 1px solid blue;
    background-color: white;
    width:40%;
    height: 30%;

}

.presentation{
    /* border: 1px solid red; */
    width: 60%;
    justify-content: center;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2%;
}

.presentation-text{
    text-align: justify;
    text-justify: inter-word;
    
}


/* Dropdown Button */

.dropbtn {
    padding: 0px;
    font-size: 16px;
    border: none;
    cursor: pointer;
  }
  
  /* Dropdown button on hover & focus */
  .dropbtn:hover, .dropbtn:focus {
    /* background-color: #2980B9; */
    color: white;
    background-color: var(--secondary-background-color);
  }
  /* Dropdown Content (Hidden by Default) */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #252830;
    /* background-color: #f1f1f1; */
    min-width: 100px;
    /* box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.2); */
    z-index: 1;
  }
  
  /* Links inside the dropdown */
  .dropdown-content a {
    color: #afb6cd;
    /* color: black; */
    padding: 10px 10px; 
    text-decoration: none;
    display: block;
  }
  
  /* Change color of dropdown links on hover */
  /* .dropdown-content a:hover {background-color: #ddd;} */
  
  /* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
  .show {display:block;}

/* Dropdown Button */
.dropbtn2 {
    /* background-color: #3498DB; */
    /* color: white; */
    padding: 0px;
    font-size: 16px;
    border: none;
    cursor: pointer;
  }
  
  /* Dropdown button on hover & focus */
  .dropbtn2:hover, .dropbtn2:focus {
    /* background-color: #2980B9; */
    color: white;
    background-color: var(--secondary-background-color);
  }
  
  /* The container <div> - needed to position the dropdown content */
  .dropdown2 {
    position: relative;
    display: inline-block;
  }
  
  /* Dropdown Content (Hidden by Default) */
  .dropdown-content2 {
    display: none;
    position: absolute;
    background-color: #252830;
    min-width: 100px;
    /* box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.2); */
    /* border: 1px solid red; */
    
    z-index: 1;
  }
  
  /* Links inside the dropdown */
  .dropdown-content2 a {
    /* color: black; */
    color: #afb6cd;
    padding: 10px 10px; 
    text-decoration: none;
    display: block;
  }
  
  /* Change color of dropdown links on hover */
  /* .dropdown-content2 a:hover {background-color: #ddd;} */
  
  /* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
  .show2 {display:block;}


/* .recherche-container{
    border: 1px solid red; */
    /* padding: 100px 0 0 0; */
/* } */




/* css de filtres.php  */

.recherche-container-form{
    /* border: 1px solid blue; */
    text-align: center;

    margin-bottom: 0;
}

.recherche-container-form-placeholder{
    border: 1px solid gray;
    width: 30%;
    height: 50px;
    background-color: white;
}



.container-tableau-filtres{
    padding-top: 25px;
    height: auto;

}

.quote{
    /* border: 1px solid blue; */
    padding-bottom:100px;
    margin-bottom: 25px;
}


/* newletterpart */


.newsletter-description a{
    color: rgb(134, 134, 201);
}

.newsletter-form-container {
    /* border: 1px solid blue;   */
    align-items: center;
    margin-right: 15px;
    margin-left: 15px;

    /* flex-direction: column; */
    
}

.newsletter-form-container-input{
    padding: 10px;
    border: 1px solid grey;
    display: block;
    /* border:  1px solid blue; */
    margin: auto;
}

.newsletter-form-container{
    text-align: center;
}

.container-newsletter-p{
    padding: 15px;
    
}

/* .newsletter-submit-button{
    border: 1px solid #f1f1f1; 
} */

.newsletter-submit-button:hover{
    color: rgb(134, 134, 201);
}

.container-newsletter-intro{
    align-items: center;
    margin: auto;
    width: 500px;
    justify-content: center;
    text-align: center;
    font-size: 1.6rem;
    width: 100%;
    word-wrap: break-word;
    
}

.newsletter-intro-div{
    padding: 10px;
}

.select-multiple-element{
    margin-top: 30px;
}


.checkbox-div{
    margin-top: 30px;
}

.container-newsletter {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px; 
    text-align: center;
}
 

.column-newsletter {
    /* flex: 50%; */
    flex-basis: 50%;
    padding: 10px;
    box-sizing: border-box;
    align-items: center;
    /* border: 1px solid yellow; */
    padding: auto;
    
}

.checkbox-newsletter {
    display: block;
    margin-bottom: 10px;
    /* border: 1px solid green;   */
    /* align-content: start;  */
    text-align: left;
    /* text-align: center; */
    word-wrap: break-word;
    padding-left: 30%;

}

/* css scrolling menu newsletterform.php */

.lien-desabonnement{
    color: rgb(134, 134, 201);
}

.vertical-menu {
    width: 200px; /* Set a width if you like */
    margin:auto;
  }
  
.vertical-menu a {
    background-color: lightgray; /* Grey background color */
    color: black; /* Black text color */
    display: block; /* Make the links appear below each other */
    padding: 12px; /* Add some padding */
    text-decoration: none; /* Remove underline from links */
  }
  
.vertical-menu a:hover {
    background-color: #ccc; /* Dark grey background on mouse-over */
  }
  
.vertical-menu a.active {
    background-color: var(--secondary-background-color); /* Add a green color to the "active/current" link */
    color: var(--light-color-alt);
  }

.vertical-menu {
    width: 200px;
    height: 150px;
    overflow-y: auto;
  }

/* connexion.php */


.connexion-main-container{
    width: 80%;
    height: auto;
    margin: auto;
    text-align: center;
    border: 1px solid red;
}

/* adminpanel */

.text-center-adminpanel{
    text-align: center;
}

.wrapper-adminpanel{
    /* border: 1px solid red; */
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(4, 1fr);
    margin-left: 25px;
    margin-right: 25px;
    height: auto;
    /* border: 1px solid pink; */
}


.dashboard-title{
    /* margin-left: 25px; */
    text-align: center;
}

.col-4-adminpanel{
    border: 2px solid grey;
    gap: 25px;
    padding-bottom: 25px;
}

.container-graphique-articlesparjour{
    border: 1px solid red;
}


#article-image-3{
    /* object-fit: contain; */
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.articles-par-journal-container-border{
    border: 3px solid #f1f1f1;
}


.first-plot > img{
    /* border: 1px solid blue; */
    place-items: center;
    margin: auto;
}

.second-plot > img{
    /* border: 1px solid blue; */
    place-items: center;
    margin: auto;
}

.tird-plot > img{
    /* border: 1px solid blue; */
    place-items: center;
    margin: auto;
}

.fourth-plot > img{
    /* border: 1px solid blue; */
    place-items: center;
    margin: auto;
}

/* customisation of the navbar */

.two-lines-grid-container{
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(1, 100%);
    /* border: 1px solid yellow; */
    margin-left: auto;
    margin-right: auto;
    width: auto;
}

.grid-first-line,
.grid-second-line,
.grid-zero-line{
    /* grid-column: col-start / span 12; */
    /* border: 1px solid pink; */
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

#langMenu{
    text-decoration: none;
}

#TimeMenu{
    text-decoration: none;

}

#icons-container{
    display: flex;
    align-items: center;
    justify-content: center; /* Pour centrer horizontalement */
    margin: auto;
    width: 50%;
    gap:15px; 
}

/* les publicités */

.commercial-placeholder-image-container{
    /* border: 1px solid red;  */
    text-align: center;
    width: 80%;
    margin: auto;
    display: grid;
    padding-bottom: 5px;
    grid-template-columns: repeat(2, 1fr);
}

.commercial-image{
    align-items: center;
}

.commercial-placeholder-image-container-left{
    border: 1px solid yellow;
    display: flex;
    justify-content: center;
    align-items: center;
}

.commercial-placeholder-image-container-right{
    border: 1px solid green;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* overlay */

/* modal */

.modal {
    margin: 100px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #666;
    /* width: 300px; */
    width: 80%;
    /* height: 700px; */
    height: auto;
    border-radius: 6px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10000
    /* border: 1px solid red; */
  }
  .modal h2 { margin-top: 0; }
  .modal .close {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 20px;
    right: 20px;
    opacity: 0.8;
    transition: all 200ms;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #777;
  }
  .modal .close:hover { opacity: 1; }
  .modal .content {
    max-height: 400px;
    overflow: auto;
    
  }
  .modal p {
    margin: 0 0 1em;
    text-align: center;
  }
  .modal p:last-child { margin: 0; }

  .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 200ms;
    visibility: hidden;
    opacity: 0;
    z-index: 9999
  }
  .overlay .cancel {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: default;
  }
  .overlay:target {
    visibility: visible;
    opacity: 1;
  }

  .modal-form-container {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
    margin-left: 10px;
    /* border: 1px solid red; */
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 1fr 1fr 1fr; /* Trois colonnes de largeur égale */
  }
  
  .modal-form {
    border: 3px solid grey;
    padding: 10px; /* Ajoutez un peu de marge intérieure pour l'espace entre les éléments */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: auto;
}

.modal-form fieldset {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal-width columns */
    gap: 15px; /* Space between the columns and rows */
    border: none; /* Remove the default fieldset border */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}
  
  .modal-form label {
    /* display: inline-block;
    text-align: left; 
    vertical-align: middle; 
    margin-bottom: 5px;  */
    display: block;
  }
  
  .modal-form input[type="checkbox"] {
    vertical-align: middle;
    position: relative;
    bottom: 1px;
    padding-left: 5px;
}

.modal-form.align-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

/* navbar stuff  */

/* Container for logo and language picker */
.logo-language-container {
    display: flex;
    align-items: center; /* Align items vertically centered */
}

/* Adjust spacing between the logo and language picker */
.language-picker {
    margin-left: 15px; /* Adjust this value as needed */
}

    
/* .custom-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
}
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo {
    margin: 0;
}

.language-selector-affichage {
    position: relative;
    margin-left: 20px; 
}

.language-affichage-box {
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.language-affichage-arrow {
    margin-left: 7px;
    font-size: 20px;
    transform: rotate(-90deg); 

}

.language-affichage-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background-color: #fff;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 1;
}

.language-affichage-options li {
    padding: 5px;
    cursor: pointer;
}

.language-selector-affichage:hover .language-affichage-options {
    display: block;
}

.language-affichage-options .language-option {
    padding: 5px;
    cursor: pointer;
} */

.modal-form-container {
    margin: 10px;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 1fr 1fr 1fr; /* Three equal-width columns */
}

.modal-form {
    border: 3px solid grey;
    padding: 10px;
    display: flex;
    flex-direction: column;
    text-align: left; /* Align content to the left */width: auto;
}

.modal-formh2 {
    text-align: center;
    margin-bottom: 10px;
}

.modal-formlabel {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Space between checkboxes */
}

.modal-forminput[type="checkbox"] {
    appearance: none; /* Remove default checkbox styling */width: 20px;
    height: 20px;
    margin-right: 10px; /* Space between checkbox and label text */border: 2px solid grey; /* Custom border with increased width */border-radius: 3px; /* Optional: Rounded corners */background-color: #fff;
    cursor: pointer;
    position: relative;
}

.modal-forminput[type="checkbox"]:checked {
    background-color: #007bff; /* Background color when checked */border-color: #007bff; /* Border color when checked */
}

.modal-forminput[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 02px2px0;
    transform: rotate(45deg);
}

.modal-forminput[type="checkbox"]:focus {
    outline: none;
    box-shadow: 002px2px#007bff; /* Blue glow on focus */
}



/* modal */

/* .custom-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 15px; 
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo {
    margin: 0;
}

.language-selector-affichage {
    position: relative;
    margin-left: 20px;
}

.language-affichage-box {
    background-color: #333;
    color: white;
    padding: 8px15px; 
    border-radius: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease; 
}

.language-affichage-box:hover {
    background-color: #444; 
}

.language-affichage-arrow {
    margin-left: 10px;
    font-size: 18px;
    transition: transform 0.3s ease; 
}

.language-selector-affichage.open.language-affichage-arrow {
    transform: rotate(0deg); 
}

.language-affichage-options {
    display: none;
    position: absolute;
    top: calc(100% + 5px); left: 0;
    list-style: none;
    background-color: #fff;
    padding: 5px0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 04px8pxrgba(0, 0, 0, 0.1); z-index: 1;
}

.language-affichage-optionsli {
    padding: 8px15px;
    cursor: pointer;
    transition: background-color 0.3s ease; 
}

.language-affichage-optionsli:hover {
    background-color: #f0f0f0; 
}

.language-selector-affichage:hover.language-affichage-options {
    display: block;
}

.language-option {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.language-option:hover {
    color: #000;
}

.language-option:focus {
    outline: none;
    background-color: #ddd;
} */

/* Container for centering and spacing buttons */.filter-form-buttons-container {
    display: flex;
    justify-content: center; /* Center the buttons horizontally */gap: 20px; /* Space between the buttons */margin-top: 20px; /* Add some space above the buttons if needed */
}

/* Base styles for all buttons related to the filter form */.filter-form-button {
    background-color: #007bff; /* Primary blue color */color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-form-button:hover {
    background-color: #0056b3; /* Darker blue on hover */box-shadow: 04px8pxrgba(0, 0, 0, 0.1); /* Subtle shadow on hover */
}

/* Specific styles for the Submit button */.filter-form-submit {
    background-color: #28a745; /* Green color for submit */
}

.filter-form-submit:hover {
    background-color: #218838; /* Darker green on hover */
}

/* Specific styles for the Cancel button */.filter-form-cancel {
    background-color: #dc3545; /* Red color for cancel */
}

.filter-form-cancel:hover {
    background-color: #c82333; /* Darker red on hover */
}



#body-donations{
    display: grid; 
    grid-template-rows: auto 1fr auto;
    height: 100vh; 
    margin: 0;
}

/* #app-functionality-donations{
    margin-top: 150px; 
    margin-bottom: 110px; 
    height:275px;
    margin-left: 27%;
    margin-right: 27%;
} */

#body-newsletter{
    display: grid; 
    grid-template-rows: auto 1fr auto;
    height: 100vh; 
    margin: 0;
}

/* #app-functionality-newsletter{
    margin-top: 150px; 
    margin-bottom: 110px; 
    height:auto;
    margin-left: 27%;
    margin-right: 27%;
    width: auto;
} */

#body-contact{
    display: grid; 
    grid-template-rows: auto 1fr auto;
    height: 100vh; 
    margin: 0;
}

/* #app-functionality-contact{
    margin-top: 150px; 
    margin-bottom: 110px; 
    height:250px;
    margin-left: 27%;
    margin-right: 27%;
} */

.app-functionality {
    background-color: var(--secondary-background-color); /* A dark gray background for contrast with black */
    padding: 50px 20px;
    color: var(--light-color);
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* margin: 0 auto;   */
    /* margin-left: 12%;
    margin-right: 12%; */
    /* margin-left: 25%; */
    width: 75%;
    /* place-content: center; */
    margin-left: auto;
    margin-right: auto; 
    height: auto;
    margin-top: 15px;
    margin-bottom: 15px;

}

.app-functionality .container {
    /* max-width: 800px;   Limits the section width */
    width: 90%;  /* Ensures it doesn't take up the full screen width on smaller screens */
    margin: 0 auto;  /* Centers the container */
    
}

.app-functionality .section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.app-functionality .functionality-description p {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center; /* Justifies the text */
    width: 100%;

}

.app-functionality .functionality-description .highlight {
    font-weight: 700;
    font-size: 1.8rem;
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
    text-align: center; /* Keeps these specific elements centered */
}

.app-functionality .functionality-description .ending-note {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 30px;
    text-align: center; /* Keeps these specific elements centered */
}

.app-functionality .functionality-description p {
    transition: all 0.3s ease-in-out;
    
}

.app-functionality .functionality-description p:hover {
    transform: scale(1.05);
    /* color: #fafafa; */
}


@media (min-width: 1px) and (max-width: 768px) {
    .app-functionality {
        width: 95%;
        margin: auto;
    }
}


/* Entre 768px et 1024px */
@media (max-width: 768px){
    .author-image-box{
        margin-bottom: 100px;
        
    }


    .author .d-grid{
        row-gap: 50px;
    }

    .author-image-box .article-image{
        height: auto;
        padding-bottom: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .app-functionality {
        width: 75%;
    }

    /* .author d-grid{
        gap: 5px;
    } */
}

/* Au-delà de 1024px */
@media (min-width: 1025px) {
    .app-functionality {
        width: 50%;
    }

}




@media (max-width: 728px) {
    .modal-form-container {
      grid-template-columns: 1fr; /* Une seule colonne */
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Change à une seule colonne */
      }

    }




    



/* Media query pour les écrans de taille maximale de 1024px */
@media (max-width: 1024px) {
    .commercial-placeholder-image-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }


}

/* Media query pour les écrans de taille maximale de 768px */
@media (max-width: 768px) {
    /* Aucun changement supplémentaire nécessaire, car les images seront déjà empilées en une colonne */
    /* #app-functionality-newsletter{
        margin-top: 75px; 
        height:225px;
    } */

    .footer-cell {
        padding: 0px 0px;
    }

    .wrapper-adminpanel {
        grid-template-columns: repeat(1, 1fr);
        
    }

}




@media screen and (min-width:600px){

    /* .article-data-container{
        max-height: 20px;
    } */

    /* .sidebar-d-grid-custom{
        border-top: red 30px solid;
    } */

    /* #tendingNewsCustom {
        /* border-top: 15px black; */
        /* border-top: 35px #000 solid; */
    /* } */ 

    /* .article-title{
        /* font-size: var(--font-size-md); 
        font-size: var(--font-size-xsm);
    /* }  */

    /* .menu{
        position: initial;
        width: initial;
        padding: initial;
        background-color: transparent;
        opacity: initial;
        transform: initial;
    }

    .menu > .list{
        flex-direction: row;
    } */



    .trending-news-box{
        flex-direction: row;
        align-items: center;
    }

    .trending-news-image-box{
        width: 50%;
    }

    .trending-news-data{
        margin: auto;
        text-align: center;
    }

    .newsletter-description{
        max-width: 40rem;
    }

    .popular-tags-container,
    .footer-container{
        grid-template-columns: repeat(3, 1fr);
    }

    .form-container-inner{
        align-items: center;
    }

    .compagny-data{
        order: 0;
    }

    .author{
        grid-template-columns: 25rem 1fr;
        row-gap: 20px;
    }

    .title .article-title{
        /* font-size: var(--font-size-md); */
        font-size: var(--font-size-xsm);
    }

    


}


@media screen and (min-width:768px){


    /* #tendingNewsCustom {
        /* border-top: 15px black; */
        /* border-top: 35px #000 solid; */
    /* } */ 

    /* #article-image-1{
        font-size: var(--font-size-xsm);
        }
    } */


    .featured-content{
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 5rem repeat(4, 1fr);
    }

    .headline-banner-breaking-news{
        grid-column: 1/-1;
        font-size: var(--font-size-sm);
    }

    .featured-articles{
        grid-column: 3/-1;
        grid-row: 2/4;
    }

    .featured-articles-1{
        grid-column: 1/3;
    }

    .featured-articles-3{
        grid-column: 1/-1;
        grid-row: 4/6;
        /* padding-bottom: 1.5rem; */
    }

    .older-posts .article{
        grid-template-columns: 25rem 1fr;
    }

    .older-posts-article-image-wrapper{
        height: auto;
        /* height: 50px; */
    }

    .blog-post-data img{
        height: var(--item-min-height-md);
    }


}

@media screen and (max-width:1024px){
    .grid-second-line{
        transform: translateY(-20px);

    }
}

@media screen and (min-width:1024px){

    /* #tendingNewsCustom {
        /* border-top: 15px black; */
        /* border-top: black; */
    /* }  */

    .menu{
        position: initial;
        width: initial;
        padding: initial;
        background-color: transparent;
        opacity: initial;
        transform: initial;
    }


    .menu > .list{
        flex-direction: row;
    }

    .screen-lg-hidden{
        display: none;
    }

    .screen-sm-hidden{
        display: block;
    }

    .sign-up-btn{
        padding: .4rem;
    }

    .btn.fancy-border:hover::before{
        animation: animate_border .75s linear infinite;
    }

    @keyframes animate_border {
        to{
            transform: translateX(-50%);
        }
    }

    .featured-articles-container{
        grid-template-columns: 1fr 40rem;

    }

    .trending-news-image-box{
        width: 10rem;
        height: 10rem;
    }

    .popular-tags-container{
        grid-template-columns: repeat(3,1fr);
    }

    .footer-container{
        grid-template-columns: repeat(4,1fr);
    }

    .company-data{
        grid-column: span 2;
    }

    .company-description{
        max-width: 85%;
    }

    .compagny-notice{
        margin-top: auto;
    }

    .blog-post-data img{
        height: 40rem;
    }


}

@media screen and (min-width:1200px){
    .older-posts-grid-wrapper{
        grid-template-columns: repeat(2, 1fr);
    }
}



/* AJOUT DE CHAT GPT ETE 2024 */

/* partie presentation */

/* Enhanced App Functionality Section */

/* Enhanced App Functionality Section */

/* Enhanced App Functionality Section */



/* @media (max-width: 768px) {
    .app-functionality .section-title {
        font-size: 2rem;
    }
    .app-functionality .functionality-description p {
        font-size: 1.4rem;
    }
} */






