/* Vue détail d'une section — layout type "fiche" (image / contenu / carte aside) */

.page-sections.single .section-detail .cols-wrapper {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 280px);
    gap: 2.5rem;
    align-items: start;
}

.page-sections.single .col-content .subtitle {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--color-primary, #c0392b);
    margin: 0.25rem 0 1.25rem;
}

.page-sections.single .related-list {
    margin-top: 1.5rem;
}

.page-sections.single .related-list .label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-sections.single .related-list ul {
    margin: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--color-primary, #c0392b);
    list-style: none;
}

.page-sections.single .related-list li {
    margin: 0.25rem 0;
}

/* Carte aside (type "Coordonnées" de la maquette) */
.page-sections.single .card-newsletter {
    background: var(--color-primary, #c0392b);
    color: #fff;
    border-radius: 6px;
    padding: 1.5rem;
}

.page-sections.single .card-newsletter .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.page-sections.single .card-newsletter a {
    color: #fff;
    text-decoration: underline;
}

.page-sections.single .card-newsletter .module-newsletter-form {
    padding: 0;
}

.page-sections.single .card-newsletter .module-newsletter-form .container {
    padding: 0;
    max-width: none;
}

/* Rangée de contenus liés en bas de fiche */
.page-sections.single .section-related {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.page-sections.single .section-related .related-block ul {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.page-sections.single .section-related .related-block li {
    margin: 0.35rem 0;
}

@media (max-width: 1024px) {
    .page-sections.single .section-detail .cols-wrapper {
        grid-template-columns: 1fr;
    }
}

/* L'intro du bloc publications (fiche section) */
.page-sections.single .publications-related .publications-intro {
    margin: 0.75rem 0 1.25rem;
}

/* Effet nickl animation-underline sur les liens de la fiche section
   (équipe, programmes, fouilles, agenda, appels, actualités) */
.page-sections.single .related-list a,
.page-sections.single .section-related .related-block a:not(.btn) {
    text-decoration: none;
    background: linear-gradient(to right, currentColor, currentColor) no-repeat 100% 100%;
    background-size: 0 1px;
}

.page-sections.single .related-list a:not(:active),
.page-sections.single .section-related .related-block a:not(.btn):not(:active) {
    transition: color 0.3s ease, background-size 0.3s ease;
}

.page-sections.single .related-list a:hover:not(:active),
.page-sections.single .related-list a:focus:not(:active),
.page-sections.single .section-related .related-block a:not(.btn):hover:not(:active),
.page-sections.single .section-related .related-block a:not(.btn):focus:not(:active) {
    background-position: 0 100%;
    background-size: 100% 1px;
}

/* Couleur au survol (fond clair) : couleur primaire, même logique que les modules nickl */
.page-sections.single .related-list a:hover:not(:active),
.page-sections.single .related-list a:focus:not(:active),
.page-sections.single .section-related .related-block a:not(.btn):hover:not(:active),
.page-sections.single .section-related .related-block a:not(.btn):focus:not(:active) {
    color: var(--color-primary, #3ee98d);
}
