.imt-article
{
    --imt-article-bleu: #075985;
    --imt-article-bleu-clair: #0ea5e9;
    --imt-article-bleu-fonce: #082f49;
    --imt-article-texte: #172033;
    --imt-article-texte-secondaire: #64748b;
    --imt-article-bordure: #dce5eb;
    --imt-article-fond: #f3f7fa;

    width: 100%;
    min-height: 100%;
    padding: 55px 20px 80px;
    background:
        radial-gradient(
            circle at top left,
            rgba(14, 165, 233, 0.13),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(7, 89, 133, 0.09),
            transparent 38%
        ),
        var(--imt-article-fond);
    box-sizing: border-box;
}

.imt-article *,
.imt-article *::before,
.imt-article *::after
{
    box-sizing: border-box;
}

.imt-article-container
{
    width: min(100%, 1100px);
    margin: 0 auto;
}

.imt-article-retour
{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: var(--imt-article-bleu);
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
    transition:
        gap 0.2s ease,
        color 0.2s ease;
}

.imt-article-retour:hover
{
    gap: 14px;
    color: var(--imt-article-bleu-clair);
}

.imt-article-retour-icone
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(7, 89, 133, 0.16);
    border-radius: 50%;
    background-color: rgba(14, 165, 233, 0.08);
}

.imt-article-header
{
    margin-bottom: 38px;
    padding: 44px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.98),
            rgba(240, 249, 255, 0.95)
        );
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(15, 23, 42, 0.02);
}

.imt-article-header-meta
{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 21px;
}

.imt-article-header-label
{
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--imt-article-bleu);
    background-color: rgba(14, 165, 233, 0.1);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.imt-article-date
{
    color: var(--imt-article-texte-secondaire);
    font-size: 0.83rem;
    font-weight: 650;
}

.imt-article-header h1
{
    max-width: 900px;
    margin: 0;
    color: var(--imt-article-texte);
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
}

.imt-article-subtitle
{
    max-width: 820px;
    margin: 21px 0 0;
    color: var(--imt-article-texte-secondaire);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    line-height: 1.7;
}

/* GALERIE */

.imt-article-gallery
{
    margin-bottom: 38px;
}

#diaporama-imtart
{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 650px;
    overflow: hidden;
    border-radius: 28px;
    outline: none;
    background-color: var(--imt-article-bleu-fonce);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(15, 23, 42, 0.04);
}

#diaporama-imtart:focus-visible
{
    outline: 4px solid rgba(14, 165, 233, 0.3);
    outline-offset: 5px;
}

#diaporama-imtart-slider
{
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.55s ease;
    will-change: transform;
}

.diapo
{
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: var(--imt-article-bleu-fonce);
}

.diapoimage
{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.imt-article-gallery-button
{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #ffffff;
    background-color: rgba(8, 47, 73, 0.62);
    font-family: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.imt-article-gallery-button:hover
{
    background-color: var(--imt-article-bleu-clair);
    transform: translateY(-50%) scale(1.06);
}

.imt-article-gallery-button:focus-visible
{
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.imt-article-gallery-previous
{
    left: 22px;
}

.imt-article-gallery-next
{
    right: 22px;
}

.imt-article-gallery-counter
{
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    right: 22px;
    bottom: 20px;
    z-index: 3;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #ffffff;
    background-color: rgba(8, 47, 73, 0.66);
    font-size: 0.78rem;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.imt-article-gallery-dots
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.imt-article-gallery-dot
{
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background-color: #b8c8d1;
    cursor: pointer;
    transition:
        width 0.2s ease,
        background-color 0.2s ease;
}

.imt-article-gallery-dot[aria-current="true"]
{
    width: 30px;
    background-color: var(--imt-article-bleu);
}

.imt-article-gallery-dot:focus-visible
{
    outline: 3px solid rgba(14, 165, 233, 0.25);
    outline-offset: 4px;
}

/* CONTENU DE L’ARTICLE */

.imt-article-body
{
    margin-bottom: 32px;
    padding: 45px;
    border: 1px solid var(--imt-article-bordure);
    border-radius: 28px;
    color: #334155;
    background-color: #ffffff;
    font-size: 1rem;
    line-height: 1.85;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.07),
        0 0 0 1px rgba(15, 23, 42, 0.02);
    overflow-wrap: anywhere;
}

.imt-article-body > :first-child
{
    margin-top: 0;
}

.imt-article-body > :last-child
{
    margin-bottom: 0;
}

.imt-article-body h2,
.imt-article-body h3,
.imt-article-body h4
{
    color: var(--imt-article-texte);
    line-height: 1.3;
}

.imt-article-body h2
{
    margin: 40px 0 17px;
    font-size: 1.8rem;
}

.imt-article-body h3
{
    margin: 32px 0 14px;
    font-size: 1.4rem;
}

.imt-article-body p
{
    margin: 0 0 20px;
}

.imt-article-body ul,
.imt-article-body ol
{
    margin: 20px 0;
    padding-left: 25px;
}

.imt-article-body li
{
    margin-bottom: 9px;
}

.imt-article-body a
{
    color: var(--imt-article-bleu);
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.imt-article-body img
{
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 18px;
}

.imt-article-body blockquote
{
    margin: 30px 0;
    padding: 20px 25px;
    border-left: 4px solid var(--imt-article-bleu-clair);
    border-radius: 0 14px 14px 0;
    color: #475569;
    background-color: #f0f9ff;
    font-style: italic;
}

.imt-article-footer
{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 45px;
}

.imt-article-footer-link
{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 11px 18px;
    border: 1px solid rgba(7, 89, 133, 0.16);
    border-radius: 14px;
    color: var(--imt-article-bleu);
    background-color: rgba(14, 165, 233, 0.07);
    font-size: 0.85rem;
    font-weight: 750;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.imt-article-footer-link:hover
{
    border-color: var(--imt-article-bleu);
    color: #ffffff;
    background-color: var(--imt-article-bleu);
}

/* COMMENTAIRES */

.imt-article-comments
{
    padding: 40px;
    border: 1px solid var(--imt-article-bordure);
    border-radius: 28px;
    background-color: #ffffff;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.07),
        0 0 0 1px rgba(15, 23, 42, 0.02);
}

.imt-article-comments-heading
{
    display: flex;
    align-items: center;
    gap: 17px;
}

.imt-article-comments-icon
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--imt-article-bleu),
            var(--imt-article-bleu-clair)
        );
    box-shadow: 0 13px 28px rgba(7, 89, 133, 0.22);
}

.imt-article-comments-icon svg
{
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.imt-article-comments-label
{
    display: block;
    margin-bottom: 4px;
    color: var(--imt-article-bleu);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.imt-article-comments-heading h2
{
    margin: 0;
    color: var(--imt-article-texte);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 820;
    letter-spacing: -0.03em;
}

.imt-article-comments-description
{
    margin: 19px 0 27px;
    color: var(--imt-article-texte-secondaire);
    font-size: 0.92rem;
    line-height: 1.65;
}

.imt-article-comments-form
{
    display: flex;
    flex-direction: column;
}

.imt-article-comments-form label
{
    margin-bottom: 10px;
    color: var(--imt-article-texte);
    font-size: 0.84rem;
    font-weight: 700;
}

.imtart-data-commentaires-saisie
{
    width: 100%;
    min-height: 180px;
    padding: 17px 18px;
    border: 1px solid var(--imt-article-bordure);
    border-radius: 16px;
    outline: none;
    resize: vertical;
    color: var(--imt-article-texte);
    background-color: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.imtart-data-commentaires-saisie::placeholder
{
    color: #94a3b8;
}

.imtart-data-commentaires-saisie:hover
{
    border-color: #b8cad5;
    background-color: #ffffff;
}

.imtart-data-commentaires-saisie:focus
{
    border-color: var(--imt-article-bleu-clair);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.13);
}

.imt-article-comments-actions
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 17px;
}

.imt-article-comments-feedback
{
    flex: 1;
    min-height: 22px;
    margin: 0;
    color: var(--imt-article-texte-secondaire);
    font-size: 0.82rem;
    font-weight: 650;
}

.imt-article-comments-feedback.is-success
{
    color: #15803d;
}

.imt-article-comments-feedback.is-error
{
    color: #b91c1c;
}

.imtart-data-commentaires-submit
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    flex: 0 0 auto;
    min-height: 52px;
    padding: 12px 20px;
    border: 0;
    border-radius: 15px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--imt-article-bleu),
            var(--imt-article-bleu-clair)
        );
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 13px 27px rgba(7, 89, 133, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.imtart-data-commentaires-submit:hover
{
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 17px 32px rgba(7, 89, 133, 0.28);
}

.imtart-data-commentaires-submit:disabled
{
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.imtart-data-commentaires-submit:focus-visible
{
    outline: 4px solid rgba(14, 165, 233, 0.24);
    outline-offset: 4px;
}

.imt-article-comments-button-arrow
{
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.imtart-data-commentaires-submit:hover .imt-article-comments-button-arrow
{
    transform: translateX(3px);
}

/* TABLETTE */

@media screen and (max-width: 800px)
{
    .imt-article
    {
        padding: 38px 16px 60px;
    }

    .imt-article-header,
    .imt-article-body,
    .imt-article-comments
    {
        padding: 32px;
        border-radius: 23px;
    }

    #diaporama-imtart
    {
        border-radius: 23px;
    }
}

/* MOBILE */

@media screen and (max-width: 600px)
{
    .imt-article
    {
        padding: 28px 12px 45px;
    }

    .imt-article-retour
    {
        margin-bottom: 20px;
    }

    .imt-article-header
    {
        margin-bottom: 25px;
        padding: 27px 22px;
    }

    .imt-article-header h1
    {
        font-size: 2.4rem;
    }

    .imt-article-subtitle
    {
        margin-top: 16px;
        font-size: 0.95rem;
    }

    .imt-article-gallery
    {
        margin-bottom: 25px;
    }

    #diaporama-imtart
    {
        aspect-ratio: 4 / 3;
        border-radius: 20px;
    }

    .imt-article-gallery-button
    {
        width: 43px;
        height: 43px;
    }

    .imt-article-gallery-previous
    {
        left: 12px;
    }

    .imt-article-gallery-next
    {
        right: 12px;
    }

    .imt-article-gallery-counter
    {
        right: 12px;
        bottom: 12px;
    }

    .imt-article-body
    {
        margin-bottom: 24px;
        padding: 26px 22px;
        border-radius: 20px;
        font-size: 0.94rem;
        line-height: 1.75;
    }

    .imt-article-body h2
    {
        font-size: 1.5rem;
    }

    .imt-article-footer
    {
        justify-content: stretch;
        margin-bottom: 30px;
    }

    .imt-article-footer-link
    {
        justify-content: center;
        width: 100%;
    }

    .imt-article-comments
    {
        padding: 26px 22px;
        border-radius: 20px;
    }

    .imt-article-comments-heading
    {
        align-items: flex-start;
    }

    .imt-article-comments-icon
    {
        flex-basis: 47px;
        width: 47px;
        height: 47px;
        border-radius: 15px;
    }

    .imt-article-comments-actions
    {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .imtart-data-commentaires-submit
    {
        width: 100%;
    }
}

@media screen and (max-width: 380px)
{
    .imt-article-header h1
    {
        font-size: 2rem;
    }

    .imt-article-header,
    .imt-article-body,
    .imt-article-comments
    {
        padding-right: 18px;
        padding-left: 18px;
    }

    .imt-article-gallery-button
    {
        width: 39px;
        height: 39px;
    }
}

@media (prefers-reduced-motion: reduce)
{
    #diaporama-imtart-slider,
    .imt-article-gallery-button,
    .imt-article-gallery-dot,
    .imt-article-retour,
    .imt-article-footer-link,
    .imtart-data-commentaires-saisie,
    .imtart-data-commentaires-submit,
    .imt-article-comments-button-arrow
    {
        transition: none;
    }
}