/** --------------------------------------------------------------------

	FIL D'ARIANE
   
--------------------------------------------------------------------- */

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    width: 100%; /* Utilise toute la largeur disponible */
    padding: 8px 12px !important;
    border-radius: 6px;
    position: relative; /* Assure que z-index fonctionne pour les enfants */
    z-index: 1; /* Garde le breadcrumb au-dessus des éventuels éléments superposés */
    transform: translateY(-50%); /* Déplace tout le breadcrumb vers le haut */
    overflow-x: auto; /* Permet le défilement horizontal si nécessaire */
    -webkit-overflow-scrolling: touch; /* Améliore le défilement sur les appareils iOS */
}

/* Pseudo-élément pour l'effet de fond */
.breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #b8d0e9;
    z-index: -1; /* En dessous du contenu du breadcrumb */
    border-radius: 6px; /* Correspond au breadcrumb */
}

/* Styles des éléments de liste */
.breadcrumb li {
    margin: 0 5px;
    list-style: none !important;
    font-size: 0.9em;
    letter-spacing: 0.04em;
}

.breadcrumb li a {
    font-family: 'SF UI Display Semi Bold', Arial, sans-serif;
    text-decoration: none;
    color: #104e90;
}

.breadcrumb li a:hover {
    text-decoration: none;
    color: #0a3056;
}

.breadcrumb li+li::before {
    content: '' ;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    background-image: url('/wp-content/themes/Divi-Child/img/ico/sup-right.svg') !important;
    width: 8px;
    height: 8px;
    margin-left: 0px;
    margin-right: 5px;
    margin-top: 0px;
    filter: invert(23%) sepia(67%) saturate(1696%) hue-rotate(191deg) brightness(98%) contrast(92%);
}

.breadcrumb li:last-child a {
    pointer-events: none;
}

.breadcrumb li:last-child {
    color: #000 !important;
}

/* Classe pour ajuster le positionnement basé sur le type de contenu */
.breadcrumb-not-page-or-post {
    margin-top: 40px;
    transform: translateY(-25%);
}

/* Design réactif pour le breadcrumb */
@media (max-width: 600px) {
    .breadcrumb {
        justify-content: flex-start; /* Align items to the start */
        align-items: center; /* Center items vertically within each line */
        padding: 6px !important; /* Reduce padding for smaller screens */
        width: 100%; /* Use full width on smaller screens */
        overflow-x: auto; /* Permet le défilement horizontal */
        -webkit-overflow-scrolling: touch; /* Scrolling amélioré */
    }

    .breadcrumb li {
        white-space: normal; /* Allow text to wrap */
        margin: 0px 5px; /* Adjust margin for wrapped items */
        word-wrap: break-word; /* S'assure que les mots longs enroulent */
    }

    .breadcrumb li+li::before {
        margin-right: 5px; /* Space before the separator */
    }

    /* Adjust the separator to be flexible */
    .breadcrumb li+li::before {
        display: inline-block;
        vertical-align: middle;
    }

    /* Optionally, adjust font size for smaller screens */
    .breadcrumb li {
        font-size: 0.85em; /* Keep or adjust based on your preference */
    }
}

/** --------------------------------------------------------------------

	SIDEBAR PAGES 
   
--------------------------------------------------------------------- */

.sidebar-menu,
.sidebar-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sidebar-menu > li {
	margin-bottom: 3px;
}

.sidebar-menu a {
	text-decoration: none;
	display: block;
}

.sidebar-menu .sub-menu {
	margin-left: 15px;
}

.sidebar-lien-current {
	font-weight: bold;
	color: #0073aa; /* Vous pouvez ajuster cette couleur */
}

.sidebar-menu ul li {
	font-size:0.95em;
}


/** --------------------------------------------------------------------

	LIENS EXTERNES, INTERNES, DOWNLOAD

--------------------------------------------------------------------- */

/* COMMUNS */
.mainContent a {
	color:#0d4f92;
	font-weight:normal;
	/* border-bottom:2px solid #0085f2; */
	transition: color 0.3s ease;
	letter-spacing: 0.015em;
}

.mainContent a:hover,
.mainContent a:focus {
	color:#000;
}

a:focus-visible, 
.home-bt-actus:focus-visible, 
.actu-bouton-readmore:focus-visible, 
input:focus-visible, 
checkbox:focus-visible, 
select:focus-visible, 
button:focus-visible, 
textarea:focus-visible,
.gm-main-menu-wrapper .gm-search:focus-visible > i
{ 
outline: 5px solid #1a84fe !important;
outline-offset: 2px;
  }
  
  .gm-anchor.internal-link {
    display: inline-block; /* S'assure que l'élément occupe bien son espace */
}

.gm-anchor.internal-link:focus-visible::before {
    content: none; /* Empêche l'affichage d'éléments non souhaités */
}
  
.gm-search-btn:focus-visible {
	outline: 7px solid #d8205d !important;
	background:#d8205d !important;
		outline-offset: 0px;
}

.gm-search-btn:hover {
	outline:7px solid #d8205d !important;
	background:#d8205d !important
}



.gm-search-wrapper {
    outline: 5px solid #d8205d !important;
    outline-offset: 2px;
}

/* Empêche le focus-visible de s'appliquer directement à l'input */
.gm-search-wrapper input:focus-visible {
    outline: 0px !important;
}

.sib-form .input_replaced:indeterminate+.checkbox:after{content:normal}.sib-form .input_replaced:active+.checkbox,.sib-form .input_replaced:active+.radio-button,
.sib-form .input_replaced:focus+.checkbox,.sib-form .input_replaced:focus+.radio-button {
	box-shadow:none !important;
	outline: 3px solid #1a84fe !important;
}

/* INTERNES ET EXTERNES - AVEC OU SANS _BLANK */

.mainContent .link-ext, 
.mainContent .internal-link {
	/* color: red; Par exemple, cette classe change la couleur du texte en rouge */
	position: relative; /* Nécessaire pour positionner l'icône */
	padding-right: 5px; /* Espace pour l'icône */
	/* display: inline-block;  Garder le lien comme un élément en ligne */
}

.mainContent .link-ext::after,
.mainContent .internal-link::after {
	content: '';
	background-size: contain;
	background-repeat: no-repeat;
	display: inline-block; /* Permet de positionner l'icône en ligne */
	vertical-align: middle; /* Aligne l'icône avec le texte */
}

.mainContent .link-ext::after {
	background-image: url('/wp-content/themes/Divi-Child/img/ico/external-link-black.svg');
	width: 18px; /* Ajustez la taille selon vos besoins */
	height: 18px;
	margin-left: 4px; /* Espace entre le texte et l'icône */
	margin-top:-4px;
}

.mainContent .internal-link::after {
	width: 16px;
	height: 16px;
	background-image: url('/wp-content/themes/Divi-Child/img/ico/arrow-right.svg');
	margin-left: 8px;
	filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(101deg) brightness(0%) contrast(100%);
}


