@font-face {
  font-family: 'GrifoSMedium';
  src: url('../webfonts/GrifoSMedium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'GrifoSItalic';
  src: url('../webfonts/GrifoSItalic.woff') format('woff'),
       url('../webfonts/GrifoSItalic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

body, h1, h2, h3, h4, p, span, button, input, select, textarea {
  font-family: 'GrifoSMedium', Arial, sans-serif !important;
  font-weight: 200 !important; 
}

:focus-visible {
  outline: none;
}

.full_height_zone {
  height:100vh;
}

.login_container {
  overflow: hidden;
}

.cky-revisit-bottom-left:hover::before {
  background: #333 !important;
}

.cky-revisit-bottom-left:hover::after {
  border-right-color: #333;
}

.image_fill_zone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.container-fullwidth {
  width: 100%;
  max-width: 100%;
  margin: 0px auto 0px auto;
  padding: 0 15px;
  box-sizing: border-box;
  height: calc(100vh - 130px);
}

.wpmf-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: 9999;
  cursor: wait;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breadcrumb-item {
  color: #333;
  text-decoration: none;
  margin-right: 4px;
  font-size: 1.1rem;
}

.breadcrumb-item.current {
  color: #8c734b;
}
.breadcrumb-item:hover {
  text-decoration: underline;
  cursor: pointer;
  color: #8c734b;
}

.wpmf-spinner {
  border: 4px solid #ccc;
  border-top: 4px solid #8c734b;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.extranet-header {
  background-color: #fff;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
}


.header-bottom-line {
  display: flex;
  align-items: center;
  padding: 0 0px;
  position: relative;
}

.header-bottom-line .line {
  flex-grow: 1;          
  height: 2px;           
  background-color: #8c734b; 
  max-width: 95%;        
}

.header-bottom-line .line-image {
  height: 36px;
  width: auto;
  top: -19px;
  right: 30px;
  position: absolute;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.notification-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #732222;
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 18px;
  display: none;
  z-index: 100;
}

.icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;     
  justify-content: center;
  width: 70px;
  height: 85px;
  text-align: center;
  transition: transform 0.2s ease;
}

.icon-wrapper:hover:not(.active) {
  transform: translateY(-2px);
}

.triangle-indicator {
  color: #8c734b;
  font-size: 25px;
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  margin-top: 4px;
  display: none !important;
}

.icon-wrapper.active .triangle-indicator, .mobile-icon-wrapper.active .triangle-indicator {
  display: block !important;
}

.mobile-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;     
  justify-content: center;
  width: 60px;
  height: 85px;
  text-align: center;
}

.mobile-icon-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0px 0px;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.icon-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.icon-wrapper.active .icon-frame, .mobile-icon-wrapper.active .mobile-icon-frame {
  opacity: 1;
}

.icon-cmd {
  position: relative;
  z-index: 2;
	width:50px;
	margin:10px 10px;
}


.tooltip {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 3;
}

.icon-wrapper:hover:not(.active) .tooltip, .mobile-icon-wrapper:hover:not(.active) .tooltip{
  opacity: 1;
}


.icon-logo {
	margin: 10px 0px;
	width:250px;
}
.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-desktop {
    height: 40px;
}

.mobile-layout {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-mobile {
    height: 55px;
}

.mobile-menu-toggle:hover {
	color:#FFFFFF;
	background-color:#8c734b;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
	color:#333333;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9998;
}

.mobile-menu.open ~ .menu-overlay {
    display: block;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100px;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
}

.mobile-menu.open {
    transform: translateX(0);
}

.site-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 100%;
 
}






@media screen and (min-width: 769px) {
    .site-content {
      padding-top: 120px;
    } 
    .mobile-layout,
    .mobile-menu {
        display: none !important;
    }
    .wpmf-folder-grid {
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .custom-article-card {
      width: 180px;
    }
}

.login-left-wrapper {
  position: relative;
  height: 100vh;
  padding: 2rem;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.login-left-wrapper .decor-top-left,
.login-left-wrapper .decor-bottom-left,
.site-content .decor-bottom-left {
  position: absolute;
  width: 100px;
  height: auto;
  z-index: 0;
}

.decor-top-left {
  top: 10px;
  left: 10px;
}

.decor-bottom-left {
  bottom: 10px;
  left: 10px;
}

.login-inner-content {
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.login-inner-content .logo {
  height: 160px;
  margin-top: 4rem;
  margin-bottom: 1rem;
}

.login-inner-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-inner-content input {
  padding: 0.75rem;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.login-inner-content button {
  padding: 0.75rem;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
}

.login-inner-content .lost-password {
  display: block;
  margin-top: 1.5rem;
  text-align: right;
  font-size: 0.85rem;
  color: #555;
}

.wpmf-folder-grid {
  display: grid;
  gap: 24px;
  padding: 20px;
}

.wpmf-folder-item {
  text-align: center;
  border: 1px solid #ddd;
  padding: 20px 10px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  max-height: 160px;
  width: 200px;
}

.wpmf-folder-item:hover, .custom-article-card:hover {
  transform: translateY(-2px);
}

.wpmf-folder-icon img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.wpmf-folder-name {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  word-wrap: break-word;
}


.filter-sidebar {
  position: fixed;
  top: 150px;
  left: 0;
  bottom: 20px;
  width: 300px;
  background-color: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
  z-index: 1000;
  transform: translateX(-280px);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: row;
  overflow: hidden;
}


.filter-sidebar:not(.collapsed) {
  transform: translateX(0);
}

.filter-sidebar .sidebar-toggle {
  width: 20px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle .dots {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px; /* espace entre les points */
}

.sidebar-toggle .dots span {
  width: 6px;
  height: 6px;
  background-color: #8c734b;
  border-radius: 50%;
}

.filter-sidebar .sidebar-content {
  flex-grow: 1;
  padding: 15px 5px 5px 10px;
  overflow-y: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tab-section {
  padding: 30px 0px 10px 0px;
}

.sidebar-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.tab-button {
  padding: 6px 12px;
  background-color: #f0f0f0;
  color: #333;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.tab-button.active {
  background-color: #8c734b;
  color: white;
}

.main-content {
  margin-left: 0;
  padding: 20px;
}

#filterTab, #explorerTab {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.filter-scroll-area, .explorer-scroll-area {
  flex: 1; 
  overflow-y: auto;
  padding-bottom: 10px;
}

/* Container principal Select2 */
.select2 {
  /*width: 100% !important;*/
  border: 2px solid #8c734b;
  border-radius: 4px;
  background-color: white;
  font-size: 14px;
  color: #333;
  padding: 4px 12px; /* ajuste si besoin */
  position: relative;
  cursor: pointer;
  /* Flèche personnalisée */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpolygon points='7,10 0,0 14,0' fill='%238c734b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 10px;
}

/* Lorsque le select est focus */
.select2-container--default.select2-container--focus {
  outline: none;
}

/* Texte sélectionné */
.select2-selection__rendered {
  color: #333;
  line-height: 1.5;
}

/* Input pour la recherche dans Select2 */
.select2-search__field {
  font-size: 14px;
  color: #333;
}

/* Suppression du triangle natif du select (au cas où) */
.select2-selection__arrow {
  display: none; /* on masque la flèche native Select2 car on a notre background-image */
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border: none !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border: none;
  outline: 0;
}
.select2-container--default .select2-selection--multiple {
  background-color: transparent !important;;
  border: none !important;
}

.select2-selection__rendered {
  margin: 0px 0px !important;
}

.select2-container .select2-search--inline .select2-search__field {
  margin-top: 0px !important;
  margin-left: 0px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color:#333 !important;
}

textarea {
  line-height: 19px !important;
}

input[type="text"], input[type="number"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type=reset], input[type=tel], input[type=date], select {
  height: 30px;
  border:none;
  background-color: #ebebeb;
}

.filter-controls {
  margin-bottom: 1em;
}

.search-input {
  display: flex;
  align-items: center;
  border: 2px solid #8c734b;
  border-radius: 4px;
  padding: 5px 10px;
  margin-bottom: 15px;
  background-color: #ffffff;
}

.search-input i {
  margin-left: 8px;
  color: #8c734b;
}

.search-input input {
  border: none;
  outline: none;
  flex: 1;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

input[type="radio"]:checked, input[type=reset], input[type="checkbox"]:checked, input[type="checkbox"]:hover:checked, input[type="checkbox"]:focus:checked, input[type=range]::-webkit-slider-thumb {
  background-color: #8c734b;
}
.radio-group input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #8c734b;
  border-radius: 50%;
  position: relative;
}

.radio-group input[type="radio"]:checked::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background-color: #8c734b;
  border-radius: 50%;
}

.date-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.date-input {
  display: flex;
  align-items: center;
  border: 2px solid #8c734b;
  border-radius: 4px;
  padding: 6px 10px;
  height: 42px;
  background-color: #fff;
}

.date-input i {
  color: #8c734b;
  margin-right: 8px;
}

.date-input input[type="date"] {
  border: none;
  outline: none;
  flex: 1;
  height: 100%;
  font-size: 14px;
  background-color: transparent;
}

.search-button-wrapper {
  text-align: center;
  margin-top: 20px;
}

.search-button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.search-button:hover {
  background-color: #8c734b;
}

/* Cacher l'icône native du champ date (Chrome, Edge, Safari) */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  right: 0;
  width: 100%;
  height: 100%;
}

/* Firefox (ne montre pas l’icône si elle est cachée proprement dans une div) */
input[type="date"]::-moz-focus-inner {
  border: 0;
}

/* Style personnalisé du champ date */
.date-input {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #8c734b;
  border-radius: 4px;
  padding: 6px 10px;
  height: 42px;
  background-color: #ffffff;
  overflow: hidden;
}

.date-input i {
  color: #8c734b;
  margin-left: 8px;
  z-index: 1;
}

.date-input input[type="date"] {
  border: none;
  outline: none;
  flex: 1;
  height: 100%;
  font-size: 14px;
  background-color: transparent;
  position: relative;
  z-index: 2;
  padding-left: 0;
  cursor: pointer;
}

.folder-tree,
.folder-tree ul {
    list-style-type: none;
    padding-left: 20px;
    margin:0px 0px;
}

.folder-node {
    margin: 5px 0;
}

.folder-title {
    cursor: pointer;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
}

.folder-title:hover {
    background-color: #f0f0f0;
}

.folder-title.active {
    background-color: #8c734b;
    color: white;
}

.folder-title {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.folder-icon {
  width: 25px;
  height: 30px;
  display: inline-block;
}

.news-wrapper, .folder-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  padding: 0 20px;
  box-sizing: border-box;
}

.custom-articles-grid {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.custom-article-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  max-height: 220px;
  min-height: 220px;
}

.article-thumbnail {
  width: 100%;
  min-height: 90px;
  max-height: 90px;
  background-size: cover;
  background-position: center;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0.2rem;
  font-size: 0.75rem;
  color: #333;
  align-items: center; 
}

.article-title {
  margin: 0 1rem 0.5rem;
  font-size: 1rem;
  text-align: center;
}

.article-footer {
  margin-top: auto;
  padding: 0.5rem 1rem;
  text-align: right;
  background: #f9f9f9;
}

.article-link {
  color: #333;
  text-decoration: none;
  font-size: 0.8rem;
}

.article-link:hover, .article-link:visited {
  text-decoration: underline;
  color: #8c734b;
}

.icon-favoris {
  cursor: pointer;
}


.custom-pagination {
  padding: 10px 0;
  display: flex;
  justify-content: flex-end;
}

.custom-pagination-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(51, 51, 51, 0.2);
}

.pagination-prev:hover,
.pagination-next:hover {
  background-color: #8c734b;
  color:#ffffff;
}
.pagination-prev,
.pagination-next {
  padding: 6px 12px;
  background-color: #ffffff;
  color:#8c734b;
  border: 1px solid #8c734b;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
}

.pagination-prev:disabled,
.pagination-next:disabled {
  opacity: 0.5;
  cursor: default;
}

.pagination-info {
  font-weight: 500;
}

.custom-radio {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  margin-right: 15px;
  font-size: 16px;
}

/* Cacher le vrai input */
.custom-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Cercle externe */
.radio-mark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 2px solid #8c734b;
  border-radius: 50%;
}

/* Cercle plein quand sélectionné */
.custom-radio input[type="radio"]:checked + .radio-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background-color: #8c734b;
  border-radius: 50%;
}


/* Responsive */
@media screen and (max-width: 768px) {
  .wp-block-column.imgcol-full-height {
    display: none !important;
  }

  .login_form_zone {
    flex-basis: 100% !important;
    padding: 30px;
  }

  .site-content {
    padding-top: 80px;
  } 
  .desktop-layout {
      display: none;
  }
  .header-bottom-line {
    display: none;
  }
  .mobile-layout {
      display: flex;
  }

  .container-fullwidth {
    height: calc(100vh - 90px);
  }

  .news-wrapper, .folder-wrapper {
    height: calc(100vh - 90px);
  }
  .triangle-indicator {
    font-size: 25px;
    position: absolute;
    top: 50%;
    left: -20%;
    transform: translateY(-50%) rotate(90deg);
    margin-top: 4px;
    display: none !important;
  }

  .wpmf-folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    padding: 10px 0px 20px 0px;
  }
  

  .custom-article-card {
    width: 180px;
  }

  .login-left-wrapper {
    height: auto;
    padding: 1rem;
  }

  .login-inner-content {
    max-width: 100%;
  }

  .decor-top-left, .decor-bottom-left {
    display: none;
  }
}
