/* @import url("https://fonts.googleapis.com/css?family=Rubik:300,400,500,700,900&display=swap");*/

.body-min-card {
  /*font-family: 'Rubik', sans-serif;*/
  background-color: white;
  /*padding: 40px 0;*/
  color: #0b0b19;
}

.body-min-card * {
  box-sizing: border-box;
}

.body-min-card p {
  font-weight: 400;
  font-size: 14px;
  margin: 8px 0;
}

.body-min-card p img {
  width: 100%;
  max-width: 200px;
  border-radius: 5px;
  margin-top: 10px;
  max-height: 200px;
  opacity: 80%;
}

.slyoss-carousel-title {
  display: inline-block;
  /*background: linear-gradient(135deg, #c73c4e 0%, #fc9c45 100%);*/
  /*color: white;*/
  /*padding: 8px 20px;*/
  font-family:inherit;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 200;
  /*margin-bottom: 20px;*/
  letter-spacing: 0.5px;
}

.body-min-card h1 {
  font-size: 50px;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 20px;
}

.body-min-card .info h1 {
  color: rgba(255, 255, 255, 0.79);
}

.body-min-card h2 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

/* Section principale avec header + carousel */
.body-min-card .main-section {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 15px;
  /*padding: 0 50px;*/
}

/* Header fixe à gauche */
.body-min-card .header {
  flex-shrink: 0;
  width: 300px;
  height: 400px;
  padding: 25px 20px;
  border-radius: 5px;
  background-image: linear-gradient(#c73c4e 25%, #fc9c45);
  color: white;
  margin-top: 15px;
}

.body-min-card .header .content {
  padding: 0 15px;
}
.body-min-card .header .content .info h1{
  padding: 0px;
  margin: 0px;
}

.body-min-card .header .content .info .article-count {
  font-size: 18px;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.9);
  margin: 15px 0;
  padding: 10px;
  /*background: rgba(255, 255, 255, 0.15);*/
  border-radius: 5px;
  text-align: left;
}
.body-min-card .header .content .info .article-count {
  font-size: 12px;
  font-weight: 200;
  text-align: left;
  padding: 0px;
  margin:0px;
}

.body-min-card .header .content .info .link {
  font-size: 14px;
  padding: 0px;
  margin: 0px;
}

.body-min-card .header .content .info .link a {
  color: white;
  text-decoration: underline;
  font-weight: 200;
}

/* Container du carousel */
.body-min-card .carousel-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.body-min-card .container,
.body-min-card .slyoss-carousel {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  padding: 0 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  height: 450px;
  align-items: flex-start;

  /* Scrollbar personnalisée style Netflix */
  scrollbar-width: thin;
  scrollbar-color: rgba(252, 156, 69, 0.5) transparent;
}

/* Webkit scrollbar */
.body-min-card .container::-webkit-scrollbar,
.body-min-card .slyoss-carousel::-webkit-scrollbar {
  height: 8px;
}

.body-min-card .container::-webkit-scrollbar-track,
.body-min-card .slyoss-carousel::-webkit-scrollbar-track {
  background: transparent;
  margin: 0 20px;
}

.body-min-card .container::-webkit-scrollbar-thumb,
.body-min-card .slyoss-carousel::-webkit-scrollbar-thumb {
  background: rgba(252, 156, 69, 0.5);
  border-radius: 4px;
}

.body-min-card .container::-webkit-scrollbar-thumb:hover,
.body-min-card .slyoss-carousel::-webkit-scrollbar-thumb:hover {
  background: rgba(252, 156, 69, 0.8);
}

/* Cards */
.body-min-card .box {
  flex-shrink: 0;
  width: 200px;
  height: 400px;
  padding: 20px;
  border-radius: 5px;
  background-color: white;
  box-shadow: 0px 6px 15px -2px rgba(16, 24, 40, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.body-min-card .box:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0px 15px 30px -5px rgba(16, 24, 40, 0.5);
  z-index: 10;
}

.body-min-card .box .article-meta {
  font-size: 12px;
  margin-bottom: 10px;
  color: #888;
}

.body-min-card .box .post-thumbnail {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 10px;
  margin: 10px 0;
  background: #f5f5f5;
}

.body-min-card .box .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.body-min-card .box:hover .post-thumbnail img {
  transform: scale(1.1);
}

.body-min-card .box .post-thumbnail-default {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.body-min-card .box .no-image {
  font-size: 48px;
  opacity: 0.3;
}

.body-min-card .box .excerpt {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  margin: 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.body-min-card .box .author-info {
  margin-bottom: 10px;
  font-size: 13px;
}

.body-min-card .box .tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.body-min-card .box a {
  display: inline-block;
  text-decoration: none;
  color: rgba(16, 24, 40, 0.7);
  transition: all 0.2s ease;
}

.body-min-card .box a:hover {
  background: linear-gradient(to right, #fc9c45 0%, #780000 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.body-min-card .box a.tag {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 500;
  border: 2px solid;
  border-radius: 12px;
  border-color: rgba(16, 24, 40, 0.15);
  padding: 4px 12px;
  margin: 0;
  white-space: nowrap;
}

.body-min-card .box a.tag:hover {
  border-color: rgba(16, 24, 40, 0.5);
}

.body-min-card .headline {
  font-weight: 300;
  color: #888888;
}

.body-min-card .content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.body-min-card .info {
  /*margin-top: auto;*/
  padding-top: 10px;
}

.body-min-card .title {
  /* margin: 8px 0; */
  font-size: 16px;
  line-height: 1.3;
  /* min-height: 48px; */
  margin-bottom: 0px;
}

.body-min-card .title a {
  display: block;
  color: #0b0b19;
  font-weight: 600;
}

/* Boutons de navigation */
.body-min-card .nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #0b0b19;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.body-min-card .nav-button:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.body-min-card .nav-button.prev {
  left: 10px;
}

.body-min-card .nav-button.next {
  right: 10px;
}

.body-min-card .nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* =======================
   MODAL STYLES
   ======================= */
   
#slyoss-modal{
  margin-left: 20%;
  margin-top:30px;
}


.slyoss-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  height: 80%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slyoss-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 100px;
  /*background: rgba(0, 0, 0, 0.8);*/
  cursor: pointer;
}

.slyoss-modal-content {
  margin-top: 160px;
  position: relative;
  background: white;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.slyoss-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: color-mix(in srgb, var(--ast-global-color-1) 90%, transparent);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.slyoss-modal-close:hover {
  background: color-mix(in srgb, var(--ast-global-color-1) 90%, transparent);
  color: white;
  font-size: 30px;
  transform: scale(1.1);
}

.slyoss-modal-body {
  overflow-y: auto;
  max-height: 90vh;
  padding: 40px;
}

.slyoss-modal-loading {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #666;
}
.slyoss-modal-loading img {
  display: block;
  margin: 0 auto 20px;
  max-width: 60px;
  height: auto;
}

.slyoss-modal-error {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #c73c4e;
}

/* Article dans la modal */
.slyoss-article-content {
  animation: fadeInUp 0.4s ease;
}
.slyoss-article-content h1{
  /*margin-bottom: 0;*/
  padding-bottom: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slyoss-article-thumbnail {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 30px;
}

.slyoss-article-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.slyoss-article-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #0b0b19;
}

.slyoss-article-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.slyoss-article-author {
  margin-left: 10px;
}

.slyoss-article-categories {
  /*margin-bottom: 25px;*/
}

.slyoss-category-link {
  display: inline-block;
  background: linear-gradient(135deg, #c73c4e 0%, #fc9c45 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 200;
  text-decoration: none;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.slyoss-category-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(199, 60, 78, 0.3);
}

.slyoss-article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
}

.slyoss-article-body p {
  margin-bottom: 20px;
}

.slyoss-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.slyoss-article-body h2,
.slyoss-article-body h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #0b0b19;
}

.slyoss-article-tags {
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

.slyoss-tag-link {
  display: inline-block;
  background: #f5f5f5;
  color: #666;
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 12px;
  text-decoration: none;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.slyoss-tag-link:hover {
  background: #e0e0e0;
  color: #333;
}

.slyoss-article-footer {
  text-align: center;
  padding-top: 30px;
}

.slyoss-view-full {
  display: inline-block;
  background: linear-gradient(135deg, #c73c4e 0%, #fc9c45 100%);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.slyoss-view-full:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(199, 60, 78, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
  .body-min-card .main-section {
    flex-direction: column;
    align-items: center;
  }

  .body-min-card .header {
    width: 100%;
    max-width: 500px;
    height: auto;
    padding: 30px;
  }

  .body-min-card .carousel-wrapper {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .body-min-card .main-section {
    padding: 0 20px;
  }

  .body-min-card .box {
    width: 250px;
    height: 350px;
  }

  .body-min-card .nav-button {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .slyoss-modal-content {
    width: 95%;
  }

  .slyoss-modal-body {
    padding: 20px;
  }

  .slyoss-article-title {
    font-size: 24px;
  }

  .slyoss-article-body {
    font-size: 15px;
  }
}