/* =========================================================
   Le Café des Mots - "Un paiement en toute confiance" (pages/soutenir.html)
   Three short reasons why paying on HelloAsso is safe, for visitors
   who don't know the platform. Written with start/end (not left/right),
   so it also works in Arabic.
   ========================================================= */

.trust {
    margin: 0 0 clamp(40px, 6vw, 64px);
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid #dde3df;
    border-top: 4px solid #18362c;            /* the green of the band above */
    border-radius: 12px;
    background: #ffffff;
}

.trust__title {
    margin: 0 0 18px;
    color: #c94a2f;
    font: 700 12px/1.3 'DM Sans', Arial, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.trust__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 20px clamp(20px, 3vw, 36px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.trust__icon {
    flex: none;
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 50%;
    background: #eef1ee;
    fill: none;
    stroke: #18362c;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trust__item h3 {
    margin: 2px 0 4px;
    color: #18201d;
    font: 600 18px/1.25 'Playfair Display', Georgia, serif;
}

.trust__item p {
    margin: 0;
    color: #5f6b66;
    font-size: 14px;
    line-height: 1.6;
}

.trust__link {
    display: inline-block;
    margin-top: 18px;
    color: #c94a2f;
    font: 700 14px 'DM Sans', Arial, sans-serif;
    text-decoration: none;
}

.trust__link:hover {
    text-decoration: underline;
}

/* Arabic: Arabic fonts and no letter-spacing (css/rtl.css sets the rest) */
html[lang="ar"] .trust__item h3 {
    font-family: 'Amiri', 'Playfair Display', Georgia, serif;
    font-size: 20px;
}

html[lang="ar"] :is(.trust__title, .trust__link) {
    letter-spacing: 0;
}

/* =========================================================
   "Un don important ou un virement bancaire ?" - end of pages/soutenir.html
   A quiet block: HelloAsso stays the main way to give.
   ========================================================= */
.give-more {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: clamp(32px, 5vw, 48px);
    padding: clamp(20px, 3vw, 26px);
    border: 1px solid #dde3df;
    border-inline-start: 4px solid #c94a2f;    /* left in French, right in Arabic */
    background: #ffffff;
}

.give-more__icon {
    flex: none;
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 50%;
    background: #eef1ee;
    fill: none;
    stroke: #c94a2f;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.give-more h3 {
    margin: 2px 0 6px;
    color: #18201d;
    font: 600 20px/1.25 'Playfair Display', Georgia, serif;
}

.give-more p {
    margin: 0 0 12px;
    max-width: 760px;
    color: #5f6b66;
    font-size: 15px;
    line-height: 1.65;
}

.give-more__link {
    color: #c94a2f;
    font: 700 15px 'DM Sans', Arial, sans-serif;
    text-decoration: none;
    word-break: break-word;
}

.give-more__link:hover {
    text-decoration: underline;
}

html[lang="ar"] .give-more h3 {
    font-family: 'Amiri', 'Playfair Display', Georgia, serif;
    font-size: 22px;
}

/* =========================================================
   The HelloAsso form in a window over the page (pages/soutenir.html, <dialog id="ha-modal">)
   Computer: a large window in the middle, the page dimmed behind.
   Phone: the window takes the whole screen.
   ========================================================= */
.ha-modal {
    width: min(760px, 94vw);
    height: min(92vh, 1000px);
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.ha-modal[open] {
    display: flex;
    flex-direction: column;
}

.ha-modal::backdrop {
    background: rgba(24, 32, 29, .62);
}

html.has-ha-modal {
    overflow: hidden;                          /* the page behind doesn't scroll */
}

.ha-modal__bar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: #18362c;                       /* the green of the page */
    color: #ffffff;
}

.ha-modal__title {
    margin: 0;
    font: 600 20px/1.2 'Playfair Display', Georgia, serif;
}

.ha-modal__secure {
    margin: 2px 0 0;
    color: #cdd7d1;
    font-size: 13px;
}

.ha-modal__secure::before {
    content: "🔒 ";
}

.ha-modal__close {
    flex: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ha-modal__close:hover,
.ha-modal__close:focus-visible {
    background: rgba(255, 255, 255, .15);
}

.ha-modal__frame {
    flex: 1;
    width: 100%;
    min-height: 0;
    border: 0;
    background: #ffffff;
}

.ha-modal__fallback {
    flex: none;
    margin: 0;
    padding: 8px 18px;
    border-top: 1px solid #dde3df;
    color: #5f6b66;
    font-size: 12.5px;
    text-align: center;
}

.ha-modal__fallback a {
    color: #c94a2f;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 700px) {
    .ha-modal {
        width: 100vw;
        height: 100dvh;                        /* whole screen on phones */
        border-radius: 0;
    }

    .ha-modal__title {
        font-size: 18px;
    }
}

html[lang="ar"] .ha-modal__title {
    font-family: 'Amiri', 'Playfair Display', Georgia, serif;
    font-size: 22px;
}
