/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

:root {

	--oasis-primary: #6300CE;
	--oasis-secondary: #FFC7EF;
	--oasis-soft: #FFEFD6;
	--oasis-accent: #FF65CE;

}

body,header .inside-header{
	background: var(--oasis-secondary);
}

header .inside-header{
	min-width: 100%;
}

#page{
	min-width: 100%;
	background: var(--oasis-secondary);
}








/*########################   Sidebar    ######################*/


.pm-login-box-bottom-container a{

    display: block;
    width: 100%;
    margin-left: 0px!important;
    padding: 25px 0 0 0;
    text-align: center;
}

#left-sidebar   h5{
    font-size: 15px;
}
#left-sidebar  .eael-item-active{
    color: #fff;
}

#left-sidebar .menu-item a:hover{

    color: #000;
}
.oasis-admin-menu h4{
    margin-bottom: 3px;
}
#primary{
	width: 73%;
}
#left-sidebar{
	width: 15%;
}
#right-sidebar{
    width: 12%;
}

#left-sidebar aside, #right-sidebar aside{
    padding: 5px 12px;
    background: var(--oasis-secondary);
}

.widget-area .widget{
	padding: 0px;
}
.sidebar .sidebar-title{
	margin-bottom: 0px;
}
.sidebar-title h2{

	padding: 3px 7px;
	color: #fff;
	background: var(--oasis-primary);
	margin-top: 0px;
}


#left-sidebar .pmagic .pm-login-box {

    width: 100%!important;
}

#left-sidebar .pmagic .pm-login-box  h3{
    font-size:12px!important;
    margin-bottom: 0px;
}

#left-sidebar .pmagic .pm-login-box  p{display:none}

#left-sidebar .pmagic .pm-login-box  .pm-login-header-buttons {
    padding: 0px;
}
#left-sidebar .login-home p{
    margin-bottom: 0px!important;
}










/*########################   Page rubrique forum   ######################*/

.single-forum  h1{
    font-size: 25px;


}

.bsp-new-topic{

    display: flex;
    justify-content: end;

}
.bsp-new-topic a{
    display: block;
    padding: 17px 35px;
    background: #CE6600;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}
#bbpress-forums .bbwptw-description{
    padding: 15px 40px;
    background: #fff;
    border-radius: 7px;
    font-size: 19px;
}

/*#bbpress-forums .bbp-breadcrumb{
    display: none;
}*/

.bbp-pagination-links{
    margin-bottom: 15px;
    margin-top: -15px;
}
.topics-count{
    margin-bottom: 15px;
}
#subscription-toggle{
    display: none!important;
}

.forum-moderators{
    padding: 7px 0;
}

.rubrique-forum .bbp-breadcrumb{
	display: none;
}

.bbp-topic-permalink{
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    color: #000;
}

.bbp-topic-permalink:hover{
    color: #FF0099;
}


/*##########################  Page photos   ###############################*/

.photo-single {
    max-width: 900px;
    margin: 0 auto;
}

.photo-image img {
    width: 50%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.photo-meta {
    display: flex;
    gap: 20px;
    color: #666;
    margin-bottom: 20px;
}

.photo-content {
    margin-bottom: 30px;
}




/* ######################### Search     #####################*/


#header-search .gdpos-power-link, #header-search h5{

	display: none;
}

#header-search #bbp-search-form>div:first-child {
	display: flex
}

/* ######################### Photos choisissez colonne     #####################*/



.oasis-gallery {
    width: 100%;
    display: flex;
    justify-content: center;
}

.photo-random {
    position: relative;
    width: 100%;
    max-width: 300px; /* ajuste selon ta colonne */
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.photo-random a {
    display: block;
    width: 100%;
    height: 100%;
}

.photo-random img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 clé */
}





/*   #############################  Page Profil  #################### */

.oasis-profile-layout {
    display: flex;
    gap: 30px;
}

.pm-profile-details {
    flex: 2;
}

.oasis-side-block {
    flex: 1;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
}
.profil_rank{
    display: flex;
}
.profil_rank>div{
    margin-top: 2px;
    margin-left: 5px;
}


#profil_oasis #sections{
    display: flex;
    flex-wrap: wrap;
}




#dtailspersonnels1{
    padding-right:  60px;
    flex-basis: 55%;
    min-height: 400px;
}
#profil_oasis .oasis-xoops-infos{
 flex-basis: 45%;
 min-height: 400px;

}

#profil_oasis .oasis-user-content{

    flex-basis: 100%;
}


#profil_oasis .pm-card-value {
    color: #333;
}


/****************    topic  ******/


.bbp-template-notice{
    display: none;
}

.bbp-user-signature img{
    max-width: 300px!important;
}


.oasis-youtube {
    width: 450px;        /* largeur souhaitée */
    max-width: 100%;     /* s’adapte aux écrans plus petits */
    aspect-ratio: 16 / 9; /* ratio 16:9 automatique */
    margin: 10px auto;   /* centrer horizontalement */
}

.oasis-youtube iframe {
    width: 100%;
    height: 100%;
    border: 0;
}




/***********************  Page archive    *******/



.category-page {
   width: 100%;
   padding: 20px;
}
.category-page h1{
    color: #000;
    font-size: 25px;
}
.category-title {
    color: #6300CE;
    margin-bottom: 30px;
}

.post-item {
    padding: 15px ;
    border-bottom: 1px solid #eee;
}

.post-title{
    margin-bottom: 0px;
    line-height: 25px;
}

.post-title a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 18px;
}

.post-title a:hover {
    color: #6300CE;
}

.post-meta {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}

.post-item:nth-child(odd) {
    background: #faf7ff; /* léger violet très doux */
}

.post-item:nth-child(even) {
    background: #ffffff;
}


/* Hover */
.post-item:hover {
    background: #e0d4ff;  /* violet plus clair au survol */
    transform: translateY(-2px); /* léger soulèvement */
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}



h1.concours-article {
    margin-bottom: 25px;

    font-size: 20px;
}

.post-category{
    font-size: 20px;
    
}


.single-article-concours{
    padding:20px; margin-bottom:20px; border:1px solid #ccc; transition: all 0.3s;
    flex-basis: 100%;
}

.pm-login-header-buttons .pm_button{
    font-size: 12px;

}

/* Tablette */
@media (min-width: 600px) and (max-width: 1390px) {

    
#left-sidebar{
    width: 20%;
}

#right-sidebar{
    width: 15%;
}

#primary{
    width: 65%;
}

#content{
    padding: 0 15px;
}

.news-content{
    padding: 15px 20px;
}
}


@media (max-width: 600px) {




   #right-sidebar  aside{
    padding: 0px;
}


.bbp-admin-links {
  display: block;
  width: 100%;
  padding-top: 15px;
}



#primary{
    width: 100%;
}
#left-sidebar{
    width: 100%;
}
#right-sidebar{
    width: 100%;
}



h1{

    font-size: 25px;
}

.pm-login-box {
    width: 100%!important;
    margin: 0px!important;
}

#left-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
    overflow-y: scroll;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth sur iPhone */
    height: 100vh;

}

#left-sidebar.active {
    transform: translateX(0);
}

/* Overlay sombre */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* Bouton hamburger */
.oasis-menu-toggle {


    top: 250px;
    right: 15px;
    z-index: 10000;
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 12px;
    font-size: 20px;
    border-radius: 6px;
    cursor: pointer;
}


.oasis-sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 18px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 10001;
}

/* effet sympa */
.oasis-sidebar-close:hover {
    background: #4e00a8;
}



/* Chaque li devient un bloc complet */
.bbp-topics .bbp-body ul li {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;

}

/* Masquer l’en-tête classique, on peut le remplacer par du flex vertical */
.bbp-topics .bbp-header ul.forum-titles {
    display: none;
}

/* Sujet + meta sur deux lignes */
.bbp-topic-title a {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    word-break: break-word;
}

.bbp-topic-meta {
    font-size: 12px;
    color: #555;
}

/* Pour les autres infos (participants, messages, dernière publication) */
.bbp-topic-voice-count,
.bbp-topic-reply-count,
.bbp-topic-freshness {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 12px;
    color: #555;
}


.bbp-topic-voice-count,
.bbp-topic-reply-count {
    display: none!important;

}

.bbp-author-avatar img{
    width: 50px!important;
    max-height: 50px!important;
    max-width: 50px!important;
}

.single-topic  .bbp-author-avatar img{
       width: 80px!important;
       min-width: 80px!important;
       height: auto!important;
       max-height: 100%!important;


   }
.single-topic  .bbp-author-avatar{
  padding-right: 15px;
     

}

.tc_display ul li{

    padding-left: 15px;
}

.single-topic   #bbpress-forums  .bbp-reply-author{
    min-height: 100px!important; 
  
}

.bsp-new-topic{
    justify-content: center;
    width: 100%;
}
}

