/*
Design by Metamorphosis Design
http://www.metamorphozis.com
Released for free under a Creative Commons Attribution 2.5 License
*/

* 
{
margin: 0px;
padding: 0px;
}

body {
	/* background: #ffffff url("../images/logo.jpg") 0px 55px repeat-x; */
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	background-color: #000000;
	top: 0;
}

h1, h2, h3, p, ol, ul {
	margin-top: 0;
}

h1, h2, h3 {
	font-family: Arial, Helvetica, sans-serif;
}

h1, h2 {
	text-transform: lowercase;
	font-weight: normal;
}

h1 {
	font-size: 2.4em;
}

h2 {
	font-size: 1.8em;
}

h3 {
	font-size: 1.2em;
	text-align: center;
}

a {
	color: #FFB939;
}

a:hover {
	text-decoration: none;
	color: #b3832c;
}

.link {
	text-decoration: none;
	color: #FFB939;
}

a.link {
	text-decoration: none;
	color: #FFB939;
}

a.link:hover {
	text-decoration: none;
	color: #b3832c;
}

.align-center {
	text-align: center;
}

.align-center img {
	margin-left: auto;
	margin-right: auto;
}

hr {
	display: none;
}

#main
{
width: 1200px;
margin: 0 auto 0 auto;
}

/* Header */
#header {
	width: 1200px;
}

#top {
	display: flex;
	width: 1200px;
	margin: 0 auto;
	padding-top: 15px;
}

#logo {
float: left;
width: 310px;
height: 101px;
background: url("../images/logo.png") no-repeat;
vertical-align: middle;
}

#banner {
float: right;
width: 790px;
height: 96px;
background: url("../images/banner-lamontrealaise.jpg") no-repeat;
vertical-align: middle;
margin-left: 75px;
}

#logo h1, #logo p {
	margin: 0;
	line-height: normal;
}

#logo h1 {
	padding: 30px 0 0 20px;
	font-size: 24px;
	color: #000000;
}
#logo h2 {
	padding: 10px 0 0 20px;
	font-size: 10px;
	text-transform: uppercase;
	color: #ffffff;
}

#logo a {
	text-decoration: none;
	color: #000000;
}

#menu {
height: 30px;
width: 1170px;
padding-top: 12px;
text-align: center;
}

#b1 {
	background:url("../images/b11.png") no-repeat;
}

#b2 {
	background:url("../images/b22.png") no-repeat;
}

#b3 {
	background:url("../images/b33.png") no-repeat;
}

#b4 {
	background:url("../images/b44.png") no-repeat;
}

#b5 {
	background:url("../images/b55.png") no-repeat;
}

#b6 {
	background:url("../images/b66.png") no-repeat;
	color: #FFFFFF!important;
}

#menu ul {
	margin: 0;
	list-style: none;
	
}

#menu li {
	display: inline-block;
}

#menu a {
	float: left;
	width: 110px;
	height: 35px;
	text-decoration: none;
	text-align: center;
	padding-top: 8px;
	font-size: 15px;
	font-weight: bold;
	color: #001FA6;

}

#menu a:hover {
	height: 31px;
	margin-top:-5px;
}

/*** Header right ****/
#header_right {
    top: 0;
    z-index: 10;
    width: 100%;
    margin-top: -25px;
    padding-bottom: 5px;
}

/* Adjust menu styling inside the right column */
#menu_right {
    display: flex;
    justify-content: center;
}

#menu_right ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

#menu_right li {
    margin: 0;
}

#menu_right a {
    padding: 5px 30px;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
}

/* Page */
#page {
	margin: 0 auto;
	background: url("../images/cent_m.png") repeat-y;
	background-color: #F8001C;
}

.page2 {
	background: url("../images/top_m.png") top no-repeat;
}

.sidebar .titre {
	background:url("../images/webcam-titre.jpg") no-repeat;
	width: 170px;
	height: 35px;
	margin: 0 auto;
	text-align: center;
}


/* Content */

#content {
	float: left;
	width: 760px;
	height: 1400px;
}


#content .post ul, #content .post ol
{
margin-left: 30px;
}

#content .top
{
width: 497px;
background: url("../images/top.png") no-repeat;
height: 13px;
}

#content .middle_back
{
width: 499px;
padding: 10px 20px 20px 20px;
}

#content .title
{
background: url("../images/tit_b.jpg") top no-repeat;
height: 28px;
padding-top: 10px;
padding-left: 30px;
}

#content .date 
{
	height: 31px;
	margin-bottom: 10px;
	margin-top: 10px;
	padding-top: 3px;
	font-size: 10px;	
}

#content .date ul
{
	list-style: none;	
}

#content .date li
{
	display: inline; 
}

#content .small_icon1
{
height: 24px;
width: 150px;
float: left;
display: block;
text-align: left;
padding-top: 6px;
padding-left: 30px;
}

#content .small_icon2
{
height: 24px;
width: 120px;
float: left;
display: block;
text-align: left;
padding-top: 6px;
padding-left: 30px;
}

#content .small_icon3
{
height: 24px;
width: 100px;
float: left;
display: block;
text-align: left;
padding-top: 6px;
padding-left: 30px;
}

.post {
	padding: 13px 0px 0px 0px;
	color: #000000;
}

.post a {
	color: #034791;
}

.post a:hover {
	color: #034791;
}

.post H2
{
color: #ffffff;
text-transform: uppercase;
font-size: 14px;
font-weight: bold
}

.border-tab {
	border: solid 2px black;
	border-radius: 15px;
	background-color: #F8001C;
}
/* Sidebars */

#webcams {
	background: url("../images/webcams-mtlam.jpg") top no-repeat;
	width: 185px;
	height: 566px;
}

.sidebar {
	float: left;
	width: 219px;

}

.sidebar2 {
	padding: 13px 7px 0px 11px;
}

.sidebar4 {
	padding: 13px 7px 0px 11px;
}

.sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: normal;
}


.sidebar li {
	padding: 4px 0 4px 10px;
}

.sidebar a {
	text-decoration: none;
	color: #034791;
	font-size: 11px;
}
.sidebar a:hover {
	color: #0A6894;
	text-decoration: underline;
}

.sidebar h2 {
	color: #ffffff;
	height: 18px;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
}

.bottom_small
{
height: 2px;
background: url("../images/small_bottom.gif") no-repeat;
width: 183px;
}


/* Left Sidebar */

.sidebar3 {
	padding: 13px 0px 0px 8px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin: 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: #FFB939;
    padding: 0 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.category-list a:hover {
    background-color: #790707;
    color: #FFB939;
}

.count {
    /** background: #e0e0e0; */
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
}

.no-categories {
    color: #ffffff;
    font-style: italic;
    text-align: center;
}

.btn-video-delete {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0; 
}

/* Right Sidebar */
.btn.btn-connexion {
	--bs-btn-color: #fff;
	--bs-btn-bg: #790707;
	--bs-btn-border-color: #790707;
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #ff9b04;
	--bs-btn-hover-border-color: #ff9b04;
	--bs-btn-focus-shadow-rgb: 49, 132, 253;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #790707;
	--bs-btn-active-border-color: #790707;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: #790707;
	--bs-btn-disabled-border-color: #790707;
  }

.nickname {
	color: #000000;
}

/* POINTS SYSTEM ****/
.points-display p {
    margin: 0;
    line-height: 1.2;
    font-size: 14px;
}
.points-display .highlight {
    color: #FFB939;
    font-weight: bold;
}
.points-display .white {
    color: white;
}

/* Style for the login form container */
.login-form {
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    /*background-color: #F8001C;*/
    /*border: 2px solid #F8001C;*/
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Style for labels */
.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #FFFFFF;
}

/* Style for input fields */
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

/* Style for input fields on focus */
.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Style for the login button */
.login-form button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hover effect for the login button */
.login-form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Style for the register and logout links */
.login-form p {
    text-align: center;
    margin-top: 10px;
}

.login-form p a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
}

.login-form p a:hover {
	color: #ff9b04;
    text-decoration: none;
}

/* Style for warning messages */
.warning-message {
    display: block;
    color: #dc3545; /* Red color for warnings */
	background-color: #ccc;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
}

/****** MIDDLE COLUMN *********/

/****** INDEX *****************/
.msg-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }
  
  .msg-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }

.alert-success.custom-message-register {
    background-color: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.swiper-wrapper-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow: visible; /* allow arrows to overflow */
    margin: 0 15px;
}

/* Push arrows outside the Swiper bounds */
.swiper-button-prev.new-users-prev {
    position: absolute;
    left: -30px; /* ⬅️ move further out */
    top: 50%;
    transform: translateY(-50%);
    color: #FFB939;
    font-size: 26px;
    z-index: 10;
    cursor: pointer;
}

.swiper-button-next.new-users-next {
    position: absolute;
    right: -30px; /* ➡️ move further out */
    top: 50%;
    transform: translateY(-50%);
    color: #FFB939;
    font-size: 26px;
    z-index: 10;
    cursor: pointer;
}

#newUsersSwiper {
    width: auto !important;
    max-width: 1200px;
    box-sizing: border-box;
    overflow: hidden;
}

.swiper-slide {
    flex-shrink: 0;
}

.swiper {
    padding: 20px 0;
}

.onlineSwiper {
    display: flex;
    min-height: 120px;
    visibility: visible;
    justify-content: center;
}
.swiper-wrapper {
    visibility: visible;
    justify-content: center;
}

.username-tooltip {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
    display: none;
}

.no_online_users {
    text-align: center;
    padding: 40px;
    color: white;
    margin: 20px 0;
}

.promo-form p {
  font-size: 1.1rem;
  color: #fff;
}

.texte-bienvenue {
	font-size: 1rem;
	color: #FFFFFF;
}

span.text-validation-error {
	color:#F8001C;
	background-color: #ccc;
}

.modal-dialog {
    width: 400px;
    margin: 30px auto;	
}

/* Custom COLUMNS styles for the layout */
.main-container {
    display: flex;
	margin-top: 20px;
	margin-bottom: 50px;
}
.left-column, .right-column {
    width: 17%; /* Each side column takes 20% of the width */
    display: flex;
    flex-direction: column;
    padding: 0 5px;
	height: 100vh; /* Stretch to the bottom of the site */
}
.middle-column {
    width: 66%; /* Middle column takes 60% of the width */
    padding: 5px 15px 15px 15px;
    /*background-color: #F8001C; /* Add background color */
    border-radius: 10px; /* Add rounded corners */
    border: 2px solid #9d5b07; /* Add border */
	min-height: 1000px;
}
.left-column-top, .left-column-bottom, .left-column-bottom-2,
.right-column-top, .right-column-bottom {
    border: 2px solid #9d5b07;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 5px;
    /*background-color: #F8001C;*/
}
.left-column-bottom, .left-column-bottom-2, .right-column-bottom {
    flex-grow: 1; /* Stretch to fill remaining space */
    overflow-y: auto; /* Add scrollbar if content overflows */
}
.left-column-top {
    /* If you want a specific height for the first section, you can set it here */
    min-height: 250px; /* Example height */
}
.left-column-bottom {
    /* If you want a specific height for the first section, you can set it here */
    min-height: 100px; /* Example height */
}
.left-column-bottom-2 {
    /* You can control the height or flexibility here */
    min-height: 100px; /* Example min-height, this allows it to grow if needed */
}

#online-users-list {
    max-height: 620px; 
    overflow-y: auto;
}

#online-users-list::-webkit-scrollbar {
    width: 6px;
  }
  
  #online-users-list::-webkit-scrollbar-track {
    background: transparent;
  }
  
  #online-users-list::-webkit-scrollbar-thumb {
    background-color: #c00; /* red */
    border-radius: 4px;
  }
  
  #online-users-list {
    scrollbar-width: thin;          /* For Firefox */
    scrollbar-color: #c00 transparent;
  }

.member-list {
    list-style: none;
    padding: 0;
    color: #FFFFFF;
}
.member-list li {
    padding: 0 10px;
}
.member-list li:last-child {
    border-bottom: none;
}
.member-list li a {
    text-decoration: none;
    color: #FFB939;
    font-weight: bold;
}
.member-list li a:hover {
    color: #e66f0e;
}
.membership-type {
    font-size: 0.9em;
    color: #666;
}

/* General Table Styling */
table.chat-table {
    width: 100%;
    max-height: 150px;
	color: #000000!important;
    border-collapse: collapse;
}

/* Table Header Styling */
.chat-header {
    background-color: rgb(56, 9, 228);
    color: white;
    padding: 5px;
}

th.chat-header.coteleft {
    width: 80%;
    text-align: right;
}

th.chat-header.coteright {
    width: 20%;
    text-align: center;
}

/* Scrollable Table Cells */
td.chat-box {
    border: 2px solid black;
    background-color: rgb(219, 218, 218);
    height: 170px;
	vertical-align: top;
    padding: 5px;
}

td.users-box {
    border: 2px solid black;
    background-color: rgb(218, 218, 218);
    height: 170px;
	vertical-align: top;
    padding: 5px;
}

div #show_messages{
	color: #000000;
}

/* Input & Button Styling */
td.input-container {
	width:60%;
}

#show_messages {
	font-size: 16px;
	color: #000000!important;
	height: 100%;
	overflow-y: auto;
	vertical-align: bottom;
}

#show_users {
	height: 100%;
	overflow-y: auto;
}

#send_message {
    width: 70%;
    border-radius: 3px;
    border: 2px solid black;
    padding: 5px;
}

button {
    padding: 5px 10px;
    cursor: pointer;
    background-color: rgb(155, 152, 152);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 3px;
}

/****** Profile page ********/
/* Étoiles remplies : or brillant */
.rating-display i.text-warning {
    color: gold !important;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.7);
  }
  
  /* Étoiles vides : gris doux */
  .rating-display i.text-secondary {
    color: #ccc !important;
  }
  
  /* Animation au survol (déjà présente) */
  .rating-display i {
    transition: transform 0.2s ease, color 0.2s ease;
  }
  
  /* Filled stars */
  .star-gold {
    color: gold !important;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
    transition: transform 0.2s ease;
  }
  
  /* Empty stars */
  .star-empty {
    color: #ccc !important;
    opacity: 0.3;
    transition: transform 0.2s ease;
  }
  
  /* Zoom on hover */
  .rating-display i:hover {
    transform: scale(1.2);
  }
  
  /* BONUS: glow effect if perfect score */
  .rating-display.perfect-score .star-gold {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.9), 0 0 14px rgba(255, 200, 0, 0.7);
  }
  .rating-display .star-gold.bi-star-fill {
    color: gold !important;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.8) !important;
  }
.rating-display i {
    transition: transform 0.2s ease;
}
.rating-display i:hover {
    transform: scale(1.2);
}
.vote-bar-container {
    display: flex;
    max-width: 240px;
    margin: 0 auto;
    border-radius: 8px;
    border-left: none;
    background: linear-gradient(to right, #68696b, #ffffff);
    overflow: hidden;
}

.vote-bar-form {
    display: flex;
    width: 100%;
    padding: 0;
    margin: 0;
}

.vote-box {
    flex: 1;
    border: none;
    border-left: 1px solid #4d4e4e; /* left border for spacing */
    background: transparent;
    font-weight: bold;
    font-size: 12px;
    padding: 8px 0;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-box:first-child {
    border-left: none !important;
}

.vote-box span {
    pointer-events: none;
    display: block;
    text-align: center;
    width: 100%;
    
    background: linear-gradient(to right, purple, red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vote-box:hover,
.vote-box.active {
    background-color: rgba(211, 20, 7, 0.2);
    color: white;
}
.vote-box.disabled {
    pointer-events: none;
    opacity: 0.5;
}
.toast-body {
    font-size: 14px;
}

/**** BLOQUER USER OU REPORT ******/
.viewer-actions {
  margin-top: 10px;
}
.viewer-actions button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}
.delete-report {
  padding: 2px 5px;
  margin: 0 5px 10px 0;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  transition: background-color 0.3s;
}
.suspend-user {
  padding: 2px 5px;
  margin: 0 5px 10px 0;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  transition: background-color 0.3s;
}

.unblock-user {
  padding: 2px 5px;
  margin: 0 5px 10px 0;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  transition: background-color 0.3s;
}
.unblock-button-red {
background: #c00; 
color: white; 
border: none;
margin-bottom: 10px;
padding: 5px 12px; 
border-radius: 5px; 
cursor: pointer; 
float: right;
vertical-align:baseline;
}
#blocked-users-list {
  max-height: 400px;
  overflow-y: auto;
}
/****** GALLERIES **********/
#gallery-table {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
#gallery-table.visible {
    display: table;
    opacity: 1;
}

.gallery-title {
	text-decoration: none;
	font-weight: bold;
	padding: 0 10px;
	color: #FFB939;
}

.gallery-title:hover {
	text-decoration: none;
	font-weight: bold;
	padding: 0 10px;
	color: #be7f0a;
}

table.gallery-rounded {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
    border-radius: 5px !important;
    overflow: hidden !important;
}

/* Internal borders */
table.gallery-rounded th,
table.gallery-rounded td {
    border-right: 1px solid #ddd !important;
    border-bottom: 1px solid #ddd !important;
}

/* Remove right border from last cell in each row */
table.gallery-rounded th:last-child,
table.gallery-rounded td:last-child {
    border-right: none !important;
}

/* Remove bottom border from last row */
table.gallery-rounded tr:last-child td {
    border-bottom: none !important;
}

/* Rounding outer corners */
table.gallery-rounded tr:first-child th:first-child {
    border-top-left-radius: 5px !important;
}

table.gallery-rounded tr:first-child th:last-child {
    border-top-right-radius: 5px !important;
}

table.gallery-rounded tr:last-child td:first-child {
    border-bottom-left-radius: 5px !important;
}

table.gallery-rounded tr:last-child td:last-child {
    border-bottom-right-radius: 5px !important;
}

/****** Profile EDIT page ****/
.input-sm {
    height: 22px!important;
}

select.input-sm {
    height: 22px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.dark-input {
    background-color: #797575!important;
    color: #fff!important;
    border: 1px solid #555!important;
}

.dark-input::placeholder {
    color: #bbb;
}

.tableau-profil th, .tableau-profil td {
    padding: 5px 10px; /* Minimal padding */
    vertical-align: middle; /* Vertically center content */
}

.tableau-profil tr {
    margin-bottom: 5px; /* Minimal space between rows */
}

.tableau-profil select, .tableau-profil input, .tableau-profil textarea {
    display: block; /* Make the elements block-level */
    margin: 0 auto; /* Center horizontally */
    padding: 5px; /* Adjust padding for input fields */
    height: auto; /* Let the height adjust to content */
}

.tableau-profil input, .tableau-profil select, .tableau-profil textarea {
    vertical-align: middle; /* Optional: centers text inside inputs */
}

/*********** ACCESS SETTINGS ************/
.big-check {
    transform: scale(1.4);
    margin-right: 6px;
}

.check-label {
    font-size: 1.1rem;
    color: #ffcc00;
    font-weight: 500;
}

/****** Compte page ********/
.custom-file-short::file-selector-button {
    content: "📷 Photo";
    padding: 0.25rem 0.75rem;
    font-weight: bold;
    background-color: #880029;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.custom-file-short {
    font-size: 0.85rem;
    max-width: 240px;
}

.w-5 { width: 5% !important; }
.w-10 { width: 10% !important; }
.w-15 { width: 15% !important; }

/* Reduce the padding inside the table cells */
.tableau-profil td {
    padding: 3px 0 2px 0; /* Reduce vertical padding to minimal values */
}

/* Optional: Adjust the padding for the links */
.tableau-profil td a {
    padding-top: 3px;
    padding-bottom: 3px; /* Adjust these values as needed */
}

.tableau-profil th.description, .tableau-profil > .description td {
    vertical-align: top; /* Align both header and data cells vertically */
}

/* Align the text of the textarea with the top of the header */
.description td textarea {
    vertical-align: top; /* Align the textarea top with the text */
    width: 100%; /* Ensure textarea takes the full width */
    overflow-y: auto;
}

.tableau-profil .text-start {
    text-align: left !important;
    padding-top: 2px;
}

.category-header {
    font-weight: bold;
    background-color: #333;
    color: #fff;
}

.category-name {
    font-weight: bold;
    background-color: #333;
    color: #fff;
    text-align: left; /* Ensure the category name is aligned left */
    padding-left: 10px; /* Add some space from the left edge */
}

/******* INBOX  **************/
.link-black {
    color: black;
}
.link-black:hover {
    color: black; /* keep it black on hover too */
}

.messagerie tbody td:first-child {
    padding-left: 1rem; /* Bootstrap uses rem units */
}

table.messagerie tbody tr.unread {
    background-color: #8f8f91 !important;  /* gris clair */
}

table.messagerie tbody tr.unread:hover {
    background-color: #d6d8db !important;
}

table.messagerie tbody tr.unread td {
    background-color: inherit !important;
}

.unread {
    font-weight: bold;
    font-size: larger;
    background-color: #7e8081 !important; /* Light grey background */
}

.unread:hover a {
    color: #666565;
}

.unread a {
    color: #000; /* Ensure subject link is readable */
}

table.messagerie tbody tr {
    padding: 0 !important;
    height: 30px; /* Adjust as needed */
}

table.messagerie tbody td {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    vertical-align: middle;
}

table.messagerie form {
    margin: 0;
}

table.messagerie button {
    padding: 2px 6px !important;
    line-height: 1 !important;
    font-size: 0.8rem;
}

table.messagerie th:nth-child(1),  /* De */
table.messagerie td:nth-child(1) {
    width: 15%;
}

table.messagerie th:nth-child(2),  /* Sujet */
table.messagerie td:nth-child(2) {
    width: 50%;
}

table.messagerie th:nth-child(3),  /* Date */
table.messagerie td:nth-child(3) {
    width: 25%;
}

table.messagerie th:nth-child(4),  /* Actions */
table.messagerie td:nth-child(4) {
    width: 10%;
    white-space: nowrap;
    text-align: center;
}

.accordion-button-sm {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
}

.accordion-body {
    background-color: #f9f9f9;
}

.accordion-button .text-truncate {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.accordion-body .text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-wrap;
}

#historiqueAccordion .accordion-button {
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.2;
    background-color: transparent;
    box-shadow: none;
}

#historiqueAccordion .accordion-button:not(.collapsed) {
    background-color: #f0f0f0; /* light background when expanded */
    box-shadow: none; /* remove the inner shadow */
}

#historiqueAccordion .accordion-button strong {
    font-weight: 500;
}
#historiqueAccordion .accordion-item {
    border-radius: 4px;
    overflow: hidden;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px; /* adjust as needed */
    display: inline-block;
    vertical-align: middle;
}

/****** Message view *********/
.card-text {
    font-size: 2em;
}

/****** New Gallery page *****/
.hidden-input { display: none!important; }

/******  GALLERIES ***********/
.galleries thead th:first-child {
    padding-left: 1rem;
    text-align: start;
}

.galleries tbody td:first-child {
    padding-left: 1rem;
    text-align: start;
}

/****** View Gallery page *****/
/* Gallery Styles */
.gallery-container {
    margin-top: 20px;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-thumbnail {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-container {
    margin: 20px auto;
    max-width: 1200px;
}

.gallery-item {
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 5px;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Modal Styles */
#galleryModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

#galleryModal .modal-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
}

#galleryModal .modal-image {
    max-width: 100vw;
    max-height: 90vh; /* leave room for controls */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}

#galleryModal .vote-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    z-index: 10;
    text-align: center;
}

#galleryModal .vote-controls-overlay .btn {
    padding: 6px 12px;
    font-size: 14px;
}

#galleryModal .arrow {
    color: white;
    font-size: 40px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

#galleryModal .prev {
    left: 20px;
}

#galleryModal .next {
    right: 20px;
}

#galleryModal .close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 30;
}


/****** Profile page *******/
.tableau-profil th {
	width: 40%;
}

.tableau-profil {
	width: 100%;
	color: #FFFFFF;
	font-size: 1.3em;
	margin-bottom: 1.5rem;
}

th.text-end {
	color: #ff9b04;
	font-weight: bold;
}

.columns {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	margin: 5px 0;
}

.column {
	flex: 1;
	border: 1px solid gray;
	margin: 2px;
	padding: 10px;
	&:first-child { margin-left: 0; }
	&:last-child { margin-right: 0; }
	
}

/********* SEARCH PAGE **********/
.profile-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
}
.profile-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 15px;
}

/********* PARTYS **********/
.card {
    transition: transform 0.2s ease;
}
.card:hover {
    transform: scale(1.03);
}

/*********  NOUS JOINDRE *****/
.contact-invite .btn {
  transition: transform 0.2s ease;
}
.contact-invite .btn:hover {
  transform: scale(1.05);
}

/********* FOOTER **********/
#footer {
	clear: both;
	padding-top: 10px;
	height: 32px;
	background: url("../images/futer.jpg") bottom repeat-x;
	text-align: center;
	margin-top: 30px;
}

#footer p {
	text-align: center;
	font-size: smaller;
	color: #FFFFFF;
}

#footer a {
	color: #FFFFFF;
}

#bg {
	background: url("../images/futer.jpg") bottom repeat-x;
	padding: 30px 0;
}



/******* CUSTOM *************/


/**** Media Queries ****/
@media screen and (max-width: 980px) {
	.columns .column {
		  margin-bottom: 5px;
	  flex-basis: 40%;
		  &:nth-last-child(2) {
			  margin-right: 0;
		  }
		  &:last-child {
			  flex-basis: 100%;
			  margin: 0;
		  }
	  }
  }
  
  @media screen and (max-width: 680px) {
	  .columns .column {
		  flex-basis: 100%;
		  margin: 0 0 5px 0;
	  }
  }

  /* Responsive Design Profile page */
@media (max-width: 768px) {
    .profile-card {
        padding: 1.5rem;
    }

    .profile-card img {
        width: 130px;
        height: 130px;
    }
}
