/* Si on active le darktheme sur téléphone*/
@media (max-width: 900px) {
    [data-theme="dark"] {
        --background-color: var(--bg);
    }
}

/* Logo exit popup styles */
.logo-exit-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(9, 6, 21, 0.82);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 9999;
}
.logo-exit-overlay::before {
    content: "";
    position: absolute;
    inset: -15%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 95, 224, 0.15), transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(112, 68, 255, 0.25), transparent 55%);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.45s ease;
}
.logo-exit-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.logo-exit-overlay.is-visible::before {
    opacity: 1;
    animation: overlayPulse 8s ease-in-out infinite;
}
body.logo-popup-open {
    overflow: hidden;
}
.logo-exit-popup {
    position: relative;
    background: linear-gradient(150deg, #ffffff 0%, #f8f4ff 60%, #e5dafb 100%);
    border-radius: 32px;
    max-width: 560px;
    width: min(92vw, 560px);
    padding: 3rem 3rem 2.25rem;
    box-shadow: 0 40px 70px rgba(15, 12, 42, 0.45);
    color: #1a1834;
    opacity: 0;
    transform: translateY(25px) scale(0.95);
    overflow: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.logo-exit-popup::after {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 24px;
    border: 1px solid rgba(112, 68, 255, 0.12);
    pointer-events: none;
}
.logo-exit-overlay.is-visible .logo-exit-popup {
    opacity: 1;
    transform: translateY(0) scale(0.8);
}
.logo-exit-bubble {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 1.75rem;
    border: 1px solid rgba(98, 73, 255, 0.15);
    box-shadow: 0 18px 45px rgba(121, 95, 255, 0.18);
    font-size: 1.06rem;
    line-height: 1.65;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.logo-exit-bubble::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    border: 1px dashed rgba(112, 68, 255, 0.25);
    pointer-events: none;
}
.logo-exit-bubble strong {
    display: block;
    font-size: 1.28rem;
    margin-bottom: 0.85rem;
    letter-spacing: 0.02em;
}
.logo-exit-bubble p {
    margin: 0;
}
.logo-exit-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.logo-exit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.95rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: opacity 0.35s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    touch-action: manipulation;
    opacity: 0;
    transform: translateY(16px);
}
.logo-exit-btn:focus-visible {
    outline: 3px solid rgba(114, 90, 255, 0.45);
    outline-offset: 2px;
}
.logo-exit-btn.stay {
    background: rgba(250, 249, 255, 0.8);
    border: 1px solid rgba(112, 68, 255, 0.35);
    color: #6b4bff;
    box-shadow: inset 0 0 0 0 rgba(107, 75, 255, 0.12);
}
.logo-exit-btn.stay::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(107, 75, 255, 0.18));
    opacity: 0;
    transition: opacity 0.25s ease;
}
.logo-exit-btn.stay:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(107, 75, 255, 0.18);
    border-color: rgba(107, 75, 255, 0.55);
}
.logo-exit-btn.stay:hover::after {
    opacity: 1;
}
.logo-exit-btn.leave {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(110deg, #352048, #7044ff, #ff5fe0);
    background-size: 220% 220%;
    box-shadow: 0 18px 45px rgba(112, 68, 255, 0.45);
}
.logo-exit-btn.leave::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0) 75%);
    transform: translateX(-120%);
    animation: shineSweep 3.8s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.85;
}
.logo-exit-btn.leave::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.logo-exit-btn.leave:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 45px rgba(255, 95, 224, 0.45);
}
.logo-exit-btn.leave:hover::before {
    opacity: 1;
}
.logo-exit-btn.leave:hover::after,
.logo-exit-btn.leave:focus-visible::after {
    animation-duration: 1.2s;
}
.logo-exit-btn.cta-blink {
    animation: ctaBlink 2.8s ease-in-out infinite;
}
.logo-exit-btn:active {
    transform: translateY(0);
}
[data-theme="dark"] .logo-exit-popup {
    background: linear-gradient(150deg, #0f1020 0%, #17182a 60%, #1d1b31 100%);
    color: #f4f4ff;
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .logo-exit-popup::after {
    border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .logo-exit-bubble {
    background: rgba(16, 16, 28, 0.95);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    color: #e9e9ff;
}
[data-theme="dark"] .logo-exit-bubble::before {
    border-color: rgba(255, 255, 255, 0.14);
}
[data-theme="dark"] .logo-exit-btn.stay {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #d6d1ff;
    box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .logo-exit-btn.stay::after {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(107, 75, 255, 0.25));
}
[data-theme="dark"] .logo-exit-btn.stay:hover {
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.4);
}
.logo-exit-btn .logo-exit-btn-icon,
.blog-load-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}
.logo-exit-btn .logo-exit-btn-icon img,
.blog-load-more-icon img {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}
.logo-exit-overlay.is-visible .logo-exit-bubble {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}
.logo-exit-overlay.is-visible .logo-exit-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}
.logo-exit-overlay.is-visible .logo-exit-actions .logo-exit-btn {
    opacity: 1;
    transform: translateY(0);
}
.logo-exit-overlay.is-visible .logo-exit-actions .logo-exit-btn:nth-child(1) {
    transition-delay: 0.35s;
}
.logo-exit-overlay.is-visible .logo-exit-actions .logo-exit-btn:nth-child(2) {
    transition-delay: 0.6s;
}
@media (min-width: 641px) {
    .logo-exit-overlay {
        padding: 3rem;
    }
    .logo-exit-actions {
        flex-direction: row;
        justify-content: center;
    }
    .logo-exit-btn {
        min-width: 260px;
    }
}
    @media (max-width: 640px) {
        .logo-exit-overlay {
            align-items: flex-end;
            padding: 1.5rem 1.25rem;
        }
    }

.blog-page {
    background-color: var(--bg);
    color: var(--text);
}
    .logo-exit-popup {
        width: 100%;
        border-radius: 32px 32px 18px 18px;
        padding: 2.25rem 1.5rem 1.75rem;
        box-shadow: 0 -5px 45px rgba(10, 5, 30, 0.7);
    }
    .logo-exit-bubble {
        font-size: 1rem;
        padding: 1.4rem;
        text-align: left;
    }
        .logo-exit-btn {
            width: 100%;
            font-size: 1.05rem;
            padding: 1rem 1.25rem;
        }
        .blog-load-more-btn {
            width: 100%;
        }
    
@media (min-width: 1001px) {
    .logo-exit-popup {
        max-width: 560px;
        padding: 3.5rem 3.5rem 2.5rem;
    }
}
    @media (prefers-reduced-motion: reduce) {
        .logo-exit-overlay,
        .logo-exit-btn.leave,
        .logo-exit-btn.cta-blink,
        .logo-exit-btn.leave::after,
        .blog-load-more-btn,
        .blog-load-more-btn::after {
            animation: none !important;
        }
        .logo-exit-popup,
        .logo-exit-bubble,
        .logo-exit-actions,
        .logo-exit-btn,
        .blog-load-more-btn {
            transition: none !important;
            opacity: 1 !important;
            transform: none !important;
        }
    }
@keyframes shineSweep {
    0% { transform: translateX(-120%); opacity: 0; }
    45% { transform: translateX(130%); opacity: 0.9; }
    100% { transform: translateX(130%); opacity: 0; }
}
@keyframes overlayPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes ctaBlink {
    0% { background-position: 0% 50%; filter: drop-shadow(0 0 6px rgba(112, 68, 255, 0.45)); }
    50% { background-position: 100% 50%; filter: drop-shadow(0 0 16px rgba(255, 95, 224, 0.85)); }
    100% { background-position: 0% 50%; filter: drop-shadow(0 0 6px rgba(112, 68, 255, 0.45)); }
}
/* Si on active le darktheme */
[data-theme="dark"] {
    --background-color: var(--bg);
}
/* Configuration du thème somnbre */
/* Si on active le darktheme */
[data-theme="dark"] {
    .story-content h1, .story-content h3 {
        color: #ffffff;
      }
    .popular-posts h2 {
        color: #ffffff;
    }
    .card {
        background-color: rgb(255, 255, 255); /* Slightly transparent white background */
        box-shadow: 0 0px 5px rgba(255, 255, 255, 0.399); /* Subtle shadow for 3D effect */
        border: 2px solid #6661fc;
    }
    .card:hover {
        box-shadow: 0 5px 30px rgba(255, 255, 255, 0.673); /* Enhances the shadow on hover */
        border: 2px solid #ffffff;
    }
    .contributors h3 {
        color: #ffffff; /* Couleur noire pour le texte du h3 */
    }
    .contributor p {
        color: #9394e8;
    }
    .contributors {
        box-shadow: 0 10px 20px rgba(255, 255, 255, 0.371);
    }
    .popular-posts {
        background-color: rgba(128, 0, 255, 0.418);
        box-shadow: 0 4px 6px #00000059;
    }
    .popular-posts h2 {
        color: #ffffff;
    }
    .popular-posts li a {
        color: #ffffff;
    }
    .popular-posts li a:hover {
        color: #ec8ffc;
    }
    .popular-posts li a:before {
        color: #a539fe;
    }
    .filters label:hover{
        background-color: #f07fdb4d;
        }
    }
/* DARKTHEME CONFIGURE*/
 

/*STYLE BLOG*/
.rectangle-container {
    position: absolute;
    top: 0px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rectangle {
    width: 100%;
}
.rectangle.large {
    height: 170px;
    background: linear-gradient(135deg, #6661fc91, #a451fd83, #5895ff7e);
    opacity: 1;
}
.rectangle.medium {
    height: 11px;
    background: linear-gradient(135deg, #6661fc91, #a451fd83, #5895ff7e);
    opacity: 0.9;
}
.rectangle.small {
    height: 7px;
    background: linear-gradient(135deg, #6661fc91, #a451fd83, #5895ff7e);
    opacity: 0.7;
}
.rectangle.tiny {
    height: 6px;
    background: linear-gradient(135deg, #6661fc91, #a451fd83, #5895ff7e);
    opacity: 0.4;
}
@media (max-height: 800px) and (orientation: portrait), 
       (max-width: 1000px) and (orientation: portrait) {
        .rectangle-container {
            position: absolute;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .rectangle.large {
            height: 142px;
        }
        .rectangle.medium {
            height: 10px;
        }
        .rectangle.small {
            height: 7px;
        }
        .rectangle.tiny {
            height: 6px;
        }
}
/* Styles spécifiques pour le contenu de Notre blog */
.story-content {
    text-align: left;
    margin: 0 auto;
    width: 80%;
    position: relative;
    z-index: 3;
}
.story-content h1 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -15px; 
    text-align: center;
    font-size: 2.1em;
}
@media (max-width: 1200px) {
    .story-content h1 {
        font-size: 1.8em;
    }
}
@media (max-width: 970px) {
    .story-content h1 {
        font-size: 1.2em;
    }
}
.dropdown-img-blog {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    margin-right: 10px;
}
[data-theme="dark"] {
.dropdown-img-blog {
    filter: invert();
}
}
.story-content h2 {
    font-size: 1.1em; 
    font-weight: normal; 
}
.story-content h3 {
    color: #000000; 
    font-size: 1.5em; 
    font-weight: normal; 
    line-height: 1.6;
    margin: auto; 
    width: 100%; 
    margin-top: 5%;
}
@media (max-width: 800px) {
    .story-content h2 {
        font-size: 1em; 
    }
}
/* Sommaire des articles de blog les plus consultés */
.popular-posts {
    position: absolute;
    padding: 1.5rem;
    top: 50px;
    right: 0;
    width: auto;
    z-index: 2000;
    max-width: 350px;
}
@media (max-width: 990px) {
    .popular-posts {
        margin: 2rem auto;
        padding: 1.5rem;
        margin-top: 50px;
        width: 500px;
    }
}
@media (max-width: 650px) {
    .popular-posts {
        margin: 2rem auto;
        padding: 1.5rem;
        margin-top: 50px;
        width: 300px;
    }
}
.popular-posts h2 {
    color: #6661fc;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px; 
}
.popular-posts ul {
    list-style: none;
    padding: 0;
    margin-top: 10px; 
}
.popular-posts li {
    margin-bottom: 10px; 
    padding-left: 20px; 
    position: relative; 
}
.popular-posts li a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block; /* Permet la transformation sur hover */
}
.popular-posts li a:hover {
    color: #6661fc;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.17);
    padding-left: 10px; /* Décalage pour un effet dynamique au survol */
}
.popular-posts li a:before {
    content: "\f101"; /* Utilisation d'un caractère FontAwesome pour l'icône */
    font-family: "FontAwesome";
    position: absolute;
    left: 0;
    top: 0;
    color: #6661fc;
    transition: color 0.3s ease;
}
.popular-posts li a:hover:before {
    color: #6661fc30;
}
/* BULLES FLOTTANTES DES ARTICLES DE BLOG */
.floating-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
    gap: 25px; 
    padding: 40px;
    justify-content: center; 
    align-items: start; 
    z-index: 3;
    margin: 40px auto;
    max-width: 1200px;
}
.card {
    border-radius: 15px; 
    background-color: rgb(255, 255, 255); 
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.291); 
    padding: 20px;
    width: 100%;
    margin: 0 auto;
    max-width: 337px;
    transition: transform 0.3s, box-shadow 0.3s; 
    cursor: pointer; 
    text-decoration: none; 
    z-index: 3;
    border: 2px solid #ffffff;
}
@media (max-width: 1320px) {
    .floating-cards {
        grid-template-columns: repeat(auto-fill, minmax(390px, 1fr)); 
    }
    .card {
        max-width: 287px;
    }
}
.card a {
    text-decoration: none;
    color: inherit;
}
.card:hover {
    transform: translateY(-10px); 
    box-shadow: 0px 0px 19px rgb(116, 66, 255);
    border: 2px solid #6661fc;
}
.author-info {
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    margin-top: 10px;
}
.author-info img {
    width: 30px; 
    height: 30px; 
    border-radius: 50%; 
    margin-right: 10px;
}
.author-info a {
    margin-top: 3px;
    color: #000000;
    text-decoration: none; 
    font-weight: bold;
    transition: color 0.2s;
}
.author-info a:hover {
    color: #0015ff;
}
.card h2, .card p {
    margin: 1%;
    margin-top: 10px;
    color: #1e1e1e;
}
.card p {
    position: relative;
    bottom: -44px;
    left: none;
    font-size: 12px;
    color: #545779;
    margin-left: 129px;
    width: 100%;
    text-align: right;
    rotate: -90deg;
}
@media (max-width: 1000px) {
    .card p {
        width: 100%;
        margin-left: 153px;
    }
}
.banner-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #6661fc;
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding: 5px 0;
    z-index: 1;
    border-top-left-radius: 15px; 
    border-top-right-radius: 15px;
    overflow: hidden;
}
.banner-title:hover {
    color: #6661fc;
    background-color: #ffffff;
    transition: 0.4s;
}

.blog-page .notification-strip + .blog-layout {
    margin-top: 24px;
}
.date {
    z-index: 4;
}
@media (max-width: 800px) {
    .banner-title {
        font-size: 17px;
    }
    .date {
        font-size: 12px;
    }
    .excerpt {
        font-size: 12px;
    }
    .author-info {
        font-size: 11px;
    }
}
.card-image {
    position: relative;
    z-index: 4;
    top: 28px;
    width: 307px; /* L'image prend toute la largeur de la carte */
    border-bottom-right-radius: 15px; /* Coins arrondis pour correspondre à la carte */
    height: auto; /* Maintient les proportions de l'image */
    object-fit: cover; /* Assure que l'image couvre l'espace disponible */
    left: -20px;
}
/*Listing de profils contributeurs = rédacteurs*/
.contributors {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    margin: 4%;
    margin-left: 4.6%;
    z-index: 3;
    border-radius: 15px; /* Rounded corners for the cards */
}
.contributors h2 {
    text-align: center;
    width: 100%;
}
.contributor {
    text-align: center;
    flex-basis: 20%;
    margin: 10px;
    z-index: 3;
}
.contributor img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}
@media (max-width: 800px) {
    .contributor img {
        width: 69px;
        height: 69px;
    }
}
.contributors h3 {
    color: #000000;
    margin: 0;
}
.contributors h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s; 
}
.contributors h3 a:hover {
    color: #2026db;
}
.contributor p {
    font-size: 0.9em;
    color: #6c5099; 
    text-decoration: none;
}
@media (max-width: 768px) {
    .contributor {
        flex-basis: 40%;
    }
    .contributor p {
    font-size: 11px;
    width: 69%;
    position: relative;
    margin: 0 auto;
    text-align: center;
    }
}
@media (max-width: 480px) {
    .contributors {
        flex-basis: 100%;
        margin-bottom: 13%;
    }
}
@media (max-width: 880px) {
    .contributors {
        margin-bottom: 13%;
    }
}
/* Style lueurs */
.footer-glow-container {
    position: relative; /* Positionnement relatif pour les enfants absolus */
    width: 100%; /* Largeur complète pour couvrir tout le pied de page */
    height: auto; /* Hauteur automatique basée sur le contenu */
    top: 0;
}
/* Configuration des lueurs */
.cadre-lueur-footer-apropos-logo, .cadre-lueur-footer-blog {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
}
/* Pour distinguer visuellement les deux lueurs si nécessaire */
.cadre-lueur-footer-blog {
    opacity: 0.9; /* Légèrement plus transparent */
    z-index: 2; /* Superpose sur l'autre lueur */
}
@media (max-width: 800px) {
    .cadre-lueur-footer-apropos-logo, .cadre-lueur-footer-blog {
    width: 0px;
    }
}
/* Fonctionnalité de tri des toogle/card/article de blog par thèmatique*/
.filters {
    margin: 0 auto;
    margin-top: 70px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 3;
    position: relative;
    width: 30%;
}
.filters d {
    color: #6661fc;
}
@media (max-width: 800px) {
    .filters {
        gap: 1px;
        width: 80%;
    }
}
@media (max-width: 600px) {
    .filters {
        width: 100%;
    }
}
.filters label {
    margin: 0 10px;
    font-size: 16px;
    padding: 3px;
}
.filters label:hover{
    background-color: #938fff79;
    transition-duration: 0.15s;
    padding: 3px;
    border-radius: 6px;
}
.filters input[type="checkbox"] {
    margin-right: 5px;
}
.search-bar {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 3;
}
@media (max-width: 800px) {
    .search-bar {
        margin-top: 40px;
    }
}
#search-input {
    padding: 10px;
    width: 250px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}
/* STYLE des cards en cours / Nouveau */
.card.inprogress {
    position: relative;
    overflow: hidden;
    opacity: 0.3;
}
.card.inprogress::before {
    content: "";
    position: absolute;
    top: 50%; /* Centré verticalement */
    left: 50%; /* Centré horizontalement */
    width: 70%;
    transform: translate(-50%, -50%); /* Ajuste pour aligner parfaitement au centre */
    color: #6661fc;
    font-size: 23px;
    font-weight: bolder;
    text-align: center;
    padding: 10px 10px;
    border-radius: 5px;
    z-index: 13;
    opacity: 1; /* Texte pleinement visible */
}
.card.inprogress a {
    pointer-events: none; /* Désactive uniquement les clics sur les liens */
}
.card.newprogress {
    position: relative; /* Nécessaire pour le positionnement du pseudo-élément */
    overflow: hidden; /* Pour éviter que le bandeau dépasse */
}
/*    content: "Nouvel article"; METTRE CA QUANDJAURAIS DESIGNE LES ARTICLES COMME IL FAUT */
.card.newprogress::before {
    content: "Ceci est un exemple. Rédaction en cours...";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: #6661fc; /* Couleur rouge semi-transparente */
    color: white;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 0;
    z-index: 1;
}
/*COPIER COLLER DE PRODUCT LIKED */
/*Like blog*/
/* Icône de cœur vide par défaut */
.like-icon {
    font-size: 28px; /* Taille de l'icône */
    color: rgba(211, 211, 211, 0.643); /* Couleur du cœur vide */
    cursor: pointer; /* Change le curseur en pointeur pour indiquer que c'est cliquable */
    transition: color 0.3s ease; /* Transition douce entre les états */
    position: absolute;
    right: 0;
    margin: 16px;
    z-index: 10;
    bottom: 0;
}
.like-icon:hover {
    color: rgba(93, 0, 255, 0.311);
}
/* Cœur rempli (au clic) */
.like-icon.liked {
    color: rgb(93, 0, 255);
}
/* POPUP de bienvenue */
.welcome-popup {
    position: fixed;
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.741);
    z-index: 1000;
    width: 80%;
    max-width: 300px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.welcome-popup.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.popup-content-liked p {
    text-align: left;
    color: #000000;
    margin: 20px;
}
[data-theme="dark"] {
    .welcome-popup {
        background-color: rgb(34, 30, 106);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.394);
    }
    .popup-content-liked p {
        color: #ffffff;
    }
}
.close-popup-liked {
    padding: 8px 16px;
    background-color: #e91e63;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
/* NEW CODE JULAY MAJ */
.blog-page {
            --primary: #6661fc;
            --accent: #ff00f2;
            --light: #f8f9fc;
            --dark: #1a1c23;
            --text: #2d3748;
            --text-light: #718096;
            --card-bg: #ffffff;
            --bg: #f0f2f5;
            --background-color: var(--bg);
            --shadow: rgba(0, 0, 0, 0.05);
            --shadow-hover: rgba(0, 0, 0, 0.1);
            --divider-color: rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
            --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            --success: #00c896;
            --warning: #ffb74d;
        }

        [data-theme="dark"] .blog-page {
            --primary: #7d79ff;
            --accent: #ff4df9;
            --light: #1e2029;
            --dark: #f8f9fc;
            --text: #e2e8f0;
            --text-light: #adb8c7;
            --card-bg: #272349;
            --bg: #1c0e4c;
            --background-color: var(--bg);
            --shadow: rgba(0, 0, 0, 0.2);
            --shadow-hover: rgba(0, 0, 0, 0.3);
            --success: #00d9a5;
            --warning: #ffca7a;
            --divider-color: rgba(255, 255, 255, 0.12);
        }
        .unselectable {
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }


        /* Daily Challenge */
        .daily-challenge {
            max-width: 1000px;
            margin: 50px auto;
            padding: 30px;
            background: var(--card-bg);
            border-radius: 20px;
            box-shadow: 0 10px 30px var(--shadow);
            position: relative;
            overflow: hidden;
        }

        .challenge-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 25px;
        }

        .challenge-title {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .challenge-title i {
            color: var(--accent);
            font-size: 2rem;
        }

        .challenge-timer {
            background: rgba(102, 97, 252, 0.1);
            color: var(--primary);
            padding: 8px 20px;
            border-radius: 50px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .challenge-content {
            display: flex;
            gap: 30px;
            align-items: center;
        }

        .challenge-description {
            flex: 1;
        }

        .challenge-description p {
            color: var(--text-light);
            margin-bottom: 20px;
            line-height: 1.7;
            font-size: 1.1rem;
        }

        .challenge-reward {
            display: flex;
            align-items: center;
            gap: 15px;
            background: rgba(0, 200, 150, 0.1);
            padding: 15px;
            border-radius: 16px;
            width: fit-content;
        }

        .challenge-reward i {
            font-size: 2rem;
            color: var(--success);
        }

        .reward-info h4 {
            color: var(--success);
            font-size: 1.2rem;
            margin-bottom: 5px;
        }

        .reward-info p {
            color: var(--text-light);
            font-size: 0.9rem;
        }

        .challenge-progress {
            width: 200px;
            text-align: center;
        }

        .progress-circle {
            position: relative;
            width: 150px;
            height: 150px;
            margin: 0 auto 15px;
        }

        .progress-circle svg {
            width: 100%;
            height: 100%;
        }

        .progress-circle circle {
            fill: none;
            stroke: rgba(0,0,0,0.05);
            stroke-width: 10;
        }

        .progress-circle .progress {
            stroke: var(--success);
            stroke-width: 10;
            stroke-linecap: round;
            transform: rotate(-90deg);
            transform-origin: 50% 50%;
            transition: stroke-dashoffset 1s ease;
        }

        .progress-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 2rem;
            font-weight: 800;
            color: var(--text);
        }

        .progress-label {
            font-weight: 700;
            color: var(--text-light);
        }

        /* Articles Grid */
.articles-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

        .articles-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px;
        }

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.latest-articles .section-title {
    font-size: 2.45rem;
}

        .section-title:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--gradient);
            border-radius: 2px;
        }

        .articles-grid {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
            justify-items: stretch;
        }

        .article-card {
            background: var(--card-bg);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px var(--shadow);
            transition: var(--transition);
            position: relative;
            z-index: 2;
            height: 100%;
            display: flex;
            flex-direction: column;
            transform: translateY(0);
            width: 100%;
            max-width: 100%;
            border: 1px solid transparent;
            min-width: 0;
        }

        .article-card:hover {
            transform: none;
            box-shadow: 0 0px 30px rgba(118, 99, 227, 0.798);
            border-color: rgba(102, 111, 236, 0.536) !important;
        }

        [data-theme="dark"] .article-card:hover {
            box-shadow: 0 0px 25px rgba(102, 111, 236, 0.35);
            border-color: rgba(102, 111, 236, 0.6);
        }

        .card-badge {
            position: absolute;
            top: 20px;
            left: 20px;
            padding: 8px 18px;
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 700;
            z-index: 3;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

.reading-time-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    margin-right: 20px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
            gap: 8px;
            padding: 6px 10px;
            background: rgba(0, 0, 0, 0.445);
            color: #fff;
            border-radius: 999px;
            font-size: 0.85rem;
            font-weight: 600;
            line-height: 1;
    height: 18px;
    width: auto;
    max-width: max-content;
}
        .new-badge {
            background: linear-gradient(135deg, var(--accent) 0%, #d600c9 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(255, 0, 242, 0.3);
        }
        .progress-badge {
            background: rgba(0,0,0,0.6);
            color: white;
        }
        .card-image-container {
            height: 220px;
            overflow: hidden;
            position: relative;
            z-index: 1;
            display: block;
            width: 100%;
        }
        .article-card .card-image {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            border-radius: 0;
        }
        .card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: relative;
            z-index: 0;
            transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
        }
        .article-card:hover .card-image {
            transform: scale(1.05);
        }
        .card-content {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .card-header {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .card-title {
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--text);
            line-height: 1.4;
            margin: 0;
            overflow-wrap: anywhere;
        }

        .card-excerpt {
            color: var(--text-light);
            margin: 0;
            line-height: 1.6;
            font-size: 0.9rem;
            overflow-wrap: anywhere;
        }

        .card-meta-block {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px 10px;
        }

        .card-date {
            font-size: 0.82rem;
            color: var(--primary);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .card-divider {
            display: none;
        }

        .card-categories {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .pill-categories {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }

        .card-category {
            padding: 4px 8px;
            border-radius: 999px;
            background: rgba(102, 97, 252, 0.1);
            color: var(--primary);
            font-size: 0.68rem;
            font-weight: 600;
            transition: var(--transition);
        }

        .card-author {
            display: flex;
            align-items: center;
            margin: 0;
            padding-top: 0;
            gap: 12px;
        }

        .author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary);
        }

        .card-author .author-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            display: block;
            align-self: center;
        }

        .author-info {
            display: inline-flex;
            flex-direction: row;
            align-items: baseline;
            gap: 8px;            
            margin-top: 4px;
        }

        .author-name {
            font-weight: 700;
            color: var(--text);
            font-size: 0.95rem;
            vertical-align: middle;
            line-height: 1;
        }

        .author-role {
            font-size: 0.75rem;
            color: var(--text-light);
            line-height: 1;
            position: relative;
        }


        .article-meta .author-name,
        .article-meta .author-certified {
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
            vertical-align: middle;
        }

        .article-meta .author-name {
            color: #666fec;
        }

        .article-meta .author-name__icon,
        .article-meta .author-certified__icon {
            width: 16px;
            height: 16px;
            object-fit: contain;
            display: block;
        }

        .author-role {
            font-size: 0.85rem;
            color: var(--text-light);
        }

        .like-icon {
            margin-left: auto;
            color: #ccc;
            cursor: pointer;
            font-size: 1.3rem;
            transition: var(--transition);
            position: relative;
        }

        .like-icon:hover, .like-icon.active {
            color: var(--accent);
            transform: scale(1.1);
        }

        .like-count {
            position: absolute;
            top: -10px;
            right: -10px;
            background: var(--accent);
            color: white;
            font-size: 0.7rem;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
        }

        /* Reward Popup */
        .reward-popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            background: var(--card-bg);
            border-radius: 25px;
            padding: 40px;
            box-shadow: 0 25px 50px rgba(0,0,0,0.3);
            z-index: 10000;
            text-align: center;
            max-width: 500px;
            width: 90%;
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .reward-popup.active {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }

        .reward-icon {
            font-size: 5rem;
            color: var(--accent);
            margin-bottom: 20px;
            animation: pulse 1.5s infinite;
        }

        .reward-title {
            font-size: 2.2rem;
            font-weight: 800;
            margin-bottom: 15px;
            color: var(--text);
        }

        .reward-message {
            font-size: 1.2rem;
            color: var(--text-light);
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .reward-actions {
            display: flex;
            justify-content: center;
            gap: 15px;
        }

        .reward-button {
            padding: 15px 30px;
            border-radius: 50px;
            font-weight: 700;
            cursor: pointer;
            border: none;
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }

        .reward-primary {
            background: var(--gradient);
            color: white;
        }

        .reward-secondary {
            background: transparent;
            color: var(--text);
            border: 2px solid var(--text-light);
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .animate-in {
            animation: fadeIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }

        .float {
            animation: float 4s ease-in-out infinite;
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .challenge-content {
                flex-direction: column;
            }
            
            .challenge-progress {
                order: -1;
            }
        }

        @media (max-width: 992px) {
            .hero-banner h1 {
                font-size: 2.8rem;
            }

            .section-title {
                font-size: 1.8rem;
            }
        }

        @media (max-width: 768px) {
            .hero-banner {
                padding: 100px 20px 60px;
            }
            
            .hero-banner h1 {
                font-size: 2.2rem;
            }
            
            .hero-tagline {
                font-size: 1.2rem;
            }
            
            .challenge-header {
                flex-direction: column;
                gap: 20px;
                align-items: flex-start;
            }
            
            .challenge-title {
                font-size: 1.5rem;
            }
            
            .articles-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 20px;
            }
            
            .progress-container {
                height: 4px;
            }
        }

        @media (max-width: 576px) {
            .hero-banner h1 {
                font-size: 1.8rem;
            }
            
            .hero-tagline {
                font-size: 1rem;
            }
            
            .progress-circle {
                width: 120px;
                height: 120px;
            }
            
            .reward-popup {
                padding: 30px 20px;
            }
            
            .reward-title {
                font-size: 1.8rem;
            }
        }

        /* Quizz carousel */
        .quiz-section {
            margin-bottom: 3rem;
            position: relative;
            z-index: 3;
            width: 100%;
            max-width: fit-content;
            margin: 0 auto;
        }

        .quiz-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        .quiz-carousel {
            border-radius: 16px;
            overflow: hidden;
            position: relative;
            height: auto;
            box-shadow: #262a6e 0px 0px 30px;
        }

        .quiz-slide {
            height: 100%;
            display: flex;
            flex-direction: column;
            padding: 2rem;
            background-size: cover;
            background-position: center;
            position: relative;
            color: white;
            overflow: hidden;
        }

        .quiz-slide::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 1;
        }

        .quiz-slide-image {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 0;
        }

        .quiz-content {
            position: relative;
            z-index: 2;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            max-width: 600px;
        }

        .quiz-status {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(255, 255, 255, 0.72);
            margin-bottom: 0.6rem;
        }


        .quiz-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1rem;
            position: relative;
            padding-right: 0;
            display: block;
        }

        .quiz-title.is-low {
            color: #ff5a6e;
        }

        .quiz-title.is-mid {
            color: #ffb347;
        }

.quiz-title.is-perfect {
    color: #3ddc84;
}

.quiz-title-tooltip {
    position: relative;
    user-select: none;
    cursor: help;
}

.quiz-title-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: 260px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #111111;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    box-shadow: 0 0px 24px #666fec;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}

[data-theme="dark"] .quiz-title-tooltip::after {
    background: #f2f2f2;
    color: #111111;
    -webkit-text-fill-color: #111111;
    box-shadow: 0 0px 24px #666fec;
}

.quiz-title-tooltip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #111111 transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

[data-theme="dark"] .quiz-title-tooltip::before {
    border-color: #f2f2f2 transparent transparent transparent;
}

.quiz-title-tooltip:hover::after,
.quiz-title-tooltip:focus::after,
.quiz-title-tooltip:hover::before,
.quiz-title-tooltip:focus::before {
    opacity: 1;
}

        .quiz-score-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 38px;
            padding: 0.2rem 0.5rem;
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.35);
            color: #fff;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.03em;
            position: absolute;
            top: -0.95rem;
            right: -0.75rem;
            pointer-events: none;
        }

.quiz-score-badge.is-low {
    background: rgba(255, 90, 109, 0.493);
}

.quiz-score-badge.is-mid {
    background: rgba(255, 178, 71, 0.432);
}

.quiz-score-badge.is-perfect {
    background: rgba(61, 220, 133, 0.47);
}

        .quiz-description {
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
        }

        .quiz-btn {
            background: var(--accent);
            color: white;
            border: none;
            padding: 0.8rem 1.8rem;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            align-self: flex-start;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
        }

        .quiz-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 0, 242, 0.4);
        }

        .quiz-cta-group {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            align-items: flex-start;
        }

        .quiz-secondary-link {
            background: transparent;
            border: none;
            color: #0f132a;
            font-weight: 600;
            font-size: 0.95rem;
            padding: 0;
            cursor: pointer;
            text-decoration: underline;
            text-underline-offset: 4px;
        }

        .quiz-secondary-link:hover,
        .quiz-secondary-link:focus-visible {
            color: #2a2f5f;
        }

        .quiz-nav {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .quiz-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #ddd;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            padding: 0;
        }

        .quiz-dot.active {
            background: var(--primary);
            transform: scale(1.2);
        }

        .quiz-carousel:focus-visible {
            outline: 2px solid rgba(255, 255, 255, 0.6);
            outline-offset: 4px;
        }

        /* Modal de quiz */
        .quiz-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .quiz-modal.active {
            opacity: 1;
            visibility: visible;
        }

        .quiz-container {
            background: white;
            border-radius: 16px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            padding: 2rem;
            transform: translateY(20px);
            transition: transform 0.4s ease;
        }

        [data-theme="dark"] .quiz-container {
            background: #1a1a24;
            color: white;
        }

.quiz-modal.active .quiz-container {
            transform: translateY(0);
        }

        .close-quiz {
            position: absolute;
            top: 20px;
            right: 20px;
            background: transparent;
            border: none;
            font-size: 1.5rem;
            color: #777;
            cursor: pointer;
            transition: color 0.3s;
        }

        .close-quiz:hover {
            color: var(--accent);
        }

        .quiz-progress {
            height: 8px;
            background: #e0e0e0;
            border-radius: 4px;
            margin: 1rem 0;
            overflow: hidden;
        }

        [data-theme="dark"] .quiz-progress {
            background: #333344;
        }

        .quiz-progress-bar {
            height: 100%;
            background: var(--primary);
            width: 0%;
            transition: width 0.4s ease;
        }

        .question-container {
            margin: 1.5rem 0;
        }

        .question-text {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }

        .options-container {
            display: grid;
            gap: 0.8rem;
        }

        .option {
            padding: 1rem;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        [data-theme="dark"] .option {
            border-color: #333344;
        }

        .option:hover {
            background: rgba(102, 97, 252, 0.1);
            border-color: var(--primary);
        }

        .option.selected {
            background: rgba(102, 97, 252, 0.2);
            border-color: var(--primary);
        }

        .quiz-actions {
            display: flex;
            justify-content: space-between;
            margin-top: 1.5rem;
        }

        .quiz-action-btn {
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .next-btn {
            background: var(--primary);
            color: white;
        }

        .next-btn:hover {
            background: #5551e0;
        }

        .finish-btn {
            background: var(--success);
            color: white;
        }

        .finish-btn:hover {
            background: #00c966;
        }

        .quiz-result {
            text-align: center;
            padding: 2rem;
        }

        .quiz-score {
            font-size: 3rem;
            font-weight: 700;
            margin: 1rem 0;
            color: var(--primary);
        }

        .quiz-comment {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
        }

        .quiz-badge {
            font-size: 4rem;
            margin: 1rem 0;
        }

        .share-quiz {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin: 1.5rem 0;
        }

        .share-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f0f0f0;
            color: #333;
            transition: all 0.3s ease;
        }

        [data-theme="dark"] .share-btn {
            background: #333344;
            color: white;
        }

        .share-btn:hover {
            transform: translateY(-3px);
        }

        .fb-share {
            background: #3b5998;
            color: white;
        }

        .twitter-share {
            background: #1da1f2;
            color: white;
        }

        .linkedin-share {
            background: #0077b5;
            color: white;
        }
        /* Immersive quiz modal */
        .quiz-modal {
            position: fixed;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem 1rem;
            background:
                radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.2), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(102, 97, 252, 0.4), transparent 55%),
                linear-gradient(180deg, rgba(3, 7, 18, 0.96), rgba(8, 9, 20, 0.95));
            backdrop-filter: blur(12px);
            isolation: isolate;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }

        .quiz-modal::after {
            content: '';
            position: absolute;
            inset: -25%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 60%);
            mix-blend-mode: screen;
            filter: blur(12px);
            animation: pulse-quiz-glow 7s infinite;
            opacity: 0.6;
            pointer-events: none;
        }

        .quiz-modal.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .quiz-modal-content {
            position: relative;
            z-index: 2;
            width: min(720px, 92vw);
            max-height: 90vh;
            padding: 2.75rem 2.25rem;
            border-radius: 30px;
            background:
                linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78)) padding-box,
                linear-gradient(145deg, rgba(102, 97, 252, 0.8), rgba(255, 77, 249, 0.9)) border-box;
            border: 2px solid transparent;
            box-shadow: 0 25px 90px rgba(0, 0, 0, 0.6);
            overflow-y: auto;
            color: var(--text, #0f0f15);
            backdrop-filter: blur(20px);
            transform: translateY(20px) scale(0.98);
            transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .quiz-modal.active .quiz-modal-content {
            transform: translateY(0) scale(1);
        }

        .quiz-modal-content::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 30px;
            padding: 1px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
            pointer-events: none;
        }

        [data-theme='dark'] .quiz-modal-content {
            background:
                linear-gradient(140deg, rgba(10, 12, 22, 0.92), rgba(22, 24, 35, 0.9)) padding-box,
                linear-gradient(145deg, rgba(125, 121, 255, 0.7), rgba(255, 77, 249, 0.7)) border-box;
            color: #f5f6ff;
            box-shadow: 0 20px 80px rgba(0, 0, 0, 0.75);
        }

        .close-quiz {
            position: absolute;
            top: 18px;
            right: 18px;
            width: 46px;
            height: 46px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.4);
            background: rgba(255, 255, 255, 0.2);
            color: inherit;
            font-size: 1.3rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.3s ease, background 0.3s ease;
            z-index: 3;
        }

        .close-quiz:hover {
            transform: scale(1.05);
            background: rgba(255, 255, 255, 0.4);
        }

        [data-theme='dark'] .close-quiz {
            border-color: rgba(255, 255, 255, 0.3);
            background: rgba(255, 255, 255, 0.08);
        }

        .quiz-header-modal {
            display: flex;
            align-items: baseline;
            justify-content: flex-start;
            flex-wrap: wrap;
            gap: 0.25rem;
        }

        .quiz-header-modal h3 {
            font-size: clamp(1.75rem, 2.3vw, 2.3rem);
            letter-spacing: 0.01em;
            text-transform: uppercase;
            margin: 0;
            flex: 0 1 auto;
            white-space: nowrap;
        }

        .quiz-progress-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 999px;
            padding: 0.35rem 0.65rem;
            border: 1px solid rgba(255, 255, 255, 0.35);
        }

        [data-theme='dark'] .quiz-progress-container {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.18);
        }

        .quiz-progress-bar {
            flex: 1;
            height: 14px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.2);
            box-shadow: inset 0 0 12px rgba(3, 7, 20, 0.4);
            overflow: hidden;
            position: relative;
        }

        [data-theme='dark'] .quiz-progress-bar {
            background: rgba(255, 255, 255, 0.08);
            box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7);
        }

        .quiz-progress {
            width: 100%;
            height: 100%;
            border-radius: inherit;
            background: rgba(255, 255, 255, 0.06);
            position: relative;
            overflow: hidden;
            --quiz-progress-progress: 0%;
        }

        .quiz-progress::after {
            content: '';
            position: absolute;
            inset: 0;
            width: var(--quiz-progress-progress);
            background: linear-gradient(135deg, rgba(119, 82, 255, 0.9), rgba(255, 77, 249, 0.9));
            box-shadow: 0 0 20px rgba(119, 82, 255, 0.9);
            border-radius: inherit;
            transition: width 0.4s ease;
        }

        #quizContent {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            position: relative;
        }

        .quiz-intro {
            padding: 1.6rem;
            border-radius: 24px;
            background: rgba(255, 255, 255, 0.92);
            border: 1px solid rgba(102, 97, 252, 0.22);
            color: #101020;
            box-shadow: 0 30px 60px rgba(3, 7, 20, 0.12);
        }

        [data-theme='dark'] .quiz-intro {
            background: rgba(14, 16, 24, 0.9);
            border-color: rgba(255, 255, 255, 0.12);
            color: #f7f8ff;
            box-shadow:
                0 35px 60px rgba(2, 4, 12, 0.7),
                inset 0 0 35px rgba(125, 121, 255, 0.12);
        }

        .quiz-intro h4 {
            font-size: 1.4rem;
            margin: 0 0 0.75rem;
            font-weight: 700;
        }

        .quiz-intro-meta {
            display: grid;
            gap: 0.4rem;
            margin-bottom: 1.1rem;
            color: inherit;
        }

        .quiz-intro-meta span {
            font-size: 0.98rem;
        }

        .quiz-intro-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .quiz-intro-btn {
            border: none;
            border-radius: 999px;
            padding: 0.65rem 1.5rem;
            font-weight: 600;
            cursor: pointer;
            background: linear-gradient(135deg, rgba(119, 82, 255, 0.95), rgba(255, 77, 249, 0.95));
            color: #fff;
        }

        .quiz-intro-secondary {
            background: transparent;
            border: 1px solid rgba(119, 82, 255, 0.6);
            color: inherit;
        }

        .quiz-question {
            padding: 1.75rem;
            border-radius: 28px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8)),
                rgba(255, 255, 255, 0.3);
            border: 1px solid rgba(102, 97, 252, 0.25);
            box-shadow: 0 35px 70px rgba(3, 7, 20, 0.12);
        }

        [data-theme='dark'] .quiz-question {
            background:
                linear-gradient(180deg, rgba(12, 12, 20, 0.9), rgba(22, 24, 32, 0.95)),
                rgba(255, 255, 255, 0.02);
            border-color: rgba(255, 255, 255, 0.12);
            box-shadow:
                0 40px 60px rgba(2, 4, 12, 0.7),
                inset 0 0 35px rgba(125, 121, 255, 0.15);
        }

        .quiz-question-text {
            font-size: clamp(1.9rem, 3vw, 2.35rem);
            font-weight: 800;
            line-height: 1.4;
            margin: 0;
            letter-spacing: 0.02em;
            color: transparent;
            background: linear-gradient(120deg, #ff9d6c, #ff3f8c 45%, #8157ff 80%);
            -webkit-background-clip: text;
            background-clip: text;
            text-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
        }

        [data-theme='dark'] .quiz-question-text {
            color: #ea4bff;
            background: none;
            -webkit-background-clip: unset;
            background-clip: unset;
            text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
        }

        .quiz-question-counter {
            position: relative;
            padding: 0.35rem 0.85rem;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.95rem;
            color: var(--text-light);
            border: 1px solid rgba(255, 255, 255, 0.25);
            background: rgba(255, 255, 255, 0.08);
            overflow: hidden;
            --quiz-question-progress: 0%;
        }

        .quiz-question-counter::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(102, 97, 252, 0.6));
            width: var(--quiz-question-progress);
            transition: width 0.4s ease;
            z-index: 0;
        }

        .quiz-question-counter span {
            position: relative;
            z-index: 1;
        }

        [data-theme='dark'] .quiz-question-counter {
            border-color: rgba(255, 255, 255, 0.18);
            background: rgba(255, 255, 255, 0.03);
            color: #cbd5f5;
        }

/* Recommandations */
        .recommended-section {
            position: relative;
            z-index: 2;
            display: block;
            margin: 0 auto;
            justify-content: center;
            width: 100%;
            max-width: 1100px;
            margin-bottom: 3rem;
        }

        .recommended-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.8rem;
        }

        .recommended-card {
            background: var(--light);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
        }

[data-theme="dark"] .recommended-card {
            background: linear-gradient(155deg, rgba(19, 22, 40, 0.95), rgba(12, 14, 28, 0.98));
            border: 1px solid rgba(120, 130, 230, 0.12);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

        .recommended-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
        }

        .recommended-image {
            height: 160px;
            background-size: cover;
            background-position: center;
        }

        .recommended-content {
            padding: 1.5rem;
        }

        .recommended-title {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 0.8rem;
            color: var(--text);
        }

        [data-theme="dark"] .recommended-title {
            color: var(--light);
        }

        .recommended-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            opacity: 0.8;
        }
.article-card.is-hidden {
    display: none;
}

/* Remove the dropdown caret next to the Blog tab (there's no nested menu on this page) */
.blog-page #textes-links > a.dropdown-toggle::after {
    content: none;
}
.blog-page header #textes-links {
    margin-left: 220px;
    padding-right: 140px;
}

.blog-page .header-actions {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1200;
}

.blog-page .header-icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(102, 97, 252, 0.25);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(27, 16, 64, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.blog-page .header-icon-btn img {
    width: 22px;
    height: 22px;
    pointer-events: none;
}
.blog-page .header-icon-btn .header-icon-svg {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}
[data-accessibility-trigger] .header-icon-svg {
    filter: brightness(0);
}
[data-theme="dark"] [data-accessibility-trigger] .header-icon-svg {
    filter: brightness(0) invert(1);
}

.blog-page .header-icon-btn:hover,
.blog-page .header-icon-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(27, 16, 64, 0.25);
    border-color: rgba(102, 97, 252, 0.65);
    outline: none;
}
.blog-page #theme-toggle:hover,
.blog-page #theme-toggle:focus-visible,
.blog-page #theme-toggle-mobile:hover,
.blog-page #theme-toggle-mobile:focus-visible,
.blog-page #langage-container:hover,
.blog-page #langage-container:focus-visible,
.blog-page #langage-container-mobile:hover,
.blog-page #langage-container-mobile:focus-visible,
.blog-page #accessibility-toggle:hover,
.blog-page #accessibility-toggle:focus-visible,
.blog-page [data-accessibility-trigger].header-icon-btn:hover,
.blog-page [data-accessibility-trigger].header-icon-btn:focus-visible {
    border-color: rgba(111, 99, 255, 0.8);
    box-shadow: 0 18px 32px rgba(27, 16, 64, 0.35);
    filter: drop-shadow(0 0 6px rgba(111, 99, 255, 0.25));
}

.blog-page #theme-toggle,
.blog-page #langage-container {
    position: static !important;
    margin: 0 !important;
    z-index: auto;
}
.blog-page #theme-toggle,
.blog-page #langage-container,
.blog-page #theme-toggle-mobile,
.blog-page #langage-container-mobile {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(102, 97, 252, 0.25);
    box-shadow: 0 10px 24px rgba(27, 16, 64, 0.14);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
}
[data-theme="dark"] .blog-page #theme-toggle,
[data-theme="dark"] .blog-page #langage-container,
[data-theme="dark"] .blog-page #theme-toggle-mobile,
[data-theme="dark"] .blog-page #langage-container-mobile {
    background: rgba(9, 9, 49, 0.82);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 28px rgba(4, 4, 20, 0.6);
}

.blog-page #langage-container {
    display: flex !important;
}

.blog-page #langage-container img,
.blog-page #theme-toggle img {
    width: 24px;
    height: 24px;
}

.blog-page #theme-toggle-mobile img,
.blog-page #langage-container-mobile img,
.blog-page .mobile-header-actions .header-icon-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}
.blog-page #accessibility-toggle {
    color: #6f63ff;
}

[data-theme="dark"] .blog-page .header-icon-btn {
    background: rgba(9, 9, 49, 0.82);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 28px rgba(4, 4, 20, 0.6);
}

[data-theme="dark"] .blog-page .header-icon-btn:hover,
[data-theme="dark"] .blog-page .header-icon-btn:focus-visible {
    border-color: rgba(111, 99, 255, 0.8) !important;
    box-shadow: 0 18px 32px rgba(8, 6, 22, 0.75) !important;
    filter: drop-shadow(0 0 6px rgba(111, 99, 255, 0.35)) !important;
}

.blog-page .mobile-header-actions {
    display: none;
}

@media (max-width: 1200px) {
    .blog-page .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
        margin-right: 0.5rem;
    }
    .blog-page .mobile-header-actions .header-icon-btn {
        border-radius: 14px;
    }
    .blog-page .mobile-header-actions img {
        width: 20px;
        height: 20px;
    }
}

.author-certified__icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

@media (max-width: 1200px) {
    .blog-page .header-actions {
        position: fixed;
        top: 14px;
        right: 88px;
        transform: none;
        gap: 10px;
        z-index: 11000;
    }
}

@media (max-width: 760px) {
    .blog-page .header-actions {
        right: 82px;
    }
    .blog-page .header-icon-btn {
        border-radius: 14px;
    }
    .blog-page #langage-container img,
    .blog-page #theme-toggle img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 440px) {
    .blog-page .header-actions {
        right: 70px;
        gap: 8px;
    }
    .blog-page .header-icon-btn {
        width: 36px;
        height: 36px;
    }
}

/* ======================================================
   Blog 2025 Refresh — hero, filters & interactive cards
   ====================================================== */

.blog-page main {
    background: var(--background-color, #f7f8fd);
}


.blog-hero {
    position: relative;
    margin: 32px 0 24px;
    padding: 56px 0 40px;
    background: linear-gradient(135deg, rgba(209, 214, 255, 0.9), rgba(255, 255, 255, 0.9)),
        #f5f5ff;
    border: 1px solid rgba(103, 94, 255, 0.35);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(16, 12, 40, 0.12);
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 12% 15% auto 55%;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.65), transparent 60%);
    filter: blur(4px);
    pointer-events: none;
}

.blog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.9), transparent 55%);
    pointer-events: none;
}

.blog-hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 28px;
    text-align: left;
}

.blog-hero__media {
    width: clamp(180px, 30vw, 260px);
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(103, 94, 255, 0.35);
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(16, 12, 40, 0.12);
    margin: 22px 0 0;
    margin-left: auto;
    margin-right: auto;
}

.blog-hero__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-hero__content h1 {
    font-size: clamp(2.3rem, 3vw, 3rem);
    line-height: 1.25;
    margin: 0;
    color: var(--text-heading, #0a0821);
}

#blog-title.blog-title {
    font-family: "Fraunces", "Georgia", serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #0a0821;
}

#blog-title .blog-title__icon {
    width: 34px;
    vertical-align: -8px;
    filter: drop-shadow(0 6px 10px rgba(24, 18, 60, 0.12));
}

#blog-title .blog-title__caps {
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #3a3561;
    font-weight: 300;
    margin-right: 0.25em;
}

#blog-title .blog-title__highlight {
    position: relative;
    display: inline-block;
    z-index: 0;
    padding: 0 0.08em;
    font-family: "Fraunces", "Georgia", serif;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    background: linear-gradient(120deg, #7b6cff 0%, #a66bff 45%, #ff7fb0 100%);
    -webkit-background-clip: text;
    color: transparent;
    margin-right: 0.25em;
}

#blog-title .blog-title__highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.1em;
    height: 0.28em;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(123, 108, 255, 0.3), rgba(166, 107, 255, 0.28), rgba(255, 127, 176, 0.3));
    filter: blur(0.6px);
    z-index: -1;
}

#blog-title .blog-title__rest {
    color: #1a1736;
    font-size: 36px;
}

.blog-hero__seo {
    margin: 0.9rem 0 0;
    display: grid;
    gap: 0.45rem;
    padding: 0;
    list-style: none;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2f2b4d;
}

.blog-hero__seo li {
    position: relative;
    margin: 0;
    padding-left: 1.2rem;
    letter-spacing: 0.01em;
}

.blog-hero__seo li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(120deg, #7b6cff 0%, #a66bff 45%, #ff7fb0 100%);
    box-shadow: 0 0 0 3px rgba(123, 108, 255, 0.18);
}

[data-theme="dark"] .blog-hero__seo {
    color: #d6dbf5;
}

[data-theme="dark"] .blog-hero__seo li::before {
    box-shadow: 0 0 0 3px rgba(145, 149, 255, 0.28);
}

[data-theme="dark"] .blog-hero__seo li {
    color: #d6dbf5;
}

[data-theme="dark"] #blog-title.blog-title {
    color: #f2f4ff;
}

[data-theme="dark"] #blog-title .blog-title__rest {
    color: #ecefff;
}

[data-theme="dark"] #blog-title .blog-title__caps {
    color: rgba(231, 235, 255, 0.75);
}

[data-theme="dark"] #blog-title .blog-title__icon {
    filter: invert(1) drop-shadow(0 6px 10px rgba(6, 4, 20, 0.45)) brightness(1.05);
}

[data-theme="dark"] #blog-title .blog-title__highlight {
    background: linear-gradient(120deg, #a6a0ff 0%, #c89bff 45%, #ff9bcc 100%);
    -webkit-background-clip: text;
    color: transparent;
}

[data-theme="dark"] #blog-title .blog-title__highlight::after {
    background: linear-gradient(90deg, rgba(166, 160, 255, 0.45), rgba(200, 155, 255, 0.42), rgba(255, 155, 204, 0.45));
}
#latest-articles-title {
    margin-top: 2px;
}
.blog-seo-intro {
    position: relative;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    margin-bottom: 28px;
    color: var(--text-dim, #2f2b4d);
    line-height: 1.75;
}

.blog-seo-intro p {
    margin: 0 0 1rem;
}

.blog-seo-intro p:last-child {
    margin-bottom: 0;
}

.blog-seo-intro--after {
    padding: 0 16px;
}

.blog-seo-intro a {
    color: #3a36d6;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(58, 54, 214, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.blog-seo-intro a:hover,
.blog-seo-intro a:focus-visible {
    color: #1f1ad1;
    border-color: rgba(31, 26, 209, 0.7);
}

[data-theme="dark"] .blog-seo-intro a {
    color: #9aa2ff;
    border-bottom-color: rgba(154, 162, 255, 0.45);
}

[data-theme="dark"] .blog-seo-intro a:hover,
[data-theme="dark"] .blog-seo-intro a:focus-visible {
    color: #c5cbff;
    border-bottom-color: rgba(197, 203, 255, 0.8);
}

[data-theme="dark"] .blog-seo-intro {
    color: #cfd6f2;
}

.blog-hero__lead {
    margin: 18px 0 0;
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 720px;
    color: var(--text-dim, #2f2b4d);
    position: relative;
    padding: 0.9rem 1.15rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(236, 239, 255, 0.75));
    border: 1px solid rgba(103, 94, 255, 0.18);
    box-shadow: 0 18px 35px rgba(16, 12, 40, 0.08);
}
.blog-hero__lead .lead-accent {
    color: #3a36d6;
    font-weight: 700;
}

.ranking-intro {
    margin-top: 6px;
    color: var(--text-light);
    max-width: 720px;
    line-height: 1.6;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 14px;
}

.breadcrumb ol {
    display: inherit;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb li:not([aria-current="page"])::after {
    content: '›';
    opacity: 0.45;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

@media (max-width: 1000px) {
    .blog-hero {
        padding: 46px 0 32px;
    }
}

@media (max-width: 640px) {
    .blog-hero {
        padding: 34px 0 28px;
        margin: 24px 0 18px;
    }
}

/* Hero stays high-contrast on darker palettes */
[data-theme="dark"] .blog-hero {
    background: linear-gradient(135deg, rgba(14, 11, 32, 0.95), rgba(5, 5, 12, 0.95)),
        rgba(4, 4, 10, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .blog-hero::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 60%);
}
[data-theme="dark"] .blog-hero::after {
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.15), transparent 55%);
}
[data-theme="dark"] .blog-hero__content h1 {
    color: #f5f3ff;
    text-shadow: 0 10px 26px rgba(5, 8, 26, 0.65);
}
[data-theme="dark"] .blog-hero__lead,
[data-theme="dark"] .ranking-intro,
[data-theme="dark"] .breadcrumb {
    color: #d8deff;
}
[data-theme="dark"] .blog-hero__lead {
    background: linear-gradient(135deg, rgba(12, 14, 28, 0.9), rgba(24, 27, 48, 0.9));
    border-color: rgba(140, 150, 255, 0.2);
    box-shadow: 0 18px 40px rgba(5, 8, 22, 0.65);
}
[data-theme="dark"] .blog-hero__lead .lead-accent {
    color: #b9c2ff;
}
[data-theme="dark"] .section-title {
    color: #eef0ff;
}

.quiz-section {
    position: relative;
}

.quiz-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.quiz-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.quiz-description-intro {
    margin: 4px 0 8px;
    color: var(--text-light);
    max-width: 520px;
    line-height: 1.45;
    font-size: 0.93rem;
}

.quiz-microcopy {
    margin-top: 14px;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.5;
}

.quiz-rules-cta {
    margin-top: 8px;
}

.quiz-section .stat-trigger-wrap {
    margin-top: 16px;
    align-self: center;
    width: 100%;
    justify-content: center;
}

[data-theme="dark"] .quiz-rules-cta .quiz-secondary-link {
    color: #f0f2ff;
}

[data-theme="dark"] .quiz-rules-cta .quiz-secondary-link:hover,
[data-theme="dark"] .quiz-rules-cta .quiz-secondary-link:focus-visible {
    color: #ffffff;
}
.quiz-description-dynamic {
    margin-top: 16px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.quiz-header .section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.quiz-header .section-title .participation-counter {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

[data-theme="dark"] .quiz-header .section-title .participation-counter {
    color: #f0f2ff;
}


.stat-trigger-wrap {
    position: relative;
    display: inline-flex;
    align-self: flex-start;
}

.stat-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(102, 97, 252, 0.3);
    background: rgba(102, 97, 252, 0.08);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-trigger__icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6661fc, #a451fd);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(102, 97, 252, 0.25);
}

.stat-trigger__dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5a5f;
    box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.2);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.stat-trigger__dot.is-visible {
    transform: scale(1);
    opacity: 1;
}

.stat-trigger:focus-visible,
.stat-trigger:hover {
    border-color: rgba(102, 97, 252, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(102, 97, 252, 0.18);
}

.stat-trigger__label {
    font-size: 0.92rem;
}

.engagement-stats {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    width: min(420px, calc(100% - 40px));
    max-height: min(420px, 70vh);
    background: var(--card-bg);
    border-radius: 22px;
    padding: 26px 26px 22px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
}

.engagement-stats.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.engagement-stats__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stat-close {
    border: none;
    background: rgba(102, 97, 252, 0.08);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 16px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.stat-close:hover,
.stat-close:focus-visible {
    background: rgba(102, 97, 252, 0.18);
}

.stat-cards {
    display: grid;
    margin-top: -25px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 6px;
}

.stat-card {
    background: rgba(102, 97, 252, 0.07);
    border: 2px solid rgba(102, 97, 252, 0.16);
    border-radius: 11px;
    padding: 11px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-card[data-stat="liked"] {
    background: rgba(255, 92, 107, 0.12);
    border-color: rgba(255, 92, 107, 0.3);
}

.stat-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 0;
}

.stat-value {
    margin: 0;
    font-size: 15px;
    color: var(--primary);
}

.stat-note {
    font-size: 10px;
    color: var(--text-light);
    margin: 6px 0 0;
}

@media (max-width: 1000px) {
    .quiz-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-trigger {
        align-self: flex-start;
    }
}

@media (max-width: 640px) {
    .stat-trigger {
        width: 100%;
        justify-content: center;
    }

    .stat-trigger-wrap {
        width: 100%;
        justify-content: center;
    }

    .stat-trigger__label {
        font-size: 1rem;
    }

    .engagement-stats {
        position: fixed;
        inset: auto 16px 16px 16px;
        top: calc(76px + env(safe-area-inset-top));
        width: auto;
        max-width: none;
    }

    .stat-value {
        font-size: 1.6rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.blog-page[data-accessibility-font="normal"] {
    font-size: 16px;
}
.blog-page[data-accessibility-font="large"] {
    font-size: 19px;
}
.blog-page[data-accessibility-font="xlarge"] {
    font-size: 22px;
}
.blog-page.a11y-reading p,
.blog-page.a11y-reading li,
.blog-page.a11y-reading .notification-strip p,
.blog-page.a11y-reading .article-card p,
.blog-page.a11y-reading .articles-grid p {
    line-height: 1.75;
    letter-spacing: 0.012em;
}
.blog-page.a11y-reading .control-desc {
    line-height: 1.6;
}
.blog-page.a11y-links a {
    background: rgba(255, 235, 59, 0.25);
    border-radius: 6px;
    padding: 0 4px;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
    color: inherit;
    transition: background 0.2s ease;
}
.blog-page.a11y-links a:hover,
.blog-page.a11y-links a:focus-visible {
    background: rgba(255, 193, 7, 0.4);
}
.blog-page.a11y-bold,
.blog-page.a11y-bold * {
    font-weight: 700 !important;
}
.blog-page.a11y-mono {
    position: relative;
}
.blog-page.a11y-mono::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: #fff;
    mix-blend-mode: saturation;
    z-index: 9996;
}
.blog-page.a11y-cursor,
.blog-page.a11y-cursor * {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='34'><polygon points='17,1 21,12 33,12 23,19 27,31 17,23 7,31 11,19 1,12 13,12' fill='%23ffd166' stroke='%230a0636' stroke-width='2' stroke-linejoin='round'/></svg>") 12 2, auto !important;
}

.blog-page.a11y-browkie,
.blog-page.a11y-browkie * {
    cursor: url("/fr/blog/icons/08.svg") 16 2, auto !important;
}
#reading-guide-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(15, 9, 38, 0.72) calc(var(--guide-y, 50vh) - 120px),
        rgba(255, 255, 158, 0) calc(var(--guide-y, 50vh) - 70px),
        rgba(255, 255, 158, 0) calc(var(--guide-y, 50vh) + 70px),
        rgba(15, 9, 38, 0.72) calc(var(--guide-y, 50vh) + 120px)
    );
    z-index: 9998;
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.blog-page.a11y-guide #reading-guide-overlay {
    opacity: 1;
}
.blog-page.a11y-contrast {
    --bg: #ffffff;
    --card-bg: #ffffff;
    --text: #0b0b0f;
    --text-light: #1e2347;
    --primary: #0034a5;
    --accent: #9a3f00;
    --shadow: rgba(0, 0, 0, 0.18);
    --shadow-hover: rgba(0, 0, 0, 0.28);
    --divider-color: rgba(0, 0, 0, 0.28);
    --muted-surface: #f9f6ff;
    --interactive-surface: rgba(3, 25, 72, 0.12);
    --interactive-surface-hover: rgba(3, 25, 72, 0.2);
    --header-button-bg: rgba(255, 255, 255, 0.92);
    --header-button-border: rgba(12, 18, 56, 0.45);
    --icon-filter: none;
    --link-hover-color: #00236b;
    --card-date-color: #7f2f00;
    --category-pill-bg: rgba(0, 52, 165, 0.12);
    --category-pill-text: #0f153a;
    background-color: var(--bg);
    color: var(--text);
}
[data-theme="dark"] .blog-page.a11y-contrast {
    --bg: #050312;
    --card-bg: #11142b;
    --text: #ffffff;
    --text-light: #e2e6ff;
    --primary: #a2ddff;
    --accent: #ffe07b;
    --shadow: rgba(5, 5, 15, 0.65);
    --shadow-hover: rgba(5, 5, 15, 0.8);
    --divider-color: rgba(255, 255, 255, 0.3);
    --muted-surface: rgba(11, 13, 32, 0.95);
    --interactive-surface: rgba(255, 255, 255, 0.08);
    --interactive-surface-hover: rgba(162, 221, 255, 0.2);
    --header-button-bg: rgba(10, 8, 30, 0.92);
    --header-button-border: rgba(255, 255, 255, 0.4);
    --icon-filter: brightness(1.18);
    --link-hover-color: #c8f0ff;
    --card-date-color: #ffd27a;
    --category-pill-bg: rgba(162, 221, 255, 0.24);
    --category-pill-text: var(--text);
    background-color: var(--bg);
    color: var(--text);
}
.blog-page.a11y-contrast header,
.blog-page.a11y-contrast #mobile-header-main,
.blog-page.a11y-contrast .mobile-header-container,
.blog-page.a11y-contrast .notification-strip,
.blog-page.a11y-contrast .article-card,
.blog-page.a11y-contrast .quiz-card,
.blog-page.a11y-contrast .faq-card,
.blog-page.a11y-contrast .tools-dropdown__item,
.blog-page.a11y-contrast .hero-card,
.blog-page.a11y-contrast .filters-panel,
.blog-page.a11y-contrast .blog-stats-card {
    background-color: var(--muted-surface);
    border-color: var(--divider-color);
    color: var(--text);
    box-shadow: 0 18px 45px var(--shadow);
}
.blog-page.a11y-contrast .header-icon-btn {
    background: var(--header-button-bg);
    border-color: var(--header-button-border);
}
.blog-page.a11y-contrast .header-icon-btn img,
.blog-page.a11y-contrast .header-icon-btn svg {
    filter: var(--icon-filter);
}
.blog-page.a11y-contrast main,
.blog-page.a11y-contrast .articles-grid,
.blog-page.a11y-contrast .faq-grid {
    filter: none;
}

.blog-page.a11y-contrast h1,
.blog-page.a11y-contrast h2,
.blog-page.a11y-contrast h3,
.blog-page.a11y-contrast h4,
.blog-page.a11y-contrast h5,
.blog-page.a11y-contrast h6,
.blog-page.a11y-contrast .section-title,
.blog-page.a11y-contrast .card-title,
.blog-page.a11y-contrast .author-name {
    color: var(--text);
}
.blog-page.a11y-contrast p,
.blog-page.a11y-contrast li,
.blog-page.a11y-contrast .card-excerpt,
.blog-page.a11y-contrast .author-role,
.blog-page.a11y-contrast .notification-strip p,
.blog-page.a11y-contrast .quiz-card p,
.blog-page.a11y-contrast .faq-card p,
.blog-page.a11y-contrast .filters label,
.blog-page.a11y-contrast .control-desc {
    color: var(--text-light);
}
.blog-page.a11y-contrast a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.blog-page.a11y-contrast a:hover,
.blog-page.a11y-contrast a:focus-visible {
    color: var(--link-hover-color);
    text-decoration-color: currentColor;
}
.blog-page.a11y-contrast .card-date {
    color: var(--card-date-color);
}
.blog-page.a11y-contrast .card-divider,
.blog-page.a11y-contrast .notification-strip::after,
.blog-page.a11y-contrast .filters-panel::after {
    background: var(--divider-color);
}
.blog-page.a11y-contrast .card-category {
    background: var(--category-pill-bg);
    color: var(--category-pill-text);
}
.blog-page.a11y-contrast .pill-categories {
    border-color: transparent;
}
.blog-page.a11y-contrast .article-card,
.blog-page.a11y-contrast .quiz-card,
.blog-page.a11y-contrast .faq-card {
    background-color: var(--card-bg);
}
.blog-page.a11y-contrast .quiz-option,
.blog-page.a11y-contrast .faq-card button {
    background-color: var(--interactive-surface);
    color: var(--text);
    border-color: var(--divider-color);
}
.blog-page.a11y-contrast .filters label {
    background-color: var(--interactive-surface);
    border-radius: 6px;
}
.blog-page.a11y-contrast .filters label:hover {
    background-color: var(--interactive-surface-hover);
}
.blog-page.a11y-contrast .accessibility-center,
.blog-page.a11y-contrast .accessibility-center p,
.blog-page.a11y-contrast .accessibility-center .control-desc {
    color: var(--text-light);
}
.blog-page.a11y-contrast .accessibility-center .control-title {
    color: var(--text);
}
.blog-page.a11y-contrast .accessibility-center__header h2 {
    color: var(--text);
}

.accessibility-center {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 1.5rem 1.5rem;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 12000;
}
.accessibility-center.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}
.accessibility-center__backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
}
.accessibility-center__panel {
    position: relative;
    width: min(540px, calc(100% - 2rem));
    background: #ffffff;
    border-radius: 22px;
    border: 2px solid rgba(111, 99, 255, 0.2);
    padding: 2rem 2.2rem;
    max-height: min(90vh, 620px);
    overflow-y: auto;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(14, 13, 33, 0.35);
    transform: translateY(22px);
    transition: transform 0.3s ease;
}
.accessibility-center__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0.75;
    pointer-events: none;
}
.accessibility-center.is-visible .accessibility-center__panel {
    transform: translateY(0);
}
.accessibility-center__panel::-webkit-scrollbar {
    width: 8px;
}
.accessibility-center__panel::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: rgba(110, 98, 255, 0.4);
}
.accessibility-center__header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(121, 111, 255, 0.2);
    border-radius: 18px;
    background: linear-gradient(135deg, #faf8ff, #f1edff 55%, #eae4ff);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.accessibility-center__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: #6f63ff;
    margin: 0 0 0.25rem;
}
.accessibility-center__header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a1442;
}
.accessibility-center__intro {
    margin: 0.25rem 0 0;
    color: #585470;
    font-size: 0.95rem;
}
[data-theme="dark"] .accessibility-center__panel {
    background: #101321;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}
[data-theme="dark"] .accessibility-center__panel::before {
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .accessibility-center__header {
    background: linear-gradient(135deg, rgba(19, 20, 38, 0.95), rgba(15, 17, 32, 0.95));
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .accessibility-center__eyebrow {
    color: var(--primary);
}
[data-theme="dark"] .accessibility-center__header h2 {
    color: #f1f2ff;
}
[data-theme="dark"] .accessibility-center__intro {
    color: #c1c6df;
}
[data-theme="dark"] .accessibility-center__close {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #eef0ff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .accessibility-center__header .accessibility-center__close {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .accessibility-control {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .control-title {
    color: #eef0ff;
}
[data-theme="dark"] .control-desc {
    color: #b3b9d6;
}
[data-theme="dark"] .accessibility-icon-hint {
    color: #a6acc8;
}
[data-theme="dark"] .accessibility-reset {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #e2e6ff;
}
[data-theme="dark"] .accessibility-reset:hover {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}
.accessibility-center__close {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(105, 101, 162, 0.25);
    background: rgba(255, 255, 255, 0.8);
    color: #1a1442;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.accessibility-center__close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.accessibility-center__close:hover {
    transform: translateY(-2px);
    border-color: rgba(105, 101, 162, 0.55);
    box-shadow: 0 12px 25px rgba(72, 61, 139, 0.25);
}
.accessibility-center__close:focus-visible,
.font-step:focus-visible {
    outline: 3px solid rgba(111, 99, 255, 0.4);
    outline-offset: 3px;
}
.accessibility-center__header > div {
    min-width: 0;
}
.accessibility-center__close {
    align-self: flex-end;
}
.accessibility-center__header .accessibility-center__close {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(105, 101, 162, 0.35);
    box-shadow: 0 10px 18px rgba(59, 39, 125, 0.15);
}
.accessibility-center__content {
    margin-top: 0;
}
.accessibility-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(111, 99, 255, 0.08);
}
.accessibility-control:last-of-type {
    border-bottom: none;
}
.accessibility-control__text {
    flex: 1;
}
.control-title {
    margin: 0 0 0.25rem;
    font-weight: 600;
    color: #241a54;
}
.control-desc {
    margin: 0;
    color: #5b5674;
    font-size: 0.92rem;
}
.font-steps {
    display: inline-flex;
    gap: 0.5rem;
}
.font-step {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(111, 99, 255, 0.2);
    background: #fff;
    font-weight: 600;
    color: #4535a7;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.font-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(69, 53, 167, 0.18);
}
.font-step.is-active {
    background: linear-gradient(130deg, #6f63ff, #a364ff);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 15px 28px rgba(107, 99, 255, 0.35);
}
.accessibility-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(111, 99, 255, 0.08);
}
.accessibility-toggle:last-of-type {
    border-bottom: none;
}
.accessibility-toggle__text {
    flex: 1;
}
.accessibility-toggle__control {
    position: relative;
    width: 56px;
    height: 30px;
    flex-shrink: 0;
}
.accessibility-toggle__control input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.accessibility-toggle__switch {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(91, 86, 116, 0.35);
    transition: background 0.2s ease;
}
.accessibility-toggle__switch::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(33, 24, 77, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}
.accessibility-toggle__control input:checked + .accessibility-toggle__switch {
    background: linear-gradient(120deg, #6f63ff, #a364ff);
}
.accessibility-toggle__control input:checked + .accessibility-toggle__switch::after {
    transform: translateX(26px);
    background: #f4f2ff;
}
.accessibility-toggle__control input:focus-visible + .accessibility-toggle__switch {
    box-shadow: 0 0 0 3px rgba(111, 99, 255, 0.35);
}
.accessibility-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 0.65rem;
    margin-top: 1.5rem;
}
.accessibility-icon {
    --icon-color: #6f63ff;
    --icon-mask: none;
    border: 1px solid rgba(110, 98, 255, 0.25);
    border-radius: 6px;
    padding: 0.55rem 0.45rem;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
    position: relative;
    min-height: 80px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.accessibility-icon__visual {
    width: 30px;
    height: 30px;
    display: block;
    background-color: var(--icon-color);
    mask-image: var(--icon-mask);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: var(--icon-mask);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    transition: filter 0.2s ease;
}
.accessibility-icon.is-active {
    border-color: rgba(111, 99, 255, 0.9);
    box-shadow: 0 10px 24px rgba(111, 99, 255, 0.2);
}
.accessibility-icon:focus-visible {
    outline: 3px solid rgba(111, 99, 255, 0.45);
    outline-offset: 2px;
}
.accessibility-icon:hover,
.accessibility-icon:focus-visible {
    transform: translateY(-1px);
}
.accessibility-icon:hover .accessibility-icon__visual,
.accessibility-icon:focus-visible .accessibility-icon__visual,
.accessibility-icon.is-active .accessibility-icon__visual {
    filter: drop-shadow(0 4px 12px rgba(111, 99, 255, 0.35));
}
.accessibility-icon__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2c1d60;
    display: none;
    text-align: center;
}
.accessibility-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    background: #0f0a26;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(15, 10, 34, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    max-width: min(280px, calc(100vw - 3rem));
    text-align: center;
    white-space: normal;
    line-height: 1.35;
    z-index: 10;
}
.accessibility-icon:hover::after,
.accessibility-icon:focus-visible::after {
    opacity: 1;
}
.accessibility-icon-hint {
    margin: 1rem 0 0;
    font-size: 0.8rem;
    color: #6a6a8c;
    text-align: center;
}
.accessibility-reset-wrapper {
    margin-top: 1.25rem;
    text-align: center;
}
.accessibility-reset {
    border: 1px solid rgba(111, 99, 255, 0.35);
    border-radius: 999px;
    background: #fff;
    color: #2c1d60;
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.accessibility-reset:hover {
    transform: translateY(-2px);
    border-color: rgba(111, 99, 255, 0.65);
    box-shadow: 0 12px 24px rgba(50, 36, 120, 0.18);
}
.accessibility-reset:focus-visible {
    outline: 3px solid rgba(111, 99, 255, 0.4);
    outline-offset: 3px;
}
.blog-page.a11y-contrast .accessibility-icon {
    background: rgba(11, 13, 32, 0.92);
    border-color: rgba(255, 255, 255, 0.25);
}
.blog-page.a11y-contrast .accessibility-icon::after {
    background: rgba(10, 10, 28, 0.95);
}
.blog-page.a11y-contrast .accessibility-icon__label {
    color: var(--text);
}
@media (max-width: 640px) {
    .accessibility-icon-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .accessibility-icon {
        min-height: 72px;
    }
    .accessibility-icon__label {
        display: block;
    }
    .accessibility-icon::after {
        display: none;
    }
}
.accessibility-icon {
    background: rgba(168, 168, 255, 0.9);
    --icon-color: #ffffff;
    border: 2px solid rgba(146, 146, 245, 0.9);
}
.accessibility-icon[data-accessibility-action="contrast"] {
    --icon-mask: url('/fr/blog/icons/01.svg');
}
.accessibility-icon[data-accessibility-action="reading"] {
    --icon-mask: url('/fr/blog/icons/02.svg');
}
.accessibility-icon[data-accessibility-action="links"] {
    --icon-mask: url('/fr/blog/icons/03.svg');
}
.accessibility-icon[data-accessibility-action="bold"] {
    --icon-mask: url('/fr/blog/icons/04.svg');
}
.accessibility-icon[data-accessibility-action="mono"] {
    --icon-mask: url('/fr/blog/icons/05.svg');
}
.accessibility-icon[data-accessibility-action="browkie"] {
    --icon-mask: url('/fr/blog/icons/08.svg');
}
.accessibility-icon[data-accessibility-action="cursor"] {
    --icon-mask: url('/fr/blog/icons/06.svg');
}
.accessibility-icon[data-accessibility-action="guide"] {
    --icon-mask: url('/fr/blog/icons/07.svg');
}
[data-theme="dark"] .accessibility-icon {
    background: rgba(9, 9, 30, 0.9);
    --icon-color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
}
[data-theme="dark"] .accessibility-icon__label {
    color: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] .accessibility-icon::after {
    background: rgba(10, 10, 28, 0.92);
}

@media (min-width: 640px) {
    .accessibility-center__header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    .accessibility-center__close {
        align-self: flex-start;
    }
}

@media (max-width: 720px) {
    .accessibility-center {
        padding: 0.75rem;
        align-items: flex-end;
        justify-content: center;
    }
    .accessibility-center__panel {
        border-radius: 18px;
        width: min(520px, 100%);
        max-height: 85vh;
        min-height: auto;
    }
    .accessibility-center__backdrop {
        background: transparent;
    }
    .accessibility-center__close {
        position: sticky;
        top: 0;
    }
}

.is-hidden {
    display: none !important;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    text-decoration: underline;
}

.card-categories {
    list-style: none;
    padding: 0;
}

        .card-footer {
            margin-top: 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

.card-footer-actions {
    margin-top: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

        .highlight-author {
            border-top: 1px solid rgba(0,0,0,0.05);
            padding-top: 18px;
        }

        .author-avatar-xl {
            width: 56px;
            height: 56px;
        }

.article-actions button {
    border: none;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    font-size: 1.1rem;
}

.article-actions button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 700;
    color: var(--primary);
    position: relative;
}

.card-read-more--full {
    width: 78%;
    max-width: 300px;
    justify-content: flex-end;
    padding-top: 0;
    margin-top: 0;
}

.card-read-more::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card-read-more:hover::after {
    transform: scaleX(1);
}

.articles-grid.list-view {
    grid-template-columns: 3fr;
}

.articles-grid.list-view .article-card {
    flex-direction: column;
}

.articles-grid.list-view .card-image-container {
    width: 100%;
    height: 220px;
    min-height: 100%;
}

.articles-grid.list-view .card-content {
    padding: 25px;
}

.recommended-link {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
}

.recommended-link:hover .recommended-title {
    text-decoration: underline;
}

.recommended-image {
    flex: 0 0 38%;
    min-height: 160px;
    background-size: cover;
    background-position: center;
}

.recommended-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recommended-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
}

.recommended-meta time {
    font-weight: 600;
}

.faq-items {
    display: grid;
    gap: 16px;
}

.faq-items details {
    background: rgba(102, 97, 252, 0.08);
    border: 1px solid rgba(102, 97, 252, 0.18);
    border-radius: 16px;
    padding: 18px 22px;
}

.faq-items summary {
    font-weight: 700;
    cursor: pointer;
    outline: none;
}

.faq-items summary::marker {
    color: var(--primary);
}

.faq-items p {
    margin-top: 12px;
    color: #111;
    line-height: 1.6;
}

[data-theme="dark"] .faq-items details {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .faq-items summary {
    color: #e2e8f0;
}

[data-theme="dark"] .faq-items p {
    color: #cbd5f5;
}

@media (max-width: 640px) {
    .recommended-link {
        flex-direction: column;
    }

    .recommended-image {
        flex-basis: 200px;
    }
}

.ranking-card {
    background: var(--card-bg);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ranking-card.is-hidden {
    display: none;
}

.ranking-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.12);
}

.ranking-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.ranking-summary {
    color: var(--text-light);
    line-height: 1.6;
}

.ranking-insights {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.ranking-link {
    align-self: flex-start;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quiz-slide {
    display: none;
}

.quiz-slide:first-child {
    display: flex;
}

        .quiz-answers {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .quiz-answer {
            border-radius: 18px;
            padding: 1.1rem 1.3rem;
            border: 1px solid rgba(255, 255, 255, 0.35);
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
            box-shadow: 0 25px 55px rgba(4, 7, 20, 0.18);
            font-weight: 600;
            text-align: left;
            color: #0c0d20;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        }

        .quiz-answer:hover:not(:disabled),
        .quiz-answer:focus-visible {
            transform: translateY(-4px);
            border-color: var(--primary);
            outline: none;
        }

        .quiz-answer:disabled {
            opacity: 0.75;
            cursor: not-allowed;
        }

        [data-theme='dark'] .quiz-answer {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.14);
            color: #f5f6ff;
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
        }

        .answer-neutral {
            opacity: 0.6;
            filter: grayscale(0.3);
        }

        .answer-correct,
        .answer-correct-active {
            background: linear-gradient(145deg, rgba(46, 204, 113, 0.45), rgba(26, 139, 191, 0.35)) !important;
            border-color: #2ecc71 !important;
            color: #fff;
            box-shadow: 0 0 32px rgba(46, 204, 113, 0.55);
        }

        .answer-incorrect {
            background: linear-gradient(145deg, rgba(231, 76, 60, 0.45), rgba(239, 97, 86, 0.4)) !important;
            border-color: #e74c3c !important;
            color: #fff;
            box-shadow: 0 0 32px rgba(231, 76, 60, 0.55);
        }

        .quiz-feedback {
            margin-top: 24px;
            padding: 1.25rem 1.5rem;
            border-radius: 24px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7));
            border: 1px solid rgba(102, 97, 252, 0.4);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
            color: var(--text);
            line-height: 1.55;
        }

        [data-theme='dark'] .quiz-feedback {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.15);
            color: #e2e8f0;
        }

        .quiz-next {
            margin-top: 18px;
            align-self: flex-end;
            padding: 0.9rem 2.25rem;
            border-radius: 999px;
            border: none;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: #fff;
            font-weight: 700;
            letter-spacing: 0.02em;
            cursor: pointer;
        }

        .quiz-next:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }

        .quiz-next:focus-visible {
            outline: 3px solid rgba(255, 255, 255, 0.5);
            outline-offset: 2px;
        }

        .quiz-result {
            text-align: center;
            padding: 2.4rem 1.5rem;
            border-radius: 28px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72));
            box-shadow: 0 35px 80px rgba(3, 7, 20, 0.25);
            color: var(--text);
        }

        [data-theme='dark'] .quiz-result {
            background: linear-gradient(145deg, rgba(14, 16, 26, 0.96), rgba(28, 30, 42, 0.95));
            box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
            color: #f5f6ff;
        }

        .quiz-result h3 {
            margin-top: 0;
            font-size: clamp(1.8rem, 2.6vw, 2.4rem);
        }

        .quiz-score {
            font-size: clamp(1.3rem, 2.1vw, 1.8rem);
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        .quiz-comment {
            font-size: 1rem;
            color: var(--text-light);
            margin-bottom: 1.5rem;
        }

        .quiz-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.9rem;
            justify-content: center;
            margin-top: 1.5rem;
        }

        .quiz-actions .quiz-retry {
            border-radius: 999px;
            padding: 0.9rem 2rem;
            border: 1px solid rgba(102, 97, 252, 0.6);
            background: rgba(255, 255, 255, 0.95);
            color: var(--primary);
            font-weight: 700;
        }

        .quiz-actions .quiz-share {
            border-radius: 999px;
            padding: 0.9rem 2.2rem;
            border: none;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: #fff;
            font-weight: 700;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }

        [data-theme='dark'] .quiz-actions .quiz-share {
            background: linear-gradient(135deg, rgba(102, 111, 236, 0.95), rgba(118, 75, 162, 0.95));
        }

        @media (max-width: 640px) {
            .quiz-modal {
                padding: 1.25rem 0.75rem;
                align-items: center;
            }

            .quiz-modal-content {
                width: 100%;
                max-height: 85vh;
                padding: 1.6rem 1.25rem 1.3rem;
                border-radius: 22px;
                gap: 1rem;
            }

            .close-quiz {
                top: 12px;
                right: 12px;
                width: 40px;
                height: 40px;
                font-size: 1.1rem;
            }

            .quiz-header-modal h3 {
                font-size: clamp(1.25rem, 5vw, 1.6rem);
                white-space: normal;
            }

            .quiz-question {
                padding: 1.25rem;
                border-radius: 20px;
            }

            .quiz-question-text {
                font-size: clamp(1.35rem, 5.2vw, 1.7rem);
                line-height: 1.35;
            }

            .quiz-answers {
                grid-template-columns: 1fr;
            }

            .quiz-answer {
                padding: 0.85rem 1rem;
                font-size: 0.95rem;
            }

            .quiz-feedback {
                padding: 1rem 1.1rem;
                font-size: 0.95rem;
            }

            .quiz-next,
            .quiz-actions .quiz-retry,
            .quiz-actions .quiz-share {
                width: 100%;
                text-align: center;
            }

            .quiz-progress-container {
                flex-direction: column;
                align-items: flex-start;
            }
        }

body.modal-open {
    overflow: hidden;
}

body.sidebar-open {
    overflow: hidden;
}

@keyframes shadow-bow {
    0% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    25% {
        box-shadow: 
            0 0 55px rgba(102, 111, 236, 0.95),
            0 0 100px rgba(255, 31, 225, 0.65),
            0 0 120px rgba(25, 8, 255, 0.5);
    }
    55% {
        box-shadow: 
            0 0 45px rgba(102, 111, 236, 0.75),
            0 0 80px rgba(186, 103, 255, 0.6),
            0 0 90px rgba(103, 162, 255, 0.55);
    }
    85% {
        box-shadow: 
            0 0 33px rgba(255, 111, 236, 0.5),
            0 0 55px rgba(102, 111, 236, 0.35),
            0 0 70px rgba(123, 108, 255, 0.35);
    }
    100% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

@keyframes pulse-quiz-glow {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(1);
    }
    50% {
        opacity: 0.65;
        transform: scale(1.05);
    }
}

.scroll-target-highlight {
    animation: shadow-bow 2000ms ease-in-out forwards;
}

.scroll-target-highlight:is(h1, h2, h3, h4) {
    animation: scroll-target-glow 1200ms ease-in-out 2;
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

@keyframes scroll-target-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(102, 111, 236, 0));
        color: inherit;
    }
    40%,
    60% {
        filter: drop-shadow(0 0 10px rgba(102, 111, 236, 0.55)) drop-shadow(0 0 20px rgba(123, 108, 255, 0.4));
        color: #1f2c6a;
    }
}

/* ============================
   Blog layout refresh 2025
   ============================ */

.blog-layout {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px 80px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: flex-start;
}

.blog-main {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.blog-sidebar {
    position: relative;
}

.blog-sidebar-floating {
    position: fixed;
    top: 120px;
    left: max(12px, calc((100% - 1380px) / 2 + 12px));
    width: 280px;
    display: block;
    opacity: 0;
    transform: translateY(-12px) scale(0.8);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 1400;
}

.blog-sidebar-floating .sidebar-inner {
    position: static;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.blog-sidebar-floating.is-visible {
    opacity: 1;
    transform: translateY(0) scale(0.8);
    pointer-events: auto;
}

.sidebar-inner {
    position: sticky;
    top: 120px;
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(20, 19, 55, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

[data-theme="dark"] .sidebar-inner {
    background: linear-gradient(160deg, rgba(21, 24, 45, 0.96), rgba(10, 12, 26, 0.98));
    border: 1px solid rgba(140, 150, 255, 0.12);
    box-shadow: 0 24px 60px rgba(6, 8, 22, 0.75);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary, #6661fc);
}

.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #d6deea;
    background: #f6f8fc;
    color: #2a3f58;
    box-shadow: 0 8px 16px rgba(15, 26, 43, 0.12);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-toggle:hover {
    background: #e9eff8;
    transform: translateY(-1px);
}

.sidebar-intro {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light, #555);
    margin: 0;
}

.sidebar-shortcuts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sidebar-shortcut {
    flex: 1 1 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(102, 97, 252, 0.25);
    font-size: 0.85rem;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-shortcut:hover {
    background: rgba(102, 97, 252, 0.08);
    transform: translateY(-2px);
}

.sidebar-floating-toggle {
    position: fixed;
    bottom: 96px;
    right: 24px;
    height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, #0f1a2b, #243a57);
    color: #fff;
    box-shadow: 0 16px 36px rgba(15, 26, 43, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    z-index: 1400;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-floating-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.sidebar-floating-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(15, 26, 43, 0.45);
}

.sidebar-floating-toggle i {
    font-size: 1rem;
}

.sidebar-floating-toggle span {
    font-size: 0.9rem;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 6, 19, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 1300;
}

.sidebar-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.toc-item {
    display: block;
}

.toc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
    line-height: 1.35;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.toc-link:last-child {
    border-bottom: none;
}

.toc-link:hover,
.toc-link:focus-visible {
    background: rgba(102, 97, 252, 0.08);
    color: #2a2792;
    transform: translateX(4px);
    box-shadow: 0 6px 14px rgba(102, 97, 252, 0.12);
}

.toc-icon {
    color: var(--primary, #6661fc);
    font-size: 0.9rem;
    margin-right: 8px;
}

.toc-title {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.toc-reading {
    flex: 0 0 auto;
}

.toc-reading {
    font-size: 0.8rem;
    color: var(--text-light, #666);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(102, 97, 252, 0.12);
    border: 1px solid rgba(102, 97, 252, 0.25);
    font-weight: 600;
    white-space: nowrap;
}

[data-theme="dark"] .toc-reading {
    background: rgba(120, 130, 230, 0.2);
    border-color: rgba(140, 150, 255, 0.35);
    color: #d7ddff;
}

[data-theme="dark"] .toc-link:hover,
[data-theme="dark"] .toc-link:focus-visible {
    background: rgba(120, 130, 230, 0.18);
    color: #f1f2ff;
    box-shadow: 0 6px 14px rgba(40, 45, 120, 0.4);
}

.blog-hero {
    margin-top: 0;
    padding: 18px 0 10px;
}

.blog-hero__content h1 {
    font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.5rem);
}

.blog-hero__lead {
    font-size: 0.95rem;
    max-width: 640px;
    margin-top: 12px;
}

.progress-container {
    margin-bottom: 28px;
}

.latest-articles {
    margin-top: -20px;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 30px 60px rgba(15, 15, 40, 0.08);
}

.blog-seo-intro + .latest-articles {
    margin-top: 10px;
}

[data-theme="dark"] .latest-articles {
    background: linear-gradient(165deg, rgba(22, 25, 48, 0.96), rgba(11, 13, 28, 0.98));
    border: 1px solid rgba(140, 150, 255, 0.12);
    box-shadow: 0 30px 70px rgba(6, 8, 22, 0.75);
}

.section-heading {
    margin-bottom: 14px;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--primary, #6661fc);
    margin-bottom: 4px;
}

.section-intro {
    margin-top: 8px;
    color: var(--text-light, #666);
    max-width: 520px;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.latest-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: #f8f9ff;
    box-shadow: inset 0 0 0 1px rgba(102, 97, 252, 0.08);
}

[data-theme="dark"] .latest-card {
    background: linear-gradient(155deg, rgba(19, 22, 40, 0.95), rgba(12, 14, 28, 0.98));
    border: 1px solid rgba(120, 130, 230, 0.12);
}

.latest-card__media {
    position: relative;
    display: block;
}

.latest-card__media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
    transform-origin: center;
}

.latest-card:hover .latest-card__media img,
.latest-card:focus-within .latest-card__media img {
    transform: scale(1.05);
}

.latest-card__reading-time {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.reading-min {
    font-size: 0.7em;
    letter-spacing: 0.04em;
}

.latest-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.latest-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light, #777);
}

.latest-card__badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary, #6661fc);
}

.latest-card__title {
    font-size: 1.05rem;
    margin: 0;
}

.latest-card__title a {
    color: inherit;
    text-decoration: none;
}

.latest-card__excerpt {
    margin: 0;
    color: var(--text-light, #666);
    line-height: 1.5;
    font-size: 0.9rem;
}

.ranking-filter {
    padding: 5px !important;;
}
.theme-ranking {
    width: 100%;
    background: transparent;/*
    background-color: white;
    box-shadow: 0 3px 60px rgba(12, 17, 40, 0.18);*/
    margin: 0 auto;    
    border-radius: 36px;
}

.theme-ranking__inner {
    margin: 0 auto;
    border-radius: 36px;
    padding: 0 clamp(16px, 3vw, 24px) 80px;
    box-sizing: border-box;
}

/* Deepen the ranking container when the page is in dark mode 
[data-theme="dark"] .theme-ranking {
    background: linear-gradient(180deg, rgba(16, 16, 32, 0.98), rgba(9, 9, 24, 0.97));
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.65);
}*/


.theme-ranking .articles-container {
    margin-top: 24px;
    width: 100%;
    max-width: none;
    padding: 0;
}

.theme-ranking .articles-load-more {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.liked-empty {
    margin: 28px auto 0;
    max-width: 640px;
    text-align: center;
    padding: 16px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 122, 89, 0.1), rgba(255, 179, 71, 0.18));
    border: 1px dashed rgba(255, 122, 89, 0.35);
    color: #8a3a23;
    font-weight: 600;
}

.seo-juice {
    width: min(85%, 1380px);
    margin: 48px auto 0;
    padding: 0 16px;
}

.seo-juice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.seo-juice-card .card-image-container {
    height: 180px;
}

.seo-juice-card .card-content {
    padding: 18px;
    gap: 12px;
}

.seo-juice-card .card-title {
    font-size: 1.2rem;
}

.seo-juice-card .card-excerpt {
    font-size: 0.88rem;
}

.seo-juice-card .card-footer {
    margin-top: 10px;
}

.seo-juice-icon {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(102, 111, 236, 0.9);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 10px 22px rgba(16, 12, 40, 0.25);
}

[data-theme="dark"] .seo-juice-icon {
    background: rgba(102, 111, 236, 0.65);
}

.portfolio-promo {
    width: min(85%, 1380px);
    margin: 48px auto 0;
    padding: 0 16px 32px;
}

.portfolio-promo__card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    padding: 26px 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(102, 111, 236, 0.12), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(102, 111, 236, 0.22);
    box-shadow: 0 22px 45px rgba(16, 12, 40, 0.12);
    max-width: 820px;
    margin: 0 auto;
}

.portfolio-promo__content {
    text-align: center;
}

.portfolio-promo__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #5a5f8f;
}

.portfolio-promo__title {
    margin: 10px 0 8px;
    font-size: 1.4rem;
    color: var(--text, #13172f);
}

.portfolio-promo__text {
    margin: 0 0 16px;
    color: var(--text-light, #4c5472);
    line-height: 1.6;
}

.portfolio-promo__projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    width: 100%;
}

.portfolio-promo__project {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    border: 1px solid rgba(102, 111, 236, 0.18);
    box-shadow: 0 12px 30px rgba(16, 12, 40, 0.1);
    padding: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-promo__project img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

.portfolio-promo__project span {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2b1055;
}

.portfolio-promo__project:hover,
.portfolio-promo__project:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(16, 12, 40, 0.16);
}

.portfolio-promo__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.portfolio-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
    color: #666fec;
}

.portfolio-promo__cta:hover {
    text-decoration: underline;
}

.portfolio-promo__cta--insta {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 45%, #6228d7 100%);
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(238, 42, 123, 0.28);
}

.portfolio-promo__cta--insta:hover,
.portfolio-promo__cta--insta:focus-visible {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(98, 40, 215, 0.35);
}

.portfolio-promo__visual {
    width: min(100%, 720px);
    min-height: 260px;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: radial-gradient(circle at top, rgba(102, 111, 236, 0.35), transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(221, 227, 255, 0.7));
    border: 1px solid rgba(102, 111, 236, 0.2);
    overflow: hidden;
}

.portfolio-promo__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

[data-theme="dark"] .portfolio-promo__card {
    background: linear-gradient(135deg, rgba(102, 111, 236, 0.18), rgba(16, 18, 32, 0.95));
    border-color: rgba(102, 111, 236, 0.35);
    box-shadow: 0 22px 45px rgba(5, 6, 15, 0.6);
}

[data-theme="dark"] .portfolio-promo__eyebrow {
    color: #b8c0ff;
}

[data-theme="dark"] .portfolio-promo__title {
    color: #f2f4ff;
}

[data-theme="dark"] .portfolio-promo__text {
    color: #cbd5f5;
}

[data-theme="dark"] .portfolio-promo__cta {
    color: #9aa2ff;
}

[data-theme="dark"] .portfolio-promo__project {
    background: rgba(16, 18, 32, 0.85);
    border-color: rgba(102, 111, 236, 0.3);
    box-shadow: 0 18px 40px rgba(5, 6, 15, 0.55);
}

[data-theme="dark"] .portfolio-promo__project span {
    color: #f2f4ff;
}

[data-theme="dark"] .portfolio-promo__cta--insta {
    color: #fff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.quick-faq {
    width: min(85%, 1380px);
    margin: 32px auto 0;
    padding: 0 16px 32px;
}

@media (max-width: 768px) {
    .seo-juice {
        margin-top: 32px;
        padding: 0 12px;
    }

    .portfolio-promo {
        margin-top: 32px;
        padding: 0 12px 24px;
    }

    .quick-faq {
        margin-top: 24px;
        padding: 0 12px 24px;
    }
}

.quick-faq__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.quick-faq__footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.quick-faq__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: #1a2440;
    background: #ffffff;
    border: 1px solid rgba(102, 111, 236, 0.35);
    box-shadow: 0 12px 24px rgba(16, 12, 40, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-faq__cta:hover,
.quick-faq__cta:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(102, 111, 236, 0.6);
    box-shadow: 0 16px 26px rgba(16, 12, 40, 0.16);
}

[data-theme="dark"] .quick-faq__cta {
    color: #e6ebff;
    background: rgba(20, 24, 40, 0.85);
    border-color: rgba(140, 150, 255, 0.45);
}

[data-theme="dark"] .quick-faq__cta:hover,
[data-theme="dark"] .quick-faq__cta:focus-visible {
    border-color: rgba(140, 150, 255, 0.7);
}

.quick-faq__item {
    background: #ffffff;
    border: 1px solid rgba(102, 111, 236, 0.2);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 18px 35px rgba(16, 12, 40, 0.08);
}

.quick-faq__item h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #1b1f38;
}

.quick-faq__item p {
    margin: 0;
    color: #4b5573;
    line-height: 1.6;
    font-size: 0.9rem;
}

[data-theme="dark"] .quick-faq__item {
    background: rgba(16, 18, 32, 0.95);
    border-color: rgba(102, 111, 236, 0.35);
    box-shadow: 0 18px 40px rgba(5, 6, 15, 0.6);
}

[data-theme="dark"] .quick-faq__item h3 {
    color: #f0f3ff;
}

[data-theme="dark"] .quick-faq__item p {
    color: #c7d0f0;
}

.articles-load-more {
    margin: 32px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: min(100%, 1380px);
    box-sizing: border-box;
    padding: 0 20px 40px;
}

.articles-load-more[hidden] {
    display: none !important;
}

.blog-load-more-btn[hidden],
.blog-scroll-top-btn[hidden] {
    display: none !important;
}

.blog-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 1rem 2.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(110deg, #352048, #7044ff, #ff5fe0);
    background-size: 220% 220%;
    box-shadow: 0 18px 45px rgba(112, 68, 255, 0.35);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: ctaBlink 2.8s ease-in-out infinite;
}

.blog-scroll-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.9);
    color: #5d2cff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(25, 14, 55, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-scroll-top-btn:hover,
.blog-scroll-top-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(25, 14, 55, 0.25);
    border-color: rgba(93, 44, 255, 0.65);
}

.blog-scroll-top-btn:focus-visible {
    outline: 3px solid rgba(93, 44, 255, 0.4);
    outline-offset: 2px;
}

.blog-scroll-top-btn .blog-load-more-label {
    font-size: 1rem;
}

.blog-load-more-icon,
.blog-scroll-top-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.blog-load-more-btn::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-load-more-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0) 75%);
    transform: translateX(-120%);
    animation: shineSweep 3.8s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.85;
}

.blog-load-more-btn:hover,
.blog-load-more-btn:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 25px 45px rgba(255, 95, 224, 0.45);
}

.blog-load-more-btn:focus-visible {
    outline: 3px solid rgba(114, 90, 255, 0.45);
    outline-offset: 2px;
}

.blog-load-more-btn:hover::before {
    opacity: 1;
}

.blog-load-more-btn:hover::after,
.blog-load-more-btn:focus-visible::after {
    animation-duration: 1.2s;
}

.blog-load-more-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.faq-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1900;
}

.faq-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.faq-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 6, 19, 0.55);
    backdrop-filter: blur(8px);
}

.faq-modal__dialog {
    position: relative;
    max-width: 720px;
    width: min(720px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 40px 80px rgba(9, 9, 17, 0.4);
    z-index: 1;
}

[data-theme="dark"] .faq-modal__dialog {
    background: linear-gradient(160deg, rgba(20, 23, 42, 0.98), rgba(10, 12, 26, 0.98));
    border: 1px solid rgba(140, 150, 255, 0.14);
    box-shadow: 0 40px 90px rgba(6, 8, 22, 0.8);
}

.faq-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(102, 97, 252, 0.1);
    color: var(--primary, #6661fc);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-modal__close:hover {
    background: rgba(102, 97, 252, 0.2);
}

body.faq-open {
    overflow: hidden;
}

.blog-extras {
    display: flex;
    flex-direction: column;
    gap: 32px;
    top: 90px;
    align-self: flex-start;
}

.blog-extras .quiz-section {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 25px 60px rgba(20, 19, 55, 0.12);
}

[data-theme="dark"] .blog-extras .quiz-section {
    background: linear-gradient(160deg, rgba(20, 23, 42, 0.96), rgba(10, 12, 26, 0.98));
    border: 1px solid rgba(140, 150, 255, 0.12);
}

.blog-extras .quiz-carousel {
    box-shadow: none;
    border-radius: 18px;
    overflow: hidden;
}

.blog-extras .quiz-header .section-title {
    font-size: 1.15rem;
}

.blog-extras .quiz-description-intro {
    font-size: 0.9rem;
}

.blog-extras .quiz-slide {
    min-height: 260px;
    padding: 1.2rem;
    border-radius: 18px;
}

.blog-extras .quiz-content {
    max-width: 100%;
    gap: 12px;
}

.blog-extras .quiz-title {
    font-size: 1.25rem;
}

.blog-extras .quiz-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.quiz-media-strip {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.quiz-media-thumb {
    flex: 1;
    height: 68px;
    border: none;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.quiz-media-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.quiz-media-thumb.active,
.quiz-media-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.quiz-media-thumb.active::after {
    opacity: 1;
}

@media (max-width: 1250px) {
    .blog-layout {
        grid-template-columns: 240px minmax(0, 1fr) 320px;
        gap: 28px;
    }

    .blog-sidebar {
        width: 240px;
    }

    .blog-sidebar-floating {
        width: 240px;
    }

    .latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1001px) {
    .blog-sidebar {
        position: relative;
    }

    .sidebar-inner {
        position: sticky;
        top: 120px;
    }
}

@media (max-width: 1000px) {
    .blog-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-sidebar {
        order: -1;
    }

    .blog-sidebar-floating {
        display: none;
    }

    .sidebar-inner {
        position: relative;
        top: 0;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .blog-extras {
        position: static;
    }

    .latest-grid {
        grid-template-columns: minmax(0, 1fr);
}
}

@media (max-width: 768px) {
    .sidebar-floating-toggle {
        display: flex;
        height: 48px;
        padding: 0 14px;
    }

    .blog-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 88vw);
        background: transparent;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1500;
        pointer-events: none;
        height: 100%;
        display: flex;
        align-items: stretch;
    }

    .blog-sidebar.is-open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .sidebar-inner {
        top: 0;
        height: 100%;
        padding: 32px 22px 48px;
        overflow-y: auto;
        background: #fff;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    }
    [data-theme="dark"] .sidebar-inner {
        background: rgba(10, 10, 22, 0.97);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
    }
    .sidebar-inner > :first-child {
        margin-top: 70px;
    }
    .sidebar-shortcuts {
        flex-direction: column;
        height: auto;
        max-height: 47px;
    }
    .toc-link {
        font-size: 0.95rem;
    }
    .blog-layout {
        padding-top: 80px;
    }
    .sidebar-shortcuts {
        gap: 8px;
    }
    .sidebar-shortcut {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-height: 0;
        gap: 6px;
        align-items: center;
    }
    .sidebar-shortcut i {
        font-size: 0.9rem;
        width: 20px;
        height: 20px;
        line-height: 1;
    }
    .sidebar-shortcut i {
        font-size: 0.95rem;
        line-height: 1;
    }
}

@media (max-width: 480px) {
    .sidebar-floating-toggle {
        width: 48px;
        padding: 0;
        border-radius: 50%;
    }

    .sidebar-floating-toggle span {
        display: none;
    }
}

@media (max-width: 640px) {
    .latest-card__media img {
        height: 160px;
    }
    .popular-scroll {
        max-height: none;
    }
    .blog-layout {
        padding: 0 16px 64px;
    }
    .blog-main {
        gap: 24px;
    }
    .blog-hero {
        margin-top: 8px;
        padding: 18px 0;
    }
    .blog-hero__content h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    .sidebar-inner {
        padding: 28px 18px 40px;
    }
}

.tools-dropdown {
    min-width: 690px;
    padding: 1.5rem 2.75rem;
}

.tools-dropdown__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 0.5rem;
}

.dropdown-content .tools-dropdown__item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 0;
    text-decoration: none;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(102, 111, 236, 0.25);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.tools-dropdown__item:nth-last-child(-n + 2) {
    border-bottom: none;
}

.tools-dropdown__item:hover {
    background-color: rgba(79, 70, 229, 0.08);
    border-radius: 12px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    transform: translateY(-1px);
}

.tools-dropdown__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tools-dropdown__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: #0f172a;
    flex: 1;
    min-width: 0;
}

.tools-dropdown__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.tools-dropdown__desc {
    font-size: 0.82rem;
    color: #475467;
    line-height: 1.35;
}

.tool-disabled {
    cursor: not-allowed;
}

.tool-disabled__text {
    filter: blur(4px);
    opacity: 0.55;
    display: inline-block;
}

.tool-disabled__icon {
    margin-right: 0.4rem;
    color: #4f46e5;
    font-size: 0.95rem;
}

.tool-disabled__badge {
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.08);
    color: #1f2937;
    border-radius: 999px;
    padding: 3px 10px;
    width: fit-content;
}

.tools-dropdown__text .tool-disabled__badge {
    margin-left: 0;
    margin-top: 6px;
}

.tools-dropdown__item.tool-disabled:hover {
    background-color: transparent;
    transform: none;
    padding-left: 0;
    padding-right: 0;
}

.mobile-tools-grid {
    padding: 0.5rem 0;
}

.mobile-menu-section-content .tools-dropdown__item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(102, 111, 236, 0.25);
    padding: 0.75rem 0;
    text-decoration: none;
    color: inherit;
}

.mobile-menu-section-content .tools-dropdown__text {
    flex: 1;
    min-width: 0;
}

.mobile-menu-section-content .tools-dropdown__title,
.mobile-menu-section-content .tools-dropdown__desc {
    text-decoration: none;
    color: inherit;
}

[data-theme="dark"] .tools-dropdown {
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.65);
}


[data-theme="dark"] .tools-dropdown__item:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .tools-dropdown__icon {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5ff;
}

[data-theme="dark"] .tools-dropdown__text {
    color: #e2e8f0;
}

[data-theme="dark"] .tools-dropdown__desc {
    color: #cbd5f5;
}

[data-theme="dark"] .tool-disabled__badge {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

@media (max-width: 900px) {
    .tools-dropdown {
        min-width: auto;
        padding: 1.25rem;
    }

    .tools-dropdown__grid {
        grid-template-columns: 1fr;
    }

    .tools-dropdown__item,
    .tools-dropdown__item:nth-last-child(-n + 2) {
        border-bottom: 1px solid rgba(16, 24, 40, 0.12);
    }

    .tools-dropdown__item:last-child {
        border-bottom: none;
    }

}
/* Blog footer overrides */
@media (min-width: 1350px) {
.footer-layout .middle-section {
    transform: translateX(-90px);
}
.footer-layout .flechecontacte {
    margin-top: 12px;
    transform: translateX(60px);
    right: 1px;
    width: 80px;
}
#mat-desktop {
    top: -70px;
}
footer {
    height: 450px;
}
}
@media (max-width: 1350px) {
    footer {
        height: 1290px;
    }
}
.icon-onglet-desktop {
    display: block;
    width: 28px;
}
[data-theme="dark"] .icon-onglet-desktop {
    filter: invert(1);
}
