@charset "utf-8";

/*** Ajax loader : START ***/
#ccc-my_favorite-list-loader::before {
  content: " ";
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1; /* for Edge */
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}
#ccc-my_favorite-list-loader {
  width: 100px;
  height: 100px;
  position: fixed;
  z-index: 99999999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}
#ccc-my_favorite-list-loader > .loader,
#ccc-my_favorite-list-loader > .loader:after {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  z-index: 99999999;
}
#ccc-my_favorite-list-loader > .loader {
  position: relative;
  left: -10%;
  top: -10%;
  margin: 0 auto;
  font-size: 10px;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(255, 255, 255, 0.2);
  border-right: 1.1em solid rgba(255, 255, 255, 0.2);
  border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
  border-left: 1.1em solid #ffffff;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: loading 1.1s infinite linear;
  animation: loading 1.1s infinite linear;
}
@-webkit-keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
/*** Ajax loader : END ***/

/*** Common : START ***/
#ccc-my_favorite-list {
  overflow: hidden;
}
#ccc-my_favorite-list .header-ccc_favorite {
  margin-top: 1em;
  margin-bottom: 1em;
}
#ccc-my_favorite-list #ccc-favorite-count {
  float: left;
  line-height: 1.3;
}
#ccc-my_favorite-list #ccc-favorite-count .number {
  font-size: 1.2em;
  font-weight: 600;
  margin-left: 0.5em;
}
#ccc-my_favorite-list #ccc-favorite-count .found_posts::before {
  content: '/';
  margin: 0 0.15em;
}
#ccc-my_favorite-list #ccc-favorite-count .unit {
  font-size: 0.7em;
  margin-left: 0.2em;
}
#ccc-my_favorite-list .ccc-favorite-post-toggle > a {
  text-decoration: none;
}
#ccc-my_favorite-list .ccc-favorite-post-toggle > a::before {
  /* icomoon Font =========== */
  content: "\f056";
  /* icomoon Font =========== */
}
#ccc-my_favorite-list .ccc-favorite-post-delete {
  float: right;
}
#ccc-my_favorite-list .excerpt-post .ellipsis {
  margin-left: 0.35em;
}
#ccc-my_favorite-list .results-more {
  text-align: center;
  margin-top: 2em;
}
#ccc-my_favorite-list .results-more > a {
  display: inline-block;
  vertical-align: top;
  font-size: 0.8em;
  text-decoration: none;
}
#ccc-my_favorite-list .icon-ccc-my_favorite-refresh::before {
  display: block;
  font-size: 2em;
  line-height: 1.5;
}
/*** Common : END ***/




/****** Style: [data-ccc_my_favorites-list-style="1"]: START ******/
#ccc-my_favorite-list[data-ccc_my_favorites-list-style="1"] .clearfix::after {
  content: " ";
  display: block;
  clear: both;
}
#ccc-my_favorite-list[data-ccc_my_favorites-list-style="1"] .ccc-favorite-post-toggle {
  margin-top: 0;
}
#ccc-my_favorite-list[data-ccc_my_favorites-list-style="1"] .ccc-favorite-post-toggle > a {
  color: #666;

}
#ccc-my_favorite-list[data-ccc_my_favorites-list-style="1"] .ccc-favorite-post-toggle > a:hover {
  color: red;
 }


#ccc-my_favorite-list[data-ccc_my_favorites-list-style="1"] .ccc-favorite-post-delete > a .text {
  font-size: 0.7em;
}
#ccc-my_favorite-list[data-ccc_my_favorites-list-style="1"] .ccc-favorite-post-toggle {
  text-align: right;
  position: relative;
  z-index: 10;
}
#ccc-my_favorite-list[data-ccc_my_favorites-list-style="1"] .ccc-favorite-post-toggle > a > .text {
  display: none;
}
#ccc-my_favorite-list[data-ccc_my_favorites-list-style="1"] .ccc-favorite-post-delete-button {
  text-decoration: none;
}
/* SP
----------------------------------------------------------*/

/****** Style: [data-ccc_my_favorites-list-style="1"]: END ******/

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.grid-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.grid-item:hover {
    background: #f1f1f1;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.grid-item h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.grid-item a {
    text-decoration: none;
    color: #0073aa;
}

.grid-item a:hover {
    color: #005177;
}

.grid-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
    }
}