:root {
    --custom-muted: rgb(108, 117, 125);
    --pico-card-sectionning-background-color: #f8f9fa;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --card-radius: 12px;
}

p {
    margin-bottom: 0;
    color: var(--custom-muted);
}

.text-align-left {
    text-align: left;
}

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

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

.text-muted {
    color: var(--custom-muted);
}

.text-red {
    color: red;
}

.text-dark {
    color: #4d535e;
}

.text-muted-dark {
    color: var(--pico-muted-color);
}

.text-xs {
    font-size: 0.7em;
}

.text-sm {
    font-size: 0.9rem;
}

.text-lg {
    font-size: 1.2rem;
}

.font-normal {
    font-weight: normal;
}

.font-bold {
    font-weight: bold;
}

.uppercase {
    text-transform: uppercase;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.flex-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-around;
}

.overflow-auto {
    overflow: auto;
}

.mb-025 {
    margin-bottom: 0.25rem;
}

.mb-03 {
    margin-bottom: 0.3rem;
}

.mb-05 {
    margin-bottom: 0.5rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-025 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 2rem;
}

.pb-05 {
    padding-bottom: 0.5rem;
}

.border-bottom {
    border-bottom: 1px solid var(--pico-muted-border-color);
}

.border-bottom-2 {
    border-bottom: 2px solid var(--pico-muted-border-color);
}

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.notification {
    background-color: var(--pico-background-color);
    color: var(--pico-color);
    padding: 1rem;
    border-radius: var(--pico-border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--pico-primary-color);
    animation: slideIn 0.3s ease-out forwards;
    opacity: 0;
    transform: translateX(100%);
}

.notification.info {
    border-left-color: var(--pico-primary-color);
}

.notification.error {
    border-left-color: #d32f2f;
}

.notification.success {
    border-left-color: #388e3c;
}

.notification.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.hero-section {
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--custom-muted);
}

.cta-section {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 3rem 1.5rem;
    background-color: var(--pico-card-sectionning-background-color);
    border-radius: var(--card-radius);
    border: 2px dashed var(--pico-muted-border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--pico-color);
}

.cta-description {
    color: var(--custom-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 1rem;
    text-align: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    margin-bottom: 0;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.cancel-button {
    background-color: var(--pico-card-background-color);
    color: var(--pico-contrast-background);
    border: 2px solid var(--pico-muted-border-color);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    box-shadow: var(--pico-card-box-shadow);
    background-color: var(--pico-card-background-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.search-container {
    margin: 0 auto;
    position: relative;
}

.search-bar {
    border-radius: 12px;
}

.filters-section {
    margin: 0 auto 1rem auto;
    text-align: left;
}

.tags-filter-list {
    margin-top: 0.5rem;
}

.filter-tag {
    font-size: 0.9rem;
    padding: 0.2rem 0.6rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0;
}

.filter-tag:hover {
    background-color: var(--pico-muted-border-color);
    color: var(--pico-color);
    text-decoration: none;
}

.filter-tag.active {
    background-color: var(--pico-primary-color);
    color: #64748b;
    ;
    border-color: var(--pico-primary-color);
}

.logo-sm {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-md {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-lg-container {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border: 1px solid var(--pico-muted-border-color);
    font-size: 3rem;
    color: var(--pico-muted-color);
    overflow: hidden;
    background-color: white;
    border-radius: 12px;
    object-fit: contain;
}


.header-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
}

.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.solutions-grid {
    display: grid;
    gap: 1rem;
}

.solution-container {
    margin: 0 2rem;
    width: 100%;
}

.solution-title-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.metadata-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card-link:hover {
    text-decoration: none;
}

.solution-card {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    background-color: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
    align-items: flex-start;
}

.solution-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    width: 100%;
}

.card-link:hover .solution-card {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--pico-primary-color);
}

.card-logo,
.card-logo-placeholder {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background-color: white;
    border-radius: 12px;
    padding: 6px;
    border: 1px solid var(--pico-muted-border-color);
    object-fit: contain;
}

.card-logo-placeholder {
    background-color: var(--pico-card-sectionning-background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--pico-muted-color);
}

.card-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    margin-left: 1rem;
}

.card-header-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--pico-color);
}

.card-meta {
    font-size: 0.75rem;
    color: var(--custom-muted);
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Scoring & Badges --- */
.score-badge-home {
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    min-width: 85px;
    text-align: center;
    line-height: 1;
}

.score-high {
    background-color: rgba(0, 107, 61, 0.1);
    color: #006B3D;
    border: 1px solid #006B3D;
}

.score-med {
    background-color: rgba(255, 152, 14, 0.1);
    color: #FF980E;
    border: 1px solid #FF980E;
}

.score-low {
    background-color: rgba(211, 33, 44, 0.1);
    color: #D3212C;
    border: 1px solid #D3212C;
}

.summary-score {
    font-weight: bold;
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background-color: var(--pico-card-background-color);
    color: var(--pico-color);
    border: 1px solid var(--pico-muted-border-color);
    margin-left: auto;
    margin-right: 1rem;
}

.summary-flex {
    border: 1px solid var(--pico-muted-border-color);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.summary-flex .score-badge-home {
    margin-left: auto;
    margin-right: 0.5rem;
    order: 2;
}

.summary-flex span:first-child {
    order: 1;
}

.summary-flex::after {
    order: 2;
}

.tile-wrapper {
    display: flex;
}

.tile-label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    width: 100%;
    min-height: 160px;
    padding: 1.5rem 1rem;
    border: 2px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: var(--pico-card-background-color);
    color: var(--custom-muted);
}

.tile-label:hover {
    border-color: var(--custom-muted);
    background-color: var(--pico-card-sectionning-background-color);
}

.tile-header {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    display: block;
    color: var(--pico-color);
}

.tile-text {
    font-size: 0.85rem;
    margin-top: auto;
    margin-bottom: auto;
}

.tile-input[value="0"]:checked+.tile-label,
.score-card-0 {
    background-color: rgba(211, 33, 44, 0.1);
    border-color: #D3212C;
    color: #D3212C;
}

.tile-input[value="0"]:checked+.tile-label .tile-header {
    color: #D3212C;
}

.tile-input[value="1"]:checked+.tile-label,
.score-card-1 {
    background-color: rgba(255, 152, 14, 0.1);
    border-color: #FF980E;
    color: #FF980E;
}

.tile-input[value="1"]:checked+.tile-label .tile-header {
    color: #FF980E;
}

.tile-input[value="3"]:checked+.tile-label,
.score-card-3 {
    background-color: rgba(6, 156, 86, 0.1);
    border-color: #069C56;
    color: #069C56;
}

.tile-input[value="3"]:checked+.tile-label .tile-header {
    color: #069C56;
}

.tile-input[value="5"]:checked+.tile-label,
.score-card-5 {
    background-color: rgba(0, 107, 61, 0.1);
    border-color: #006B3D;
    color: #006B3D;
}

.tile-input[value="5"]:checked+.tile-label .tile-header {
    color: #006B3D;
}

.tile-input[value="-1"]:checked+.tile-label,
.score-card-na {
    background-color: rgba(108, 117, 125, 0.1);
    border-color: var(--custom-muted);
    color: var(--custom-muted);
}

.justification-group {
    display: none;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-left: 4px solid var(--custom-muted);
    background-color: var(--pico-card-sectionning-background-color);
    border-radius: 0 4px 4px 0;
}

.justification-group.visible {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.justification-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.justification-group textarea {
    margin-bottom: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.evidence-box {
    border-left: 2px solid var(--pico-muted-border-color);
    padding: 1rem 1.5rem;
    height: 100%;
    border-radius: 4px;
    font-size: 0.9rem;
}

.evidence-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.evidence-row-split {
    display: grid;
    gap: 1.5rem;
}

.evidence-label {
    display: block;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.evidence-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.solution-header-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.solution-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.solution-title {
    margin: 0;
}

.btn-edit {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
}

.global-score-card {
    text-align: center;
    min-width: 150px;
    padding: 1.5rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    background: var(--pico-card-background-color);
    box-shadow: var(--pico-card-box-shadow);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.chart-article {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.radar-chart-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    min-height: 300px;
}

.radar-responsive {
    width: 100%;
    height: auto;
    max-width: 500px;
    aspect-ratio: 1 / 1;
}

.pillar-list-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    padding-bottom: 0.5rem;
}

.pillar-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.pillar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.pillar-score {
    color: var(--pico-muted-color);
}

.criteria-card legend {
    width: 100%;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    padding-bottom: 0.5rem;
}

.criteria-card legend h5 {
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.criteria-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.result-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border: 2px solid;
    border-radius: var(--pico-border-radius);
    height: 100%;
    min-height: 140px;
}

.result-header {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.tag-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
}

.tag:hover {
    background-color: var(--pico-muted-border-color);
    color: var(--pico-color);
}

.source-link {
    word-break: break-all;
    font-size: 0.9em;
}

.alert-error {
    background-color: #ffe6e6;
    border-color: #ffcccc;
    color: #cc0000;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.container {
    flex: 1;
}

.footer-container {
    padding: 3rem 0;
    margin-top: 2rem;
    background-color: var(--pico-card-sectionning-background-color);
    border-top: 1px solid var(--pico-muted-border-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h4 {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--custom-muted);
    max-width: 300px;
}

.footer-links h5 {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--pico-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--custom-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--pico-primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pico-muted-border-color);
    color: var(--custom-muted);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .justification-grid,
    .solution-header-grid,
    .criteria-grid {
        grid-template-columns: 1fr;
    }

    .solution-header-grid {
        text-align: center;
        justify-items: center;
    }

    .logo-lg-container {
        margin-bottom: 1rem;
    }
}

.blog-container {
    max-width: 1000px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    background-color: var(--pico-card-background-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pico-card-box-shadow);
    border-color: var(--pico-primary-color);
}

.blog-card.unpublished {
    border: 2px dashed #f59e0b;
    background-color: #fffaf0;
}

.badge-unpublished {
    background-color: #f59e0b;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.blog-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.blog-title {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.blog-title a {
    color: var(--pico-color);
    text-decoration: none;
}

.blog-title a:hover {
    color: var(--pico-primary-color);
}

.blog-preview {
    font-size: 0.9rem;
    color: var(--custom-muted);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.blog-footer {
    margin-top: auto;
}

.cta-read-more {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    width: 100%;
    text-align: center;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.card-body {
    background-color: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    text-align: left;
}

.card-body:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--pico-primary-color);
}

.card-body.unpublished {
    border: 2px dashed #f59e0b;
    background-color: #fffaf0;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.card-title a {
    color: var(--pico-color);
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    color: var(--pico-primary-color);
}

.media-group {
    display: flex;
    align-items: center;
    margin-top: auto;
    margin-top: 1rem;
    padding-top: 0.7rem;
    max-width: 80%;
    border-top: 1px solid var(--pico-muted-border-color);
}

.media-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lead-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--pico-color);
    line-height: 1.2;
}

.nk-list-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.75rem;
    color: var(--custom-muted);
    line-height: 1.4;
}

.blog-post-container {
    margin: 0 auto;
    padding-top: 2rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    text-decoration: none;
    font-weight: bold;
}

.blog-header {
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    padding-bottom: 2rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.blog-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-content h2 {
    margin-top: 2rem;
}

.blog-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

.blog-content blockquote {
    border-left: 4px solid var(--pico-primary-color);
    padding-left: 1rem;
    color: var(--custom-muted);
    font-style: italic;
}

.card-section {
    padding: 2rem;
    background-color: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    box-shadow: var(--pico-card-box-shadow);
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
}

.align-items-center {
    align-items: center;
}

@media (min-width: 992px) {
    .evidence-row-split {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.referentiel-container {
    max-width: 1400px;
    margin: 0 auto;
}

.referentiel-header {
    margin-bottom: 2rem;
    text-align: center;
}

.referentiel-table-wrapper {
    background: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    box-shadow: var(--pico-card-box-shadow);
    border: 1px solid var(--pico-muted-border-color);
    overflow: hidden;
}

.referentiel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.referentiel-table th {
    background-color: var(--pico-card-sectionning-background-color);
    font-weight: 800;
    text-transform: uppercase;
    padding: 1rem;
    color: var(--pico-muted-color);
    font-size: 0.8rem;
    border-bottom: 2px solid var(--pico-muted-border-color);
    text-align: left;
}

.referentiel-table td {
    padding: 1.2rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

.referentiel-table tr:last-child td {
    border-bottom: none;
}

.col-pillar {
    width: 15%;
    background-color: #fafbfc;
    border-right: 1px solid var(--pico-muted-border-color);
}

.pillar-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--pico-primary-background);
    color: var(--pico-primary-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    border: 1px solid var(--pico-primary-border);
}

.col-criteria {
    width: 30%;
}

.criteria-title {
    font-weight: 700;
    color: var(--pico-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.criteria-desc {
    font-size: 0.9rem;
    color: var(--custom-muted);
    line-height: 1.5;
}

.col-choices {
    width: 55%;
}

.choices-list {
    display: grid;
    gap: 0.5rem;
}

.choice-item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background-color: #fff;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.choice-item:hover {
    background-color: var(--pico-card-sectionning-background-color);
    border-color: var(--pico-muted-border-color);
}

.score-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

.score-tag-0 {
    background-color: rgba(211, 33, 44, 0.1);
    color: #D3212C;
    border: 1px solid #D3212C;
}

.score-tag-1 {
    background-color: rgba(255, 152, 14, 0.1);
    color: #FF980E;
    border: 1px solid #FF980E;
}

.score-tag-3 {
    background-color: rgba(6, 156, 86, 0.1);
    color: #069C56;
    border: 1px solid #069C56;
}

.score-tag-5 {
    background-color: rgba(0, 107, 61, 0.1);
    color: #006B3D;
    border: 1px solid #006B3D;
}

.choice-text {
    font-size: 0.9rem;
    color: var(--pico-color);
}

@media (max-width: 992px) {

    .referentiel-table,
    .referentiel-table tbody,
    .referentiel-table tr,
    .referentiel-table td {
        display: block;
        width: 100%;
    }

    .referentiel-table thead {
        display: none;
    }

    .referentiel-table tr {
        margin-bottom: 2rem;
        border: 1px solid var(--pico-muted-border-color);
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    .col-pillar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--pico-muted-border-color);
        background-color: var(--pico-card-sectionning-background-color);
        padding: 0.75rem 1rem;
    }

    .pillar-badge {
        margin-bottom: 0;
        margin-right: 0.5rem;
        display: inline-block;
    }

    .col-pillar div {
        display: inline-block;
    }

    .col-criteria {
        width: 100%;
        padding-bottom: 0.5rem;
        border-bottom: none;
    }

    .col-choices {
        width: 100%;
        padding-top: 0;
        background-color: #fff;
    }
}

/* Animation de chargement des cartes */
.solution-card {
    animation: fadeInScale 0.4s ease-out forwards;
    opacity: 0;
    /* État initial avant l'animation */
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optionnel : Délai progressif pour un effet "cascade" (stagger) */
/* On cible les premiers éléments pour l'effet visuel */
.card-link:nth-child(1) .solution-card {
    animation-delay: 0.05s;
}

.card-link:nth-child(2) .solution-card {
    animation-delay: 0.1s;
}

.card-link:nth-child(3) .solution-card {
    animation-delay: 0.15s;
}

.card-link:nth-child(4) .solution-card {
    animation-delay: 0.2s;
}

.results-count {
    margin: 0.7rem 0;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.3s;
}
