/**
 * Styles pour le front-end
 */

/* Carousel Wrapper */
.scc-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 40px 0;
}

.scc-carousel-wrapper .swiper {
    width: 100%;
    padding-bottom: 50px;
}

.scc-carousel-wrapper .swiper.swiper-overflow {
overflow: visible;
}

.scc-carousel-wrapper .swiper-wrapper {
    align-items: stretch;
}

.scc-carousel-wrapper .swiper-slide {
    height: auto;
    display: flex;
}

/* Card Styles */
.scc-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: var(--wp--preset--color--text-default)!important;
}



.scc-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.scc-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.scc-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.scc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.scc-card:hover .scc-card-image img {
    transform: scale(1.05);
}

.scc-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scc-card-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.scc-card-title a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.scc-card-title a:hover {
    color: #0073aa;
}

.scc-card-excerpt {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.scc-card-link {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
    margin-top: auto;
}

.scc-card-link:hover {
    color: #005177;
    text-decoration: underline;
}

.scc-card-link::after {
    content: " →";
    display: inline-block;
    transition: transform 0.2s ease;
}

.scc-card-link:hover::after {
    transform: translateX(4px);
}

/* Navigation Buttons */
.scc-carousel-wrapper .swiper-button-next,
.scc-carousel-wrapper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.30);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    top: calc(50% - 50px);
}

.scc-carousel-wrapper .swiper-button-next:after,
.scc-carousel-wrapper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.scc-carousel-wrapper .swiper-button-prev::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='14' viewBox='0 0 18 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7H17M17 7L11 1M17 7L11 13' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(180deg);
  }
  
  .scc-carousel-wrapper .swiper-button-next::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='14' viewBox='0 0 18 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7H17M17 7L11 1M17 7L11 13' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
  }


.scc-carousel-wrapper .swiper-button-prev, .swiper-rtl .swiper-button-next {
    left: auto;
    right: 80px;
  }

.scc-carousel-wrapper .swiper-button-next:hover,
.scc-carousel-wrapper .swiper-button-prev:hover {
    background: var(--wp--preset--color--accent);
    transform: scale(1.1);
}

.scc-carousel-wrapper .swiper-button-next:hover:after,
.scc-carousel-wrapper .swiper-button-prev:hover:after {
    color: #fff;
}

.scc-carousel-wrapper .swiper-button-disabled {
    opacity: 0.35;
}

/* Pagination */
.scc-carousel-wrapper .swiper-pagination {
    bottom: 10px;
}

.scc-carousel-wrapper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    transition: all 0.3s ease;
}

.scc-carousel-wrapper .swiper-pagination-bullet-active {
    background: var(--wp--preset--color--accent);
    width: 24px;
    border-radius: 5px;
}

/* No Content Message */
.scc-no-content {
    padding: 40px 20px;
    text-align: center;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .scc-carousel-wrapper {
        margin: 20px 0;
    }

    .scc-card-content {
        padding: 15px;
    }

    .scc-card-title {
        font-size: 16px;
    }

    .scc-card-excerpt {
        font-size: 13px;
    }

    .scc-carousel-wrapper .swiper-button-next,
    .scc-carousel-wrapper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .scc-carousel-wrapper .swiper-button-next:after,
    .scc-carousel-wrapper .swiper-button-prev:after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .scc-carousel-wrapper .swiper-button-next,
    .scc-carousel-wrapper .swiper-button-prev {
        display: none;
    }

    .scc-carousel-wrapper .swiper {
        padding-bottom: 40px;
    }
}

/* ===========================
   STYLES DES TEMPLATES
   =========================== */

/* Template Post - Avec métadonnées */
.scc-template-post .scc-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0073aa;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.scc-template-post .scc-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.scc-template-post .scc-card-meta svg {
    vertical-align: middle;
    margin-right: 4px;
}

.scc-template-post .scc-card-date,
.scc-template-post .scc-card-author {
    display: flex;
    align-items: center;
}

/* Template Page - Épuré */
.scc-template-page .scc-card {
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.scc-template-page .scc-card-link-primary {
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
    transition: background 0.2s ease;
}

.scc-template-page .scc-card-link-primary:hover {
    background: #005177;
    text-decoration: none;
}

/* Template Minimal - Simple */
.scc-template-minimal .scc-card {
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: left;
    border-radius: 0;
    overflow: visible;
   
}

.scc-template-minimal .scc-card-link-wrapper {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
    color: var(--wp--preset--color--text-default);
}

.scc-template-minimal .scc-card:hover {
    transform: translateY(0);
}


.scc-template-minimal .scc-card-link-wrapper:hover .scc-card-image:before,
.scc-template-minimal .scc-card-link-wrapper:hover .scc-card-image:after {
opacity: 1;
  transform: scale(1);
}

.scc-template-minimal .scc-card-image {
    border-radius: 8px;
    overflow: hidden;
    height: 440px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 8px 8px 0px;
    position: relative;
}

.scc-template-minimal .scc-card-image:before {
content: "";
  color: #fff;
  background-color: rgb(0 0 0 / .2);
  position: absolute;
  width: 100%;
  height: 99%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transform: scale(.8);
  transition: all 0.3s cubic-bezier(.25,.46,.45,.94);
  opacity: 0;
  z-index: 1;
}

.scc-template-minimal .scc-card-image:after {
    content: "";
  position: absolute;
  display: block;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  border: 1px solid #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='96' height='97' viewBox='0 0 96 97' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M48 32.3809V64.3809M32 48.3809H64M88 48.3809C88 70.4723 70.0914 88.3809 48 88.3809C25.9086 88.3809 8 70.4723 8 48.3809C8 26.2895 25.9086 8.38086 48 8.38086C70.0914 8.38086 88 26.2895 88 48.3809Z' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: center center;
  top: 0;
  left: 0;
  margin: 30px;
  -webkit-transform: scale(.8);
  transform: scale(.8);
  -webkit-transition: all 0.3s cubic-bezier(.25,.46,.45,.94);
  transition: all 0.3s cubic-bezier(.25,.46,.45,.94);
  z-index: 2;
  opacity: 0;
}


.scc-template-minimal .scc-card-title {
    font-family: var(--wp--preset--font-family--satoshi);
    display: inline-flex;
    align-items: center;
    gap:0;
    font-size: 1.35rem;
    margin: 0;
    padding: 20px 0;
}

.scc-template-minimal .scc-card-link-wrapper h3:before {
    content:"";
    display: block;
    width: 0px;
    padding: 20px 0;
    transition: width 0.2s ease;
}

.scc-template-minimal .scc-card-link-wrapper:hover .scc-card-title {
    gap:.5rem;
}

.scc-template-minimal .scc-card-link-wrapper:hover h3:before {
   width: 3px;
   flex-shrink: 0;
   padding: 20px 0;
   background-color: var(--wp--preset--color--accent);

}


.scc-template-minimal .scc-card-content {
    padding: 0;
}

.scc-template-minimal .scc-card-title a {
    color: #1e1e1e;
    text-decoration: none;
}





/* Template image - Simple */
.scc-template-image .scc-card {
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: left;
    border-radius: 0;
    overflow: visible;
   
}

.scc-template-image .scc-card-link-wrapper {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
    color: var(--wp--preset--color--text-default);
}

.scc-template-image .scc-card:hover {
    transform: translateY(0);
}




.scc-template-image .scc-image {
    border-radius: 8px;
    overflow: hidden;
    height: 440px;
    position: relative;
    width: 100%;
    object-fit: cover;
}

.scc-template-image .scc-image-link {
    position: relative;
    height: 440px;
}


.scc-template-image .scc-image-link:before {
content: "";
  color: #fff;
  background-color: rgb(0 0 0 / .2);
  position: absolute;
  width: 100%;
  height: 99%;
  bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transform: scale(.8);
  transition: all 0.3s cubic-bezier(.25,.46,.45,.94);
  opacity: 0;
  z-index: 1;
}

.scc-template-image .scc-image-link:after {
    content: "";
  position: absolute;
  display: block;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  border: 1px solid #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='96' height='97' viewBox='0 0 96 97' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M48 32.3809V64.3809M32 48.3809H64M88 48.3809C88 70.4723 70.0914 88.3809 48 88.3809C25.9086 88.3809 8 70.4723 8 48.3809C8 26.2895 25.9086 8.38086 48 8.38086C70.0914 8.38086 88 26.2895 88 48.3809Z' stroke='white' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: center center;
  top: 0;
  left: 0;
  margin: 30px;
  -webkit-transform: scale(.8);
  transform: scale(.8);
  -webkit-transition: all 0.3s cubic-bezier(.25,.46,.45,.94);
  transition: all 0.3s cubic-bezier(.25,.46,.45,.94);
  z-index: 2;
  opacity: 0;
}


.scc-template-image .scc-image-link:hover:before,
.scc-template-image .scc-image-link:hover:after {
opacity: 1;
  transform: scale(1);
}



.scc-template-image .scc-image-caption{
    font-family: var(--wp--preset--font-family--satoshi);
    display: inline-flex;
    align-items: center;
    gap:0;
    font-size: 1.35rem;
    margin: 0;
    padding: 20px 0;
}

.scc-template-image .scc-card .scc-image-caption:before {
    content:"";
    display: block;
    width: 0px;
    padding: 20px 0;
    transition: width 0.2s ease;
}

.scc-template-image .scc-card:hover .scc-image-caption{
    gap:.5rem;
}


.scc-template-image .scc-card:hover .scc-image-caption:before {
   width: 3px;
   flex-shrink: 0;
   padding: 20px 0;
   background-color: var(--wp--preset--color--accent);

}

.scc-template-image .scc-card-content {
    padding: 0;
}







/* Template Full - Complet */
.scc-template-full .scc-card-categories {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 1;
}

.scc-template-full .scc-card-category-badge {
    background: #0073aa;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.scc-template-full .scc-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #666;
}

.scc-template-full .scc-card-meta svg {
    vertical-align: middle;
    margin-right: 4px;
}

.scc-template-full .scc-card-date,
.scc-template-full .scc-card-author,
.scc-template-full .scc-card-comments {
    display: flex;
    align-items: center;
}

.scc-template-full .scc-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    margin-bottom: 12px;
}

.scc-template-full .scc-card-tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.scc-template-full .scc-card-link-full {
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    text-decoration: none;
}

.scc-template-full .scc-card-link-full:hover {
    background: #005177;
}

/* Template Overlay - Titre sur image */
.scc-template-overlay .scc-card {
    height: 400px;
    position: relative;
    overflow: hidden;
    border: none;
}

.scc-template-overlay .scc-card-overlay-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.scc-template-overlay .scc-card-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.scc-template-overlay .scc-card-no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.scc-template-overlay .scc-card:hover .scc-card-image-bg {
    transform: scale(1.1);
}

.scc-template-overlay .scc-card-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.scc-template-overlay .scc-card-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
    color: #fff;
}

.scc-template-overlay .scc-card-overlay-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.scc-template-overlay .scc-card-overlay-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #fff;
}

.scc-template-overlay .scc-card-overlay-excerpt {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.scc-template-overlay .scc-card-overlay-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scc-template-overlay .scc-card-overlay-link .scc-card-arrow {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.scc-template-overlay .scc-card:hover .scc-card-overlay-link .scc-card-arrow {
    transform: translateX(5px);
}

/* Responsive pour templates */
@media (max-width: 768px) {
    .scc-template-overlay .scc-card {
        height: 300px;
    }
    
    .scc-template-overlay .scc-card-overlay-title {
        font-size: 20px;
    }
    
    .scc-template-full .scc-card-meta {
        font-size: 11px;
    }
}




.scc-card-site-badge {
    position: absolute;
    z-index: 1000;
    background: white;
    left: 10px;
    top: 10px;
    padding: 0 .5rem;
    color:var(--wp--preset--color--text-default);
    font-size: .85rem;
    border-radius: 20px;
  }


/* Template multisite */
.scc-card.scc-template-multisite {
    background: none;
    box-shadow: none;
    border-radius: 0;
    border: none;
}

.scc-card.scc-template-multisite .scc-card-content {
    margin: .5rem 0;
    padding: .5rem 0;
     transition: all 0.2s ease;
     border-left: 1px solid transparent;
}

.scc-card.scc-template-multisite .scc-card-title a {
    font-size: 2rem;
    line-height: 1;
    font-weight: normal;
    color:var(--wp--preset--color--text-default);
}

.scc-card.scc-template-multisite:hover .scc-card-title a,
.scc-card.scc-template-multisite .scc-card-title:hover a {
    color:var(--wp--preset--color--text-default);
}
.scc-card.scc-template-multisite .scc-card-image ,
.scc-card.scc-template-multisite .scc-card-image img {
    border-radius: 8px;
    overflow: hidden;
}

.scc-card.scc-template-multisite:hover .scc-card-content {
    padding-left: 1rem;
 border-left: 1px solid var(--wp--preset--color--accent);
}

.scc-card.scc-template-multisite .scc-card-excerpt {
    font-size: 1rem;
}



.scc-card.scc-template-multisite .scc-card-image a:before {
content: "";
  color: #fff;
  background-color: rgb(0 0 0 / .2);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transform: scale(.8);
  transition: all 0.3s cubic-bezier(.25,.46,.45,.94);
  opacity: 0;
  z-index: 1;
}

.scc-card.scc-template-multisite .scc-card-image a:after {
    content: "Lire la suite";
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  border: 1px solid #fff;
  color: white;
 
  top: 0;
  left: 0;
  margin: 30px;
  -webkit-transform: scale(.8);
  transform: scale(.8);
  -webkit-transition: all 0.3s cubic-bezier(.25,.46,.45,.94);
  transition: all 0.3s cubic-bezier(.25,.46,.45,.94);
  z-index: 2;
  opacity: 0;
}

.scc-card.scc-template-multisite:hover a:before,
.scc-card.scc-template-multisite:hover a:after,
.scc-card.scc-template-multisite .scc-card-image:hover a:before,
.scc-card.scc-template-multisite .scc-card-image:hover a:after {
opacity: 1;
  transform: scale(1);
}


.scc-card.scc-template-multisite .scc-card-content .scc-card-link:after {
    background-color: var(--wp--preset--color--accent);
-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='18' height='14' viewBox='0 0 18 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7H17M17 7L11 1M17 7L11 13' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg width='18' height='14' viewBox='0 0 18 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 7H17M17 7L11 1M17 7L11 13' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    
    -webkit-mask-size: contain;
    mask-size: contain;
    
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-position: center center;
    width: 18px;
    
}

.scc-card.scc-template-multisite .scc-card-content .scc-card-link:hover {
    text-decoration: none;
}

/* .scc-card.scc-template-multisite .scc-card-content .scc-card-link {
scc-card-link-text */

.scc-card.scc-template-multisite .scc-card-content .scc-card-link .scc-card-link-text {
    display: inline-block;
    font-size: 1rem;
    color:var(--wp--preset--color--text-default)!important;
}


.scc-card.scc-template-multisite .scc-card-content .scc-card-link .scc-card-link-text:after {
   content: "";
   width: 0;
   height: 4px;
   background-color: transparent;
   display: block;
   transition: all ease-in 250ms;

}


.scc-card.scc-template-multisite:hover .scc-card-content .scc-card-link .scc-card-link-text:after,
.scc-card.scc-template-multisite .scc-card-content .scc-card-link:hover .scc-card-link-text:after {
    width: 100%;
    background-color: var(--wp--preset--color--accent);
}