.article-detail {
    font-family: var(--font-article);
    margin: 3rem auto;
    padding: 0 1.5rem;
    color: #2a2a2a;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgb(0 0 0 / 0.07);
    line-height: 1.65;
    letter-spacing: 0.02em;
}

.article-detail-edit {
    border: solid 1px rgb(187, 12, 70);
    background-image: linear-gradient(
        to bottom,
        rgb(236, 179, 198),
        rgb(228, 214, 218)
    ) !important;
}
.article-detail-canceled {
    background: repeating-linear-gradient(
        45deg,
        #ffffff,
        #ffffff 10px,
        #f2f2f2 10px,
        #f2f2f2 20px
    );
}
.article-detail-canceled::before {
    content: "⚠ TRAVAUX ANNULÉS";
    display: block;
    background-color: #666;
    color: white;
    font-weight: bold;
    padding: 0.5em 1em;
    border-bottom: 1px solid #444;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.article-detail-edit::before {
    content: "Article non publié";
    display: block;
    background-color: rgb(187, 12, 70);
    color: white;
    font-weight: bold;
    padding: 0.5em 1em;
    border-bottom: 1px solid rgb(140, 0, 50);
    font-size: 0.9rem;
}
.article-detail h1 {
    font-weight: 700;
    font-size: 2rem; /* plus petit */
    margin-bottom: 1.2rem;
    color: #1a1a1a;
    text-transform: uppercase;
    border-bottom: 3px solid #0d3a63;
    padding-bottom: 0.3rem;
}

/* Catégorie et auteur */
.article-category,
.article-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}
.article-modification {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 2rem;
    border-top: 1px solid #ddd;
    padding-top: 0.8rem;
}

/* Chapeau */
.article-chapeau {
    font-style: normal;
    font-weight: 600;
    font-size: 1.15rem;
    margin: 1.5rem 0 2rem 0;
    padding-left: 1rem;
    border-left: 5px solid #0d3a63;
    color: #3c3c3c;
}

/* Description */
.article-description {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    color: #3a3a3a;
}
.read-more {
    margin: 1em 0;
    padding: 0.75em 1em;
    background-color: #f6f6f6;
    border-left: 4px solid #0077b6;
    font-size: 1rem;
    line-height: 1.5;
}
.article-description a,
.read-more a {
    color: inherit;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
    color: var(--brand-light);
}

.article-description a:hover,
.read-more a:hover {
    text-decoration: underline;
}

/* Fil d’Ariane */
.breadcrumb {
    font-size: 0.85rem;
    color: #7a7a7a;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    font-weight: 600;
}

.breadcrumb li a {
    color: #0d3a63;
    text-decoration: none;
    transition: color 0.25s ease;
}

.breadcrumb li a:hover,
.breadcrumb li a:focus {
    color: #00509e;
    text-decoration: underline;
}

.breadcrumb li::after {
    content: "/";
    margin-left: 0.4rem;
    color: #bbb;
}

.breadcrumb li:last-child::after {
    content: "";
    margin: 0;
}

.breadcrumb li:last-child a {
    color: #2a2a2a;
    pointer-events: none;
    cursor: default;
}

/* Figure image */
figure {
    position: relative;
    margin: 2rem 0 3rem 0;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
    max-width: 100%;
}

figure img {
    width: 100%; /* pleine largeur */
    height: auto;
    max-height: 576px; /* hauteur max (1024x576) */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px 8px 0 0;
}
.image-wrapper {
    position: relative;
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1rem;
}
figure img:hover {
    transform: scale(1.03);
}

figcaption.figcaption-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.figcaption-text {
    flex: 1;
}

.figcaption-text .legende {
    margin: 0 0 0.3rem 0;
    font-style: italic;
    color: #666;
}
/* FIGURE & IMAGE */
.article-detail figure {
    position: relative;
    margin: 0;
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
}

.article-detail figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

/* OVERLAY AUDIO (bouton + durée) */
.audio-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.4rem 0.6rem;
    border-radius: 2rem;
    z-index: 10;
    backdrop-filter: blur(4px);
}

/* BOUTON PLAY / PAUSE */
.audio-overlay .play-toggle {
    width: 2.2rem;
    height: 2.2rem;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: background 0.2s ease;
}

.audio-overlay .play-toggle:hover {
    background: none;
}

/* SYMBOLE || ou ▶ */
.audio-overlay .bar {
    position: absolute;
    background-color: white;
    margin: 0 2px;
    display: inline-block;
    transition: transform 0.3s ease;
    width: 8px;
    height: 24px;
    border-radius: 2px;
    transition: transform 0.3s ease, left 0.3s ease;
}

.audio-overlay .play-toggle.paused .bar-left {
    transform: rotate(45deg) translateX(-2px) translateY(3px);
    left: 24px;
}

.audio-overlay .play-toggle.paused .bar-right {
    transform: rotate(-45deg) translateX(-2px) translateY(-7px);
    left: 24px;
}

/* DURÉE TEXTE */
.audio-overlay .audio-duration {
    font-size: 0.85rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    line-height: 1;
}

.image-copyright {
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

.figcaption-partenaire {
    flex-shrink: 0;
}

.figcaption-partenaire img {
    max-height: 80px;
    max-width: 240px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 0 important!;
}

/* Audio player */
.custom-audio-player {
    display: flex;
    flex-direction: column;
    font-family: var(--font-article);
    margin-top: 2rem;
    padding: 0.8rem 1rem;
    background: #f9fbff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(11, 61, 145, 0.15);
    max-width: 720px;
    user-select: none;
    transition: box-shadow 0.3s ease;
}

.custom-audio-player:hover,
.custom-audio-player:focus-within {
    box-shadow: 0 6px 25px rgba(11, 61, 145, 0.3);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-play {
    cursor: pointer;
    font-size: 1.8rem;
    border: none;
    background: none;
    color: #0b3d91;
    transition: color 0.3s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play:hover,
.btn-play:focus {
    color: #004080;
    outline: none;
}

.play-toggle {
    width: 60px;
    height: 60px;
    background: white;
    border: none;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    color: #0d3a63;
}

.play-toggle:hover {
    background: #eaf0f9;
}

.bar {
    position: absolute;
    width: 8px;
    height: 24px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, left 0.3s ease;
}

.bar-left {
    left: 17px;
    transform: rotate(0deg);
    transform-origin: bottom left;
}

.bar-right {
    left: 32px;
    transform: rotate(0deg);
    transform-origin: top right;
}

.play-toggle.is-playing .bar-left {
    transform: rotate(45deg) translateX(-2px) translateY(3px);
    left: 24px;
}

.play-toggle.is-playing .bar-right {
    transform: rotate(-45deg) translateX(-2px) translateY(-7px);
    left: 24px;
}

.progress-bar {
    flex-grow: 1;
    height: 6px;
    background: #d9e3ff;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-filled {
    height: 100%;
    background: #0b3d91;
    width: 0;
    border-radius: 3px 0 0 3px;
    transition: width 0.1s linear;
}

.time {
    font-size: 0.9rem;
    color: #444;
    min-width: 70px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    user-select: none;
    white-space: nowrap;
}

/* Ligne 2 : légende */
.audio-legende {
    font-style: italic;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    user-select: text;
}

audio {
    width: 100%;
    margin-top: 2rem;
    outline: none;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.media-audio {
    width: 100%;
    margin-top: 2rem;
    outline: none;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.media-externe {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    margin: 1.5rem 0;
}

.media-externe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.media-pdf {
    margin: 2rem 0;
    font-size: 1rem;
}

.media-pdf a {
    color: #0d3a63;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.media-pdf a:hover,
.media-pdf a:focus {
    border-color: #00509e;
    text-decoration: underline;
}

.pdf-legende {
    margin-top: 0.3rem;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}
.media-previsions-wrapper {
    width: 100%;
    margin: 1em 0;
}

.media-previsions-inner {
    position: relative;
    display: inline-block;
    width: 100%;
}

.media-previsions-img {
    width: 100%;
    height: auto;
    min-height: 250px;
    object-fit: contain;
    display: block;
    background: #f7f7f7;
    border: 1px solid #ddd;
}

.media-previsions-date {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #666;
    font-size: 0.9rem;
    padding: 0.4em;
    text-align: center;
}

.image-copyright {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}
.media-citation {
    font-weight: 700;
    font-size: 1.6rem;
    margin: 1.5rem 0 0.5rem 0;
    color: #0d3a63;
    border-left: 4px solid #0d3a63;
    padding-left: 1rem;
    font-family: var(--font-article);
    /* text-transform: uppercase;  <-- désactivé pour meilleure lisibilité */
}

.media-description {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: #333;
    font-family: var(--font-article);
}

/* Section RSS et partage */
.article-rss,
.article-share {
    margin-top: 3rem;
    border-top: 1px solid #ddd;
    padding-top: 1.7rem;
    font-size: 0.9rem;
    color: #4d4d4d;
    font-weight: 500;
}

.article-rss h2,
.article-share h2 {
    font-weight: 700;
    color: #0d3a63;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.article-rss ul,
.article-share ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    gap: 1.3rem;
}

.article-rss li a,
.article-share li a {
    color: #0d3a63;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.article-rss li a:hover,
.article-share li a:hover {
    border-color: #00509e;
}

.article-share li a {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #e3eaf6;
    box-shadow: inset 0 -2px 0 #0d3a63;
}

.article-share li a:hover {
    background: #c7d2f1;
}

/* Mobile-first layout */
.video-wrapper,
.youtube-container,
.dailymotion-container {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive video 16:9 */
.video-wrapper iframe,
.youtube-container iframe,
.dailymotion-container iframe,
.iframe_video {
    width: 100%;
    min-height: 300px;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}

/* Audio players or embedded iframes with specific height */
.iframe_embed,
.deezer-player,
.audiomeans-audio iframe {
    width: 100%;
    height: 150px;
    max-width: 100%;
    border: none;
    display: block;
}
.audiomeans-audio iframe {
    height: 50px;
    background-color: #fff;
}

/* Consent overlay */
.video-consent-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.video-consent-overlay-text {
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 1rem;
}

.video-consent-overlay-accept-button {
    background: #ffc107;
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}
.video-consent-overlay-accept-button:hover {
    background: #e0a800;
}
.custom-audio-player,
.video-wrapper,
.youtube-container,
.dailymotion-container,
figure[itemprop="image"] {
    margin-block: 2rem;
}

.article-links {
    margin-top: 2rem;
}

.article-links h2 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.article-links ul {
    list-style: none;
    padding-left: 0;
}

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

.article-links a {
    text-decoration: none;
    color: var(--accent-color, #0073e6);
    font-weight: 500;
}
.article-links a:hover {
    text-decoration: underline;
}

.articles-relies {
    font-family: var(--font-article);
    margin: 3rem 2rem;
    padding-top: 2rem;
    border-top: 2px solid #ddd;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.articles-relies-titre {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #0d3a63;
    margin-bottom: 1.5rem;
    padding-left: 0.3rem;
    border-left: 4px solid #0d3a63;
}

.articles-relies-liste {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.article-mini {
    background: #f9f9f9;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.article-mini-lien {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-mini-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.article-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.article-mini-image:hover img {
    transform: scale(1.03);
}

.article-mini-duree {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 7px;
    border-radius: 4px;
    font-weight: 600;
}

.article-mini-contenu {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-mini h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.article-mini p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

/* Largeur max pour écrans XL */
@media (min-width: 1024px) {
    .article-detail {
        max-width: 820px;
        padding: 0 3rem;
    }
}

/* Responsive - adapte titre + marge */
@media (max-width: 1024px) {
    .article-detail {
        max-width: 80%;
        margin: 2rem auto;
        padding: 0 1rem;
    }
    .article-detail h1 {
        font-size: 1.7rem;
    }
    figure img {
        max-height: 400px;
    }
}

@media (max-width: 600px) {
    .article-detail {
        max-width: 90%;
        margin: 1.5rem auto;
        padding: 0 0.8rem;
    }
    .article-detail h1 {
        font-size: 1.4rem;
    }
    .article-category,
    .article-author {
        font-size: 0.85rem;
    }
    .article-chapeau {
        font-size: 1rem;
        padding-left: 0.6rem;
        margin: 1rem 0 1.5rem 0;
        border-left-width: 3px;
    }
    .article-description {
        font-size: 1rem;
    }
    figure img {
        max-height: 300px;
    }
    .breadcrumb {
        font-size: 0.8rem;
    }
    .article-rss ul,
    .article-share ul {
        flex-direction: column;
        gap: 0.8rem;
    }
    .video-consent-overlay {
        padding: 1rem;
    }
    .video-consent-overlay-text {
        font-size: 0.9rem;
    }
    .video-consent-overlay-accept-button {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    .figcaption-partenaire img {
        max-height: 80px;
        max-width: 180px;
    }
}

.articles-relies-liste {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .articles-relies-liste {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .articles-relies-liste {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .articles-relies-liste {
        grid-template-columns: repeat(6, 1fr);
    }
}
