/* =========================
   MENU RaisonArt
   ========================= */

.navbar-nav {
  gap: 0.5rem;
}

/* Liens principaux */
.navbar-nav > .nav-item > .nav-link {
  padding: 0.75rem 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #333;
  transition: color 0.3s, background-color 0.3s;
}

.navbar-nav > .nav-item > .nav-link:hover,
.navbar-nav > .nav-item > .nav-link:focus {
  color: #000;
  background-color: rgba(0, 0, 0, 0.03);
}

/* Actif WordPress */
.navbar-nav .current-menu-item > .nav-link,
.navbar-nav .current-menu-parent > .nav-link {
  color: #D6CFC4;
  font-weight: 500;
}

/* Dropdown */
.dropdown-toggle {
  cursor: pointer;
}

/* sous-menu */

.dropdown-menu {
  padding: 0.5rem 0;
  margin-top: 0.3rem;
  border-radius: 0.5rem;
  border: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  background-color: #fff;
  min-width: 200px;

  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(5px);
  opacity: 0;
  display: block;
  pointer-events: none;
}

.dropdown-menu .dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: #333;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f0f0f0;
  color: #0066cc;
}

.dropdown-menu .dropdown-menu {
	top: 0;
	left: 100%;
	margin-top: 0;
	margin-left: 0.2rem;
}

.dropdown-menu .dropdown:hover > .dropdown-menu {
	display: block;
}

/* Dropdown niveau 2 */
.navbar .dropdown-menu {
	display: none;
	padding: 0.5rem 0;
	margin-top: 0.3rem;
	border-radius: 0.5rem;
	border: none;
	box-shadow: 0 8px 16px rgba(0,0,0,0.1);
	background-color: #fff;
	min-width: 220px;
}

/* Affichage niveau 2 au survol desktop */
@media (min-width: 992px) {
	.navbar .dropdown:hover > .dropdown-menu {
		display: block;
	}
}

/* Items */
.navbar .dropdown-menu .dropdown-item {
	padding: 0.5rem 1rem;
	font-size: 0.95rem;
	color: #333;
	white-space: nowrap;
}

/* Parent de niveau 3 */
.navbar .dropdown-menu .dropdown {
	position: relative;
}

/* Sous-menu niveau 3 */
.navbar .dropdown-menu .dropdown-menu {
	top: 0;
	left: 100%;
	margin-top: 0;
	margin-left: 0.2rem;
	display: none;
}

/* Affichage niveau 3 seulement au survol du parent */
@media (min-width: 992px) {
	.navbar .dropdown-menu .dropdown:hover > .dropdown-menu {
		display: block;
	}
}

/* Hover desktop */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Mobile */
@media (max-width: 991px) {
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
  }
}

/*=============================================
 * 
 * ============================================*/
:root {
	--text-color-default : #2f2f2f;
	--bg_color_section-1 : #F6F5F2;
	--bg_color_section-2 : #ffffff;
	--bg_color_cards : #F5F1EB;
	
	
}

.ra_section:nth-of-type(odd) {
  background-color: var(--bg_color_section-1);
}

.ra_section:nth-of-type(even) {
  background-color: var(--bg_color_section-2);
}

.site-main > .ra_section {
	padding-top: 3em;
	border : solid  1px;
}
/*============ CARDS - GRILLE ====================*/
/* texte */
.ra_grid .catalogue-item .catalogue-meta{
	display:flex;flex-direction:column;gap:4px;
	justify-content: center;
	align-items: center;
}

.card-body .card-title{
	font-family: 'Roboto', sans-serif!important; 
	width: 100%;
	font-size:1rem!important;
	padding: 5px 2px;
	text-align: center;
	margin:0;
}
.card-body .card-title a {
	color: var(--text-color-default);
	text-decoration: none;
}
.ra_grid .catalogue-item .catalogue-year{
	opacity:.7;
	font-size:.9rem
}
.card {
	background-color : var(--bg_color_cards);
}

/*=======================================
 * 
 * TEMPLATE PAGE
 * 
 * ======================================*/
.ra-layout-full_width > .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.ra-layout-no_sidebar article {
    tmp_max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
