:root {
  interpolate-size: allow-keywords;

  --radius-10: 10px;
  --radius-15: 15px;
  --radius-20: 20px;
  --radius-30: 30px;
  --radius-99: 99px;

  --h1-size: clamp(1.875rem, 4vw, 3.5rem);
  --h2-size: clamp(2.2rem, 4vw, 3.5rem);
  --h3-size: clamp(1.4rem, 3vw, 1.5rem);
}

h2 {
  font-size: var(--h2-size);
}

h3 {
  font-size: var(--h3-size);
}

body {
  color: black;
}

figure {
  margin: 0;
}

p {
  line-height: 1.5 !important;
  font-weight: 400;
}

b, strong {
  font-weight: 600;
}

.page__content ul li::before, .page__files ul li:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2F52A3;
  margin-right: 10px;
  position: relative;
  top: 1px;
}


#infos-container .swiper-button-next,
#infos-container .swiper-button-prev{
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

/* exemples (mets tes SVG à toi) */
#infos-container .swiper-button-next{ background-image: url('/wp-content/themes/univ-2026/img/down.svg'); }
#infos-container .swiper-button-prev{ background-image: url('/wp-content/themes/univ-2026/img/up.svg'); }

/* si jamais des SVG Swiper existent quand même, on les masque */
#infos-container .swiper-button-next svg,
#infos-container .swiper-button-prev svg{ display:none; }



/* visual composer surcharge */

.vc_btn3.vc_btn3-shape-rounded, .vc_general.vc_cta3.vc_cta3-shape-rounded, .vc_message_box-rounded, .wpb_video_widget .wpb_video_wrapper {
  border-radius: 10px !important;
}

.wpb_video_widget .wpb_video_wrapper {
 overflow: hidden;
}

/* fin visual composer surcharge */

.page__content img {
   border-radius: var(--radius-10);
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid rgba(0,0,0,.25) !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}


.absolute-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

.container-fluid {
  padding: 0;
}

.home .page {
  padding-top: var(--header-height, 130px);
} 

body:is(.home) main {
  background-color: #ebebeb;
}

main {
  padding-inline: 0px;
  margin-inline: auto;
  z-index: 1;
  position: relative;
}

.d-flex-w {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.d-flex-c {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sb {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

body .swiper-infos {
  width: 100%;
  display: flex;
  align-items: flex-start;
  background-color: rgba(0, 0, 0, 0.65);
  border-radius: var(--radius-10);
  height: 200px !important;
  overflow: hidden;

  @media (width <= 576px) {
    width: 100%;
    min-width: 0;
    height: auto !important;
  }

  .swiper-wrapper {
    @media (width <= 576px) {
      /* flex-direction: row; */
    }
  }
}

.swiper-infos .swiper-slide .infos-card-content {
  height: 100%;
  width: 100%;
  flex: 1;
  padding: 0.6rem;

  @media (width <= 576px) {
    padding: 0rem;
  }

  h3 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
  }
  p {
    font-size: 1rem;
    font-weight: 300;

    line-clamp: 3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    @media (width <= 576px) {
      display: none;
    }
  }
  a {
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: 1px solid white;
    outline-offset: -1px;
    width: fit-content;
    padding: 0.3rem 1.6rem;
    border-radius: var(--radius-99);
    line-height: 1.2;
    transition: background-color 0.3s ease, color 0.3s ease,
      outline-color 0.3s ease;

    &:hover {
      color: black;
      background-color: white;
      text-decoration: none;
    }
  }
}

body .swiper-infos .swiper-navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  border-left: 1px solid #fff;

  & :is(.swiper-button-next, .swiper-button-prev) {
    position: relative;
    color: white;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    height: 100%;
    transition: background-color 0.3s ease;
    width: 40px;


    &:after, &:before{
      font-size: inherit;
      transform: rotate(90deg);
    }

    &:hover,
    &:focus {
      background-color: white;
      color: black;
    }

    svg {
      width: 10px;
      height: fit-content;
    }
  }
  .swiper-button-prev {
    border-bottom: 1px solid white;

  }
}

.swiper-infos .swiper-pagination {
  width: fit-content;
  right: 60px;
  left: unset;

  @media (width <= 567px) {
    display: none;
  }

  span {
    font-size: 13px;
    font-weight: 300;
  }
}

.swiper-infos .swiper-slide {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 200px !important;

  @media (width <= 576px) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto;
    flex-shrink: 0;
  }
}

.swiper-slide .infos-card {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 1rem;
  height: 100%;
  padding: 0.6rem;

  @media (width <= 576px) {
    padding: .5rem;
  }

  picture,
  figure {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  header {
    width: 200px;
    @media (width <= 768px) {
      width: 100px;
    }
    
  }

  img {
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: calc(var(--radius-10) - 4px);
  }
}

section img {
  width: 100%;
  height: 100%;
  max-width: 100%;
}

/* BTN */

a.view-all {
  color: white;
  background-color: black;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: 1px solid black;
  outline-offset: -1px;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-10);
  line-height: 1.2;
  gap: 3rem;
  transition: background-color 0.3s ease, color 0.3s ease,
    outline-color 0.3s ease;

  &:hover {
    color: black;
    background-color: white;
    text-decoration: none;

    svg {
      color: white;
      background-color: black;
    }
  }

  svg {
    color: black;
    background-color: white;
    width: 1.3em;
    height: 1.3em;
    border-radius: var(--radius-99);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
}

/* 
! ===============================
!         TOP MENU 
! ===============================
*/

body .header .navigation__top .navigation__top__right .header__search .sub-menu{
  width: auto;
}
body .wpml-ls-legacy-list-horizontal, .menu-je-suis-container, .menu-acces-rapides-container {
  background-color: #fff;
  border-radius: var(--radius-10);
  padding: 0;
  ul{
    display: flex;
    flex-direction: column;
    padding: 0;
    width: 100% !important;
    li{
      padding: 11px 10px !important;
      &:not(:last-child){
        border-bottom: 1px solid #dddddd;
      }
    }
  }
}

body .header .navigation__top{
  background-color: transparent;
  padding: 10px 20px 4px;
  height: unset;
  max-height: unset;
}

body .header .navigation__top .navigation__top__right{
  border-radius: var(--radius-99);
  background-color: #EBEBEB;
  padding: 3px !important;

  span{
    font-weight: 500;
  }
}

body .header .contain {
  height: unset;
  max-height: unset;
  border-bottom: solid 1px #EBEBEB;
}

body .branding {
  display: flex;
  align-items: center;
  justify-content: center; /* Centre horizontalement le contenu dans la div */
  flex-direction: row;
  gap: 10px;
  height: 100%;
  padding: 10px 0;
}

body .branding .logo_univ {
  display: flex;
  align-items: center;
  justify-content: center; /* Centre verticalement le logo dans le container */
  height: 100%;
}

body .branding .logo_univ img,
body .branding .logo_rep_france {
  padding: 5px;
  margin-top: 0;
  display: block;
  height: auto;
  max-height: 70px;
}

.hide_desktop {
  display: none;
}

@media (max-width: 991px) {
  .hide_desktop {
    display: block;
  }

  .hide_mobile {
    display: none !important;
  }
}


body .header .navigation__top .navigation__top__right .navigation__top__profile_user, 
body .header .navigation__top .navigation__top__right .navigation__top__rapid_access, 
body .header .navigation__top .navigation__top__right .navigation__top__candidater{
  padding: 3px 10px;
}

body .header .navigation__top .navigation__top__right .navigation__top__candidater{
  background-color: #2F52A3;
  border-radius: var(--radius-99);
}

body .header .navigation__top .navigation__top__right :is(.navigation__top__profile_user, .navigation__top__rapid_access){
  background-color: transparent;
}

body .header .navigation__top .navigation__top__right :is(.navigation__top__rapid_access button,.navigation__top__profile_user button){
  color: black;
}





@media (min-width: 1024px) {
  #primary-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #primary-menu > li {
    flex: 0 0 auto;
    width: auto;
  }

  #primary-menu > li > a,
  #primary-menu > li > button[data-top-level="true"] {
    white-space: nowrap;
  }
}


/* ========================= Dropdowns header (fix display:none theme) ========================= */

/* Sticky (fixed) header */
.header {
  background-color: white;
  z-index: 2000;
  position: fixed;
  top: 0;
  width: 100%;
  -webkit-transition: all 400ms !important;
  -moz-transition: all 400ms !important;
  -ms-transition: all 400ms !important;
  -o-transition: all 400ms !important;
  transition: all 400ms !important;
}

/* Garder le z-index fort pour la navigation imbriquée */
header.header .navigation__top,
header.header .navigation__top__right {
  position: relative;
  z-index: 2001;
}

/* Overlay */
header.header .clickable[data-header-overlay] {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  opacity: 0;
  pointer-events: none;
  transition: opacity .30s cubic-bezier(0.77,0,0.175,1);
  z-index: 1500;
}
header.header .clickable[data-header-overlay].is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Container */
.navigation__top__right .menu-item-has-children {
  position: relative;
}

/* SOUS MENU - NOUVEAU STYLE JOLI */
.navigation__top__right .menu-item-has-children > .sub-menu {
  display: block !important; /* <--- clé */
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: 
    opacity .32s cubic-bezier(0.56,0,0.27,1), 
    transform .32s cubic-bezier(0.56,0,0.27,1), 
    box-shadow .32s cubic-bezier(0.77,0,0.175,1);
  z-index: 2002;
  border:0;
  padding:0;
  /* Slight backdrop for subtle effect */
  backdrop-filter: blur(4px);

  /* Remove default bullets if any */
  list-style: none;
}

.navigation__top__right .menu-item-has-children > .sub-menu li {
  width: 100%;
  padding: 0;
  margin: 0;
}

.navigation__top__right .menu-item-has-children > .sub-menu li:not(:last-child) {
  border-bottom: 1px solid #f1f3f7;
}

.navigation__top__right .menu-item-has-children > .sub-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1a2332;
  background: none;
  border-radius: 10px;
  text-decoration: none;
  transition: 
    background 0.16s cubic-bezier(0.77,0,0.175,1),
    color 0.16s cubic-bezier(0.77,0,0.175,1);
}

.navigation__top__right .menu-item-has-children > .sub-menu a:hover, 
.navigation__top__right .menu-item-has-children > .sub-menu a:focus {
  background: linear-gradient(90deg, #F5F8FE 62%, #eaf1fa 100%);
  color: #234386;
  text-decoration: none;
  outline: none;
}

/* Icônes optionnelles dans le sous-menu (ex: fontawesome) */
.navigation__top__right .menu-item-has-children > .sub-menu a i {
  margin-right: 7px;
  font-size: 1.12em;
  color: #4990d6;
}

.navigation__top__right .menu-item-has-children > .sub-menu[hidden] {
  display: none !important;
}

.navigation__top__right .menu-item-has-children.open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  background:none !important;
}

/* Petite flèche déco sur le sous-menu */
.navigation__top__right .menu-item-has-children > .sub-menu::before {
  content: '';
  display: block;
  position: absolute;
  top: -8px;
  left: 20px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-top-left-radius: 4px;
  transform: rotate(45deg);
  border-left: 1px solid #fff;
  border-top: 1px solid #fff;
  z-index: 2;
}

@media (max-width: 1200px) {
  .navigation__top__right .menu-item-has-children > .sub-menu {
    min-width: 180px;
    right: 0;
    border-radius: 14px;
  }
  .navigation__top__right .menu-item-has-children > .sub-menu::before {
    left: 50%;
    margin-left: -9px;
  }
}

/* Focus : enlève le cadre bleu au clic souris, garde au clavier */
.navigation__top__right button:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
.navigation__top__right button:focus-visible {
  outline: 2px solid rgba(0,0,0,0.25);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  header.header .clickable[data-header-overlay],
  .navigation__top__right .menu-item-has-children > .sub-menu {
    transition: none;
  }
}






/* 
! ===============================
!         HERO SECTION 
! ===============================
*/

section.hero {
  height: calc(100vh - var(--header-height, 130px) - (60px));
  overflow: hidden;
  padding-inline: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 50%,
    rgba(235, 235, 235, 1) 50%,
    rgba(235, 235, 235, 1) 100%
  );
}

.hero-container {
  height: 100%;
  background-image: var(--hero-bg-image, url(""));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 42px;

  border-radius: var(--radius-15);
  overflow: hidden;

  @media (width <= 768px) {
    padding: 14px;
  }

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #001937;
    background: linear-gradient(
      180deg,
      rgba(0, 25, 55, 1) 0%,
      rgba(25, 54, 84, 0.4) 27%,
      rgba(103, 132, 155, 0.1) 100%
    );
  }
}

.hero-header,
.hero-content {
  isolation: isolate;
  color: white;
}

.hero-header h1 {
  font-size: 6.5vw;
  font-weight: 500;
  line-height: 1;
  margin: 5vh 0 0 1vw;
  width: 45%;
  text-wrap: balance;
  @media (width <= 768px) {
    width: 100%;
    text-align: center;
    font-size: 10vw;
    line-height: 1.1;
    margin: 3vh 0 0 1vw;
  }
}

.hero-content {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-content-items {
  display: grid;
  grid-template-columns: 330px 330px;
  grid-template-rows: auto auto;
  gap: 0.8rem;
  position: absolute;
  bottom: 36px;
  right: 36px;

  @media (width <= 992px) {
    grid-template-columns: 1fr 1fr;
    bottom: 20px;
    right: 20px;
    left: 20px;
  }

  @media (width <= 567px) {
    display: flex;
    flex-direction: column;
    bottom: 14px;
    right: 14px;
    left: 14px;
  }

  h2 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.03em;
    margin: 0;
    text-transform: capitalize;
  }
}

#formation-container {
  position: relative;
  background: #2f52a3;
  color: white;
  padding: 0.9rem;
  border-radius: var(--radius-10);
  height: 80px;
  place-self: flex-end;
  width: 100%;
  @media (width <= 576px) {
    height: 50px;
    order: 2;
  }
}

details#profil-container {
  background-color: rgba(0, 0, 0, 0.65);
  border-radius: var(--radius-10);
  place-self: flex-end;
  width: 100%;
  overflow: hidden;

  @media (width <= 576px) {
    order: 1;
  }

  &:not([open]) summary {
    min-height: 80px;
    @media (width <= 576px) {
      min-height: 50px;
    }
  }

  summary {
    position: relative;
    padding: 0.9rem;
    transition: min-height 0.3s ease;
    min-height: 0;

    .profil-icon {
      svg {
        pointer-events: none;
        position: absolute;
        top: 0.9rem;
        right: 0.9rem;
        transition: opacity 0.3s ease;
      }
    }

    .profil-icon-default {
      opacity: 1;
    }
    .profil-icon-hover {
      opacity: 0;
    }

    &:hover {
      .profil-icon-default {
        opacity: 0;
      }
      .profil-icon-hover {
        opacity: 1;
      }
    }
  }

  &[open] summary .profil-icon-default {
    opacity: 0;
  }
  &[open] summary .profil-icon-hover {
    opacity: 1;
  }

  .profil-items {
    gap: 0.4rem;
    padding: 0.4rem;
  }

  .profil-item {
    position: relative;
    padding: 0.9rem;
    background-color: transparent;
    transition: background-color 0.3s ease;
    border-radius: calc(var(--radius-10) - 4px);
    @media (width <= 576px) {
      padding: 0.4rem;
    }

    &:hover {
      background-color: white;

      h3 {
        color: black;
      }

      figure img {
        filter: brightness(0) invert(0);
      }
    }

    figure img {
      width: 1.8em;
      height: 1.8em;
      filter: brightness(0) invert(1);
      transition: filter 0.3s ease, font-weight 0.3s linear;

      @media (width <= 576px) {
        width: 1.4em;
        height: 1.4em;
      }
    }

    h3 {
      font-weight: 300;
      margin: 0;
      text-transform: capitalize;
      transition: color 0.3s ease;
      font-size: clamp(1rem, 3vw, 1.25rem);

      @media (width <= 576px) {
        font-size: 1rem;
      }
    }
  }
}
details::details-content {
  block-size: 0;
  transition: block-size 0.3s ease, content-visibility 0.3s ease;
  transition-behavior: allow-discrete;
}
details[open]::details-content {
  block-size: auto;
}

#infos-container {
  display: flex;
  grid-area: 2 / 1 / 2 / 3;

  @media (width <= 567px) {
    grid-area: inherit;
    order: 3;
  }
}

/* 
! ===============================
!         SEARCH SECTION 
! ===============================
*/

section.search {
  padding-inline: 20px;
}

.search-container {
  max-width: 1600px;
  margin-inline: auto;
  margin-top: 32px;
  width: 100%;
  padding: 42px;
  border-radius: var(--radius-10);
  background-color: white;
  align-items: flex-start;
  gap: 2rem;

  @media (width <= 992px) {
    padding: 32px;
    gap: 2rem;
    flex-direction: column;
  }

  @media (width <= 768px) {
    padding: 20px;
  }

  form {
    margin-top: 42px;

    .curved-input input {
      font-size: var(--h3-size);
    }
    @media (width <= 992px) {
      margin-top: 0px;

      .curved-input {
        width: 100%;

        button {
          flex: 0;
        }
      }
    }
  }

  form,
  .most-searched {
    width: 100%;
    flex: 1 1 50%;
  }
}

.search-container .most-searched {
  h2 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    text-transform: inherit;
    color: black;
  }

  ul {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2rem 0;

    li {
      background-color: var(--background-color);
      border-radius: calc(var(--radius-10));
      display: flex;
      align-items: center;
      justify-content: center;
      transition: filter 0.3s ease;

      &:hover {
        filter: brightness(0.9);
      }

      a {
        padding: 0.8rem 1.4rem;
        color: black;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.2;
        text-decoration: none;
        width: fit-content;

        @media (width <= 768px) {
          padding: 0.6rem 0.8rem;
        }
      }
    }
  }
}

/* 
! ===============================
!         ACCESSIBILITY
! ===============================
*/

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 
! ===============================
!         ACTUALITES SWIPER 
! ===============================
*/

.news-container {
  padding: 100px 0;
  header {
    max-width: 65vw;
    margin-inline: auto;
    padding: 0 0 50px 0;
    @media (width <= 992px) {
      max-width: 100%;
      padding: 0px 20px 20px 20px;
      z-index: 10;
    }
    h2 {
      font-weight: 500;
      line-height: 1.2;
      margin: 0;
      text-transform: inherit;
    }
  }

  footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
  }
}

.news .news-swiper {
  overflow: visible;
  height: 500px;
  cursor: default;
  @media (width <= 992px) {
    height: 400px;
    z-index: 100;
  }
}

.news-swiper .swiper-wrapper {
  cursor: default;
  align-items: flex-start;
  user-select: none;
}

.news-swiper .swiper-slide {
  background-image: var(--background-image, url(""));
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative; /* Needed for overlay positioning */
  transition: transform 0.8s ease, opacity 0.8s ease;
  transform: scale(0.65);

  transform-origin: top center;
  padding: 1rem;
  border-radius: var(--radius-15);
  overflow: hidden;
  display: flex;
  height: 100%;

  /* Overlay for reduced opacity background */
  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.20); /* Adjust alpha channel for opacity */
    z-index: 1;
    border-radius: var(--radius-15);
    pointer-events: none;
    /* Keeps the overlay above the image, but under the content */
  }

  /* Ensures your slide content displays above the overlay */
  > * {
    position: relative;
    z-index: 2;
  }

  @media (width <= 992px) {
    transform: scale(1);
    padding: 0.6rem;
  }
}

.news-swiper .swiper-slide-active {
  transform: scale(1);
  opacity: 1;
  cursor: default;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.news-swiper .news-slide-content {
  --content-width: 30%;
  --padding: 1.2rem;
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: var(--radius-10);
  padding: var(--padding);
  gap: 0.8rem;
  flex: 0 1 var(--content-width);
  overflow: hidden;

  @media (width <= 1400px) {
    --content-width: 40%;
  }

  @media (width <= 1200px) {
    --content-width: 50%;
  }
  @media (width <= 992px) {
    --padding: 0.8rem;
  }
  @media (width <= 768px) {
    --content-width: 80%;
  }
  @media (width <= 576px) {
    --content-width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
  }
}

.news-swiper .swiper-slide-active .news-slide-content {
  animation: open-content 0.7s ease-out forwards;
  & > * {
    animation: opacity-content 0.7s ease-out forwards;
    animation-delay: 0.7s;
  }
}

.news-swiper .swiper-slide:not(.swiper-slide-active):not(.closing) {
  transform: scale(0.65);
  @media (width <= 992px) {
    transform: scale(1);
  }
  cursor: pointer;
  & > * {
    opacity: 0;
  }
}

.news-swiper
  .swiper-slide:not(.swiper-slide-active):not(.closing)
  .news-slide-content {
  flex: 0 0 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
}

.news-swiper .swiper-slide.closing {
  transform: scale(0.65);
  @media (width <= 992px) {
    transform: scale(1);
  }
}

.news-swiper .swiper-slide.closing .news-slide-content {
  animation: close-content 0.6s ease-in forwards;
}

.news-swiper .swiper-slide.closing .news-slide-content > * {
  animation: opacity-content-close 0.3s ease-in forwards;
}

.news-swiper .swiper-slide:not(.swiper-slide-active) .news-slide-content a {
  pointer-events: none;
  cursor: default;
}

.news-swiper .news-slide-content {
  .news-slide-category {
    font-size: 0.8rem;
    border-radius: var(--radius-99);
    padding: 0.4rem 1rem;
    background-color: #cad77d;
    color: black;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    width: fit-content;
  }

  & > * {
    opacity: 0;
  }

  h3 {
    margin-bottom: 0;
  }

  p {
    font-size: clamp(1.125rem, 1vw + 0.5rem, 1.2rem);
    font-weight: 300;
    line-height: 1.2;
    margin: 0;
    text-transform: inherit;
    color: black;
    text-wrap: pretty;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  a {
    color: black;
    font-size: 1rem;
    display: flex;
    margin-top: auto;
    width: 100%;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    padding: 0.6rem 1.6rem;
    border-radius: var(--radius-99);
    line-height: 1.2;
    transition: background-color 0.3s ease, color 0.3s ease,
      outline-color 0.3s ease;

    &:hover {
      color: white;
      background-color: black;
      text-decoration: none;
    }
  }
}


.news-swiper .swiper-navigation {
  position: absolute;
  top: -16px;
  right: 15vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  @media (width <= 992px) {
    top: -30px;
    right: 10vw;
  }
}

.news .news-swiper .swiper-button-next,
.news .news-swiper .swiper-button-prev {
  cursor: pointer;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: unset;
  width: unset;
  background-color: white;
  border-radius: var(--radius-99);
  padding: 0.2rem 1.1rem;
  color: black;

  &:after, &:before{
    display: none;
  }

  &:hover {
    background-color: black;
    color: white;
  }
}

.news .news-swiper .swiper-button-prev {
  transform: rotate(180deg);
}

@keyframes open-content {
  0% {
    width: 0;
    height: 0;
    opacity: 0;
    flex: 0 0 0;
  }
  100% {
    width: 100%;
    height: 100%;
    opacity: 1;
    flex: 0 1 var(--content-width);
  }
}

@keyframes opacity-content {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes close-content {
  0% {
    flex: 0 1 var(--content-width);
    max-width: 100%;
    max-height: 100%;
    padding: var(--padding);
    opacity: 1;
  }
  100% {
    flex: 0 0 0;
    max-width: 0;
    max-height: 0;
    padding: 0;
    opacity: 0;
  }
}

@keyframes opacity-content-close {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* 
! ===============================
!         EVENTS SECTION 
! ===============================
*/

section.events {
  background-color: white;
}

.events-container {
  max-width: 1400px;
  margin-inline: auto;
  padding: 100px 0;
  @media (width <= 992px) {
    padding: 50px 0 0 0;
  }

  header {
    display: flex;
    align-items: center;
    justify-content: center;
    h2 {
      font-weight: 500;
      line-height: 1.2;
      margin: 0;
      text-transform: inherit;
    }
  }
}

.events-list {
  padding: 60px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  --card-visible: 3;

  @media (width <= 992px) {
    --card-visible: 2.4;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 30px 0;
    padding-left: 20px;
    padding-right: 20px;

    .events-list-item {
      min-width: calc(100% / var(--card-visible)); /* 1.8 cards visible */
      scroll-snap-align: center;
    }
  }

  @media (width <= 768px) {
    --card-visible: 1.8;
  }

  @media (width <= 576px) {
    --card-visible: 1.2;
  }

  .events-list-item {
    background-color: #f0f0f0;
    border-radius: var(--radius-15);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    max-height: 360px;
  }

  .events-list-item:nth-child(1) {
    background-color: #93c5be;
  }
  .events-list-item:nth-child(2) {
    background-color: #dede48;
  }
  .events-list-item:nth-child(3) {
    background-color: #d67d3a;
  }

  .events-list-item-category {
    font-size: 0.75rem;
    border-radius: var(--radius-99);
    padding: 0.4rem 1rem;
    background-color: white;
    color: black;
    font-weight: 500;
    line-height: 1.2;
    width: fit-content;
    margin-bottom: auto;
    margin-top: 0;
    background-color: white;
  }

  .event-date {
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
    margin-top: 20px;
    margin-bottom: 20px;

    span, time {
      color: black;
      font-weight: 600;
      line-height: 1.2;
      margin-bottom: 12px;
    }
  }

  time {
    color: black;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 12px;
  }



  h3 {
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    text-transform: inherit;
  }

  a {
    color: black;
    font-size: 1rem;
    display: flex;
    margin-top: auto;
    background-color: #ebebeb;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.6rem;
    border-radius: var(--radius-99);
    line-height: 1.2;
    transition: background-color 0.3s ease, color 0.3s ease,
      outline-color 0.3s ease;

    &:hover {
      color: white;
      background-color: black;
      text-decoration: none;
    }
  }
}

.events-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
}

/* 
! ===============================
!         PRE FOOTER SECTION 
! ===============================
*/

section.pre-footer {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 50%,
    rgba(235, 235, 235, 1) 50%,
    rgba(235, 235, 235, 1) 100%
  );
  padding: 60px 0;
}

.pre-footer-container {
  max-width: 1400px;
  margin-inline: auto;
  background-color: #2f52a3;
  padding: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-10);
  gap: 3rem;
  @media (width <= 768px) {
    padding: 54px 32px;
    gap: 2rem;
    border-radius: 0;
  }

  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-inline: 40px;
    @media (width <= 768px) {
      flex-direction: column;
      padding-inline: 0;
      text-align: center;
    }
    h2 {
      flex: 1 1 55%;
      font-weight: 600;
      line-height: 1.2;
      color: white;
      margin: 0;
      text-transform: inherit;
    }

    .media {
      flex: 1 1 45%;
      width: 100%;
      height: 100%;
      border-radius: var(--radius-15) !important;
      overflow: hidden;
      video {
        width: 100%;
        height: 100%;
      }
    }
  }
  .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 65%;
    @media (width <= 992px) {
      max-width: 100%;
    }
    p {
      font-size: clamp(1.125rem, 1.5vw, 1.5rem);
      font-weight: 300;
      line-height: 1.2;
      margin: 0;
      color: white;
      text-wrap: pretty;
      text-align: center;
    }
  }
}

/* 
! ===============================
!         PAGE INTERMEDIAIRE
! ===============================
*/

.page-template-intermediate-page {

  background-color: #EBEBEB;

  .page__container {
    margin-top: 160px !important;
  }

  .page__container .col {
    background-color: #EBEBEB;
  }

  .page__infos:after {
    display: none;
  }

  .page__title {
    font-size: var(--h1-size);
  }

  .page__child {
    background-color: #fff;
    padding: 16px;

    img {
      border-radius: var(--radius-10);
    }

    h2 {
      text-transform: initial;
      font-size: var(--h3-size);
      font-weight: 500;
    }

    .buttonULR {
      display: flex;
      margin-top: auto;
      width: 100%;
      align-items: center;
      justify-content: center;
      padding: 0.6rem 1.6rem;
      border-radius: var(--radius-99);
      line-height: 1.2;
      transition: background-color 0.3s, color 0.3s, outline-color 0.3s;
      text-decoration: none;

     .buttonULR_label {
        color: #000;
        font-size: 1rem;
        line-height: 1;
        text-decoration: none;
      }
    }
    
    .buttonULR--black:hover {
      background-color: #000;
      text-decoration: none;

      .buttonULR_label {
        color: #fff;
        transition:all 0.3s ease-in-out;
        text-decoration: none;
      }
    }
  }

}

@media (max-width: 768px) {
  .page__infos {
    padding-bottom: 0;
  }

  .page-template-intermediate-page  .page__container {
    margin-top: 160px !important;
  }
}


/* 
! ===============================
!         PAGE  EVENT LISTING
! ===============================
*/

.post-type-archive-event, .tax-event_category {
  background-color: #fff !important;
}


.post-type-archive .contain--p--left {
  padding-left: 0 !important;
  max-width: 1400px;
  margin:0 auto;
}

.event {
  margin-top: 180px;

  h1 {
    font-size: var(--h1-size);
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    text-transform: inherit;
  }
}

.event__breadcrumb {
  display: none;
}

.event__image img {
   border-radius: var(--radius-10);
 }

/* 1) Layout : titre + controls sur la même ligne, table en dessous pleine largeur */
.calendar{
  display: grid !important;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title controls"
    "table table";
  align-items: center;
}

.calendar > .calendar__title{
  grid-area: title;
  margin: 0 !important; /* <p> a une margin par défaut */
}

.calendar > .calendar__controls{
  grid-area: controls;

  /* 2) Fix principal : empêcher l’affichage vertical / absolute */
  position: static !important;
  height: auto !important;

  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.calendar > .calendar__table{
  grid-area: table;
  width: 100%;
}

/* 3) Optionnel : mettre un chevron après "Janvier 2026" comme sur ta maquette */
.calendar__month__label{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: underline; /* comme "June 2022" */
}

/* 4) Optionnel : boutons de nav propres (sans styles bouton) */
.calendar__controls button{
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}


.calendar__day.-selected {
  background-color: #000;
  border-radius: 100%;
  height: 30px;
  width: 30px;
  padding: 5px;
   a span {
    color: #fff !important;
   }
}


/* sidebare */

@media (max-width: 768px) {
  .event__sidebar {
    background-color: #EBEBEB;
    top: 140px;

    .js--sticky {
      position: fixed;

      h2 {
        display: none;
      }
    }

    .sidebar__category__list {
      bottom: 58px;
    }
  }
}

/* Cacher le pseudo-élément -webkit-details-marker sur Safari */

details summary::-webkit-details-marker {
  display: none !important;
}


/* 
! ===============================
!         PAGE EVENTS DETAILS
! ===============================
*/

.single-event {
  background-color: #fff;

  .page__header__container {
    background-color: #EBEBEB !important;
    margin-bottom: 40px;
    padding: 20px 20px 20px 60px !important;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 150px !important;
    @media (max-width: 768px) {
      margin-top: 160px !important;
      margin-bottom: 0;
    }
  }

  .header__content {
    padding-right: 60px !important;

    .page__title {
      color: #000;
    }

    .page__infos {
      color: #000 !important;
    }

    .bread--crumb > span > a {
      color: #000 !important;
    }

   .bread--crumb > span {
      color: #2F52A3 !important;
    }
  }

  .contain--p--left {
    padding-left: 0 !important;
    max-width: 1400px;
    margin:0 auto;
  }

  .page__footer .page__footer__container {
    background-color: #fff !important;
  }

}


.ressoure_editeur::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  background-image: url(/wp-content/themes/univ-2026/img/Calendar.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.ressoure_type::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  background-image: url(/wp-content/themes/univ-2026/img/horaire.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.ressoure_discipline::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  background-image: url(/wp-content/themes/univ-2026/img/Location.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}


@media (max-width: 600px) {
  .single-event .sidebar--padding {
    padding: 0;
  }
}


/* 
! ===============================
!         PAGE ACTUALITES LISTING
! ===============================
*/

.blog, .archive {
  background-color: #EBEBEB;

  .page__header__container {
    background-color: #fff !important;
    margin-bottom: 40px;
    padding: 40px 80px !important;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    min-height: auto !important;
    margin-top: 180px !important;

    .page__infos {
      min-height: auto;
    }

    .header__content,
    .header__description {
      flex: 1 1 50%;
      max-width: 50%;
    }

    .header__description {
      display: flex;
      align-items: center;
      height: 100%;
    }
    .header__description p {
      margin: 0;
      align-self: center;
      width: 100%;
      font-size: 22px;
    }

    @media (max-width: 600px) {
      .header__description p {
        font-size: 18px;
      }
    }

    .header__content {
      display: flex;
      align-items: flex-start;
      height: 100%;
    }
    .page__title {
      color: #000;
      margin-top: 0 !important;
      padding: 0 !important;
      font-size: var(--h1-size);
      line-height: 1.2;
    }

    @media (max-width: 992px) {
      flex-direction: column !important;
      gap: 24px !important;
      padding: 30px !important;

      .header__content,
      .header__description {
        max-width: 100%;
        flex-basis: 100%;
      }
    }
  }
}

.blog .contain--p--left, .archive .contain--p--left {
  padding-left: 0 !important;
  max-width: 1400px;
  margin:0 auto;
}


.blog .archive__article__list, .archive .archive__article__list {
  /* GRILLE */
.posts-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 900px){
  .posts-grid{
    grid-template-columns: 1fr;
  }
}


/* CARTE */

.posts-grid .post__item{
  display: flex;             
  flex-direction: column;
  height: 100%;
  margin: 0;
  border: 1px solid #e9e9e9;
  border-radius: var(--radius-15);
  background: #fff;
  overflow: hidden;
  padding: 16px;
}

/* IMAGE EN HAUT */
.posts-grid .ulr-card_picture img {
  width: 100% !important;     
  max-width: none !important;
  padding: 0;
  border-radius: var(--radius-10);
  height:auto;
}

/* CONTENU */
.posts-grid .ulr-card_body{
  width: 100% !important;
  max-width: none !important;
  padding: 18px 18px 20px;
}

@media (max-width: 768px) {
  .posts-grid .ulr-card_body{
    padding: 20px 10px;
  }
}

.posts-grid .post__category{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 10px;
}

/* Tag catégorie en "pill" */
.posts-grid .actuality__category__text > a{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  line-height: 1;
  color: #000;
  background-color: #93C5BE;
  padding: 4px 15px;
  font-size: 14px;
  border-radius: 100px;
}

/* Date */
.posts-grid .date-publication{
  margin:0;
  font-size: 14px;
  color: #000;
  font-style: italic;
}

/* Titre + excerpt */
.posts-grid .post__title{
  margin: 10px 0 10px;
  font-size: 32px; /* adapte */
  line-height: 1.1;
}

@media (max-width: 768px) {
  .posts-grid .post__title{
    font-size: 24px;
  }
}

.posts-grid .post__title a{
  text-decoration:none;
  color: inherit;
}

/* Limite de lignes optionnelle */
.posts-grid .post__description{
  margin: 0 0 30px;
  color:#000;
  font-size: 18px;
  min-height: 80px;
}

/* Bouton */
.posts-grid .post__nav{
  margin-top: 0;
}

.posts-grid .post__nav a {
  color: #000;
  width: 100%;
  text-align: center;
  position: relative;
  display: inline-block;
  border: solid 1px #000;
  padding: 8px 10px;
  border-radius: 30px;
  margin-top: 10px;
transition: all 0.3s ease;
text-decoration: none; 
}

.posts-grid .post__nav a:hover {
    background-color: #000;
    color: #fff;
    border: solid 1px #000;
    transition: all 0.3s ease;
    text-decoration: none; 
  }

}







/* 
! ===============================
!         PAGE ACTUALITES DETAILS
! ===============================
*/

.single-post {
  background-color: #EBEBEB;

  .page__header__container {
    background-color: #fff !important;
    margin-bottom: 40px;
    padding: 20px 20px 20px 60px !important;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 160px !important;
  }

  .header__content {
    padding-right: 60px !important;
    @media (max-width: 1199px) {
      padding-right: 0 !important;
    }
  }

    .page__title {
      color: #000;
    }

    .page__infos {
      color: #000 !important;
    }

    .bread--crumb > span > a {
      color: #000 !important;
    }

   .bread--crumb > span {
      color: #2F52A3 !important;
    }
  }

  .contain--p--left {
    padding-left: 0 !important;
    max-width: 1400px;
    margin:0 auto;
  }

  .page__footer .page__footer__container {
    background-color: #fff !important;
  }


.single .page__header__container picture {
    height: 100%;
    img {
      height: 100%;
    }
}

.single .page__container {
  margin-top: 0 !important;
}
@media (max-width: 1199px) {
  .single .sidebar--padding {
    padding-top: 0;
  }
}

/* 
! ==========================================
!         PAGE SECONDAIRE
! ==========================================
*/


/* Same level pages */


.sidebar_pages {
  padding: 0 !important;
}

.page__sidebar .sidebar__samelevel {
  background-color: #EBEBEB;
  max-width: 350px;
  width: 100%;
  padding: 12px 24px;
  border-radius: var(--radius-15);
  color: #2F52A3;
  font-size: 16px;
  margin-bottom: 20px;

  h2 {
      position: relative;
      display: flex;
      align-items: center;
      font-family: "Inter", sans-serif;
      font-size: 26px;
      line-height: 1;
      text-transform: initial;
      color: black;
      font-weight: 600;
      text-align: left;
      letter-spacing: 0.5px;
      margin: 20px 0;
      padding: 0;
      width: 100%;
  }

  h2::after {
      content: "";
      display: block;
      width: 30px;
      height: 30px;
      background: url(/wp-content/themes/univ-2026/img/Category.svg) no-repeat center center;
      background-size: contain;
      margin-left: auto;
      margin-right: 0;
      flex-shrink: 0;
      align-self: center;
      filter: brightness(0) invert(0);
      margin-left: 20px;
  }

  .cat-item {
    position: relative;
    width: 100%;

    a {
        display: inline-block;
        font-family: "Inter", sans-serif;
        font-size: 16px;
        font-weight: 400 !important;
        color: #000;
        text-transform: initial;
        text-decoration: none;
        padding: 10px 20px;
        width: 100%;
        background-color: #fff;
        margin-bottom: 10px;
        border-radius: 10px;
        font-weight: 300;
        -webkit-transition: all 0.3s ease-in-out 0s;
        -moz-transition: all 0.3s ease-in-out 0s;
        -ms-transition: all 0.3s ease-in-out 0s;
        -o-transition: all 0.3s ease-in-out 0s;
        transition: all 0.3s ease-in-out 0s;
    }

    a:hover,
    a:focus-visible {
        background-color: #2F52A3;
        color: #fff;
        text-decoration: none;
    }

    span.cat-item-title  {
      display: inline-block;
      font-family: "Inter", sans-serif;
      font-size: 16px;
      color: #fff;
      font-weight: 500 !important;
      text-transform: initial;
      text-decoration: none;
      padding: 10px 20px;
      width: 100%;
      background-color: #2F52A3;
      margin-bottom: 10px;
      border-radius: 10px;
      font-weight: 300;
      -webkit-transition: all 0.3s ease-in-out 0s;
      -moz-transition: all 0.3s ease-in-out 0s;
      -ms-transition: all 0.3s ease-in-out 0s;
      -o-transition: all 0.3s ease-in-out 0s;

    }
  }

}

@media (max-width: 768px) {
  .page__sidebar .sidebar__samelevel {
    max-width: 100%;
    width: calc(100% - 30px);
    padding: 12px 24px;
    margin: 15px;
  }
}

body #first-content .page__header{
  height: inherit;
  padding-inline: 15px;
  .page__header__container{
    padding: 20px 20px 20px 60px;
  max-width: 1400px;
  margin-inline: auto;
  border-radius: var(--radius-15);
  overflow: hidden;
  height: inherit;
  background-color: #2F52A3;
  margin-top: 150px;
  min-height: 350px;

  display: flex;
  align-items: stretch;
  justify-content: space-between;

  @media (width <= 992px) {
    padding: 20px!important;
  }

  @media (width <= 768px) {
    flex-direction: column-reverse;
    gap: 1rem;
    margin-top: 160px;
  }

  .header__content{
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 5vw;

    @media (width <= 992px) {
      padding-right: 0;
    }

    .page__infos{
      background-color: transparent;
      padding-bottom: 0;
      color: white;
      display: flex;
      flex-direction: column;
      height: 100%;

      .page__title{
        margin-top: auto;
        text-transform: inherit;
        font-weight: 500;
        font-size: var(--h2-size);
        @media (width <= 768px) {
          padding-top: inherit;
        }
      }

      &:after{
        display: none;
      }

      .page__breadcrumb > span > a {
        color: #fff;
      }

      .page__breadcrumb > span {
        color: #fff;
        font-weight: 400;
      }
      .page__breadcrumb > span:last-of-type {
        color: #fff;
        font-weight: 700;
      }


    }
  }
  .header__picture{
    flex: 1 1 50%;
    
    picture{
      display: block;
      border-radius: calc(var(--radius-15) - 4px);
      overflow: hidden;

      img{
        aspect-ratio: 16/9;
        object-fit: cover;
      }
    }
  }
}
  
}

body #first-content .page__content{
  padding-top: 20px;
}

body #first-content .date_publication_maj p{
  font-weight: 400;
  font-style: italic;
  color: black;
}

body #first-content .page__container{
  margin-top: 60px;
  padding: 0 30px !important;
  max-width: 1400px;
  margin-inline: auto;
  justify-content: center;

  @media (width <= 768px) {
    padding: 0 !important;
  }
}
body.page-template-intermediate-page #first-content .page__container{
  margin-top: 130px ;
}

.page__contact {
  background-color: #EBEBEB;
  max-width: 350px;
  width: 100%;
  padding: 24px;
  border-radius: var(--radius-15);
  color: #2F52A3;
  font-size: 16px;

  @media (width <= 768px) {
    max-width: 100%;
  }

  p{
    font-weight: 300;
  }
}


.contact__title {
  position: relative;
  display: flex;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 26px;
  line-height: 1;
  text-transform: initial;
  color: black;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.5px;
  margin: 20px 0;
  padding: 0;
  width: 100%;
}

.contact__title::after {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  background: url(/wp-content/themes/univ-2026/img/User.svg) no-repeat center center;
  background-size: contain;
  margin-left: auto;
  margin-right: 0;
  flex-shrink: 0;
  align-self: center;
  filter: brightness(0) invert(0);
}


.contact__name {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 18px;
  display: block;
}

.contact__phone {
  display: block;
  margin-top: 10px;
}
.contact__phone i {
  margin-right: 10px;
}

.contact__phone a {
  color: #000;
  text-decoration: none;
}

.contact__email {
  display: block;
  margin-top: 12px;
}
.contact__email a {
  color: #000;
  text-decoration: underline;
}
.contact__email i {
  margin-right: 10px;
}

.contact__availability {
  display: block;
  margin-top: 12px;
}
.contact__availability i {
  margin-right: 10px;
  position: relative;
  display: inline-block;
  width: 5%;
  vertical-align: top;
}
.contact__availability .contact__availability__text {
  position: relative;
  display: inline-block;
  width: 90%;
  vertical-align: top;
color:#000;
}
.contact__availability .contact__availability__text p {
  margin-bottom: 10px;
}

/* 
! ==========================================
!         PAGE SECONDAIRE - SIDEBAR
! ==========================================
*/
.page__footer {
  margin-top: 50px;
  padding-bottom: 75px;
  padding-inline: 15px;

  @media (width <= 768px) {
    margin-top: 20px;
    padding-bottom: 0;
  }
  
}

.page__footer .page__footer__container{
  width: fit-content;
  max-width: 1400px;
  width: 100%;
  margin-inline: auto;
  padding: 48px;
  border-radius: var(--radius-15);
  background-color: #EBEBEB;

  @media (width <= 768px) {
    padding: 24px;
  }
  @media (width <= 576px) {
    padding: 14px;
  }
}

.page__footer .page__footer__container__content{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;

  @media (width <= 768px) {
    flex-direction: column;
    gap: 1rem;
  }
}

.page__focus {

  --spacing-inset: 26px;
  position: relative;
  background: #242b3d;
  overflow: hidden;
  width: 100%;
  height: 300px;
  border-radius: var(--radius-15);

  @media (width <= 768px) {
    height: fit-content;
    --spacing-inset: 20px;
  }
  @media (width <= 576px) {
    --spacing-inset: 14px;
  }
}
.page__focus .link_title {
  font-size: var(--h3-size);
  color: white;
  font-weight: 800;
  text-transform: inherit;
  position: absolute;
  top: var(--spacing-inset);
  width: 60%;


}
.page__focus a {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  bottom: var(--spacing-inset);
  background-color: white;
  text-transform: inherit;
  color: black;
  font-weight: 400;
  font-size: 14px;
  padding: 5px 20px;
  opacity: 0;
  border-radius: 25px;
  width: calc(100% - (var(--spacing-inset) * 2));
  transition: all 0.3s ease;

  &:hover{
    text-decoration: none;
    background-color: #000;
    color: #fff;
    transition: all 0.3s ease;
  }
}
.page__focus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-opacity: 0.4;
  -moz-opacity: 0.4;
  opacity: 0.4;
}
.page__focus .link_title {
  width: fit-content;
  top: var(--spacing-inset);
}
.page__focus a {
  bottom: var(--spacing-inset);
  opacity: 1;
}
.page__focus img {
  opacity: 0.7;
}


.page__focus1 .link_title {
  left: var(--spacing-inset);
}
.page__focus1 a {
  left: var(--spacing-inset);
}

.page__focus2 .link_title {
  left: var(--spacing-inset);
  text-align: left;
}
.page__focus2 a {
  left: var(--spacing-inset);
}



/* 
! ==========================================
!         PAGE CONTACT 
! ==========================================
*/


.page-template-contact {
  background-color: #EBEBEB;

  .page__container {
    margin-top: 160px !important;
    padding: 0 30px !important;
    max-width: 1400px;
    margin-inline: auto;
    justify-content: center;

    @media (width <= 768px) {
      padding: 0 !important;
    }
    .page__breadcrumb {
      margin-top: 0;
    }
    .page__infos {
      background-color: transparent;
    }

    .page__content {
      padding-right: 0;
    }
  }
}




/* 
! ==========================================
!         PAGE SEARCH 
! ==========================================
*/

.search {
  background-color: #EBEBEB;
}

.search .page__header {
  height: inherit;
  padding-inline: 15px;

  .page__header__container{
    padding: 25px 25px 25px 50px;
  max-width: 1400px;
  margin-inline: auto;
  border-radius: var(--radius-15);
  overflow: hidden;
  height: inherit;
  background-color: #2F52A3;
  margin-top: 150px;
  min-height: 350px;

  display: flex;
  align-items: stretch;
  justify-content: space-between;

  @media (width <= 992px) {
    padding: 20px!important;
  }

  @media (width <= 768px) {
    margin-top: 180px;
    min-height: 250px;
    text-align: center;

  }

  .header__content{
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 5vw;

    @media (width <= 992px) {
      padding-right: 0;
    }

    .page__infos{
      background-color: transparent;
      padding-bottom: 0;
      color: white;
      display: flex;
      flex-direction: column;
      height: 100%;

      justify-content: center; /* Centre verticalement le contenu */

      .page__title{
        margin-top: 0; /* Remettre à 0 pour éviter le push vers le bas */
        text-transform: inherit;
        font-weight: 500;
        font-size: var(--h2-size);
        @media (width <= 768px) {
          padding-top: inherit;
        }
      }
    }

      .result-count {
        font-size: 22px;

        .search-query {
          background: #fff;
          color: #2e53a3;
          padding: 5px 15px;
          border-radius: 100px;
          font-size: 16px;
          font-weight: 400;
        }
      }

      .bread--crumb{
        margin-top: auto;
      }

      .bread--crumb > span{
        color: white;
        font-weight: 500;
      }

      .bread--crumb > span > a{
        color: white;
        font-weight: 300;
      }

      &:after{
        display: none;
      }


    }
  }
}

.search .page__container {
  margin-top: 60px;
  padding: 0 30px !important;
  max-width: 1400px;
  margin-inline: auto;
  justify-content: center;

  .search__date {
    font-size: 26px;
    font-weight: 600;
  }

  h2.type-name {
    display: inline-block;
    padding: 10px 40px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 500;
    color: #000;
    text-transform: inherit;
  }

    h2.evenements_title_search {
      background-color: #93C5BE;
    }

    h2.actualites_title_search {
      background-color: rgb(229,171,26);
    }

    h2.pdf_title_search {
      background-color:rgb(170,162,214);
    }

    h2.contacts_title_search {
      background-color:rgb(204,109,109);
    }

    h2.ressources_title_search {
      background-color:rgb(109,204,109);
    }

    h2.pages_title_search {
      background-color:rgb(222,222,72);
    }
}


.search  .search-aside {
  background-color: #fff;
  padding: 20px;
  border-radius: 15px;

  .search-results, .screen-reader-text {
    display: none;
  }

  .filters-form {

    label {
      font-size: 14px;
      font-weight: 500;
      line-height: 1.2;
      text-decoration: none;
      width: fit-content;
      border-radius: 5px;
      padding: 5px 25px;
      color: black;
    }

    label[for="filter-page"] {
      background-color: rgb(222, 222, 72);
    }

    label[for="filter-event"] {
      background-color: #93C5BE;
    }

    label[for="filter-post"] {
      background-color: rgb(229,171,26);
    }

    label[for="filter-pdf"] {
      background-color:rgb(170,162,214);
    }
  }

  button[type="submit"]{
    width: 100% !important;
    padding: 2px 40px;
    position: relative;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.075s;
    border-radius: 25px !important;
    overflow: hidden;
    height: 35px !important;
    margin-top: 20px !important;
  }
}


@media (max-width: 767px) {

  .search .page__container {
    padding: 0 10px !important
  }
  .search .sidebar__category {
    margin: 0 !important;
  }

}
