/*!
Theme Name: Vault Child
Theme URI: https://uicore.co
Description: Multi-Purpose Elementor WordPress Theme
Author: UiCore
Author URI: https://uicore.co
Template: vault
Version: 1.0.0
Text Domain: vault-child
*/

/* Add your custom style here */

/* Couleurs intégrées dans la thème */
/*
var(--uicore-primary-color) = bleu foncé
var(--uicore-secondary-color) = bleu pâle
var(--uicore-accent-color) = jaune
var(--ui-custom-4kcr5rh-color) = orange
var(--ui-custom-hiz40c1-color) = vert
var(--ui-custom-990d704-color) - bleu très foncé
*/

/* ***************************************************************** */
/* *********************** Boutons top menu ************************ */

/* base */
.bt_topmenu_1 a,
.bt_topmenu_2 a {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 20px;
  padding: 5px 14px !important;
  margin: 0 10px;
  border: 1px solid white;
  text-decoration: none;
  line-height: 1.2;
  vertical-align: middle;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* bouton 1 */
.bt_topmenu_1 a {
  background: transparent;
  color: white;
}

/* bouton 2 */
.bt_topmenu_2 a {
  background: var(--e-global-color-uicore_accent);
  border-color: var(--e-global-color-uicore_accent);
  color: var(--uicore-primary-color) !important;
}

/* on enveloppe visuellement le vrai texte */
.bt_topmenu_1 a span,
.bt_topmenu_2 a span {
  display: inline-block;
  transform: translateY(0);
  transition: transform 0.35s ease;
}

/* clone du texte */
.bt_topmenu_1 a::after,
.bt_topmenu_2 a::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  text-align: center;
  color: white;
  transform: translateY(calc(-50% + 180%));
  transition:
    transform 0.35s ease,
    color 0.3s ease;
  pointer-events: none;
  line-height: 1.2;
}

/* hover */
.bt_topmenu_1 a:hover,
.bt_topmenu_2 a:hover {
  background: white;
  color: var(--uicore-primary-color);
  border-color: white;
}

/* le vrai texte sort vers le haut */
.bt_topmenu_1 a:hover span,
.bt_topmenu_2 a:hover span {
  transform: translateY(-180%);
}

/* le clone vient EXACTEMENT au centre */
.bt_topmenu_1 a:hover::after,
.bt_topmenu_2 a:hover::after {
  transform: translateY(-50%);
  color: var(--uicore-primary-color);
}

.uicore-top-bar .uicore ul li.bt_topmenu_2::before {
  content: "";
}

/* *********************** /Boutons top menu ************************ */
/* ****************************************************************** */

/* ***************************************************************************** */
/* *** Afficher les deux prochains événements en "box" sur la page d'accueil *** */
.events-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.event-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.2s ease;
}

.event-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.event-date {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.event-date .day {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
}

.event-date .month {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1;
}

.event-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.event-category {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  width: auto;
  align-self: flex-start;
}

.event-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
  color: #ffffff;
}

.event-meta {
  line-height: 16px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

.event-arrow {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
  margin-left: 10px;
  margin-bottom: 6px;
  align-self: center;
}

.iconbox-equal {
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* *** / Afficher les deux prochains événements en "box" sur la page d'accueil *** */
/* ******************************************************************************* */

/* ********************************************************************************** */
/* *** Afficher les trois prochains événements et nouvelles sur la page d'accueil *** */
.rsn-cards-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.rsn-card {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.rsn-card-featured {
  grid-column: span 1;
}

.rsn-card-image-link {
  display: block;
  text-decoration: none;
  position: relative;
}

.rsn-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.rsn-card-image-placeholder {
  background: linear-gradient(
    135deg,
    var(--uicore-secondary-color) 0%,
    var(--uicore-primary-color) 55%,
    var(--ui-custom-hiz40c1-color) 100%
  );
}

.rsn-card-featured .rsn-card-image {
  height: 240px;
}

.rsn-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rsn-card-pills-over-image {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
}

.rsn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.rsn-card .rsn-pill-category {
  background: var(--uicore-secondary-color);
  color: #ffffff;
}
.rsn-card:nth-child(2) .rsn-pill-category {
  background: var(--ui-custom-hiz40c1-color);
}
.rsn-card:nth-child(3) .rsn-pill-category {
  background: var(--e-global-color-4kcr5rh);
}

.rsn-card-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rsn-card-date {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.rsn-card-date-icon .elementor-icon i,
.rsn-card-meta-icon .elementor-icon i {
  font-size: 13px;
  margin-right: 5px;
}

.rsn-card-title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 14px 0;
  color: var(--uicore-primary-color);
}

.rsn-card-title a {
  color: inherit;
  text-decoration: none;
}

.rsn-card-title a:hover {
  text-decoration: none;
}

.rsn-card-excerpt {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.rsn-card-meta {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.rsn-card-footer {
  margin-top: auto;
}

.rsn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: start;
  text-decoration: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.rsn-btn-primary {
  background: var(--ui-custom-4kcr5rh-color);
  color: #ffffff;
  width: 100%;
}

.rsn-btn-primary:hover {
  background: var(--ui-custom-4kcr5rh-color);
  color: #ffffff;
}

.rsn-text-link {
  color: var(--uicore-secondary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px !important;
}

.rsn-text-link:hover {
  text-decoration: none;
}

.rsn-event-card .rsn-card-excerpt {
  margin-bottom: 14px;
}

/* Layout desktop similaire a ton screenshot */
.rsn-events-grid .rsn-card-featured,
.rsn-news-grid .rsn-card-featured {
  grid-row: span 1;
}

/* Ajustement visuel des cartes non featured */
.rsn-events-grid .rsn-card:not(.rsn-card-featured) .rsn-card-body,
.rsn-news-grid .rsn-card:not(.rsn-card-featured) .rsn-card-body {
  padding-top: 18px;
}

.rsn-events-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.rsn-events-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #dbe3ef;
  font-size: 14px;
  font-weight: 400;
  color: rgba(16, 24, 40, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  line-height: 14px;
}

.rsn-events-cat:hover {
  text-decoration: none;
  border-color: var(--uicore-secondary-color);
  color: var(--uicore-primary-color);
}

.rsn-events-cat-active {
  background: var(--uicore-primary-color);
  color: #ffffff;
  border-color: var(--uicore-primary-color);
}

.rsn-events-cat-active:hover {
  color: #ffffff;
  background: var(--uicore-primary-color);
}

.rsn-events-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 8px;
}
/* 1 */
.rsn-events-cat:nth-child(5n + 1) .rsn-events-cat-dot {
  background: var(--uicore-primary-color);
}
/* 2 */
.rsn-events-cat:nth-child(5n + 2) .rsn-events-cat-dot {
  background: var(--uicore-secondary-color);
}
/* 3 */
.rsn-events-cat:nth-child(5n + 3) .rsn-events-cat-dot {
  background: var(--uicore-accent-color);
}
/* 4 */
.rsn-events-cat:nth-child(5n + 4) .rsn-events-cat-dot {
  background: var(--ui-custom-4kcr5rh-color);
}
/* 5 */
.rsn-events-cat:nth-child(5n + 5) .rsn-events-cat-dot {
  background: var(--ui-custom-hiz40c1-color);
}

.rsn-events-cat-label {
  display: inline-block;
}

/* Responsive */
@media (max-width: 1024px) {
  .rsn-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .rsn-cards-grid {
    grid-template-columns: 1fr;
  }

  .rsn-card-featured {
    grid-column: auto;
  }

  .rsn-card-image,
  .rsn-card-featured .rsn-card-image {
    height: 220px;
  }
}

/* *** / Afficher les trois prochains événements et nouvelles sur la page d'accueil *** */
/* ************************************************************************************ */
.boite_infolettre_recente .elementor-widget {
  --kit-widget-spacing: 0 !important;
}
.form_infolettre input {
  border-radius: 12px;
  margin-bottom: 14px;
}
.form_infolettre button {
  border-radius: 12px;
  background-color: var(--uicore-primary-color);
  color: #ffffff;
  padding: 16px;
  width: 100%;
}

.last_element_yellow li:last-child a .elementor-icon-list-text,
.last_element_yellow li:last-child a i {
  color: var(--uicore-accent-color) !important;
}
.last_element_yellow li:last-child a:hover .elementor-icon-list-text,
.last_element_yellow li:last-child a:hover i {
  color: #f5f9fcb3 !important;
}

.mpw-cta.mpw-cta-archive {
  width: 100%;
}

footer a {
  color: var(--ui-custom-4kcr5rh-color);
}

footer a:hover {
  color: var(--uicore-accent-color);
}
