
/* ==================================================
   BREADCRUMB TOP BAR – Shape5 FIX
   Langue | Recherche (tout à droite)
   ================================================== */

#s5_breadcrumb_wrap {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    height: 50px !important;
    padding: 0 20px !important;
    background-color: #1F92C9 !important;
    box-sizing: border-box;
    float: none !important;
}

/* IMPORTANT : neutraliser les wrappers Shape5 */
#s5_breadcrumb_wrap > div,
#s5_breadcrumb_wrap .s5_mod_wrap {
    float: none !important;
    display: flex !important;
    align-items: center !important;
}

/* Supprimer marges parasites */
#s5_breadcrumb_wrap *,
#s5_breadcrumb_wrap .module_round_box_outer,
#s5_breadcrumb_wrap .module_round_box_inner {
    margin: 0 !important;
    padding: 1px !important;
}

/* ==================================================
   ORDRE VISUEL DES MODULES
   ================================================== */

/* LANGUE – EN PREMIER */
#s5_breadcrumb_wrap .mod-languages {
    order: 1;
    display: flex !important;
    align-items: center !important;
    margin-right: 15px;
}

/* RECHERCHE – APRÈS */
#s5_breadcrumb_wrap .mod-search,
#s5_breadcrumb_wrap .mod-finder {
    order: 2;
    display: flex !important;
    align-items: center !important;
}

/* ==================================================
   STYLE
   ================================================== */

/* Liens langue */
#s5_breadcrumb_wrap .mod-languages a,
#s5_breadcrumb_wrap .mod-languages span {
    color: #ffffff !important;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

/* Champ recherche */
#s5_breadcrumb_wrap input[type="search"],
#s5_breadcrumb_wrap input[type="text"] {
    height: 32px !important;
    padding: 5px 10px !important;
    border-radius: 3px;
    border: none;
}




.jt-ic .row {
  align-items: flex-end;
}

/* zoom images */

img.zoom
{
  transition-property: all;
  transition-duration: 0.4s;
  transition-timing-function: ease;
  transition-delay: 0s;
}
img.zoom:hover
{
  transform: rotate(0deg) scale(1.15);
}

#s5_nav li {
  border-right: solid 1px #FFF !important;
}



html[lang^="fr"] #s5_pos_custom_1,
html[lang^="en"] #s5_pos_custom_1 {
  float: right;
  margin-top: 8px;
}

html[lang^="ar"] #s5_pos_custom_1 {
  float: left;
  margin-top: 8px;
}

#s5_bottom_row2_wrap {
  padding-top: 5px;
  padding-bottom: 0px !omportant;
}

.s5-zone-intro {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
  background-color: #103058;
}

/* RTL arabe */
.s5-zone-intro.rtl {
  direction: rtl;
  font-size: 40px;
  
}
html[lang^="ar"] .s5-zone-intro {
  direction: rtl;
  font-size: 30px !important;
  margin-bottom: 30px !important; 
}


/* ============================================================================================= FOOTER 4 COLONNES ================================================= */

.footer-fullwidth {
  width: 100%;
  background-color: #1F92C9;
}

.footer-4cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;

  max-width: 1200px;   /* largeur du contenu */
  margin: 0 auto;     /* centré */
  padding: 40px 20px; /* SAFE mobile */
  margin-bottom: -73px !important;
  text-align: center;
  color: #fff;
}

@media (max-width: 992px) {
  .footer-4cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-4cols {
    grid-template-columns: 1fr;
  }
}


/* ========================================================================================= FOOTER 6 COLONNES IMAGES ======================================================== */
.footer-6cols-images {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
  /*  gap: 25px;*/
    gap: 9px;
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.footer-6cols-images .img-col img {
    max-width: 100%;
   /* height: auto;*/
    max-height: 90px; /* ajuste selon tes logos */
    object-fit: contain;
    transition: transform 0.3s ease;
}


.footer-6cols-images .img-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-6cols-images .img-col img {
    width: auto;
    max-width: 100%;
    height: 276px;          /* hauteur réelle de l’image */
    object-fit: contain;   /* aucune déformation */
}







.footer-6cols-images .img-col img:hover {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .footer-6cols-images {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .footer-6cols-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}


/* ================================================  Actualtés page d'accueil  ============================================*/
.jt-infinite-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;                 /* espace entre colonnes */
    justify-items: center;
}

.slide {
    width: 420px;              /* largeur fixe */
    height: 420px;             /* hauteur fixe */
    background: #ffffff;
    border: 1px solid #d6d6d6;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 20px;
    overflow: hidden;          /* le contenu ne change pas la taille */
}

.slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.slide .introtext {
    max-height: 110px;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .jt-infinite-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .jt-infinite-content {
        grid-template-columns: 1fr;
    }

    .slide {
        width: 100%;
       /* height: auto;*/
		margin: 0px 0px 30px 0px !important;
    }
}

.jt-infinite-content {
    margin: 0px 0px 0px 5px !important;
}

.slide h2,
.slide h3,
.slide .page-header {
    margin: 15px 0;
}

.slide .readmore {
    margin-top: auto !important;      /* pousse le bouton en bas */
    align-self: center;    /* centré horizontalement */
}

.slide {
  position: relative;
}

.slide-content {
  overflow: auto;
}

.slide .readmore {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}


/* ==================================== Contact ==================================================*/

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* Colonne gauche */
.contact-left {
    padding: 20px;
}

/* Colonne droite */
.contact-right iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
    border-radius: 8px;
}

/* Responsive tablette & mobile */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-right iframe {
        min-height: 250px;
    }
}
/*======================================================= Image_Fader_fr ============================================================*/
/* Hauteur contrôlée du S5 Image and Content Fader */
#myGallery, #myGallerySet, #flickrGallery {
    position: relative;
    z-index: 0;
    height: 400px !important;
}

/* ================================================= menu arabe ===========================================================================*/

html[lang^="ar"] #s5_menu_wrap ul.menu {
  font-size: 1.2em !important;
  font-family: "Cairo", "Tajawal", Arial, sans-serif;
}

html[lang^="ar"] #subMenusContainer ul ul {
  font-size: 1.2em !important;
}
/*=================================================  Actualtés arabe =====================================================================*/

/*html[lang^="ar"] .bs-readmore {
  font-size: 0;*/ /* cache le texte original */
/*html[lang^="ar"] .bs-readmore::after {
  content: "للمزيد" !important;
  font-size: 16px !important;
}*/

/*html[lang^="ar"] .bs-readmore {
  direction: ltr !important;
}*/

/*================================================= accordion  =====================================================================*/
/* Tabs & Accordions – Forcer RTL en arabe */

@media screen {
   [data-rlta-element="heading"] {
 	/*padding-left: 800px !important;*/
  }
  
  
  /* ===============================    jdGallery / Carousel - AR S5 Image and Content Fader v4 ================================ */
  
 /*===   Mobile   ==== */ 
html[lang^="ar"] .jdGallery .carousel .carouselWrapper,
html[lang^="ar"] .jdExtCarousel .carouselWrapper {
  position: absolute;
  width: 45% !important; /* Mobile */
   top: 6px;
  left: 0;
  overflow: hidden;
}

 /*#myGallery, #myGallerySet, #flickrGallery {
    position: relative;
    z-index: 0;
   /* height: 180px !important;*/
}*/
 
 /*===   Mobile large (≥ 375px)   ==== */
@media (min-width: 375px) {
  html[lang^="ar"] .jdGallery .carousel .carouselWrapper,
  html[lang^="ar"] .jdExtCarousel .carouselWrapper {
    width: 35% !important;
  }
}

@media (min-width: 384px) {
  html[lang^="ar"] .jdGallery .carousel .carouselWrapper,
  html[lang^="ar"] .jdExtCarousel .carouselWrapper {
    width: 35% !important;
  }
}

 /*===   Mobile large (≥ 90px)   ==== */
@media (min-width: 390px) {
  html[lang^="ar"] .jdGallery .carousel .carouselWrapper,
  html[lang^="ar"] .jdExtCarousel .carouselWrapper {
    width: 35% !important;
  }
}

 /*===   Mobile large (≥ 480px)   ==== */
@media (min-width: 480px) {
  html[lang^="ar"] .jdGallery .carousel .carouselWrapper,
  html[lang^="ar"] .jdExtCarousel .carouselWrapper {
    width: 20% !important;
  }
}

 /*===   Tablette (≥ 768px)   ==== */
@media (min-width: 1024px) {
  html[lang^="ar"] .jdGallery .carousel .carouselWrapper,
  html[lang^="ar"] .jdExtCarousel .carouselWrapper {
    width: 85% !important;
  }
}

 /*===   Laptop (≥ 1024px)   ==== */
@media (min-width: 1200px) {
  html[lang^="ar"] .jdGallery .carousel .carouselWrapper,
  html[lang^="ar"] .jdExtCarousel .carouselWrapper {
    width: 80% !important;
  }
}

 /*===   Desktop (≥ 1200px)   ==== */
 
@media (min-width: 1200px) {
  html[lang^="ar"] .jdGallery .carousel .carouselWrapper,
  html[lang^="ar"] .jdExtCarousel .carouselWrapper {
    width: 12% !important;
  }
}


