
:root{
    --sk-bg: #e9eef3;               /* fond des blocs */
    --sk-hi: rgba(255,255,255,.55); /* lueur */
}

.sk{
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--sk-bg);
    border-radius: 6px;
}
.sk::after{
    content:"";
    position:absolute;
    inset:0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, var(--sk-hi), transparent);
    animation: sk-shimmer 1.2s infinite;
}
@keyframes sk-shimmer { 100% { transform: translateX(100%); } }

/* Tailles utiles */
.sk--title{  width: 60%;height: 16px;max-width: 480px;margin: 6px 0 10px;}
.sk--line{     width: 90%;max-width: 640px; height: 12px; }
.sk--line.sk--short {width: 55%;}
.sk--line.w90{ width: 90%; }
.sk--line.w70{ width: 70%; }
.sk--tag{     width: 60px;height: 18px;border-radius: 10px; }
.sk--btn {width: 150px;height: 36px;border-radius: 2px;}

/* Accessibilité */
@media (prefers-reduced-motion: reduce){
    .sk::after{ animation: none; }
}

@media all and (max-width: 700px) {
    .sk--btn {width: 100%;}
}











/* =======================
   EXO CARD
   ======================= */

.exo-card {
    width: 100%;
    position: relative;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--color-thumb-border);
    box-shadow: 0 5px 5px -5px var(--color-thumb-shadow);
}

.exo-card__actions {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    width: 200px;
    padding-right: 20px;
}

.exo-card__link {
    text-decoration: none;
    align-items: center;
    border: 2px solid #373940;
    color: #373940;
    display: flex;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0;
    line-height: 34px;
    text-transform: uppercase;
    width: 150px;
}

.exo-card__link svg {
    margin: 0 0 0 8px;
    width: 12px;
}

.exo-card__media {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 16px 0;
    width: 125px;
}

.exo-card__media img {
    align-items: center;
    display: flex;
    justify-content: center;
    max-height: calc(100% - 16px);
    max-width: calc(100% - 16px);
}

.exo-card__body {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0 16px 24px;
    width: calc(100% - 325px);
}

.exo-card__level {
    color: #f2bb13;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 18px;
}

.exo-card__title {
    color: #373940;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 20px;
}

.exo-card__tags {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
    margin: 16px 0 0;
}

.exo-card__tags .tag {
    background: #3739404d;
    border-radius: 30px;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    line-height: 20px;
    padding: 0 8px;
}


.exo-card__metas {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 8px 0 0;
}
.exo-card__metas span {
    align-items: center;
    color: #454c55;
    display: flex;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 12px;
    font-weight: 400;
    justify-content: center;
    line-height: 20px;
}
.exo-card__metas span:not(:last-child)::after{
    background: #454c55;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 3px;
    margin: 0 4px;
    width: 3px;
}

@media all and (max-width: 768px) {
    .exo-card__title {
        font-size: 17px;
    }
}

@media all and (max-width: 700px) {
    .exo-card__body {
        width: calc(100% - 125px);
    }

    .exo-card__actions {
        width: 100%;
        padding: 0 16px 16px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .exo-card__actions .exo-card__link {
        width: 100%;
    }
}

@media all and (max-width: 500px) {
    .exo-card__media {
        width: 100%;
    }

    .exo-card__body {
        width: 100%;
    }
}


.exo-skeleton {
    width: 100%;
    position: relative;
    background: var(--color-white);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.exo-skeleton__media {
    width: 115px;
    height: 115px;
    margin: 0 auto;
    border-radius: 0;
    padding: 16px 0;
}

.exo-skeleton__body {
    width: calc(100% - 325px);
    padding: 16px 0 16px 24px;
    display: flex; flex-direction: column; gap: 8px;
}

.exo-skeleton__tags {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}
.exo-skeleton__actions {
    width: 200px;
    padding-right: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}


@media all and (max-width: 700px) {
    .exo-skeleton__body {
        width: calc(100% - 125px);
    }

    .exo-skeleton__actions {
        width: 100%;
        padding: 0 16px 16px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

}

@media all and (max-width: 500px) {

    .exo-skeleton__media {
        width: 100%;
        height: 100px;
    }

    .exo-skeleton__body {
        width: 100%;
        padding: 16px;
    }
}


/* =======================
   QUIZ CARD
   ======================= */

.quiz-card {
    width: 100%;
    position: relative;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--color-thumb-border);
    box-shadow: 0 5px 5px -5px var(--color-thumb-shadow);
}

.quiz-card  .quiz-card__actions {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    width: 200px;
    gap:8px;
}
.quiz-card__actions .quiz-reset-btn{
    color:var(--color-red);
    text-decoration: underline;
}
.quiz-card__actions .quiz-reset-btn:hover{
    color:var(--color-secondary);
}
.quiz-card__link {
    text-decoration: none;
    align-items: center;
    border: 2px solid #373940;
    color: #373940;
    display: flex;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0;
    line-height: 34px;
    text-transform: uppercase;
    width: 150px;
}

.quiz-card__link svg {
    margin: 0 0 0 8px;
    width: 12px;
}
.quiz-card__note {
    align-items: center;
    display: flex;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    justify-content: flex-start;
    letter-spacing: 0;
    line-height: 20px;
    margin: 0 0 8px;
}
.quiz-card__media {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 16px 0;
    width: 125px;
}

.quiz-card__media img,
.quiz-card__media .product-thumbnail__icon {
    align-items: center;
    display: flex;
    justify-content: center;
    max-height: 40px;
    max-width: 40px;
}

.quiz-card__media .product-thumbnail__icon.placeholder {
    width: 40px;
    height: 40px;
    background: rgba(69, 76, 85, 0.1);
}

.quiz-card__body {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0 16px 24px;
    width: calc(100% - 325px);
}

.quiz-card__level {
    color: #f2bb13;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 18px;
}

.quiz-card__title {
    color: #373940;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 20px;
}

.quiz-card__text {
    color: #373940;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 14px;
    font-style: normal;
    margin: 4px 0 0 0;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.3;
}

.quiz-card__tags {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
    margin: 16px 0 0;
}

.quiz-card__tags .tag {
    background: #3739404d;
    border-radius: 30px;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    line-height: 20px;
    padding: 0 8px;
}

.quiz-card__metas {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 8px 0 0;
}
.quiz-card__metas span {
    align-items: center;
    color: #454c55;
    display: flex;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 12px;
    font-weight: 400;
    justify-content: center;
    line-height: 20px;
}
.quiz-card__metas span:not(:last-child)::after{
    background: #454c55;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 3px;
    margin: 0 4px;
    width: 3px;
}

/* ===== Responsive (quiz-card) ===== */
@media all and (max-width: 768px) {
    .quiz-card__title {
        font-size: 17px;
    }
}

@media all and (max-width: 700px) {
    .quiz-card__body {
        width: calc(100% - 125px);
    }

    .quiz-card__actions {
        width: 100%;
        padding: 0 16px 16px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .quiz-card__actions .quiz-card__link {
        width: 100%;
    }
}

@media all and (max-width: 500px) {
    .quiz-card__media {
        width: 100%;
    }

    .quiz-card__body {
        width: 100%;
    }
}

/* ===== Skeleton  ===== */
.quiz-skeleton{
    width: 100%;
    position: relative;
    background: var(--color-white, #fff);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Colonnes (calquées sur tes .quiz-card) */
.quiz-skel__media{
    width: 125px;
    padding: 16px 0;
}
.quiz-skel__body{
    width: calc(100% - 325px);
    padding: 16px 0 16px 24px;
    display: flex; flex-direction: column; gap: 8px;
}
.quiz-skel__actions{
    width: 200px;
    padding-right: 20px;
    display: flex; align-items: center; justify-content: flex-end;
}
.quiz-skel__tags{
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}

/* Tailles */
.quiz-skel__media.sk { width: 40px; height: 40px; margin: 0 auto; border-radius: 10px; }

/* ================= Responsive aligné sur tes règles ================= */
@media all and (max-width: 700px){
    .quiz-skel__actions{
        width: 100%;
        padding: 0 16px 16px 16px;
        justify-content: center;
    }
    .quiz-skel__body{ width: calc(100% - 125px); }
}
@media all and (max-width: 500px){
    .quiz-skel__media{ width: 100%; }
    .quiz-skel__body{ width: 100%; padding: 16px; }
}


/* =======================
   RESSOURCES CARD
   ======================= */

.ressource-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-thumb-border);
    box-shadow: 0 5px 5px -5px var(--color-thumb-shadow);
}

/* Contenu */
.ressource-card .card__content {
    width: calc(100% - 200px);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.ressource-card .card__content .card__title {
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.ressource-card .card__content .card__text {
    width: 100%;
}

.ressource-card .card__content .card__text--short {
    display: block;
}

.ressource-card .card__content .card__text--full {
    display: none;
}

/* Toggle "afficher la suite" */
.ressource-card.active .card__content .card__text--short {
    display: none;
}

.ressource-card.active .card__content .card__text--full {
    display: block;
}

/* Tags */
.ressource-card .card__content .tags {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 24px 0 0 0;
}

.ressource-card .card__content .tags .tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-white);
    background: rgba(55, 57, 64, .3);
}

/* Bouton "Afficher la suite" */
.ressource-card .btn-show-more {
    margin-top: .5rem;
    background: none;
    border: none;
    color: #f2bb13;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    position: relative;
}

.ressource-card .btn-show-more span {
    background: var(--color-white);
    color: #454c55;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 24px;
    padding: 0 4px;
    margin: 0 auto;
    text-transform: uppercase;
}

.ressource-card .btn-show-more::before {
    background: #454c55;
    content: "";
    height: 2px;
    left: -10px;
    position: absolute;
    top: calc(50% - 1px);
    width: calc(100% + 20px);
}

.ressource-card .btn-show-more:hover span {
    color: var(--color-primary);
}

.ressource-card .btn-show-more:hover::before {
    background: var(--color-primary);
}

/* Colonne actions (footer) */
.ressource-card .card__footer {
    width: 200px;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ressource-card .card__footer .btn {
    align-items: center;
    border: 2px solid #373940;
    display: flex;
    justify-content: center;
    text-transform: uppercase;
    width: 150px;
    padding: 0;
    line-height: 40px;
}

.ressource-card .card__footer .btn span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #373940;
}

.ressource-card .card__footer .btn svg {
    margin: 0 0 2px 8px;
    width: 12px;
}

.ressource-card .card__footer .btn svg * {
    fill: #373940;
}



/* ===== Responsive (carte) ===== */
@media all and (max-width: 768px) {
    .ressource-card {
        flex-direction: column;
        align-items: stretch;
    }

    .ressource-card .card__content {
        width: 100%;
    }

    .ressource-card .card__footer {
        width: 100%;
        padding: 12px 0 16px;
    }
}


/* ===== Skeleton  ===== */
.res-skeleton{
    width: 100%;
    position: relative;
    background: var(--color-white, #fff);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.res-skeleton__body{
    width: calc(100% - 325px);
    padding: 16px 0 16px 24px;
    display: flex; flex-direction: column; gap: 8px;
}
.res-skeleton__actions{
    width: 200px;
    padding-right: 20px;
    display: flex; align-items: center; justify-content: flex-end;
}

/* ================= Responsive aligné sur tes règles ================= */
@media all and (max-width: 700px){
    .res-skeleton__actions{
        width: 100%;
        padding: 0 16px 16px 16px;
        justify-content: center;
    }
    .res-skeleton__body{ width: calc(100% - 125px); }
}
@media all and (max-width: 500px){
    .res-skeleton__body{ width: 100%; padding: 16px; }
}


/* =======================
   PRODUCT CARD
   ======================= */

.product-card {
    width: calc(100% / 3 - 16px);
}

.product-card .card__link {
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--color-black);
    background: var(--color-white);
    border: 1px solid var(--color-thumb-border);
    box-shadow: 0 5px 5px -5px var(--color-thumb-shadow);
    display: block;
}

.product-card .card__figure {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #fbfbfb;
    position: relative;
}

.product-card .card__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.product-card .card__figure .tag {
    background: var(--color-primary);
    color: rgb(69, 76, 85);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0;
    line-height: 28px;
    font-size: 12px;
    position: absolute;
    top: 16px;
    left: -8px;
    z-index: 100;
    padding: 0 16px;
}

.product-card .card__figure .tag::before {
    border-color: transparent transparent var(--color-primary) transparent;
    border-style: solid;
    border-width: 0 0 8px 8px;
    content: "";
    height: 0;
    left: 0;
    position: absolute;
    top: -8px;
    transform: rotate(0deg);
    width: 0;
}

.product-card .card__content {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 4px 16px;
    margin: 8px 0;
    width: 100%;
}

.product-card .card__title {
    color: #252e38;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0 0 4px;
}

.product-card:hover .card__title {
    text-decoration: underline;
}

.product-card .card__text {
    font-size: 14px;
    margin: 0 0 8px 0;
}

/* Cats */
.product-card .cats {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.product-card .cats .cat {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
}

.product-card .cats .cat:not(:last-child)::after {
    content: "";
    display: inline-block;
    background: #454c55;
    border-radius: 50%;
    height: 3px;
    margin: 0 4px;
    width: 3px;
}

/* Techs (logos) */
.product-card .techs {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2px;
    margin: 16px 0 0 0;
}

.product-card .techs div {
    width: 18px;
    height: 18px;
    position: relative;
}

.product-card .techs img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .7;
}

.product-card .techs img:hover {
    filter: none;
    opacity: 1;
}

/* Tags (texte) */
.product-card .tags {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.product-card .tags .tag {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 12px;
    color: #454c55;
    font-weight: 400;
}

.product-card .tags .tag:not(:last-child)::after {
    content: "";
    display: inline-block;
    background: #454c55;
    border-radius: 50%;
    height: 3px;
    margin: 0 4px;
    width: 3px;
}

/* ===== Responsive (product-card) ===== */
@media all and (max-width: 768px) {
    .product-card {
        width: calc(50% - 16px);
    }

    .product-card .card__link {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .product-card .card__figure {
        width: 100%;
        height: 150px;
        aspect-ratio: initial;
    }

    .product-card .card__content {
        width: 100%;
    }
}

@media all and (max-width: 600px) {
    .product-card {
        width: 100%;
    }
}

/* ===== PRODUCT SKELETON (layout = product-card) ===== */
.product-skeleton{
    width: calc(100% / 3 - 16px);
    background: var(--color-white);
    box-shadow: 0 2px 4px #d8e1e8;
    display: block;
}

/* vignette 16/9 au dessus (comme .card__figure) */
.product-skeleton__media{
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 0;
    position: relative;
    overflow: hidden; /* pour le shimmer */
}

/* bloc contenu (comme .card__content) */
.product-skeleton__body{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 16px;
    margin: 8px 0;
    width: 100%;
    gap: 6px;
}

/* tags skeleton (petites pilules) */
.product-skeleton__tags{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

/* ===== Responsive aligné sur .product-card ===== */
@media all and (max-width: 768px){
    .product-skeleton{ width: calc(50% - 16px); }
}
@media all and (max-width: 600px){
    .product-skeleton{ width: 100%; }
}


/* =======================
   GUIDE CARD
   ======================= */

/* ===== Guide card ===== */
.guide-card {
    width: 100%;
}

.guide-card__link {
    text-decoration: none;
    color: var(--color-black);
    background: #fff;
    border: 1px solid var(--color-thumb-border);
    box-shadow: 0 5px 5px -5px var(--color-thumb-shadow);
    width: 100%;
    padding: 8px;
    display: flex;
    justify-content: center;
}

.guide-card__media {
    width: 225px;
    min-height: 175px;
    position: relative;
}
.guide-card__media picture {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.guide-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.guide-card__body {
    width: calc(100% - 225px);
    padding: 8px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
}

.guide-card__category {
    color: var(--color-primary);
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    margin: 0 0 4px 0;
}

.guide-card__title {
    width: 100%;
    color: #373940;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}

.guide-card__text {
    margin: 8px 0 0 0;
    color: #454c55;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.guide-card__badge {
    background: var(--color-primary);
    color: rgb(69, 76, 85);
    font-weight: 600;
    line-height: 28px;
    font-size: 12px;
    position: absolute;
    top: 16px;
    left: -8px;
    z-index: 100;
    padding: 0 16px;
}

.guide-card__badge::before {
    border-color: transparent transparent var(--color-primary) transparent;
    border-style: solid;
    border-width: 0 0 8px 8px;
    content: "";
    height: 0;
    left: 0;
    position: absolute;
    top: -8px;
    transform: rotate(0deg);
    width: 0;
}

.guide-card__tags {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 8px 0 0;
}

.guide-card__tags .tag {
    align-items: center;
    color: #454c55;
    display: flex;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 12px;
    font-weight: 400;
    justify-content: center;
    line-height: 20px;
}

.guide-card__tags .tag:not(:last-child)::after {
    background: #454c55;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 3px;
    margin: 0 4px;
    width: 3px;
}

.guide-card--presentation .guide-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}
.guide-card--presentation .guide-card__content {
    width: calc(100% - 150px - 24px);
}
.guide-card--presentation .guide-card__actions {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media all and (max-width: 992px){
    .guide-card--presentation .guide-card__body {
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    .guide-card--presentation .guide-card__content {
        width: 100%;
    }
    .guide-card--presentation .guide-card__actions {
        width: 100%;
        margin: 24px 0 0 0;
    }
}
@media all and (max-width: 576px){
    .guide-card--presentation .guide-card__actions .btn{
        width: 100%;
    }
}
    /* ===== Toolbox (centrée au survol desktop) ===== */
.guide-card .guide-card__toolbox {
    position: absolute;
    bottom: calc(100% - 8px);
    left: 50%;
    transform: translateX(-50%);
    display: none;
    width: 400px;
    max-width: 100%;
    background: #fff;
    border: 1px solid #d5e3ec;
    border-radius: 3px;
    padding: 16px 24px;
    z-index: 9999;
}

.guide-card .guide-card__toolbox::before {
    content: '';
    width: 30px;
    height: 30px;
    border-radius: 3px;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border-right: 1px solid #d5e3ec;
    border-bottom: 1px solid #d5e3ec;
    background: #fff;
}

.guide-card .guide-card__toolbox__title {
    color: rgb(37, 46, 56);
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    margin: 0 0 8px 0;
}

.guide-card .guide-card__toolbox__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.guide-card .guide-card__toolbox .btn-cart {
    width: calc(100% - 8px - 46px);
}

.guide-card .guide-card__toolbox .btn-start,
.guide-card .guide-card__toolbox .btn-soon,
.guide-card .guide-card__toolbox .add_to_cart {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgb(69, 76, 85);
    border-radius: 0;
    color: rgb(69, 76, 85);
    height: 46px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 30px;
    letter-spacing: .5px;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    text-decoration: none;
}

.guide-card .guide-card__purchase-date {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    margin: 0 0 16px 0;
}

.guide-card .guide-card__purchase-date span:nth-child(1) {
    align-items: center;
    background: rgb(5, 79, 185);
    border-radius: 50%;
    display: flex;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.guide-card .guide-card__purchase-date span:nth-child(1) svg {
    height: 10px;
}

.guide-card .guide-card__purchase-date span:nth-child(1) svg * {
    fill: #fff;
}

.guide-card .guide-card__purchase-date span:nth-child(2) {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    margin: 0 0 0 16px;
    width: calc(100% - 40px);
}

.guide-card .guide-card__toolbox__list {
    margin: 4px 0 16px 0;
    width: 100%;
    list-style: none;
    padding: 0;
}

.guide-card .guide-card__toolbox__item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: rgb(69, 76, 85);
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
}

.guide-card .guide-card__toolbox__item svg {
    width: 14px;
    margin: 0 8px 0 0;
}

.guide-card .guide-card__toolbox__item span {
    width: calc(100% - 14px - 8px);
}

.guide-card .guide-card__toolbox__item--more {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 22px;
    margin: 4px 0 0 0;
}

/* Wishlist */
.guide-card .guide-card__toolbox .add_to_wishlist {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(69, 76, 85);
    background: none;
    border-radius: 0;
    cursor: pointer;
}

.guide-card .guide-card__toolbox .add_to_wishlist svg {
    width: 16px;
}

.guide-card .guide-card__toolbox .add_to_wishlist svg * {
    fill: rgb(69, 76, 85);
}

.guide-card .guide-card__toolbox .add_to_wishlist svg:nth-child(1) {
    display: block;
}

.guide-card .guide-card__toolbox .add_to_wishlist svg:nth-child(2) {
    display: none;
}

.guide-card .guide-card__toolbox .add_to_wishlist.active {
    border-color: red;
}

.guide-card .guide-card__toolbox .add_to_wishlist.active svg * {
    fill: red;
}

.guide-card .guide-card__toolbox .add_to_wishlist.active svg:nth-child(1) {
    display: none;
}

.guide-card .guide-card__toolbox .add_to_wishlist.active svg:nth-child(2) {
    display: block;
}

/* Hover desktop : afficher la toolbox */
@media (min-width: 750px) {
    .guide-card:hover .guide-card__toolbox {
        display: block;
    }
}

@media (max-width: 750px) {
    .guide-card .guide-card__toolbox {
        display: none !important;
    }
}

/* ===== Responsive (guide-card) ===== */
@media all and (max-width: 750px) {
    .guide-card__link {
        flex-direction: column;
    }

    .guide-card__media {
        width: 100%;
        height: 225px;
    }

    .guide-card__body {
        width: 100%;
        padding: 16px 4px 4px 4px;
    }
}

/* ===== Skeleton  ===== */
.guide-skeleton{
    width: 100%;
    position: relative;
    background: var(--color-white, #fff);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Colonnes (calquées sur tes .quiz-card) */
.guide-skeleton__media{
    width: 125px;
    padding: 16px 0;
}
.guide-skeleton__body{
    width: calc(100% - 325px);
    padding: 16px 0 16px 24px;
    display: flex; flex-direction: column; gap: 8px;
}
.guide-skeleton__actions{
    width: 200px;
    padding-right: 20px;
    display: flex; align-items: center; justify-content: flex-end;
}
.guide-skeleton__tags{
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}

/* Tailles */
.guide-skeleton__media.sk { width: 115px; height: 115px; margin: 0 auto; border-radius: 0;}

/* ================= Responsive aligné sur tes règles ================= */
@media all and (max-width: 700px){
    .guide-skeleton__actions{
        width: 100%;
        padding: 0 16px 16px 16px;
        justify-content: center;
    }
    .guide-skeleton__body{ width: calc(100% - 125px); }
}
@media all and (max-width: 500px){
    .guide-skeleton__media{ width: 100%; }
    .guide-skeleton__body{ width: 100%; padding: 16px; }
}

/* =======================
   FAQ CARD
   ======================= */

.faq-card {
    width: 100%;
    background: var(--color-white);
    padding: 16px;
    border-bottom: 1px solid var(--color-thumb-border);
    box-shadow: 0 5px 5px -5px var(--color-thumb-shadow);
}

/* Bouton entête (question + chevron) */
.faq-card .faq-toggle {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.faq-card .faq-toggle:hover .faq-question { text-decoration: underline; }

/* Titre de question */
.faq-card .faq-question {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
}

/* Chevron (lié à aria-expanded) */
.faq-card .faq-toggle::after {
    content: "";
    width: 10px; height: 10px;
    border-right: 2px solid #454c55;
    border-bottom: 2px solid #454c55;
    transform: rotate(45deg);
    justify-self: end;
}
.faq-card .faq-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
    border-right-color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.faq-card .faq-toggle[aria-expanded="true"] .faq-question { color: var(--color-primary); }

/* Catégories */
.faq-card .cats {
    display: flex; flex-wrap: wrap; gap: 4px;
    align-items: center; justify-content: flex-start;
    margin: 8px 0 0;
}
.faq-card .cats span {
    background: #3739404d;
    border-radius: 30px;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 20px;
    padding: 0 8px;
}

/* Corps de réponse */
.faq-card .faq-answer {
    padding: 16px 0 0 0;
    font-size: 16px;
    color: var(--color-black);
    font-family: Inter, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
}
.faq-card .faq-answer ul{
    width: 100%;
    padding-left: 8px;
    margin: 8px 0;
    display: flex; flex-direction: column; gap: 8px;
    align-items: center; justify-content: center;
}
.faq-card .faq-answer ul li{
    width: 100%;
    padding-left: 16px;
    position: relative;
}
.faq-card .faq-answer ul li::before{
    content:'';
    width: 6px; height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    position: absolute; top: 10px; left: 0;
}

/* Focus accessible */
.faq-card .faq-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===== Responsive (faq-card) ===== */
@media all and (max-width: 768px){
    .faq-card { padding: 12px; }
    .faq-card .faq-question { font-size: 17px; }
}

/* ===== Skeleton  ===== */
.faq-skeleton{
    width: 100%;
    position: relative;
    background: var(--color-white, #fff);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.faq-skeleton__body{
    width: 100%;
    padding: 16px 0 16px 24px;
    display: flex; flex-direction: column; gap: 8px;
}


/* =======================
   PRODUCT CARD
   ======================= */

.article-card {
    width: calc(100% / 3 - 16px);
}

.article-card .card__link {
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--color-black);
    background: var(--color-white);
    border: 1px solid var(--color-thumb-border);
    box-shadow: 0 5px 5px -5px var(--color-thumb-shadow);
    display: block;
}

.article-card .card__figure {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #fbfbfb;
    position: relative;
}

.article-card .card__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.article-card .card__figure .tag {
    background: var(--color-primary);
    color: rgb(69, 76, 85);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0;
    line-height: 28px;
    font-size: 12px;
    position: absolute;
    top: 16px;
    left: -8px;
    z-index: 100;
    padding: 0 16px;
}

.article-card .card__figure .tag::before {
    border-color: transparent transparent var(--color-primary) transparent;
    border-style: solid;
    border-width: 0 0 8px 8px;
    content: "";
    height: 0;
    left: 0;
    position: absolute;
    top: -8px;
    transform: rotate(0deg);
    width: 0;
}

.article-card .card__content {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 4px 16px;
    margin: 8px 0;
    width: 100%;
}

.article-card .card__title {
    color: #252e38;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0 0 4px;
}

.article-card:hover .card__title {
    text-decoration: underline;
}

.article-card .card__text {
    font-size: 13px;
    margin: 0 0 8px 0;
}
.article-card__metas {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 8px 0 0;
}
.article-card__metas span {
    align-items: center;
    color: #454c55;
    display: flex;
    font-family: Inter, sans-serif;
    font-optical-sizing: auto;
    font-size: 12px;
    font-weight: 400;
    justify-content: center;
    line-height: 20px;
}
.article-card__metas span:not(:last-child)::after{
    background: #454c55;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 3px;
    margin: 0 4px;
    width: 3px;
}

/* ===== Responsive (article-card) ===== */
@media all and (max-width: 768px) {
    .article-card {
        width: calc(50% - 16px);
    }

    .article-card .card__link {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .article-card .card__figure {
        width: 100%;
        height: 150px;
        aspect-ratio: initial;
    }

    .article-card .card__content {
        width: 100%;
    }
}

@media all and (max-width: 600px) {
    .article-card {
        width: 100%;
    }
}

/* ===== PRODUCT SKELETON (layout = article-card) ===== */
.article-skeleton{
    width: calc(100% / 3 - 16px);
    background: var(--color-white);
    box-shadow: 0 2px 4px #d8e1e8;
    display: block;
}

/* vignette 16/9 au dessus (comme .card__figure) */
.article-skeleton__media{
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 0;
    position: relative;
    overflow: hidden; /* pour le shimmer */
}

/* bloc contenu (comme .card__content) */
.article-skeleton__body{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 16px;
    margin: 8px 0;
    width: 100%;
    gap: 6px;
}

/* tags skeleton (petites pilules) */
.article-skeleton__tags{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

/* ===== Responsive aligné sur .article-card ===== */
@media all and (max-width: 768px){
    .article-skeleton{ width: calc(50% - 16px); }
}
@media all and (max-width: 600px){
    .article-skeleton{ width: 100%; }
}

/* =======================
   GLOSSAIRE CARD
   ======================= */

.glo-card{
    width: calc(100% / 3 - 16px);
    position:relative;
    background:var(--color-white);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction: column;
    flex-wrap:wrap;
    border-bottom:1px solid var(--color-thumb-border);
    box-shadow:0 5px 5px -5px var(--color-thumb-shadow);
    padding: 16px;
}
.glo-card__badge {
    background: var(--color-primary);
    color: rgb(69, 76, 85);
    font-weight: 600;
    line-height: 28px;
    font-size: 12px;
    position: absolute;
    bottom: 16px;
    left: -8px;
    z-index: 100;
    padding: 0 16px;
}

.glo-card__badge::before {
    border-color: transparent transparent var(--color-primary) transparent;
    border-style: solid;
    border-width: 0 0 8px 8px;
    content: "";
    height: 0;
    left: 0;
    position: absolute;
    top: -8px;
    transform: rotate(0deg);
    width: 0;
}
.glo-card__body{
    align-items:flex-start;
    display:flex;
    flex-direction:column;
    justify-content:center;
    width: 100%;
}

.glo-card__title{
    color:#373940;
    font-family:Inter, sans-serif;
    font-optical-sizing:auto;
    font-size:16px;
    font-style:normal;
    font-weight:600;
    letter-spacing:0;
    line-height:20px;
    margin:0 0 4px 0;
    padding-left:12px;
}
.glo-card__title::before{
    content:'';
    width: 3px;
    height: 100%;
    background: var(--color-primary);
    position: absolute;
    top:0;
    left:0;

}
.glo-card__title a{
    color:inherit;
    text-decoration:none;
}
.glo-card__title a:hover{ text-decoration:underline; }
.glo-card__excerpt{
    color:#454c55;
    font-size:14px;
    margin:6px 0 0 0;
}
.glo-card__actions{
    align-items:center;
    display:flex;
    justify-content:flex-end;
    width: 100%;
    margin: 24px 0 0 0;
}
.glo-card__link{
    text-decoration:none;
    align-items:center;
    color:var(--color-text);
    display:flex;
    font-size:14px;
    font-weight:550;
    line-height: 1.5;
    justify-content:center;
}
.glo-card__link svg{ margin:0 0 0 8px; width:14px; }
.glo-card__link svg * {
    fill:var(--color-text);
}
.glo-card__link:hover {
    text-decoration: underline;
}
@media all and (max-width:992px){
    .glo-card {
        width: calc(100% / 2 - 16px);
    }
}
@media all and (max-width:576px){
    .glo-card {
        width: 100%;
    }
}

/* =======================
   GLOSSAIRE SKELETON
   ======================= */

.glo-skeleton{
    width: calc(100% / 3 - 16px);
    position:relative;
    background:var(--color-white);
    margin:0 0 16px 0;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction: column;
    flex-wrap:wrap;
    padding: 16px;
}
.glo-skel__body{
    width: 100%;
    display:flex; flex-direction:column; gap:8px;
}

.glo-skel__actions{
    width: 100%;
    margin: 24px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* éléments animés */
.glo-skel__actions .sk--btn{    width: 150px; height: 12px; }


@media all and (max-width: 992px){
    .glo-skeleton {
        width: calc(100% / 2 - 16px);
    }
}

@media all and (max-width: 576px){
    .glo-skeleton {
        width: 100%;
    }
}
