/******TITRE**********/
.tt_acces_rapides {
  font-size: 33px;
  text-align: center;
  padding: 20px 0 40px 0;
  color: #a90c40;
  text-transform: uppercase;
}
.tt_acces_rapides::before, .tt_acces_rapides::after {
  content: "";
  display: block;
  width: 100px;
  border-top: 1px solid #000;
  margin: 20px auto 20px auto;
}

/***********CONTAINER**********/
.acces-rapide-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/***********LISTE (ul) — reset des styles de liste par défaut**********/
.acces-rapide-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/**********ITEM (li)*************/
.acces-rapide-item {
  text-align: center;
  color: #267267;
  margin-bottom: 15px;
  font-weight: 400;
  line-height: 1em;
  flex: 1 0 15%;
  position: relative;
    list-style: none;
}
.acces-rapide-item a {
  color: #462015;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 6px;
  transition: outline-offset 0.15s ease;
}

/**********FOCUS VISIBLE (RGAA 10.7)*************/
/* :focus-visible cible le focus clavier sans l'afficher sur un simple clic souris */
.acces-rapide-item a:focus {
  outline: none;
}
.acces-rapide-item a:focus-visible, .acces-rapide-item a:-moz-focusring{
  outline: 3px solid #0f8b9c;
  outline-offset: 6px;
  border-radius: 8px;
}
/* Repli pour les navigateurs sans support de :focus-visible */
.acces-rapide-item a:focus:not(:focus-visible) {
  outline: none;
}


/**********TEXTE ACCESSIBLE MASQUÉ VISUELLEMENT*************/
/* Utilisé pour le texte "(nouvelle fenêtre)" : visible des lecteurs d'écran,
   invisible à l'écran. Si le thème définit déjà .screen-reader-text, cette
   règle est simplement redondante et sans effet indésirable. */
.acces-rapide-item .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/**********REPÈRE VISUEL LIEN EXTERNE*************/
/* Petite flèche pour indiquer visuellement l'ouverture dans un nouvel onglet.
   Générée en CSS : non lue par les lecteurs d'écran (le texte accessible
   est porté séparément par .screen-reader-text ci-dessus). */
/*.acces-rapide-item a[target="_blank"] .tt_acces::after {
  content: "↗";
  display: inline-block;
  margin-left: 4px;
  font-weight: 700;
}*/

/**********PICTO*************/
.picto {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 80px;
  position: relative;
}

/* Cercle d'arrière-plan animé au survol / focus clavier */
.picto::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 55px;
  height: 55px;
  background-color: #fff;
  opacity: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 0;
  pointer-events: none;
}
.acces-rapide-item a:hover .picto::before,
.acces-rapide-item a:focus-visible .picto::before {
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(2);
}
.picto img {
  position: relative;
  z-index: 1;
}

/* Respect de la préférence utilisateur "réduire les animations" (RGAA 13.3) */
@media (prefers-reduced-motion: reduce) {
  .picto::before {
    transition: opacity 0.35s ease;
    transform: translate(-50%, -50%) scale(2);
  }
}
.picto img {
  height: auto;
  max-height: 90px;
  max-width: 90px;
}

/**********TEXTE*************/
.tt_acces {
color: #018597;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  max-width: 110px;
}

/****** TABLETTE (≤ 768px) ******/
@media (max-width: 1000px) {
  .acces-rapide-item {
    flex: 1 0 30%;
  }
  .tt_acces_rapides {
    font-size: 26px;
  }
	.picto img {
  opacity: 0.9;
  max-height: 90px;
  max-width: 100%;
  width: auto;
}
	 #s_navigation {
    height: 80px;
  }
	  #s_navigation .et_pb_code_2_tb_header.et_pb_module {
    margin-left: auto !important;
    margin-right: 0px !important;
  }
}

/****** MOBILE (≤ 480px) ******/
@media (max-width: 480px) {
  .acces-rapide-item {
    flex: 1 0 45%;
  }
  .picto {
    height: 80px;
  }
  .picto img {
    max-height: 80px;
  }
  .tt_acces {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.05em;
  }
  .tt_acces_rapides {
    font-size: 22px;
    padding: 15px 0 25px 0;
  }
}

/****** TRÈS PETIT (≤ 320px) ******/
@media (max-width: 320px) {
  .acces-rapide-item {
    flex: 1 0 100%;
  }
}