/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/**
 * @file
 * Nav Primary.
 */

.topmenu__menu {
  flex-wrap: wrap;
  list-style: none;
}

.topmenu__menu-item {
  margin-block-end: var(--sp0-5);
}

.topmenu__menu-item:last-child {
  margin-block-end: 0;
}

.topmenu__menu-item.topmenu__menu-item--has-children {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.topmenu__menu-item.topmenu__menu-item--has-children .topmenu__menu-link--link,
.topmenu__menu-item.topmenu__menu-item--has-children .topmenu__menu-link--nolink {
  /* Ensure that long text doesn't make the mobile expand button wrap. */
  flex-basis: calc(100% - var(--sp3));
}

.topmenu__menu-link {
  flex-grow: 1;
  -webkit-text-decoration: none;
  text-decoration: none;
  color: var(--color-text-neutral-loud);
  font-size: 1.75rem;
  font-weight: bold;
  line-height: var(--sp2);
}

.topmenu__menu-link:hover {
  color: inherit;
}

.topmenu__menu-link:focus {
  outline: auto 2px var(--color--primary-50);
  outline-offset: 2px;
}

.topmenu__menu-link--nolink {
  padding-block: var(--sp0-5);
  padding-inline-start: 0;
  padding-inline-end: 0;
  color: var(--color-text-neutral-soft);
  font-weight: normal;
}

.topmenu__menu-link--button {
  position: relative;
  padding-block: 0;
  padding-inline-start: 0;
  padding-inline-end: 0;
  cursor: pointer;
  text-align: start;
  border: 0;
  background: transparent;

  /* Plus icon for mobile navigation. */
}

.topmenu__menu-link--button.topmenu__menu-link--has-children {
  padding-inline-end: var(--sp3); /* Ensure text does not overlap icon. */
}

.topmenu__menu-link--button.topmenu__menu-link--has-children::before,
.topmenu__menu-link--button.topmenu__menu-link--has-children::after {
  position: absolute;
  inset-inline-end: 0.5625rem;
  inset-block-start: calc(var(--sp0-5) + 1.0625rem); /* Visually align button with menu link text. */
  width: 1.125rem;
  height: 0;
  content: "";
  /* Intentionally not using CSS logical properties. */
  border-top: solid 3px var(--color--primary-50);
}

.topmenu__menu-link--button.topmenu__menu-link--has-children::after {
  transition: opacity 0.2s;
  transform: rotate(90deg);
}

.topmenu__menu-link--button.topmenu__menu-link--has-children[aria-expanded="true"]::after {
  opacity: 0;
}

.topmenu__menu-link-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-block: var(--sp0-5);
  padding-inline-start: 0;
  padding-inline-end: 0;
}

.topmenu__menu-link-inner::after {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 0;
  content: "";
  transition: transform 0.2s;
  transform: scaleX(0);
  transform-origin: left;
  /* Intentionally not using CSS logical properties. */
  border-top: solid 5px var(--color--primary-50);
}

.topmenu__menu-link:hover .topmenu__menu-link-inner::after {
  transform: scaleX(1);
}


/*drowndown*/
/* Dropdown menu container */
.dropdown-menu {
  display: none; /* Hidden by default */
  opacity: 0; /* Make it invisible initially */
  transform: translateY(-10px); /* Slide effect (starts slightly above) */
  transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transitions for opacity and position */
  /* background-color: #f8f9fa; */ /* Light background */
  /* border: 1px solid #ddd; */ /* Subtle border */
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */ /* Soft shadow for depth */
  /* border-radius: 5px; */ /* Rounded corners */
  /* padding: 10px; */ /* Spacing inside dropdown */
  --bs-dropdown-padding-y: 0;
}

/* Show the dropdown menu when active */
.dropdown-menu.show {
  display: block; /* Make it visible */
  opacity: 1; /* Fully visible */
  transform: translateY(0); /* Slide down into place */
  background: #00000096;
}

/* Style for dropdown items */
.dropdown-menu .dropdown-item {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 3px; /* Slight rounding for buttons */
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effect */
}

.dropdown-menu .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff; /* White text on hover */
}

/**/
/*
  Top level specific styles.
*/

.topmenu__menu--level-1 {
  margin-block: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  padding-block: 0;
  padding-inline-start: 0;
  padding-inline-end: 0;
}

.topmenu__menu-link--level-1 {
  position: relative;
  display: flex;
  letter-spacing: -1px;
}

/*
  Secondary menu specific styles.
*/

.topmenu__menu--level-2 {
  visibility: hidden;
  overflow: hidden;
  flex-basis: 100%;
  max-height: 0;
  margin-block: 0;
  margin-inline-start: calc(-1 * var(--sp));
  padding-inline-start: var(--sp2-5);
  transition:
    opacity 0.2s,
    visibility 0.2s,
    max-height 0.2s;
  opacity: 0;
  border-inline-start: solid var(--sp) var(--color--primary-50);
}

.topmenu__menu--level-2.is-active-menu-parent {
  visibility: visible;
  max-height: none;
  margin-block-start: var(--sp1-5);
  opacity: 1;
}

.topmenu__menu--level-2 .topmenu__menu-item--level-2:first-child {
  padding-block-start: var(--sp0-25);
}

.topmenu__menu--level-2 .topmenu__menu-item--level-2:last-child {
  padding-block-end: var(--sp0-25);
}

@media (min-width: 43.75rem) {
  .topmenu__menu--level-2 {
    margin-inline-start: calc(-1 * var(--sp3));
    padding-inline-start: var(--sp3);
  }
}

/*
 * Olivero doesn't officially support nested tertiary submenus, but this
 * ensures that it doesn't break all the way.
 *
 * @see https://www.drupal.org/project/drupal/issues/3221399
 */

.topmenu__menu--level-2 .topmenu__menu-item--has-children {
  display: block;
}

.topmenu__menu-link--level-2 {
  font-size: 1rem;
  font-weight: normal;
  line-height: var(--sp);
}

html:not(.js) .topmenu__menu--level-2 {
  visibility: visible;
  max-height: none;
  opacity: 1;
}

[dir="rtl"] .topmenu__menu-link-inner::after {
  transform-origin: right;
}


/*houwiyeti*/
img.card-img-top1 {
    width: 80px;
    height: 70px;
}
/***/
#banner {
    background: #e8e0e0;
}
#views_slideshow_cycle_main_newsslid-block_1  .field__label {
    display: none;
}

.carousel-item img {
    width: 1400px;
    height: 660px;
}

#views-bootstrap-v-block-1 {
    height: 500px;
}
/* menu align center mobile*/
.navbar-nav .nav-link.dropdown-toggle, .navbar-nav .media-library-view--widget .view-header a.dropdown-toggle, .media-library-view--widget .view-header .navbar-nav a.dropdown-toggle {
    display: flex !important;
    flex-direction: unset;
    justify-content: center;
    align-items: end;
}
/*slid css for mobile*/

.titrecarou {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
    padding: 7px;
    background: #080606c4;
    /* color: white; */
    /* height: 100%; */
    /* align-items: stretch; */
}
.titrecarou a{
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
    font-weight:700px;
    text-decoration:none;
    color: white;
    gap: 10px;
    /* height: 100%; */
    /* align-items: stretch; */
}

.imagecarou {max-height: 261px;}
.imagecarou img{max-height: 250px;}

/*numbers counter*/
.stats-container {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 20px;
        padding: 40px;
        background-color: #f4f7f6;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    .stat-card {
        background: white;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
        min-width: 200px;
        border-bottom: 5px solid #004b23; /* Vert Mauritanie */
        transition: transform 0.3s ease;
    }
    .stat-card:hover {
        transform: translateY(-10px);
    }
    .stat-number {
        font-size: 3rem;
        font-weight: bold;
        color: #003366; /* Bleu institutionnel */
        margin-bottom: 10px;
    }
    .stat-label {
        font-size: 0.9rem;
        color: #666;
        letter-spacing: 1px;
        font-weight: 600;
    }
    
    /**/
    /* Initial state: hidden and slightly lower */
.animate-terrain {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* State when visible */
.terrain-visible {
    opacity: 1;
    transform: translateY(0);
}