/* ==========================================================================
   Article : "Professionnels, accompagnez vos clients dans leur projet
             de transmission solidaire"
   Tout est scopé sous .art-ts  -> aucune fuite dans le CSS global du site.
   Palette reprise de la page "Engagez votre entreprise / fondation".
   ========================================================================== */

.art-ts {
    --ts-orange: #e24714;
    --ts-orange-dark: #c53a0d;
    --ts-blue: #0067ac;
    --ts-blue-dark: #005089;
    --ts-grey: #f5f5f5;
    --ts-text: #333;
    --ts-navy: #0b2740;

    /* taille de texte courante : sommaire, chiffres, infos clés, cartes documents.
       Bootstrap impose body{font-size:14px} ; on repasse au-dessus pour du confort
       de lecture, avec le même interlignage que les paragraphes de l'article. */
    --ts-fs: 1.6rem;
    --ts-lh: 1.6;

    text-align: left;
    color: var(--ts-text);
}

.art-ts *,
.art-ts *::before,
.art-ts *::after {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. Grille générale : sommaire sticky à gauche + contenu
   -------------------------------------------------------------------------- */

.art-ts {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.art-ts-body {
    min-width: 0;
}

.art-ts-body > *:first-child {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   2. Titres — tous les H2 en bleu, typo maison
   -------------------------------------------------------------------------- */

.art-ts .art-ts-body h2 {
    font-family: borden_regular, 'Open Sans', sans-serif;
    color: var(--ts-blue);
    line-height: 1.15;
    font-weight: 400;
    text-align: left;
    margin: 3.5rem 0 1.2rem;
    padding: 0;
    scroll-margin-top: 100px;
}

.art-ts .art-ts-body h2:first-child {
    margin-top: 0;
}

.art-ts .art-ts-body p {
    line-height: 1.65;
    margin: 0 0 1.2rem;
}

.art-ts .art-ts-body > ul {
    margin: 0 0 1.5rem;
    padding-left: 1.2rem;
}

.art-ts .art-ts-body > ul li {
    margin-bottom: .6rem;
    line-height: 1.6;
}

.art-ts blockquote {
    border: 0;
    border-left: 4px solid var(--ts-orange);
    background: var(--ts-grey);
    padding: 1.5rem 1.8rem;
    margin: 2rem 0;

}

.art-ts blockquote p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   3. Sommaire sticky
   -------------------------------------------------------------------------- */

.art-ts-toc {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    align-self: start;
    background: var(--ts-navy);
    border-radius: 10px;
    padding: 1.5rem 1.2rem;
    color: #fff;
    font-size: var(--ts-fs);
    line-height: var(--ts-lh);
}

.art-ts-toc-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: borden_regular, 'Open Sans', sans-serif;
    font-size: 1.7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1rem;
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    text-align: left;
    cursor: default;
}

.art-ts-toc-title .art-ts-toc-burger {
    display: inline-block;
    width: 18px;
    flex: 0 0 18px;
}

.art-ts-toc-title .art-ts-toc-burger span {
    display: block;
    height: 2px;
    background: var(--ts-orange);
    margin: 3px 0;
    border-radius: 2px;
}

.art-ts-toc-title .art-ts-toc-caret {
    display: none;
    margin-left: auto;
    transition: transform .25s ease;
}

.art-ts-toc ol {
    list-style: none;
    counter-reset: ts-toc;
    margin: 0;
    padding: 0;
}

.art-ts-toc li {
    counter-increment: ts-toc;
    margin: 0;
    padding: 0;
    list-style: none;
}

.art-ts-toc a {
    display: flex;
    gap: .6rem;
    align-items: baseline;
    padding: .55rem .4rem .55rem .6rem;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.art-ts-toc a::before {
    content: counter(ts-toc) ".";
    color: var(--ts-orange);
    font-weight: 700;
    flex: 0 0 auto;
}

.art-ts-toc a:hover,
.art-ts-toc a:focus {
    color: #fff;
    background: rgba(255, 255, 255, .07);
    text-decoration: none;
}

.art-ts-toc a.is-active {
    color: #fff;
    font-weight: 700;
    background: rgba(226, 71, 20, .16);
    border-left-color: var(--ts-orange);
}

/* --------------------------------------------------------------------------
   4. Les 4 chiffres — carrés sur une seule ligne
   -------------------------------------------------------------------------- */

.ts-chiffres {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.ts-chiffre {
    background: var(--ts-grey);
    border-radius: 8px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.art-ts .ts-chiffre .fa {
    font-size: 2.4rem;
    line-height: 1;
    color: var(--ts-blue);
    margin: 0 0 1rem;
    display: block;
}

.art-ts .ts-chiffre .ts-num {
    display: block;
    font-family: borden_regular, 'Open Sans', sans-serif;
    color: var(--ts-orange);
    font-size: 4.6rem;
    line-height: 1;
    margin: 0 0 .7rem;
    white-space: nowrap;
}

.art-ts .ts-chiffre p {
    margin: 0;
    font-size: var(--ts-fs);
    line-height: var(--ts-lh);
    color: var(--ts-text);
}

/* --------------------------------------------------------------------------
   5. Bloc "Votre interlocuteur dédié"
   -------------------------------------------------------------------------- */

.ts-interlocuteur {
    background: var(--ts-blue);
    color: #fff;
    border-radius: 10px;
    padding: 2.5rem;
    margin: 3.5rem 0;
    scroll-margin-top: 100px;
}

.art-ts .ts-interlocuteur h2 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.art-ts .ts-interlocuteur blockquote {
    background: rgba(255, 255, 255, .1);
    border-left-color: #fff;
    color: #fff;
    margin: 0 0 2rem;
}

.art-ts .ts-interlocuteur a {
    color: #fff;

}

/* signature : photo ronde à gauche, centrée verticalement sur le nom */
.ts-signature {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0 0 2rem;
}

.art-ts .ts-signature .ts-avatar {
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0;
    border: 3px solid rgba(255, 255, 255, .85);
    background: #fff;
}

.ts-signature-txt {
    min-width: 0;
}

.art-ts .ts-signature-txt p {
    margin: 0 0 .35rem;
    line-height: 1.4;
}

.art-ts .ts-signature-txt .ts-nom {
    font-weight: 700;
    font-size: 1.15rem;
}

.art-ts .ts-signature-txt .ts-fonction {
    font-size: .95rem;
    opacity: .9;
    margin-bottom: .8rem;
}

.ts-signature-txt .ts-contact {
    font-size: .95rem;
}

.ts-signature-txt .ts-contact a {
    white-space: nowrap;
}

.ts-signature-txt .ts-contact .fa {
    width: 1.2em;
    text-align: center;
    margin-right: .4rem;
}

/* --------------------------------------------------------------------------
   6. Boutons
   -------------------------------------------------------------------------- */

.art-ts .ts-btn {
    display: inline-block;
    padding: .85rem 3rem;
    border-radius: 50vh;
    font-family: borden_regular, 'Open Sans', sans-serif;
    font-size: 2.5rem;

    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all .3s ease;
    background: var(--ts-orange);
    color: #fff !important;
    border: 2px solid var(--ts-orange);
}



.art-ts .ts-btn:hover,
.art-ts .ts-btn:focus {
    background: var(--ts-orange-dark);
    border-color: var(--ts-orange-dark);
    color: #fff !important;
    text-decoration: none;
}

.ts-cta {
    margin: 0 !important;
}

/* --------------------------------------------------------------------------
   7. Accordéon — étapes du traitement d'un dossier de libéralités
   -------------------------------------------------------------------------- */

.ts-accordion {
    margin: 2rem 0 3rem;
    border-top: 2px solid rgba(0, 103, 172, .18);
}

.ts-acc-item {
    border-bottom: 2px solid rgba(0, 103, 172, .18);
}

.art-ts .ts-acc-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.15rem .5rem 1.15rem 0;
    cursor: pointer;
    color: var(--ts-blue);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.35;
    background: none;
    border: 0;
    text-align: left;
    transition: color .25s ease;
}

.art-ts .ts-acc-head:hover,
.art-ts .ts-acc-head:focus {
    color: var(--ts-orange);
    outline: none;
}

.art-ts .ts-acc-head:focus-visible {
    outline: 2px solid var(--ts-orange);
    outline-offset: 3px;
}

.ts-acc-num {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ts-blue);
    color: #fff;
    font-family: borden_regular, 'Open Sans', sans-serif;
    font-size: 1.15rem;
    line-height: 34px;
    text-align: center;
    transition: background-color .25s ease;
}

.ts-acc-item.is-open .ts-acc-num,
.art-ts .ts-acc-head:hover .ts-acc-num {
    background: var(--ts-orange);
}

.ts-acc-title {
    flex: 1 1 auto;
}

.art-ts .ts-acc-head .fa {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 1rem;
    color: var(--ts-orange);
    transition: transform .3s ease;
}

.ts-acc-item.is-open .ts-acc-head .fa {
    transform: rotate(180deg);
}

/* panneaux ouverts par défaut : si le JS ne tourne pas, le contenu reste lisible.
   Le JS ajoute .is-ready qui bascule l'accordéon en mode replié. */
.ts-acc-panel {
    overflow: hidden;
    transition: max-height .35s ease;
}

.ts-accordion.is-ready .ts-acc-panel {
    max-height: 0;
}

.ts-acc-inner {
    padding: 0 .5rem 1.4rem 3.4rem;
}

.art-ts .ts-acc-inner p {
    margin: 0;
    line-height: var(--ts-lh);
    font-size: var(--ts-fs);
}

.art-ts .ts-acc-inner p + p {
    margin-top: .8rem;
}

/* --------------------------------------------------------------------------
   8. Informations clés
   -------------------------------------------------------------------------- */

.ts-infos-cles {
    background: var(--ts-grey);
    border-radius: 8px;
    padding: 1.8rem 2rem;
    margin: 1.5rem 0 3rem;
}

.art-ts .ts-infos-cles .ts-maj {
    display: block;
    font-size: var(--ts-fs);
    line-height: var(--ts-lh);
    color: var(--ts-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.art-ts .ts-infos-cles ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.art-ts .ts-infos-cles li {
    position: relative;
    padding: .5rem 0 .5rem 1.4rem;
    line-height: var(--ts-lh);
    font-size: var(--ts-fs);
    border-bottom: 1px solid rgba(0, 103, 172, .12);
    list-style: none;
    margin: 0;
}

.art-ts .ts-infos-cles li:last-child {
    border-bottom: 0;
}

.art-ts .ts-infos-cles li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ts-orange);
}

/* --------------------------------------------------------------------------
   9. Les 4 documents téléchargeables — carrés sur une seule ligne
   -------------------------------------------------------------------------- */

.ts-docs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.art-ts .ts-doc {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ts-blue);
    border-radius: 8px;
    padding: 1.6rem 1.4rem;
    color: var(--ts-text);
    text-decoration: none;
    transition: all .3s ease;
}

.art-ts .ts-doc:hover,
.art-ts .ts-doc:focus {
    background: var(--ts-blue);
    color: #fff;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 103, 172, .18);
}

.art-ts .ts-doc .fa {
    font-size: 2rem;
    color: var(--ts-orange);
    margin-bottom: .9rem;
    transition: color .3s ease;
}

.art-ts .ts-doc:hover .fa {
    color: #fff;
}

.art-ts .ts-doc h3 {
    font-family: 'Open Sans', sans-serif;
    color: var(--ts-blue);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .5rem;
    transition: color .3s ease;
}

.art-ts .ts-doc:hover h3 {
    color: #fff;
}

.art-ts .ts-doc p {
    font-size: var(--ts-fs);
    line-height: var(--ts-lh);
    margin: 0 0 1.2rem;
    flex: 1 1 auto;
}

.art-ts .ts-doc .ts-doc-link {
    display: inline-block;
    margin-top: auto;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ts-orange);
    transition: color .3s ease;
}

.art-ts .ts-doc:hover .ts-doc-link {
    color: #fff;
}

/* --------------------------------------------------------------------------
   10. Responsive
   -------------------------------------------------------------------------- */

/* tablette : sommaire repassé en haut, chiffres et docs 2 par 2 */
@media all and (max-width: 991px) {

    .art-ts {
        display: block;
    }

    .art-ts-toc {
        position: static;
        margin: 0 0 2rem;
        padding: 1rem 1.2rem;
    }

    .art-ts-toc-title {
        cursor: pointer;
        margin-bottom: 0;
    }

    .art-ts-toc-title .art-ts-toc-caret {
        display: inline-block;
    }

    .art-ts-toc.is-open .art-ts-toc-title {
        margin-bottom: 1rem;
    }

    .art-ts-toc.is-open .art-ts-toc-title .art-ts-toc-caret {
        transform: rotate(180deg);
    }

    .art-ts-toc ol {
        display: none;
    }

    .art-ts-toc.is-open ol {
        display: block;
    }

    .ts-chiffres,
    .ts-docs {
        grid-template-columns: repeat(2, 1fr);
    }

    .art-ts .art-ts-body h2 {
        font-size: 2rem;
    }
}

/* mobile : tout les uns en dessous des autres */
@media all and (max-width: 640px) {

    .art-ts {
        --ts-fs: 1.05rem;
    }

    .ts-chiffres,
    .ts-docs {
        grid-template-columns: 1fr;
    }

    .ts-interlocuteur {
        padding: 1.8rem 1.3rem;
    }

    .ts-signature {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .art-ts .ts-signature .ts-avatar {
        width: 130px;
        height: 130px;
        flex-basis: 130px;
    }

    .ts-cta {
        text-align: center;
    }

    .art-ts .ts-btn {
        display: block;
        padding: .85rem 1.5rem;
        font-size: 1.3rem;
    }

    .art-ts .art-ts-body h2 {
        font-size: 1.7rem;
    }

    .ts-infos-cles {
        padding: 1.2rem 1.2rem;
    }

    .art-ts .ts-acc-head {
        gap: .7rem;
        font-size: 1.1rem;
    }

    .ts-acc-num {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 1rem;
    }

    .ts-acc-inner {
        padding: 0 0 1.2rem 2.4rem;
    }
}