/*
 * layout_as_permanences.css
 * Permanences (mobilité / santé / don du sang / habitat…) groupées par thème
 * Palette : vert forêt #1E4D0F · calcaire #F2EFE8 · encre #1F1D17
 */


/* ── Reset skin pour ce layout ───────────────────────────────────────────── */
.lap-wrapper a,
.lap-wrapper a:visited,
.lap-wrapper a:hover,
.lap-wrapper a:active {
    color: inherit;
    background-color: transparent;
    border-radius: 0;
    text-decoration: none;
}

.lap-wrapper .lap-card,
.lap-wrapper .lap-card:visited,
.lap-wrapper .lap-card:active {
    color: #1F1D17;
}


/* ══ Groupes par thème ═══════════════════════════════════════════════════════ */

.lap-groups {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Cible des ancres #theme-<id> (pastilles du bandeau home) */
.lap-group {
    scroll-margin-top: calc(var(--header-height, 6rem) + 1rem);
}

/* .chapelle-content h2 a une spécificité 0-1-1 — on monte à 0-2-0 pour gagner */
.lap-wrapper .lap-group-header {
    font-size: 1.15em;
    font-weight: 700;
    color: #fff;
    background: var(--lap-color, #1E4D0F);
    padding: 6px 16px;
    margin: 0 0 14px;
    border-radius: 3px;
    letter-spacing: .02em;
}


/* ══ Grille de cartes ════════════════════════════════════════════════════════ */

.lap-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 900px) {
    .lap-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .lap-cards { grid-template-columns: 1fr; }
}


/* ══ Carte permanence ════════════════════════════════════════════════════════ */

.lap-wrapper .lap-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-left: 4px solid var(--lap-border, #1E4D0F);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    transition: box-shadow .15s, transform .1s;
    overflow: hidden;
    color: #1F1D17;
}
.lap-wrapper .lap-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    transform: translateY(-2px);
    color: #1F1D17;
    background: #fff;
}

.lap-card-img {
    display:         block;
    width:           100%;
    height:          150px;
    object-fit:      cover;
    object-position: top;
    flex-shrink:     0;
}

.lap-card-body {
    display:        flex;
    flex-direction: column;
    gap:            6px;
    padding:        12px 14px;
}


/* ── Date (rendue par Permanence::get_date_html(), réutilisée telle quelle) ─── */
.lap-card-body .permanence-date {
    font-size: .8em;
    font-weight: 700;
    color: var(--lap-border, #1E4D0F);
    letter-spacing: .02em;
    line-height: 1.3;
    margin: 0;
}
.lap-card-body .permanence-dates {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.lap-card-body .permanence-dates li {
    font-size: .78em;
    font-weight: 700;
    color: var(--lap-border, #1E4D0F);
    background: rgba(0,0,0,.04);
    padding: 1px 7px;
    border-radius: 3px;
}
.lap-card-body .permanence-date--empty {
    font-size: .78em;
    font-weight: 400;
    color: #5C5749;
    font-style: italic;
}


/* ── Titre ────────────────────────────────────────────────────────────────── */
.lap-card-title {
    font-size: .95em;
    font-weight: 600;
    color: #1F1D17;
    line-height: 1.35;
}


/* ── Lieu ─────────────────────────────────────────────────────────────────── */
.lap-card-lieu {
    font-size: .78em;
    color: #5C5749;
    line-height: 1.35;
    margin: 0;
}


/* ── Introduction ─────────────────────────────────────────────────────────── */
.lap-card-intro {
    font-size: .78em;
    color: #5C5749;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
