/*Copyright  2013-2014 Iron Summit Media Strategies

    URI: http://http://www.ironsummitmedia.com/

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.*/



/* Global Styles */

/* ------------------------------- */
 body 
 {
    background-color: #f8f8f8;
    background-color:rgba(54, 82, 129, .6);
    overflow: auto; 
    overflow-x: hidden; 
    background-color: rgba(122, 0, 31, .9); 
    /* background-color: rgba(255, 0, 51,.9); */
}

/* Wrappers */

/* ------------------------------- */

 #wrapper {
    width: 100%;
    /* height: 650px; */
    height: 100%; 
    overflow: hidden;
    padding-top: 9px;  
    padding-bottom: 3px;  
    margin-top: 57px!important; 
    /* background-color:#04B173;  */
    /* background-color:rgba(0, 245, 245, .3); */
    background-color:rgba(122, 0, 31, .9);
}

/* Responsive */
@media (max-width: 768px) {
    #wrapper { 
        padding-top: 0px;   
    }
}

#page-wrapper {
    /* padding: 0 15px;  */
    padding: 0 15px;  
    min-height: 568px;
    background-color:rgb(209, 212, 216);
    background: WhiteSmoke;
    background: rgba(255, 255, 181,.9); 
    /* background-color: #fsfd; */
}


.navbar-static-side ul li {
    /* border-bottom:1px solid #84B899 !important; */
    border-bottom: .8px solid red !important;
}

/* Navigation */ 
/* ------------------------------- */ 
/* Top Right Navigation Dropdown Styles */ 
.navbar-top-links li {
    display: inline-block;
}

.navbar-top-links li:last-child {
    margin-left: 15px;
}

.navbar-top-links li a {
    padding: 20px;
    min-height: 50px;
}

.navbar-top-links .dropdown-menu li {
    display: block;
}

.navbar-top-links .dropdown-menu li:last-child {
    margin-right: 0;
}

.navbar-top-links .dropdown-menu li a {
    padding: 3px 20px;
    min-height: 0;
}

.navbar-top-links .dropdown-menu li a div {
    white-space: normal;
}

.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
    width: 310px;
    min-width: 0;
}

.navbar-top-links .dropdown-messages {
    margin-left: 5px;
}

.navbar-top-links .dropdown-tasks {
    margin-left: -59px;
}

.navbar-top-links .dropdown-alerts {
    margin-left: -123px;
}

.navbar-top-links .dropdown-user {
    right: 0;
    left: auto;
}

/* Sidebar Menu Styles */
 .sidebar-search {
    padding: 15px;
}
.arrow {
    float: right;
}
.fa.arrow:before {
    content: "\f104";
}
.active > a > .fa.arrow:before {
    content: "\f107";
}

.nav-second-level li,
.nav-third-level li {
    border-bottom: none !important;
}

.nav-second-level li a {
    padding-left: 37px;
}

.nav-third-level li a {
    padding-left: 52px;
}

@media(min-width:768px) {
    .navbar-static-side {
        z-index: 1;
        position: absolute;
        width: 250px;
    }

    .navbar-top-links .dropdown-messages,
    .navbar-top-links .dropdown-tasks,
    .navbar-top-links .dropdown-alerts {
        margin-left: auto;
    }
}

/* Buttons */

/* ------------------------------- */

 .btn-outline {
    color: inherit;
    background-color: transparent;
    transition: all .5s;
}

.btn-primary.btn-outline {
    color: #428bca;
}

.btn-success.btn-outline {
    color: #5cb85c;
}

.btn-info.btn-outline {
    color: #5bc0de;
}

.btn-warning.btn-outline {
    color: #f0ad4e;
}

.btn-danger.btn-outline {
    color: #d9534f;
}

.btn-primary.btn-outline:hover,
.btn-success.btn-outline:hover,
.btn-info.btn-outline:hover,
.btn-warning.btn-outline:hover,
.btn-danger.btn-outline:hover {
    color: #fff;
}

/* Pages */

/* ------------------------------- */

/* Dashboard Chat */

 .chat {
    margin: 0;
    padding: 0;
    list-style: none;
}

.chat li {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #B3A9A9;
}

.chat li.left .chat-body {
    margin-left: 60px;
}

.chat li.right .chat-body {
    margin-right: 60px;
}

.chat li .chat-body p {
    margin: 0;
    color: #777777;
}

.panel .slidedown .glyphicon,
.chat .glyphicon {
    margin-right: 5px;
}

.chat-panel .panel-body {
    height: 280px;
    overflow-y: scroll;
}

/* Login Page */

 .login-panel {
    margin-top: 15%;
}
.body-Backcolor {
    background-color:#000;
}
.logo-margin {
    margin-top:100px;
}

/* Flot Chart Containers */

 .flot-chart {
    display: block;
    height: 400px;
}

.flot-chart-content {
    width: 100%;
    height: 100%;
}

/* DataTables Overrides */

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
    background: transparent;
}

table.dataTable thead .sorting_asc:after {
    content: "\f0de";
    float: right;
    font-family: fontawesome;
}

table.dataTable thead .sorting_desc:after {
    content: "\f0dd";
    float: right;
    font-family: fontawesome;
}

table.dataTable thead .sorting:after {
    content: "\f0dc";
    float: right;
    font-family: fontawesome;
    color: rgba(50,50,50,.5);
}

/* Circle Buttons */

 .btn-circle {
    width: 30px;
    height: 30px;
    padding: 6px 0;
    border-radius: 15px;
    text-align: center;
    font-size: 12px;
    line-height: 1.428571429;
}

.btn-circle.btn-lg {
    width: 50px;
    height: 50px;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 18px;
    line-height: 1.33;
}

.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    border-radius: 35px;
    font-size: 24px;
    line-height: 1.33;
}

.show-grid [class^="col-"] {
    padding-top: 10px;
    padding-bottom: 10px;
    border: 1px solid #ddd;
    background-color: #eee !important;
}

.show-grid {
    margin: 15px 0;
}

a
{
    cursor: pointer;
}
div[categorie='categorie']
{
    cursor:pointer;
    border: 1.5px solid rgba(83, 163, 163, .5);
    
    /* background:rgba(82, 241, 255, 1); */
}
div[categorie='categorie']:hover
{ 
    box-shadow: 0 10px 25px rgba(83, 163, 163, .7);
    border: 1.5px solid rgba(83, 163, 163, 1);
    cursor:pointer;       
}





/* Ajoutez ce CSS dans votre style.css existant */

/* Styles pour les vidéos récentes */
.grille-videos-recents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.carte-video-recent {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.carte-video-recent:hover {
    transform: translateY(-5px);
}

.video-miniature {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.video-miniature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carte-video-recent:hover .overlay-video {
    opacity: 1;
}

.btn-lire-video {
    color: white;
    font-size: 2em;
    text-decoration: none;
}

.info-video {
    padding: 15px;
}

.info-video h5 {
    margin: 0 0 8px 0;
    font-size: 0.95em;
    line-height: 1.3;
}

.auteur-video, .categorie-video {
    font-size: 0.85em;
    color: #666;
    margin: 5px 0;
}

.badge-categorie {
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
}

/* Stats vidéos */
.stats-videos-rapides {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-video {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.stat-video .stat-icon {
    font-size: 2em;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-video .stat-valeur {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
}

.stat-video .stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
}
.mobile-top-nav.visible-lg.visible-md {  
    visibility: hidden;
}

/* Styles spécifiques pour iOS */
@supports (-webkit-touch-callout: none) {
    /* Styles spécifiques pour iOS */
    .mobile-nav-item {
        -webkit-tap-highlight-color: rgba(255,255,255,0.3);
    }
    
    .mobile-menu-item {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    /* Correction pour le viewport sur iOS */
    @media (max-width: 768px) {
        #wrapper {
            height: -webkit-fill-available;
        }
    }
}

/* Correction pour Safari */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        /* Styles spécifiques pour Safari */
        .mobile-sidebar {
            -webkit-transform: translateZ(0);
        }
        
        .navbar-top-links .dropdown-menu {
            -webkit-overflow-scrolling: touch;
        }
    }
}

/* Responsive */
@media (max-width: 768px) {
    .grille-videos-recents {
        grid-template-columns: 1fr;
    }
    
    .actions-videos {
        flex-direction: column;
        gap: 10px;
    }
    
    .filtres-rapides {
        width: 100%;
    }
    
    /* Correction pour l'affichage mobile */
    .navbar-header {
        position: relative;
    }
    
    .navbar-brand {
        text-align: center;
        margin: 0 auto;
        float: none;
        display: block;
    }
    
    .mobile-menu-toggle {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
    }
    
    .navbar-top-links {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    .navbar-brand span {
        font-size: 1.2em;
    }
    
    .mobile-nav-item {
        padding: 6px 3px;
    }
    
    .mobile-nav-item i {
        font-size: 16px;
    }
    
    .mobile-nav-label {
        font-size: 10px;
    }
    
    .navbar-top-links li a {
        padding: 15px 6px;
    }
    
    .top-label {
        font-size: 9px;
        padding: 1px 3px;
    }
}

/* Correction pour les images de profil */
.mobile-user-avatar img,
.user-section-inner img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Support pour les navigateurs plus anciens */
@supports not (display: grid) {
    .grille-videos-recents {
        display: flex;
        flex-wrap: wrap;
    }
    
    .carte-video-recent {
        flex: 1 1 280px;
        margin: 10px;
    }
}