/* Opération Solidarité — landing Kiwiiz x Secours Populaire */

.page-solidarite {
    --soli-brand: #192e51;
    --soli-text: #1a1f42;
    --soli-text-2: #3d4265;
    --soli-text-3: #53587a;
    --soli-red: #ef4444;
    --soli-info: #3a66a3;
    --soli-border: #e2e6ee;
    --soli-subtle: #f8f9fb;
    --soli-blue-50: #f4f8ff;
    --soli-grey: #8d98a8;
    --soli-radius-btn: 12px;
    --soli-radius-card: 16px;
    /* Pas de bandeau rouge sur la landing : pas d'offset header */
    --soli-banner-h: 0px;
    background: #fff;
    overflow-x: clip;
}

.page-solidarite .soli-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    height: var(--soli-banner-h);
    background: var(--soli-red);
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.page-solidarite .soli-banner__track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.page-solidarite .soli-banner__close {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    color: #fff;
    font-family: Raleway, sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 0 16px;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.page-solidarite .soli-banner__close:hover {
    text-decoration: underline;
}

.page-solidarite.soli-banner-hidden header#headerPage {
    top: 0;
}

.page-solidarite.soli-banner-hidden #AllSite {
    padding-top: 95px !important;
}

@media screen and (max-width: 1024px) {
    .page-solidarite.soli-banner-hidden.page-landing #AllSite {
        padding-top: 72px !important;
    }
}

.page-solidarite .visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.page-solidarite header#headerPage {
    top: 0;
    box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
}

/* Évite que le padding du holder recouvre l'ombre du header */
.page-solidarite header#headerPage #headerHolder {
    height: 95px;
    padding-bottom: 0;
}

.page-solidarite #AllSite {
    padding-top: calc(95px + var(--soli-banner-h)) !important;
}

@media screen and (max-width: 1024px) {
    .page-solidarite.page-landing #AllSite {
        padding-top: calc(72px + var(--soli-banner-h)) !important;
    }

    .page-solidarite.page-landing #AllSite:has(header#headerPage.landing-header-search-visible) {
        padding-top: calc(130px + var(--soli-banner-h)) !important;
    }
}

.soli-banner__track {
    display: flex;
    gap: 16px;
    white-space: nowrap;
    width: max-content;
    animation: soli-marquee 22s linear infinite;
}

.soli-banner__item {
    font-family: Raleway, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@keyframes soli-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.soli {
    background: #fff;
    color: var(--soli-text);
}

.soli-body {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-bottom: 0;
}

.soli-pad {
    padding-left: 20px;
    padding-right: 20px;
}

.soli-hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 32px;
}

.soli-kicker {
    margin: 0;
    font-family: Quicksand, sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--soli-red);
}

.soli-hero h1,
.soli-h2 {
    margin: 0;
    font-family: Quicksand, sans-serif;
    font-weight: 700;
    color: var(--soli-text);
}

.soli-hero h1 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.3px;
    text-align: start;
}

.soli-h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
}

.soli-h2--sm {
    font-size: 24px;
    font-weight: 600;
}

.soli-lead {
    margin: 0;
    font-family: Raleway, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--soli-text);
}

.soli-caption {
    margin: 0;
    font-family: Raleway, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.4;
    color: var(--soli-text-3);
    text-align: center;
}

/* Textes Figma distincts mobile / desktop (frames 7:230 vs 42:18338) */
.soli-only-desktop {
    display: none !important;
}

.soli-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.soli-hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.soli-hero-see {
    display: none;
}

.soli-how {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.soli-how__legal {
    margin: 0;
    font-family: Raleway, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: var(--soli-text-2);
}

.soli-note {
    margin: 0;
    font-family: Raleway, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: var(--soli-text-2);
}

.soli-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.soli-actions--tight {
    gap: 8px;
}

.soli-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    padding: 0 20px;
    border-radius: var(--soli-radius-btn);
    font-family: Raleway, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
}

.soli-btn--primary {
    background: var(--soli-brand);
    color: #fff;
}

.soli-btn--primary:hover,
.soli-btn--primary:focus-visible {
    background: #12233f;
    color: #fff;
}

.soli-btn--secondary {
    background: #fff;
    color: var(--soli-brand);
    border-color: var(--soli-brand);
    font-size: 12px;
}

.soli-btn--secondary:hover,
.soli-btn--secondary:focus-visible {
    background: var(--soli-subtle);
    color: var(--soli-brand);
}

.soli-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.soli-step {
    background: #fff;
    border: 1px solid var(--soli-border);
    border-radius: var(--soli-radius-card);
    box-shadow: 0 2px 4px rgba(25, 46, 81, 0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.soli-step__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.soli-step__num {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: rgba(58, 102, 163, 0.1);
    color: var(--soli-info);
    font-family: Quicksand, sans-serif;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.soli-step h3 {
    margin: 0;
    font-family: Quicksand, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
    color: var(--soli-text);
}

.soli-step p {
    margin: 0;
    font-family: Raleway, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--soli-text-2);
}

.soli-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.soli-seeall {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    font-family: Raleway, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #2d3436;
    text-decoration: none;
    white-space: nowrap;
}

.soli-seeall:hover,
.soli-seeall:focus,
.soli-seeall:active,
.soli-seeall:visited {
    color: #2d3436;
    text-decoration: none;
}

.soli-seeall img {
    width: 16px;
    height: 16px;
    display: block;
}

.soli-listings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.soli-listings__intro {
    display: flex;
    flex-direction: column;
    gap: 8px;
    order: 1;
}

/* Maquette mobile : CTA après le carousel ; desktop : CTA avant */
.soli-listings__cta {
    order: 3;
}

.soli-listings__body {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* CTA demandes visible (maquette mobile : « Demander une aide ») */
.soli-listings--demandes .soli-listings__cta {
    display: flex;
}

.soli-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 20px 8px;
    margin: 0 -20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.soli-track::-webkit-scrollbar {
    display: none;
}

.soli-card {
    flex: 0 0 166px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.06), 0 1px 3px rgba(10, 13, 18, 0.1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 8px;
}

.soli-card__media {
    height: 140px;
    border: 4px solid #fff;
    border-radius: 17px;
    overflow: hidden;
    background: #eef2f7;
}

.soli-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.soli-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 8px 0;
}

.soli-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 22px;
    padding: 0 8px;
    border-radius: 9999px;
    background: var(--soli-blue-50);
    font-family: Raleway, sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.1px;
    color: var(--soli-brand);
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.soli-card__badge-icon {
    width: 15px;
    height: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.soli-card__badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.soli-card__meta {
    margin: 0;
    font-family: Roboto, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: var(--soli-grey);
}

.soli-card__title {
    margin: 0;
    font-family: Roboto, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #203455;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.soli-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.soli-card__price {
    font-family: Roboto, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    background-image: linear-gradient(27deg, #F907FC 0%, #0779FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.soli-card__rate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: Roboto, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #8d93aa;
    -webkit-text-fill-color: #8d93aa;
}

.soli-card__rate img {
    width: 11px;
    height: 16px;
    display: block;
    object-fit: contain;
}

.soli-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 8px;
}

.soli-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: #d4d4d4;
    cursor: pointer;
}

.soli-dot.is-active {
    width: 8px;
    height: 8px;
    background: var(--soli-text);
}

.soli-ideas {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.soli-acc-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.soli-acc {
    background: #fff;
    border: 1px solid var(--soli-border);
    border-radius: var(--soli-radius-card);
    overflow: hidden;
}

.soli-acc summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    font-family: Quicksand, sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--soli-text);
    background: #fff;
}

.soli-acc summary span {
    font-family: Quicksand, sans-serif;
    font-weight: 700;
}

.soli-acc summary::-webkit-details-marker {
    display: none;
}

.soli-acc[open] summary {
    background: var(--soli-subtle);
}

.soli-acc__chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
    transition: transform 0.2s ease;
}

.soli-acc[open] .soli-acc__chevron {
    transform: rotate(180deg);
}

.soli-acc__list {
    margin: 0;
    padding: 16px;
    border-top: 1px solid var(--soli-border);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.soli-acc__list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-family: Raleway, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--soli-text);
}

.soli-acc__list li::before {
    content: "•";
    color: var(--soli-red);
    flex-shrink: 0;
}

.soli-don {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.soli-don__logo {
    display: none;
    width: 94px;
    height: 77px;
    object-fit: contain;
}

.soli-don-actions,
.soli-help-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.soli-help {
    background: var(--soli-subtle);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 20px;
}

.soli-help .soli-note {
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

.soli-legal {
    border-top: 1px solid var(--soli-border);
    padding-top: 32px;
    padding-bottom: 32px;
}

.soli-legal p {
    margin: 0;
    font-family: Raleway, sans-serif;
    font-size: 13px;
    line-height: 20px;
    color: var(--soli-text-2);
}

.soli-empty {
    margin: 0;
    font-family: Raleway, sans-serif;
    font-size: 14px;
    color: var(--soli-text-3);
}

@media (min-width: 768px) {
    .soli-body {
        max-width: 720px;
        margin: 0 auto;
        gap: 64px;
        padding-top: 16px;
    }

    .soli-pad {
        padding-left: 24px;
        padding-right: 24px;
    }

    .soli-track {
        margin: 0 -24px;
        padding-left: 24px;
        padding-right: 24px;
        gap: 12px;
    }

    .soli-card {
        flex-basis: 200px;
    }

    .soli-help {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1024px) {
    .soli-only-mobile {
        display: none !important;
    }

    p.soli-only-desktop,
    .soli-lead.soli-only-desktop {
        display: block !important;
    }

    br.soli-only-desktop {
        display: inline !important;
    }

    .soli-body {
        max-width: 1440px;
        margin: 0 auto;
        gap: 120px;
        padding: 0 100px;
    }

    .soli-pad {
        padding-left: 0;
        padding-right: 0;
    }

    .soli-hero {
        max-width: none;
    }

    .soli-hero h1 {
        font-size: 32px;
        line-height: 1.15;
        letter-spacing: -0.3px;
        text-align: start;
    }

    .soli-hero .soli-lead {
        font-size: 18px;
        max-width: 807px;
    }

    .soli-h2 {
        font-size: 28px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.3px;
    }

    .soli-h2--sm {
        font-size: 24px;
        font-weight: 600;
        line-height: 1.25;
        letter-spacing: 0;
    }

    .soli-hero-actions {
        width: auto;
        gap: 8px;
        align-items: flex-start;
    }

    .soli-hero-ctas {
        flex-direction: row;
        width: auto;
        gap: 12px;
    }

    .soli-hero-ctas .soli-btn {
        width: auto;
    }

    .soli-hero-ctas .soli-btn--primary {
        order: 2;
    }

    .soli-hero-ctas .soli-btn--secondary {
        order: 1;
    }

    .soli-hero-see {
        display: inline-flex;
    }

    .soli-hero .soli-caption {
        text-align: left;
    }

    .soli-how__legal {
        font-size: 16px;
        line-height: 1.6;
    }

    .soli-steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .soli-step {
        padding: 24px;
    }

    .soli-step h3 {
        font-size: 18px;
        line-height: normal;
    }

    .soli-step p {
        font-size: 16px;
        line-height: 1.6;
    }

    .soli-btn {
        width: auto;
        align-self: flex-start;
    }

    .soli-listings__cta {
        order: 2;
    }

    .soli-listings__body {
        order: 3;
    }

    .soli-listings--demandes .soli-listings__cta {
        display: flex;
    }

    .soli-listings--demandes .soli-lead,
    .soli-ideas .soli-lead,
    .soli-don .soli-lead,
    .soli-help .soli-lead {
        font-size: 18px;
    }

    .soli-acc summary {
        font-size: 18px;
    }

    .soli-acc__list li {
        font-size: 16px;
        line-height: 1.6;
    }

    .soli-don__logo {
        display: block;
    }

    .soli-don-actions .soli-caption {
        text-align: left;
        font-size: 14px;
        color: var(--soli-text-3);
    }

    .soli-help {
        padding: 32px;
        border-radius: 16px;
    }

    .soli-help .soli-note {
        font-size: 16px;
        line-height: 1.6;
        color: var(--soli-text-2);
    }

    .soli-legal {
        padding-left: 0;
        padding-right: 0;
    }

    .soli-legal p {
        font-size: 14px;
        line-height: 1.5;
    }

    .soli-card {
        flex-basis: 220px;
    }

    .soli-track {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .soli-banner__track {
        animation: none;
    }
}
