/* ============================================================
   FAIRE-PART AQUARELLE — Landing page
   ============================================================ */

#stfc-fp-landing-inject {
    padding-top: 8px;
}

/* ─── Header ──────────────────────────────────────────────── */

.stfc-fp-landing__header {
    margin-bottom: 40px;
}

.stfc-fp-landing__title {
    font-size: 28px !important;
    font-weight: 700;
    color: #1f2d3a;
    margin: 0 0 10px !important;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stfc-fp-landing__subtitle {
    font-size: 16px;
    color: #888;
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

/* ─── 5 Blocs ─────────────────────────────────────────────── */

.stfc-fp-landing__blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    margin-bottom: 56px;
}

/* 3 blocs sur la 2ème ligne */
.stfc-fp-block:nth-child(3),
.stfc-fp-block:nth-child(4),
.stfc-fp-block:nth-child(5) {
    grid-column: auto;
}

/* Sur desktop : 3 blocs côte à côte sur la 2e ligne */
@media (min-width: 769px) {
    .stfc-fp-landing__blocks {
        grid-template-rows: 300px 220px;
    }

    /* 3 blocs sur la 2e ligne → changer la grille */
    .stfc-fp-landing__blocks {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 300px 220px;
        gap: 10px;
    }

    .stfc-fp-block:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .stfc-fp-block:nth-child(2) {
        grid-column: 3 / 4;
        grid-row: 1;
    }

    .stfc-fp-block:nth-child(3),
    .stfc-fp-block:nth-child(4),
    .stfc-fp-block:nth-child(5) {
        grid-row: 2;
    }
}

.stfc-fp-block {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    background: #c8bfb4;
    min-height: 180px;
}

.stfc-fp-block__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stfc-fp-block:hover .stfc-fp-block__bg {
    transform: scale(1.06);
}

.stfc-fp-block__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.05) 55%);
    transition: background 0.3s ease;
}

.stfc-fp-block:hover .stfc-fp-block__overlay {
    background: linear-gradient(to top, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.1) 60%);
}

.stfc-fp-block__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stfc-fp-block__tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    line-height: 1;
}

.stfc-fp-block__label {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.stfc-fp-block__cta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.18s;
}

.stfc-fp-block:hover .stfc-fp-block__cta {
    color: #fff;
}

/* Bloc placeholder (sans image) */
.stfc-fp-block--placeholder .stfc-fp-block__bg {
    background-color: #d9d2ca;
    background-image: none !important;
}

/* ─── Séparateur ──────────────────────────────────────────── */

.stfc-fp-landing__sep {
    border: none;
    border-top: 1px solid #e8e0d6;
    margin: 56px 0;
}

/* ─── Section Comprendre ──────────────────────────────────── */

.stfc-fp-comprendre {
    display: flex;
    gap: 48px;
    align-items: center;
    margin-bottom: 56px;
}

.stfc-fp-comprendre__img {
    flex: 0 0 45%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: #f0ede8;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stfc-fp-comprendre__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stfc-fp-comprendre__img--placeholder::after {
    content: 'Image à charger';
    font-size: 13px;
    color: #aaa;
    text-align: center;
}

.stfc-fp-comprendre__text {
    flex: 1;
}

.stfc-fp-comprendre__text h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2d3a;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.stfc-fp-comprendre__text p {
    font-size: 15px;
    line-height: 1.75;
    color: #555;
    margin: 0 0 12px;
}

.stfc-fp-comprendre__text p:last-child {
    margin-bottom: 0;
}

/* ─── Section FAQ ─────────────────────────────────────────── */

.stfc-fp-faq {
    margin-bottom: 56px;
}

.stfc-fp-faq__title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2d3a;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

.stfc-fp-faq__item {
    border-top: 1px solid #e8e0d6;
}

.stfc-fp-faq__item:last-child {
    border-bottom: 1px solid #e8e0d6;
}

.stfc-fp-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1f2d3a;
    gap: 16px;
    user-select: none;
    list-style: none;
}

.stfc-fp-faq__question::-webkit-details-marker { display: none; }

.stfc-fp-faq__question::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: #ab5302;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

details[open] .stfc-fp-faq__question::after {
    transform: rotate(45deg);
}

.stfc-fp-faq__answer {
    padding: 0 0 20px;
    font-size: 14px;
    line-height: 1.75;
    color: #666;
}

/* ─── Texte bas de page ───────────────────────────────────── */

.stfc-fp-landing__bottom {
    padding: 32px 36px;
    background: #faf8f5;
    border-radius: 8px;
    border: 1px solid #e8e0d6;
    margin-bottom: 40px;
}

.stfc-fp-landing__bottom h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1f2d3a;
    margin: 0 0 12px;
}

.stfc-fp-landing__bottom p {
    font-size: 14px;
    line-height: 1.75;
    color: #666;
    margin: 0 0 10px;
}

.stfc-fp-landing__bottom p:last-child { margin-bottom: 0; }

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
    .stfc-fp-landing__title { font-size: 22px !important; }

    .stfc-fp-landing__blocks {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .stfc-fp-block:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: auto;
        min-height: 200px;
    }

    .stfc-fp-block:nth-child(2) {
        grid-column: auto;
        grid-row: auto;
    }

    .stfc-fp-comprendre {
        flex-direction: column;
        gap: 24px;
    }

    .stfc-fp-comprendre__img {
        flex: none;
        width: 100%;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 480px) {
    .stfc-fp-landing__blocks {
        grid-template-columns: 1fr;
    }

    .stfc-fp-block:nth-child(1) {
        grid-column: 1;
    }

    .stfc-fp-landing__bottom {
        padding: 20px;
    }
}
