/* Theme Name: Egovt Child Theme
Theme URI: https://themeforest.net/user/ovatheme/portfolio
Description: This is child theme of egovt
Author: Ovatheme
Author URI: https://themeforest.net/user/ovatheme
Template: egovt
Version: 1.0.0
Tags: two-columns, three-columns, left-sidebar, right-sidebar, custom-menu, editor-style, featured-images, flexible-header, full-width-template, post-formats, rtl-language-support, sticky-post, translation-ready
Text Domain:  egovt-child
*/
/* Augmente la largeur de la sidebar */
/*.ova-dep-sidebar {
    flex: 0 0 50%;  
    max-width: 50%;
}*/

/* Ajuste le contenu à côté si besoin */
/*.ova-dep_content {
    flex: 0 0 50%;
    max-width: 50%;
}*/

.eael-post-grid .eael-entry-media .eael-entry-thumbnail img{
  width: 100% !important;
  height: 180px !important;
  object-fit: cover;
  display: block;
}


/* fixe la hauteur du cadre image pour éviter les sauts */
.ova-wrap.blog-slide .post-media,
.ova-wrap.blog-slide .post-media a{
  display: block;
  height: 180px !important;   /* même valeur que ci-dessous */
  overflow: hidden;
}

/* force l'image à remplir le cadre */
.ova-wrap.blog-slide .post-media img,
.ova-blog.blog-slide .post-media img,
.elementor-widget-ova_blog_slide .post-media img,
.owl-carousel .post-media img{
  width: 100% !important;
  height: 180px !important;
  object-fit: cover;
  display: block;
}


.ova_openNav {
    background-color: #4A2E77 !important; 
    color: #ffffff !important;    
}

.ova_openNav:hover {
    background-color: #4A2E77 !important; 
    color: #ffffff !important;
}

#scrollUp {
    background-color: #BB1919 !important; 
    color: #ffffff !important;
}

/* Onglet actif et au survol : violet */
.e-n-tab-title[aria-selected="true"],
.e-n-tab-title:hover {
    background-color: #4A2E77 !important; /* violet */
    border-color: #4A2E77 !important;
    color: #fff !important; /* texte en blanc */
}

/* Boutons inactifs (par défaut bord violet et texte violet) */
.e-n-tab-title {
    border: 1px solid #4A2E77 !important;
    color: #4A2E77 !important;
    background-color: transparent !important;
}



/* Laisser dépasser la carte sur l'image */
.section-hero{ overflow: visible; }
.section-hero .elementor-container{ align-items: center; } /* centre verticalement */

/* Colonne droite = photo */
.hero-photo{
  position: relative;
  z-index: 1;
  min-height: 560px;              /* hauteur du visuel */
  background-size: cover;
  background-position: center;
}

/* Carte interne (pas la colonne) */
.hero-card{
  position: relative;
  z-index: 2;                     /* au-dessus de .hero-photo */
  margin-right: -70px;            /* chevauchement vers la droite */
  background: #F4F6F8;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  padding: 56px 64px;
  display: inline-block;          /* garde une hauteur auto (= contenu) */
  max-width: 760px;               /* optionnel : largeur max du texte */
}

/* Empêche les widgets de s'étirer en pleine hauteur */
.section-hero .elementor-column .elementor-widget-wrap{ align-content: flex-start; }

/* Responsive : on retire le chevauchement */
@media (max-width: 1024px){
  .hero-card{ margin-right: 0; padding: 36px; }
  .hero-photo{ min-height: 42vh; }
}
@media (max-width: 767px){
  .hero-card{ padding: 24px; border-radius: 16px; }
}

.dep-content-sub .dep-excerpt{
  display: none !important;
}
a.dep-readmore { white-space: nowrap; }

.ovaev-event-element .event-list .event_title {
  font-size: 16px;
  line-height: 1.4;
}

.ovaev-event-element .event-list .date-event .date-month {
  font-size: 14px;
}

/* Réduction de l'interligne du titre Agenda du Recteur */
.ovaev_list .title-event.second_font {
       /* Ajuste la valeur (par défaut c’est souvent 1.4 - 1.6) */
    margin-bottom: 2px;   /* Pour réduire l’espace après le titre */
}
/* Réduction de l'interligne dans la liste des événements */
.ovaev_list .event-list {
    /* Ajuste entre 1.1em et 1.4em selon ton goût */
    margin-bottom: 4px;   /* espace entre deux événements */
}

/* Masquer le titre de la page "Accueil" */
body.home .page-title {
    display: none !important;
}

.tendances-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  font-family: 'Inter', sans-serif;
  max-width: 360px;
}

.tendances-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.tendances-list li {
  border-bottom: 1px solid #eee;
}

.tendances-list li:last-child {
  border-bottom: none;
}

.tendances-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  transition: all 0.3s ease;
}

.tendances-list li a:hover {
  color: #000;
  transform: translateX(4px);
}

.tendances-list li span {
  background: #f7f7f7;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  width: 22px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.tendances-list li a:hover span {
  background: #000;
  color: #fff;
  border-color: #000;
}
.academique-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  font-family: 'Inter', sans-serif;
  max-width: 320px;
}

.academique-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 15px;
  color: #3b0078; /* violet du titre */
}

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

.academique-list li {
  border-bottom: 1px solid #ddd;
}

.academique-list li:last-child {
  border-bottom: none;
}

.academique-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  transition: all 0.3s ease;
}

.academique-list li a:hover {
  color: #000;
  transform: translateX(4px);
}

.academique-list li img {
  width: 25px;  /* taille réduite */
  height: 25px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.academique-list li a:hover img {
  transform: scale(1.1); /* petit zoom au survol */
}

.agenda-list li a {
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
}

/*.agenda-list li a:hover::after {
  content: attr(data-full);
  position: absolute;
  left: 0;
  top: 0;
  background: #f9f9f9;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: normal;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  width: max-content;
}*/
/*.agenda-list li a:hover::after {
  content: attr(data-full);       
  position: absolute;
  left: 0;
  top: 0;
  background: #f9f9f9;
  padding: 6px 8px;
  border-radius: 4px;
  white-space: normal;           
  word-wrap: break-word;          
  max-width: 300px;              
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
width: max-content;align-content
}*/

/*.agenda-list li a {
  position: relative;
}

.agenda-list li a:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: 0;
  background: #f9f9f9;
  padding: 6px 8px;
  border-radius: 4px;
  white-space: normal;
  max-width: 300px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}*/
/*.agenda-list li a {
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
}

.agenda-list li a:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: 0;
  background: #f9f9f9;
  padding: 6px 8px;
  border-radius: 4px;
  white-space: normal;
  max-width: 300px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}*/

.agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.agenda-list li {
  border-bottom: 1px solid #eee;
  margin-bottom: 8px
  
}

.agenda-list li:last-child {
  border-bottom: none;
}

.agenda-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  transition: all 0.3s ease;
}

.agenda-list li a:hover {
  color: #000;
  transform: translateX(4px);
}

.agenda-list li .date {
  color: #4A2E77;
  font-size: 0.75em; 
  line-height: 1;    
  flex-shrink: 0;
}

/* Conteneur colonne */
.topbar-inline > .elementor-widget-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px;
}

/* Widgets */
.topbar-inline > .elementor-widget-wrap > .elementor-widget {
    width: auto !important;
}

/* TranslatePress : seulement le bouton, PAS le menu */
.topbar-inline .trp-language-switcher {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
}

/* Dropdown vertical (sécurité) */
.topbar-inline .trp-language-switcher ul {
    display: block !important;
}
/* 1️⃣ Masquer le switcher sur desktop */
@media (min-width: 992px) {
    .trp-language-switcher {
        display: none !important;
    }
}

/* Style propre dans le menu mobile */
@media (max-width: 991px) {

    /* Affichage et centrage */
    .trp-language-switcher {
        display: block !important;
        text-align: center;
        margin: 15px 0;
    }

    /* Couleurs visibles même si fond blanc */
    .mobile-menu .trp-language-switcher,
    .sidr-class-trp-language-switcher,
    .trp-language-switcher {
        background-color: #4A2E77 !important; /* violet */
        border: 1px solid #4A2E77 !important;
        border-radius: 5px;
        padding: 8px 12px;
    }

    /* Couleur du texte */
    .mobile-menu .trp-language-switcher a,
    .sidr-class-trp-language-switcher a,
    .trp-language-switcher a {
        color: #ffffff !important;
        font-weight: 600;
    }
}

.title-list-sev svg {
    display: none !important;
}

div.share_social {
    display: none !important;
}
