/*
|--------------------------------------------------------------------------
| PAGE ACTUALITÉ — OCCAZ-MOTARD
|--------------------------------------------------------------------------
*/

.news-page {
    width: 100%;
    padding: 42px 24px 80px;
    background: #f4f4f4;
}

.news-breadcrumb {
    width: min(1180px, 100%);
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #686868;
}

.news-breadcrumb a {
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 160ms ease,
        text-decoration-color 160ms ease;
}

.news-breadcrumb a:hover,
.news-breadcrumb a:focus-visible {
    color: #bc0d0d;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.news-article {
    width: min(1180px, 100%);
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

/*
|--------------------------------------------------------------------------
| EN-TÊTE
|--------------------------------------------------------------------------
*/

.news-hero {
    position: relative;
    overflow: hidden;
    padding: 68px 72px 62px;
    color: #ffffff;
    background: #111111;
}

.news-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 9px;
    height: 100%;
    background: #bc0d0d;
}

.news-hero::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -190px;
    width: 430px;
    height: 430px;
    border: 75px solid rgba(188, 13, 13, 0.25);
    border-radius: 50%;
    pointer-events: none;
}

.news-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.news-hero__kicker {
    margin: 0 0 14px;
    color: #ef3535;
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.news-hero h1 {
    max-width: 950px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.65rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.news-hero__date {
    margin: 22px 0 0;
    color: #d5d5d5;
    font-size: 0.95rem;
    font-weight: 500;
}

/*
|--------------------------------------------------------------------------
| IMAGE PRINCIPALE
|--------------------------------------------------------------------------
*/

.news-cover {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #e8e8e8;
}

.news-cover img {
    display: block;
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    object-position: center;
}

/*
|--------------------------------------------------------------------------
| CORPS DE L’ARTICLE
|--------------------------------------------------------------------------
*/

.news-body {
    width: min(850px, calc(100% - 48px));
    margin: 0 auto;
    padding: 52px 0 58px;
}

.news-lead {
    margin: 0 0 38px;
    padding: 24px 26px;
    color: #191919;
    background: #f1f1f1;
    border-left: 5px solid #bc0d0d;
    border-radius: 0 8px 8px 0;
    font-size: clamp(1.05rem, 1.7vw, 1.22rem);
    font-weight: 650;
    font-style: italic;
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| CONTENU INJECTÉ DEPUIS TINYMCE / BASE DE DONNÉES
|--------------------------------------------------------------------------
*/

.news-content {
    color: #191919;
    font-size: 1.05rem;
    line-height: 1.82;
    overflow-wrap: anywhere;
}

.news-content > :first-child {
    margin-top: 0;
}

.news-content > :last-child {
    margin-bottom: 0;
}

.news-content p {
    margin: 0 0 1.25em;
}

.news-content h2 {
    margin: 2.1em 0 0.75em;
    padding-bottom: 12px;
    color: #111111;
    border-bottom: 3px solid #bc0d0d;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.news-content h3 {
    margin: 1.8em 0 0.65em;
    color: #bc0d0d;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 800;
    line-height: 1.3;
}

.news-content h4 {
    margin: 1.6em 0 0.6em;
    color: #111111;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
}

.news-content strong,
.news-content b {
    color: #111111;
    font-weight: 800;
}

.news-content em,
.news-content i {
    font-style: italic;
}

.news-content a {
    color: #a80909;
    font-weight: 750;
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(188, 13, 13, 0.38);
    text-underline-offset: 4px;
    transition:
        color 160ms ease,
        text-decoration-color 160ms ease;
}

.news-content a:hover,
.news-content a:focus-visible {
    color: #6f0505;
    text-decoration-color: currentColor;
}

.news-content a:focus-visible,
.news-button:focus-visible {
    outline: 3px solid rgba(188, 13, 13, 0.35);
    outline-offset: 4px;
}

.news-content ul,
.news-content ol {
    margin: 1.4em 0;
    padding-left: 1.7em;
}

.news-content li {
    margin: 0.55em 0;
    padding-left: 0.25em;
}

.news-content li::marker {
    color: #bc0d0d;
    font-weight: 800;
}

.news-content blockquote {
    margin: 2em 0;
    padding: 24px 28px;
    color: #ffffff;
    background: #111111;
    border-left: 6px solid #bc0d0d;
    border-radius: 8px;
    font-size: 1.08rem;
    font-style: italic;
    line-height: 1.75;
}

.news-content blockquote p:last-child {
    margin-bottom: 0;
}

.news-content hr {
    width: 100%;
    height: 1px;
    margin: 42px 0;
    border: 0;
    background: #d7d7d7;
}

.news-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 34px auto;
    border-radius: 10px;
}

.news-content figure {
    margin: 34px 0;
}

.news-content figure img {
    margin: 0 auto;
}

.news-content figcaption {
    margin-top: 10px;
    color: #676767;
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: center;
}

.news-content iframe,
.news-content video {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 34px 0;
    border: 0;
    border-radius: 10px;
}

.news-content table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    font-size: 0.96rem;
}

.news-content th,
.news-content td {
    padding: 13px 15px;
    border: 1px solid #d5d5d5;
    text-align: left;
    vertical-align: top;
}

.news-content th {
    color: #ffffff;
    background: #111111;
    font-weight: 800;
}

.news-content tr:nth-child(even) td {
    background: #f4f4f4;
}

/*
|--------------------------------------------------------------------------
| BOUTON COMPLÉMENTAIRE
|--------------------------------------------------------------------------
*/

.news-action {
    margin-top: 40px;
}

.news-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    color: #ffffff;
    background: #bc0d0d;
    border: 2px solid #bc0d0d;
    border-radius: 6px;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.news-button:hover {
    color: #ffffff;
    background: #8f0808;
    border-color: #8f0808;
    transform: translateY(-1px);
}

/*
|--------------------------------------------------------------------------
| PAGE D’ERREUR
|--------------------------------------------------------------------------
*/

.news-error {
    width: min(760px, 100%);
    margin: 40px auto;
    padding: 60px 42px;
    background: #ffffff;
    border-top: 7px solid #bc0d0d;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.news-error__label {
    margin: 0 0 10px;
    color: #bc0d0d;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-error h1 {
    margin: 0 0 18px;
    color: #111111;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.15;
}

.news-error p:not(.news-error__label) {
    margin: 0 auto 28px;
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| TABLETTE
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {
    .news-page {
        padding: 30px 18px 60px;
    }

    .news-hero {
        padding: 52px 44px 48px;
    }

    .news-body {
        width: min(760px, calc(100% - 40px));
        padding: 42px 0 48px;
    }

    .news-cover img {
        max-height: 520px;
    }
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {
    .news-page {
        padding: 20px 12px 46px;
    }

    .news-breadcrumb {
        margin-bottom: 14px;
        padding: 0 4px;
        font-size: 0.82rem;
    }

    .news-article {
        border-radius: 10px;
    }

    .news-hero {
        padding: 38px 24px 36px;
    }

    .news-hero::before {
        width: 6px;
    }

    .news-hero::after {
        right: -170px;
        bottom: -230px;
    }

    .news-hero__kicker {
        margin-bottom: 11px;
        font-size: 0.72rem;
    }

    .news-hero h1 {
        font-size: clamp(1.8rem, 9vw, 2.45rem);
        line-height: 1.08;
    }

    .news-hero__date {
        margin-top: 16px;
        font-size: 0.86rem;
    }

    .news-cover img {
        max-height: 380px;
    }

    .news-body {
        width: calc(100% - 34px);
        padding: 32px 0 38px;
    }

    .news-lead {
        margin-bottom: 30px;
        padding: 20px 19px;
        font-size: 1rem;
        line-height: 1.65;
    }

    .news-content {
        font-size: 1rem;
        line-height: 1.75;
    }

    .news-content h2 {
        margin-top: 1.8em;
        font-size: 1.55rem;
    }

    .news-content h3 {
        font-size: 1.28rem;
    }

    .news-content blockquote {
        padding: 21px 20px;
    }

    .news-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .news-action {
        margin-top: 32px;
    }

    .news-button {
        width: 100%;
    }

    .news-footer {
        margin-top: 40px;
    }

    .news-error {
        margin: 20px auto;
        padding: 42px 24px;
    }
}

/*
|--------------------------------------------------------------------------
| PRÉFÉRENCE DE MOUVEMENT RÉDUIT
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    .news-breadcrumb a,
.news-content a,
.news-button {
    transition: none;
}
}