/* ── CSFV Témoignages – Front ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset plugin scope ── */
.csfv-tem-grid,
.csfv-tem-grid *,
.csfv-tem-grid *::before,
.csfv-tem-grid *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    text-decoration: none;
    list-style: none;
}

/* ── Grid ── */
.csfv-tem-grid {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    display: grid;
    gap: 24px;
    align-items: start;
}
.csfv-tem-grid.csfv-tem-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.csfv-tem-grid.csfv-tem-cols-1 {
    grid-template-columns: 1fr;
}
@media (max-width: 768px) {
    .csfv-tem-grid.csfv-tem-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* ── Card ── */
.csfv-tem-grid .csfv-tem-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(.22, .61, .36, 1), box-shadow 0.3s ease;
}
.csfv-tem-grid .csfv-tem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 75, 102, 0.12);
}

/* ── Head : pastille citation + attribution ── */
.csfv-tem-grid .csfv-tem-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.csfv-tem-grid .csfv-tem-mark {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2rem;
    line-height: 0.6;
    padding-top: 14px;
    color: #ffffff;
    position: relative;
    flex-shrink: 0;
    user-select: none;
}
.csfv-tem-grid .csfv-tem-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 -10px 16px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}
.csfv-tem-grid .csfv-tem-author {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
}
.csfv-tem-grid .csfv-tem-role {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 3px;
    font-family: 'Inter', sans-serif;
}

/* ── Accroche ── */
.csfv-tem-grid .csfv-tem-excerpt {
    font-family: 'DM Serif Display', Georgia, serif;
    font-style: italic;
    font-size: 19px;
    line-height: 1.5;
    color: #0f172a;
    quotes: none;
}

/* ── Texte complet (dépliable) ── */
.csfv-tem-grid .csfv-tem-full {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.45s cubic-bezier(.4, 0, .2, 1);
}
.csfv-tem-grid .csfv-tem-full[hidden] {
    display: block; /* on anime via max-height, [hidden] sert d'état initial sans JS */
    max-height: 0;
}
.csfv-tem-grid .csfv-tem-full-inner {
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.csfv-tem-grid .csfv-tem-full-inner p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
    margin: 0 0 12px 0;
    padding: 0;
}
.csfv-tem-grid .csfv-tem-full-inner p:last-child {
    margin-bottom: 0;
}

/* ── Bouton lire la suite ── */
.csfv-tem-grid .csfv-tem-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #004b66;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    box-shadow: none;
    text-shadow: none;
}
.csfv-tem-grid .csfv-tem-toggle:hover {
    color: #006b8f;
}
.csfv-tem-grid .csfv-tem-toggle:focus-visible {
    outline: 2px solid #004b66;
    outline-offset: 3px;
    border-radius: 4px;
}
.csfv-tem-grid .csfv-tem-chevron {
    display: block;
    transition: transform 0.3s ease;
    stroke: currentColor;
    fill: none;
}
.csfv-tem-grid .csfv-tem-toggle[aria-expanded="true"] .csfv-tem-chevron {
    transform: rotate(180deg);
}
