/**
 * Styles front-end pour les shortcodes Paroles de Greeter
 * [fim_parole_galerie] et [fim_parole_organisations]
 */

/* Galerie image + paragraphe */
.fim-parole-galerie {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 30px 0;
}

.fim-parole-galerie-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.fim-parole-galerie-item:nth-child(even) {
    flex-direction: row-reverse;
}

.fim-parole-galerie-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.fim-parole-galerie-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.fim-parole-galerie-text {
    flex: 1;
}

.fim-parole-galerie-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

/* Organisations (villes/territoires) */
.fim-parole-organisations {
    margin: 30px 0;
}

.fim-parole-org-section {
    margin-bottom: 30px;
}

.fim-parole-org-section h4 {
    font-size: 20px;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #2271b1;
}

.fim-parole-org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.fim-parole-org-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fim-parole-org-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.fim-parole-org-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    display: block;
}

.fim-parole-org-card span {
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .fim-parole-galerie-item,
    .fim-parole-galerie-item:nth-child(even) {
        flex-direction: column;
    }

    .fim-parole-galerie-image {
        flex: none;
        max-width: 100%;
    }

    .fim-parole-org-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}
