/* Fiches pratiques : index, categorie et article. S'appuie sur landing.css pour le fil d'Ariane, le titre et le bandeau de contact. */
.yr-gd-hero {
    padding: 64px 0 40px;
}

.yr-gd-hero-rail {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 32px 64px;
}

.yr-gd-hero-text {
    flex: 1.4 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.yr-gd-hero-text .yr-lp-lead {
    max-width: 640px;
}

.yr-gd-search {
    flex: 1 1 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yr-gd-search label {
    font-size: var(--yr-text-caption);
    font-weight: 600;
}

.yr-gd-search-field {
    position: relative;
    display: flex;
}

.yr-gd-search-field svg {
    position: absolute;
    left: 16px;
    top: 17px;
}

.yr-gd-search-field input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px 0 46px;
    border: 0;
    border-radius: 10px;
    background: var(--yr-blanc);
    box-shadow: inset 0 0 0 1px var(--yr-encre-200);
    color: var(--yr-encre-900);
    font-family: var(--yr-font);
    font-size: var(--yr-text-body-lg);
}

.yr-gd-search-field input::placeholder {
    color: var(--yr-encre-300);
}

.yr-gd-search-field input:focus {
    outline: 0;
    box-shadow: inset 0 0 0 1px var(--yr-sceau-600), 0 0 0 3px rgba(79, 179, 161, .45);
}

/* Categories */
.yr-gd-filters {
    padding: 0 0 32px;
}

.yr-gd-filters-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yr-gd-filter {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--yr-blanc);
    box-shadow: inset 0 0 0 1px var(--yr-encre-200);
    color: var(--yr-encre-900);
    display: flex;
    align-items: center;
    font-size: var(--yr-text-small);
    font-weight: 600;
    text-decoration: none;
}

.yr-gd-filter--active {
    background: var(--yr-encre-900);
    box-shadow: none;
    color: var(--yr-blanc);
}

/* Fiche a la une */
.yr-gd-featured {
    padding: 0 0 56px;
}

.yr-gd-feature {
    border-radius: 12px;
    background: var(--yr-blanc);
    box-shadow: 0 0 0 1px var(--yr-ligne);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    color: var(--yr-encre-900);
    text-decoration: none;
}

.yr-gd-feature-media {
    position: relative;
    flex: 1 1 420px;
    min-height: 320px;
    overflow: hidden;
    background: var(--yr-ligne);
}

.yr-gd-feature-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yr-gd-feature-body {
    flex: 1 1 420px;
    min-width: 0;
    padding: clamp(24px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.yr-gd-feature-category {
    font-family: var(--yr-mono);
    font-size: var(--yr-text-label);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--yr-sceau-600);
}

.yr-gd-card-title.yr-gd-feature-title {
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.yr-gd-feature-excerpt {
    font-size: var(--yr-text-body-lg);
    line-height: 1.6;
    color: var(--yr-encre-700);
}

.yr-gd-feature-more {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--yr-text-body);
    font-weight: 600;
    color: var(--yr-sceau-600);
}

/* Liste */
.yr-gd-list {
    padding: 0 0 88px;
}

.yr-gd-list-rail {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.yr-gd-list-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.yr-gd-list-head h2,
.yr-gd-related h2 {
    margin: 0;
    font-size: var(--yr-text-title-md);
    font-weight: 700;
    letter-spacing: -.02em;
}

.yr-gd-list-head span {
    font-size: var(--yr-text-small);
    color: var(--yr-encre-500);
}

.yr-gd-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.yr-gd-item {
    display: flex;
    min-width: 0;
}

.yr-gd-card {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    background: var(--yr-blanc);
    box-shadow: 0 0 0 1px var(--yr-ligne);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--yr-encre-900);
    text-decoration: none;
}

.yr-gd-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    background: var(--yr-ligne);
}

.yr-gd-card-body {
    flex: 1;
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yr-gd-card-category {
    font-family: var(--yr-mono);
    font-size: var(--yr-text-micro);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--yr-encre-500);
}

.yr-gd-card-title {
    font-size: var(--yr-text-subtitle);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.015em;
}

.yr-gd-card-excerpt {
    font-size: var(--yr-text-small);
    line-height: 1.55;
    color: var(--yr-encre-700);
}

.yr-gd-card-read {
    margin-top: auto;
    padding-top: 10px;
    font-size: var(--yr-text-caption);
    color: var(--yr-encre-500);
}

.yr-gd-empty {
    margin: 0;
    font-size: var(--yr-text-body-lg);
    line-height: 1.6;
    color: var(--yr-encre-700);
}

.yr-gd-pages {
    padding-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.yr-gd-page {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--yr-blanc);
    box-shadow: inset 0 0 0 1px var(--yr-encre-200);
    color: var(--yr-encre-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--yr-mono);
    font-size: var(--yr-text-small);
    text-decoration: none;
}

.yr-gd-page--current {
    background: var(--yr-encre-900);
    box-shadow: none;
    color: var(--yr-blanc);
}

@media (hover: hover) {
    .yr-gd-filter:hover,
    .yr-gd-page:hover {
        box-shadow: inset 0 0 0 1px var(--yr-encre-900);
    }

    .yr-gd-filter--active:hover,
    .yr-gd-page--current:hover {
        box-shadow: none;
    }

    .yr-gd-card:hover,
    .yr-gd-feature:hover {
        box-shadow: 0 0 0 1px var(--yr-sceau-600);
    }

    .yr-gd-card:hover .yr-gd-card-title,
    .yr-gd-feature:hover .yr-gd-card-title {
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

/* Article */
.yr-gd-article-head {
    padding: 56px 0 40px;
}

.yr-gd-article-head-rail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.yr-gd-article-title {
    max-width: 900px;
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.yr-gd-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    font-size: var(--yr-text-small);
    color: var(--yr-encre-500);
}

.yr-gd-article-image {
    width: 100%;
    margin-top: 16px;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: var(--yr-ligne);
}

.yr-gd-article-layout {
    padding-bottom: 88px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px 56px;
}

.yr-gd-toc {
    position: sticky;
    top: 104px;
    flex: 1 1 200px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.yr-gd-toc-title,
.yr-gd-offer-label {
    font-family: var(--yr-mono);
    font-size: var(--yr-text-micro);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--yr-encre-500);
}

.yr-gd-toc-title {
    padding-bottom: 8px;
}

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

.article-toc-list a {
    padding: 8px 0 8px 12px;
    box-shadow: inset 1px 0 0 var(--yr-encre-200);
    display: block;
    font-size: var(--yr-text-small);
    line-height: 1.4;
    color: var(--yr-encre-700);
    text-decoration: none;
}

.article-toc-list a.active {
    box-shadow: inset 2px 0 0 var(--yr-encre-900);
    font-weight: 600;
    color: var(--yr-encre-900);
}

.yr-gd-prose {
    flex: 999 1 560px;
    min-width: 0;
    max-width: 700px;
}

.yr-gd-prose > :first-child {
    margin-top: 0;
}

.yr-gd-prose h2 {
    margin: 48px 0 0;
    scroll-margin-top: 104px;
    font-size: var(--yr-text-title-lg);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.yr-gd-prose h3 {
    margin: 28px 0 0;
    scroll-margin-top: 104px;
    font-size: var(--yr-text-lead);
    font-weight: 700;
    letter-spacing: -.015em;
}

.yr-gd-prose h4 {
    margin: 24px 0 0;
    font-size: var(--yr-text-lead-sm);
    font-weight: 700;
}

.yr-gd-prose p,
.yr-gd-prose ul,
.yr-gd-prose ol,
.yr-gd-prose blockquote {
    margin: 16px 0 0;
    font-size: var(--yr-text-lead-sm);
    line-height: 1.7;
    color: var(--yr-encre-700);
}

.yr-gd-prose ul,
.yr-gd-prose ol {
    padding-left: 22px;
}

.yr-gd-prose li + li {
    margin-top: 6px;
}

.yr-gd-prose strong {
    color: var(--yr-encre-900);
}

.yr-gd-prose a {
    color: var(--yr-sceau-600);
    text-decoration-color: rgba(15, 107, 93, .35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.yr-gd-prose img {
    max-width: 100%;
    height: auto;
    margin-top: 16px;
    border-radius: 12px;
}

.yr-gd-prose blockquote {
    padding-left: 16px;
    border-left: 1px solid var(--yr-encre-200);
}

.yr-gd-prose table {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
    font-size: var(--yr-text-body);
}

.yr-gd-prose th,
.yr-gd-prose td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--yr-ligne);
    text-align: left;
    vertical-align: top;
}

.yr-gd-prose .article-callout {
    margin-top: 16px;
    padding: 20px 22px;
    border-radius: 12px;
    background: var(--yr-blanc);
    box-shadow: 0 0 0 1px var(--yr-ligne);
    font-size: var(--yr-text-body-lg);
}

.yr-gd-prose .yr-gd-disclaimer {
    margin-top: 32px;
    font-size: var(--yr-text-small);
    line-height: 1.55;
    color: var(--yr-encre-500);
}

.yr-gd-aside {
    position: sticky;
    top: 104px;
    flex: 1 1 280px;
    max-width: 100%;
}

.yr-gd-offer {
    padding: 24px;
    border-radius: 12px;
    background: var(--yr-blanc);
    box-shadow: 0 0 0 1px var(--yr-ligne);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.yr-gd-offer strong {
    font-size: var(--yr-text-subtitle);
    line-height: 1.3;
    letter-spacing: -.01em;
}

.yr-gd-offer dl {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-size: var(--yr-text-small);
}

.yr-gd-offer dl div {
    padding: 10px 0;
    border-top: 1px solid var(--yr-ligne);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.yr-gd-offer dt {
    color: var(--yr-encre-700);
}

.yr-gd-offer dd {
    margin: 0;
    font-family: var(--yr-mono);
    text-align: right;
}

.yr-gd-offer .yr-btn {
    width: 100%;
}

.yr-gd-offer-link {
    font-size: var(--yr-text-caption);
    font-weight: 600;
    text-align: center;
}

.yr-gd-related {
    padding: 72px 0 96px;
    background: var(--yr-blanc);
    border-top: 1px solid var(--yr-ligne);
}

@media (max-width: 899px) {
    .yr-gd-hero {
        padding: 24px 0 24px;
    }

    .yr-gd-hero-rail {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .yr-gd-hero-text,
    .yr-gd-search {
        flex: 0 0 auto;
    }

    .yr-rail.yr-gd-hero-rail,
    .yr-rail.yr-gd-filters-rail,
    .yr-gd-featured .yr-rail,
    .yr-rail.yr-gd-list-rail,
    .yr-rail.yr-gd-article-head-rail,
    .yr-rail.yr-gd-article-layout {
        padding-left: 20px;
        padding-right: 20px;
    }

    .yr-gd-filters {
        padding: 0 0 24px;
    }

    .yr-gd-featured {
        padding: 0 0 32px;
    }

    .yr-gd-feature {
        flex-direction: column;
    }

    .yr-gd-feature-media {
        flex: 0 0 auto;
        min-height: 200px;
    }

    .yr-gd-feature-body {
        flex: 0 0 auto;
    }

    .yr-gd-list {
        padding: 0 0 48px;
    }

    .yr-gd-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .yr-gd-article-head {
        padding: 24px 0 24px;
    }

    .yr-gd-article-title {
        font-size: 30px;
    }

    .yr-gd-article-image {
        margin-top: 8px;
        aspect-ratio: 3 / 2;
    }

    .yr-gd-article-layout {
        padding-bottom: 48px;
        flex-flow: column nowrap;
        align-items: stretch;
        gap: 32px;
    }

    .yr-gd-toc,
    .yr-gd-aside {
        position: static;
        flex: 0 0 auto;
    }

    .yr-gd-prose {
        flex: 0 0 auto;
        max-width: none;
    }

    .yr-gd-prose h2 {
        margin-top: 36px;
        font-size: var(--yr-text-title-md);
    }

    .yr-gd-prose p,
    .yr-gd-prose ul,
    .yr-gd-prose ol,
    .yr-gd-prose blockquote {
        font-size: var(--yr-text-body-lg);
    }

    .yr-gd-prose table {
        display: block;
        overflow-x: auto;
    }

    .yr-gd-related {
        padding: 40px 0 48px;
    }
}

/* Couleur des icones, portee par le CSS (stroke="currentColor"). */
.yr-gd-search-field svg {
    color: var(--yr-encre-500);
}

@media (pointer: coarse) {
    .yr-gd-filter {
        min-height: 44px;
    }
}
