/* Global class */
@font-face {
    font-family: "Raleway";
    src: url("../fonts/raleway/static/Raleway-Regular.ttf") format("TrueType");
    src: url("../fonts/raleway/static/Raleway-Bold.ttf") format("TrueType"),
    src: url("../fonts/raleway/static/Raleway-Black.ttf") format("TrueType");
}

.rtm-green {
    color: #5db5bb;
}

.rtm-green-bg {
    background-color: #5db5bb;
}

.rtm-blue {
    color: #8596c6;
}

.rtm-blue-bg {
    background-color: #8596c6;
}

/* Login */
.login-row {
    min-height: 100vh;
}
.login-left-side {
    padding: 0;
    background-image: url("../images/279799495_561469582341240_4133436008392673608_n.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-right-side {
    position: relative;
    padding: 0;
    color: black;
    border: none;
}

.login-logo {
    position: absolute;
    width: 100%;
    text-align: center;
}

.login-welcome {
    position: absolute;
    width: 100%;
    text-align: center;
    color: #b0b0b0;
    top: 25%;
}

.login-right-side .card {
    position: absolute;
    width: 50%;
    left: 25%;
    top: 37%;
    border: none;
}

.login-right-side form .form-group>input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #b0b0b0 !important;
    border-radius: 0;
    margin-bottom: 20px;
}

.login-remember-me {
    margin-top: 40px;
    margin-bottom: 40px;
}

.login-remember-me > label {
    color: #b0b0b0 !important;
}


.btn-submit {
    text-align: center;
    margin: 10px;
}

.btn-submit input {
    color: #fff;
    background-color: #5eb8bd;
    width: 150px;
}

.login-password-forgotten {
    text-align: center;
}

.login-page {
    background: white url("../images/bg-login.jpg") no-repeat;
    background-size: cover;
    background-position: center;
}


.login-logo > img {
    height: 150px;
    margin: 40px;
}

.card label {
    color : white;
}


/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  
    color: #444444;
}

a {
    color: #8293a5;
    text-decoration: none;
}

a:hover {
    color: #5db5bb;
    text-decoration: none;
}


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#rtm-header {
  background: #fff;
  transition: all 0.5s;
  z-index: 997;
  padding: 20px 0;
}

#rtm-header.header-scrolled {
  padding: 12px 0;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

#rtm-header .logo {
  font-size: 26px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#rtm-header .logo a {
  color: #0b2341;
}

#rtm-header .logo img {
  max-height: 50px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation
*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 10px 40px;
  font-size: 15px;
  color: #b0b0b0;
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: #a3d6de;
}

.navbar .getstarted,
.navbar .getstarted:focus {
  background: #ed502e;
  padding: 8px 20px;
  margin-left: 30px;
  border-radius: 4px;
  color: #b0b0b0;
}

.navbar .getstarted:hover,
.navbar .getstarted:focus:hover {
  color: #fff;
  background: #5eb8bd;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  text-transform: none;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
  color: #5eb8bd;
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color: #012970;
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: #012970;
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

.header-nav .notifications {
  inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .notifications .notification-item i {
  margin: 0 20px 0 10px;
  font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .notifications .notification-item:hover {
  background-color: #f6f9ff;
}

.header-nav .messages {
  inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .messages .message-item a {
  display: flex;
}

.header-nav .messages .message-item img {
  margin: 0 20px 0 10px;
  max-height: 40px;
}

.header-nav .messages .message-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444444;
}

.header-nav .messages .message-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: #919191;
}

.header-nav .messages .message-item:hover {
  background-color: #f6f9ff;
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: #444444;
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: #f6f9ff;
}







/*--------------------------------------------------------------
# Breadcrum
--------------------------------------------------------------*/
.breadcrumb-container {
    background-color: #F0F0F7;
    z-index: 3;
    padding: 15px 5px 5px 5px;
}

.breadcrumb {
  color: #b0b0b0;
}

.breadcrumb > li + li::before {
  display: none;
}

.breadcrumb a,
.breadcrumb .active {
  color: #5eb8bd;
  text-decoration: underline;
}

.breadcrumb a:hover {
  color: #5db5bb;
}



/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
main {
    background-image: url("/static/assets/images/background.jpg");
    flex:1;
    background-size: cover;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#rtm-footer {
    margin-top: auto;
    background-image: url("../images/abstrait-bleu-lignes-douces.jpg");
    background-size: cover;
    padding: 10px 0 10px 0;
    color: #fff;
    font-size: 14px;
 
}

#rtm-footer .footer-top {
  padding: 60px 0 30px 0;
}

#rtm-footer .footer-top .footer-info {
    position: relative;
    margin-bottom: 15px;
    background: #00599939;
    padding: 30px 20px;
    height: 420px;
    border-radius: 5px;
    color: white;
}

#rtm-footer .footer-top .footer-info h3 {
  font-size: 24px;
  margin: 0 0 20px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  font-weight: 700;
}

#rtm-footer .footer-top .footer-info p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  font-family: "Raleway", sans-serif;
}


.footer-info ul {
    margin-top: 10px;
    overflow-y: scroll;
    height: 95%;
    background: none;
}

.footer-info li {
    color: white;
    background: none;
}

.footer-box-top {
/*    position: absolute;
    top: 10px;*/
}

.footer-box-top h5 {
   font-weight: bold;
}

.footer-box-bottom {
    position: absolute;
    bottom: 10px;
    text-align: center;
}

.footer-box-bottom a {
    color: white;
}

.footer-agenda {
    vertical-align: middle;
}

.footer-agenda-date {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    text-align: center;
    background: #b0b0b039;
}

.footer-agenda-date h6 {
    margin: 0;
}

.footer-files a, .footer-apps a {
    color: #ffffff;
    font-size: 16px;
}

.footer-apps a {
    font-weight: bold;
}

.footer-apps li {
    border: none;
}

.footer-files a:hover, .footer-apps a:hover {
    color: #5db5bb;;
    font-size: 16px;
}

.footer-files ul li a i, .footer-apps ul li i {
    font-size: 2em;
    margin-right: 10px;
}


#rtm-footer .footer-top .social-links a {
  font-size: 18px;
  display: inline-block;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 4px;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
  background: #0a1e38;
}

#rtm-footer .footer-top .social-links a:hover {
  color: #fff;
  background: #ed502e;
  text-decoration: none;
}

#rtm-footer .footer-top h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
}

#rtm-footer .footer-top .footer-links {
  margin-bottom: 30px;
}

#rtm-footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#rtm-footer .footer-top .footer-links ul i {
  padding-right: 2px;
  color: #ef6445;
  font-size: 18px;
  line-height: 1;
}

#rtm-footer .footer-top .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

#rtm-footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#rtm-footer .footer-top .footer-links ul a {
  color: #fff;
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

#rtm-footer .footer-top .footer-links ul a:hover {
  color: #ef6445;
}

#rtm-footer .footer-top .footer-newsletter form {
  margin-top: 30px;
  background: #fff;
  padding: 6px 10px;
  position: relative;
  border-radius: 4px;
}

#rtm-footer .footer-top .footer-newsletter form input[type=email] {
  border: 0;
  padding: 4px;
  width: calc(100% - 110px);
}

#rtm-footer .footer-top .footer-newsletter form input[type=submit] {
  position: absolute;
  top: 0;
  right: -2px;
  bottom: 0;
  border: 0;
  background: none;
  font-size: 16px;
  padding: 0 20px 2px 20px;
  background: #ed502e;
  color: #fff;
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
}

#rtm-footer .footer-top .footer-newsletter form input[type=submit]:hover {
  background: #ef6445;
}

#rtm-footer .copyright { 
  text-align: center;
  padding-top: 0px;
}

#rtm-footer .credits {
  padding-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #fff;
}

/* Accueil Slider */
#homeSlider {
    border-radius: 25px;
    overflow: hidden;
}

#homeSlider .carousel-inner img {
    max-height: 500px; /* Hauteur maximale fixée à 500px */
    width: auto; /* Laissez la largeur être automatique pour conserver le rapport d'aspect */
    object-fit: cover; /* Gardez l'aspect de l'image même si la taille est réduite */
    margin-left: auto; /* Centrage horizontal de l'image */
    margin-right: auto;
}

#homeSlider .filigrane {
    position: absolute;
    min-height: 500px;
    width: 100%;
    background: -moz-linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,1) 100%);
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 33%, rgba(0,0,0,0) 66%, rgba(0,0,0,1) 100%);
}

/* Accueil News */
.last-news .card {
    overflow:hidden;
}

.last-news .card .news-description {
    overflow: hidden;
   display: -webkit-box;
   -webkit-line-clamp: 2; /* number of lines to show */
           line-clamp: 2;
   -webkit-box-orient: vertical;
}

.last-news .card img {
    width: 100%;
    max-height: 192px;
    object-fit: cover;
    object-position: left;
}

/* Accueil Raccourcis */
.shortcuts {
    border-radius: 25px;
    background-color: #5db5bb;
    overflow: hidden;
}

.shortcuts .shortcut-title {
    margin: 0;
    padding: 0.3em;
}

.shortcuts .shortcut {
    border-top: solid 0.5px #ffffff;
}

.shortcuts .shortcut:nth-child(2),
.shortcuts .shortcut:nth-child(5),
.shortcuts .shortcut:nth-child(8) {
    border-right: solid 0.5px #ffffff;
}

.shortcuts .shortcut:nth-child(4),
.shortcuts .shortcut:nth-child(7),
.shortcuts .shortcut:nth-child(10) {
    border-left: solid 0.5px #ffffff;
}

.shortcuts .shortcut img {
    margin-bottom: 10px;
    max-height: 50px;
}

/* Accueil News */
.short-news-article {
    max-height: 715px;
    overflow-y: scroll;
    scrollbar-color: #ffffff green;
    scrollbar-width: thin;
}

/* Global */
.short-news-article::-webkit-scrollbar {
  width: 8px;
}
/* Ascenseur */
.short-news-article::-webkit-scrollbar-thumb {
  background: #a6d3d6;
  border-radius: 8px;
}

.card {
    border: none;
}
.card img {
    height: 100%;
    object-fit: cover;
}

/* Accueil Flux d'Actus */
.short-news .card {
    margin-bottom: 20px;
}

.short-news .card img {
    max-height: 110px;
    margin-bottom: 10px;
}

/* Accueil sondage */
.poll {
    padding: 10px;
}
.poll .card .card-header .poll-icon i {
    line-height: normal;
    transform: translateY(40%);
    font-size: 2.5em;
}

.poll .surveyForm label {
    color: #343434;
}

.poll .surveyForm .btn {
    border-color: #51a2a8;
}

.poll .surveyForm .btn:hover {
    background-color: #8596c6;
    border-color: #7382ad;
}

/* Accueil Newsletter */
#newsSlider {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
}

#newsSlider .carousel-inner img {
    height: 500px; /* Hauteur maximale fixée à 500px */
    width: auto; /* Laissez la largeur être automatique pour conserver le rapport d'aspect */
    object-fit: cover; /* Gardez l'aspect de l'image même si la taille est réduite */
    margin-left: auto; /* Centrage horizontal de l'image */
    margin-right: auto;
}

#newsSlider .newsletter-logo {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    background-color: #edf0f2;
}

#newsSlider .carousel-caption {
    position: absolute;
    right: inherit;
    left: 0;
    bottom: 0;
    max-width: 400px;
    padding: 2em;
    color: #343434;
    text-align: left;
    background-color: #edf0f2;
}

#newsSlider .carousel-caption h4 {
    text-transform: uppercase;
}

/* Accueil Alerte */
#alert-bar {
    position: relative;
}

#alertSlider .carousel-item {
    min-height: 50px;
    background-color: #e93a2e;
    color: #f6f6f6;
}

#alertSlider .carousel-caption {
    color: #f6f6f6;
    bottom: 0;
    padding: 0;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}


#alertSlider .carousel-caption a {
    color: #f6f6f6;
}


.alert-bar {
    background-color: #c4453c;
    background-image: -webkit-linear-gradient(135deg, transparent,
                      transparent 25%, hsla(0,0%,0%,.05) 25%,
                      hsla(0,0%,0%,.05) 50%, transparent 50%,
                      transparent 75%, hsla(0,0%,0%,.05) 75%,
                      hsla(0,0%,0%,.05));
    background-image: -moz-linear-gradient(135deg, transparent,
                      transparent 25%, hsla(0,0%,0%,.1) 25%,
                      hsla(0,0%,0%,.1) 50%, transparent 50%,
                      transparent 75%, hsla(0,0%,0%,.1) 75%,
                      hsla(0,0%,0%,.1));
    background-image: -ms-linear-gradient(135deg, transparent,
                      transparent 25%, hsla(0,0%,0%,.1) 25%,
                      hsla(0,0%,0%,.1) 50%, transparent 50%,
                      transparent 75%, hsla(0,0%,0%,.1) 75%,
                      hsla(0,0%,0%,.1));
    background-image: -o-linear-gradient(135deg, transparent,
                      transparent 25%, hsla(0,0%,0%,.1) 25%,
                      hsla(0,0%,0%,.1) 50%, transparent 50%,
                      transparent 75%, hsla(0,0%,0%,.1) 75%,
                      hsla(0,0%,0%,.1));
    background-image: linear-gradient(135deg, transparent,
                      transparent 25%, hsla(0,0%,0%,.1) 25%,
                      hsla(0,0%,0%,.1) 50%, transparent 50%,
                      transparent 75%, hsla(0,0%,0%,.1) 75%,
                      hsla(0,0%,0%,.1));
    background-size: 20px 20px;
    color: #f6f6f6;
    display: block;
    font: bold 16px/40px sans-serif;
    text-align: center;
    text-decoration: none;
    width: 100%;
    margin-bottom: 0;
    line-height: 25px;
    padding: 0.5em;
}

/* Accueil Médiathèque */
.media .card .video-icon i {
    display:grid;
    place-items:center;
    font-size:4rem;
    color:gray;
}

.video-wrapper {
    position: relative;
}

.video-icon {
    position: absolute;
    font-size: 50px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFF;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
