/* Article Content */
article {
    width: 100%;
    margin: 0;
    padding: 0;
    margin-left: var(--sidebar-width);
    margin-top: calc(var(--header-height) + -45px);
}

/* Article Page Styles */
.article-header {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background: #f5f5f5;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.article-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.article-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    color: #222;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #333;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Article Header Styles */
@keyframes slideDown {
    from {
        transform: translateY(-10%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(10%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(10%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.article-image-wrapper {
    display: flex;
    width: 100%;
    /* height: 600px; */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-top: -3px;
}

.article .matatabi-intro-content {
    margin-top: -15px;
    }

    .article .matatabi-illustration  {
        max-width: 100%;
        }
        .article   .matatabi-intro {
        
            margin-bottom: 0;
            }



.main-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateY(-10%);
    will-change: transform, opacity;
}

.content-loaded .main-article-image {
    animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.main-image {
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.similar-articles {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    padding-left: 0;
    gap: 1rem;
    margin: 30px 0;
    justify-content: space-between;
}

.similar-article-card {
    flex: 0 0 calc(20% - 0.8rem);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
    will-change: transform, opacity;
}

.similar-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.content-loaded .similar-article-card {
    animation: slideIn 0.5s ease forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
}

.similar-article-card a {
    display: flex;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.similar-article-image {
    width: 35%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.similar-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.similar-article-card:hover .similar-article-image img {
    transform: scale(1.1);
}

.similar-article-info {
    flex: 1;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.similar-article-info h3 {
    color: #87b5f1;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.3;
    font-weight: 600;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.similar-article-info .article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    margin-bottom: 0.2rem;
    margin-top: 0.4rem;
}

.similar-article-info .category {
    font-size: 0.5rem;
    margin-right: 0.2rem;
    border-radius: 3px;
    background-color: var(--accent-color);
    color: white;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.article-title-wrapper {
    position: relative;
   /*margin-top: 10px;
    width: 80%;
    z-index: 2;
    display: flex;
    justify-content: flex-end;*/
}

.title-tag {
    opacity: 0;
    transform: translateX(10%);
    will-change: transform, opacity;
}

.photo-protect {
    font-size: 0.5rem;
    font-weight: bold;
    margin-right: 0.5rem;
    margin-top: 0.3rem;
    color: rgb(117, 117, 117);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    text-align: right;
    }

.content-loaded .title-tag {
    animation: slideLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* .title-tag {
    position: relative;
    color: white;
    width: 80%;
    padding: 10px 20px 35px 30px;
   border-radius: 20px 0 0 20px;
    box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--primary-color);
    margin-right: calc(-1 * ((100vw - 100%) / 2));
    padding-right: calc((100vw - 100%) / 2);
    overflow: hidden; /* Masque le débordement du pseudo-élément */
}

.title-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   background: radial-gradient(ellipse at 30% 0%, #9ac1f7, #f0f7fa 39.5%); 
    z-index: -1;
    border-radius: inherit;
}*/


.title-tag h1 {
    color: #75aaf1;
    margin: 0;
    font-size: 2.8rem;
    line-height: 1.2;
}

.article-meta-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
    opacity: 0;
}

.content-loaded .article-meta-wrapper {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

.article-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 15px 30px;
    justify-content: center;
}

/* Product Sections */
.trend-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.trend-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    color: #444;
}

.trend-list li:last-child {
    border-bottom: none;
}

.product-highlight {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.product-highlight img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    margin: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
    border-radius: 8px;
}

.product-card h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.2rem;
}

.product-card p {
    padding: 0 1rem;
    margin: 0.5rem 0;
    color: #666;
}

.product-link {
    display: inline-block;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.product-link:hover {
    background: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(to bottom right, #5c7fae, #152236);
    color: white;
    border-radius: 8px;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Tags */
.article-tags {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    margin: 0.3rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 0.2rem 0.6rem;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Related Articles */
.related-articles {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #222;
}

/* Suppression de la section article-excerpt qui a été déplacée vers article-content.css */

/* Responsive Design */
@media (max-width: 768px) {
    article {
        margin-left: 0;
    }

    .article-header {
        height: 50vh;
        min-height: 300px;
    }

    .product-highlight {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .article-image-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .main-image, .similar-articles {
        width: 100%;
    }
    .articles-grid {
        scroll-margin-top: 80px;
    }
    
    .page-title {
margin: 2rem 0 1.5rem !important;
}

.article-image-wrapper {
overflow-x: auto !important;
}

.article-title-wrapper {
margin-top: -20px;
}
.article-full .article-content , .article-content .article-excerpt blockquote {
padding: 1rem 0 !important;
}
    
       .article-categories {
width:105% ;
position: absolute;
}

.article-content .article-gallery {
margin-top: 15px;
    }

.widget-random-image img {
width: 100% !important;
height: 145px !important;
object-fit: cover !important;
    }
    
    
   
   @keyframes slideUpDesire {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.desire-meter-wrapper::before  {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 246, 252, 0.86); /* Blanc avec 85% d'opacité */
    z-index: 0;
    border-top: 2px solid rgba(239, 68, 176, 0.7);
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}
    
    
.desire-meter-wrapper {
    position: fixed !important;
    height: 120px !important;
    padding-top:10px;
    max-width: 100vw;
    border-radius: 20px 20px 0 0 !important;
    bottom: 30px;
    left: 0;
    z-index: 997;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
       animation: slideUpDesire 0.5s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
}


    .similar-articles {
width: 100%;
height: auto;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
padding: 1rem 0 0 0;
gap: 0;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
-ms-overflow-style: none;
position: absolute;
transform: scale(0.6);
bottom: -20px;
margin-left: calc(-1 * ((0vw - 40%) / 2));;
z-index: 10;
    }

    .similar-articles::-webkit-scrollbar {
        display: none;
    }

    .similar-article-card {
        flex: 0 0 250px;
        height: 120px;
        margin-right: 1rem;
    }

    .similar-article-card:last-child {
        margin-right: 0;
    }

    .similar-article-image {
        width: 40%;
    }

    .similar-article-info {
        padding: 0.6rem;
    }

    .similar-article-info h3 {
        font-size: 0.86rem;
        -webkit-line-clamp: 3;
        margin-top: 1.2rem;
    }
    .article-content .article-excerpt blockquote {
font-size: 1.4em !important;
line-height: 1.4;
}

.article-content .article-excerpt {
max-width: 360px !important;
}

}

@media (max-width: 580px) {
    .article-content h1 {
        font-size: 2rem;
    }

    .article-content {
        font-size: 1rem;
    }
    
    .similar-article-card {
        flex: 0 0 200px;
        height: 100px;
    }
}

.article-image img {
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateZ(0);
    will-change: opacity;
    backface-visibility: hidden;
}

.article-image img.loaded {
    opacity: 1;
}
