/* --- TITRES DE SECTIONS --- */
.ws-resource-section h2 {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    color: var(--color-ws-ressource-section-h2);
    /* CHANGEMENT : 3px reste en px pour la précision du trait */
    border-bottom: 3px solid var(--color-ws-ressource-section-h2-border);
    /* CHANGEMENT : 10px = 0.625rem | 20px = 1.25rem */
    padding-bottom: 0.625rem;
    margin-bottom: 1.25rem;
    margin-top: var(--space-xl-plus);
}

.ws-resource-section:first-of-type h2 {
    margin-top: 0;
}

.ws-section-title-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    /* CHANGEMENT : 45px / 16 = 2.8125rem */
    width: 2.8125rem;
    height: 2.8125rem;
    background-color: var(--color-ws-section-title-icon-box);
    border: 2px solid var(--color-ws-section-title-icon-box-border);
    border-radius: var(--radius-sm);
    /* CHANGEMENT : 15px = 0.9375rem */
    margin-right: 0.9375rem;
    font-size: 1.1em;
    flex-shrink: 0;
    box-shadow: var(--shadow-z1);
}

.ws-section-title-text {
    line-height: 1.2;
}

/* Description de section */
.ws-resource-section .ws-description {
    text-align: center;
    color: var(--color-description);
    /* CHANGEMENT : 800px = 50rem */
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
    /* CHANGEMENT : 25px = 1.5625rem */
    margin-bottom: 1.5625rem;
}

/* --- GRILLE ET CARTES --- */
.ws-cards-grid {
    display: grid;
    /* CHANGEMENT : 320px = 20rem */
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    /* CHANGEMENT : 15px = 0.9375rem */
    gap: 0.9375rem;
}

.ws-card {
    display: block;
    /* CHANGEMENT : 15px = 0.9375rem */
    padding: 0.9375rem;
    border: 1px solid var(--color-ws-card);
    border-radius: var(--radius-md);
    background-color: var(--source-color-white-transparent) !important;
    cursor: default;
    overflow: hidden;
    box-shadow: var(--shadow-z2);
    position: relative;
}

/* --- BLOC IMAGE ET BOUTON (Flottant à droite) --- */
.ws-card-right-block {
    float: right;
    /* CHANGEMENT : 160px = 10rem */
    width: 10rem;
    /* CHANGEMENT : 15px = 0.9375rem | 10px = 0.625rem */
    margin-left: 0.9375rem;
    margin-bottom: 0.625rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.ws-card-image-icon {
    /* CHANGEMENT : 150px = 9.375rem */
    width: 9.375rem;
    height: 9.375rem;
    object-fit: cover;
    border-radius: 50%;
    border: solid 2px #000;
    box-shadow: var(--shadow-z2);
}

.ws-card-action-btn {
    /* CHANGEMENT : 10px = 0.625rem */
    margin-top: 0.625rem;
    /* CHANGEMENT : 5px 10px = 0.3125rem 0.625rem */
    padding: 0.3125rem 0.625rem;
    background-color: var(--color-acrd-action-btn);
    color: var(--color-ws-card-action-btn);
    font-size: 0.9em;
    font-weight: normal;
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none;
    display: flex;
    white-space: nowrap;
    width: max-content;
    min-width: 100%;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 11;
    box-shadow: var(--shadow-z2);
}

.ws-card-action-btn::before {
    content: "";
    background-image: url("/asset/img/gl/hand-pointer.svg");
    display: inline-block;
    width: 1.3em;
    height: 1.3em;
    /* CHANGEMENT : 5px = 0.3125rem */
    margin-right: 0.3125rem;
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

/* --- TEXTE DE LA CARTE --- */
.ws-card-title {
    font-size: 1.4rem;
    color: var(--color-website-card-title);
    /* CHANGEMENT : 5px = 0.3125rem */
    margin-bottom: 0.3125rem;
    line-height: 1.2;
    margin-top: 0;
}

.ws-card-title-meta {
    font-size: 0.75em;
    color: var(--color-ws-card-title-meta);
    font-style: italic;
    /* CHANGEMENT : 5px = 0.3125rem | 10px = 0.625rem */
    margin-top: 0.3125rem;
    margin-bottom: 0.625rem;
    display: block;
}

.ws-card-desc {
    display: block;
    font-size: 0.95em;
    line-height: 1.4;
    /* CHANGEMENT : 15px = 0.9375rem | 8px = 0.5rem */
    padding-top: 0.9375rem;
    margin-top: 0.5rem;
    position: relative;
    color: var(--color-ws-card-desc);
}

/* Ligne décorative */
.ws-card-desc::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 39%;
    height: 3px;
    background-image: linear-gradient(to right, var(--color-ws-card-desc) 65%, rgba(255,255,255,0) 0%);
    /* CHANGEMENT : 15px 2px = 0.9375rem 2px */
    background-size: 0.9375rem 2px;
    background-repeat: repeat-x;
}