/* Accens — CSS perso, sorti du style.css du thème enfant pour survivre à ses mises à jour. */

/* ===== Ajustements de l'ancien thème ===== */
.dct-home-preactice-2 .et_pb_blurb_content .et_pb_blurb_container .et_pb_blurb_description {
	font-size:14px;
	color:var(--color-1);
	line-height:27px;
	letter-spacing:1px;
	margin:0
}

.logged-in.admin-bar .dct-fixed-header {
	top:32px
}

body {
	overflow-x:hidden !important
}

/* ===== Bouton retour en haut ===== */
/* Default button appearance */

.et_pb_scroll_top::before {
 content: "6";
}
.et_pb_scroll_top.et-pb-icon {
	right: 30px;
	/* space from right */
	bottom: 30px;
	/* space from bottom */
	padding: 8px;
	/*padding size*/
	border-radius: 5px;
	/* make the circle */
	background: var(--color-1)/* button color */;
	font-size: 32px;
	/* icon size */
	transition: all .1s ease-in-out;
/* add transition */
}
/* Button Appearance on Mouseover */

.et_pb_scroll_top.et-pb-icon:hover {
	bottom: 32px/* space from bottom */;
	background: var(--color-2)/*button hover color*/;
 transition: all .1s ease-in-out;
	/*add transition*/
	box-shadow: 0 10px 15px #162c4e4a;/*box shadow on hover*/
}
/* Animation tweaks */

.et_pb_scroll_top.et-visible {
	-webkit-animation: fadeInBottom 1s 1 cubic-bezier(.50, 0, .160, 1);
	-moz-animation: fadeInBottom 2s 1 cubic-bezier(.50, 0, .160, 1);
	-o-animation: fadeInBottom 1s 1 cubic-bezier(.50, 0, .160, 1);
	animation: fadeInBottom 1s 1 cubic-bezier(.50, 0, .160, 1);
}
.et_pb_scroll_top.et-hidden {
	opacity: 0;
	-webkit-animation: fadeOutBottom 1s 1 cubic-bezier(.77, 0, .175, 1);
	-moz-animation: fadeOutBottom 1s 1 cubic-bezier(.77, 0, .175, 1);
	-o-animation: fadeOutBottom 1s 1 cubic-bezier(.77, 0, .175, 1);
	animation: fadeOutBottom 1s 1 cubic-bezier(.77, 0, .175, 1);
}


.et_pb_blog_0 .et_pb_blog_grid .et_pb_post, .et_pb_blog_1 .et_pb_blog_grid .et_pb_post {
    border-width: 1px 1px 1px 1px !important;
}


.actus-externes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.actus-externes .actu {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin: 0.5rem; /* légère séparation entre les cartes */
}

.actus-externes .actu img {
  height: 200px;
  object-fit: cover;
}


.actus-externes .actu h3 {
  font-size: 1rem;
  margin: 1rem 1rem 0.25rem;
  line-height: 1.3;
}


.actus-externes .actu h3 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.actus-externes .actu:hover h3 a {
  color: #cfa968; 
}


.actus-externes .actu .date {
  display: inline-block;
  font-size: 0.85rem;
  color: #888;
  margin-left: 1rem;
}

.actus-externes .actu .date::after {
  content: "|";
  margin: 0 6px;
  color: #ccc;
}

.actus-externes .actu .category {
  color: #c27c0e;
  font-weight: bold;
  font-size: 0.85rem;
}


.actus-externes .actu .date + span {
  color: #c27c0e; /* Couleur des catégories (or) */
  font-weight: bold;
  font-size: 0.9rem;
}

.actus-externes .actu .excerpt {
  font-size: 0.9rem;
  color: #555;
  margin: 0.5rem 1rem 1rem;
  line-height: 1.4;
  flex-grow: 1;
}

/* Conteneur pour gérer le zoom */
.image-container {
  overflow: hidden;
  height: 200px;
}

/* L’image zoomera au survol */
.image-container img {
  transition: transform 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Zoom de l’image quand on survole la .actu */
.actus-externes .actu:hover .image-container img {
  transform: scale(1.2);
}

.actus-externes .actu {
  border: 1px solid #e0e0e0 !important;
  border-width: 1px 1px 1px 1px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  margin: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

/* SIDE BAR */ 

/* Conteneur de la sidebar */
.et_pb_widget_area {
    padding: 20px;
    border-radius: 8px;
    background-color: #fdfdfd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Titres des sections (Recherche, Catégories) */
.et_pb_widget.widget_text p strong {
    font-size: 1.1em;
    color: #243674;
    border-left: 4px solid #cfa968;
    padding-left: 10px;
    margin-bottom: 8px;
    display: inline-block;
}

/* Réduction des marges entre widgets */
.et_pb_widget {
    margin-bottom: 16px;
}

/* Champ de recherche */
.wp-block-search__inside-wrapper {
    display: flex;
    gap: 5px;
    margin-top: 6px;
}

.wp-block-search__input {
    flex: 1;
    padding: 6px 8px;
    font-size: 0.95em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Bouton rechercher */
.wp-block-search__button {
    background-color: #243674;
    color: #fff;
    padding: 6px 10px;
    font-size: 0.9em;
    border: none;
    border-radius: 4px;
    transition: 0.3s ease;
    cursor: pointer;
}

.wp-block-search__button:hover {
    background-color: #cfa968;
    color: #243674;
}

/* Liens des catégories */
.widget_categories ul.wp-block-categories {
    list-style: none;
    padding-left: 0;
    margin: 6px 0 0 0;
}

.widget_categories ul.wp-block-categories li {
    margin-bottom: 6px;
}

.widget_categories ul.wp-block-categories a {
    color: #243674;
    text-decoration: none;
    transition: 0.3s ease;
}

.widget_categories ul.wp-block-categories a:hover {
    color: #cfa968;
}
@media (min-width: 981px) {
  .et_pb_gutters3 .et_pb_column_1_4 .et_pb_widget,
  .et_pb_gutters3.et_pb_row .et_pb_column_1_4 .et_pb_widget {
    margin-bottom: 20px !important; /* ou moins si tu veux encore plus compact */
  }
}
