/* Style général pour la grille des associations */
.association-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Style des cartes individuelles */
.association-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.association-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Style de l'en-tête de la carte avec fond coloré (logo + nom) */
.association-header {
    background: #f0f8ff;
    padding: 15px 20px 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.association-header:hover {
    background: #e6f2ff;
}

.association-header img {
    max-width: 100%;
    max-height: 80px;
    height: auto;
    margin: 0 auto 10px;
    display: block;
    background: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.association-header h2 {
    margin: 10px 0 0;
    font-size: 1.3em;
    color: #343a40;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-break: break-word;
}

/* Détails de l'association */
.association-card-body {
    padding: 20px;
}

.association-card-body p {
    margin: 8px 0;
}

.association-card-body p strong {
    margin-right: 5px;
    font-weight: bold;
}

/* Section Président */
.president {
    margin-top: 15px;
    padding: 12px;
    border-top: 1px solid #eee;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.president h3 {
    font-size: 1em;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.president p {
    margin: 5px 0;
    font-size: 0.9em;
}
/* Pied de carte */
.association-card-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Bouton "En savoir plus" */
.more-info-button {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-family: Arial, sans-serif;
    font-size: 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    border: 1px solid #0069d9;
}

.more-info-button:hover {
    background: #18B5F2;
    transform: translateY(-5px);
}

/* Style du formulaire de recherche */
.association-search-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group input[type="submit"] {
    padding: 8px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-group input[type="submit"]:hover {
    background-color: #218838;
}

/* Style pour la page de détail d'une association */
.association-details {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

.association-details-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.association-details-header img {
    max-width: 200px;
    max-height: 200px;
    margin-bottom: 15px;
}

.association-details-header h2 {
    font-size: 1.8em;
    color: #333;
    margin: 0;
}

.association-details-content h2 {
    color: #007bff;
    margin-top: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.association-details-content ul {
    list-style: none;
    padding: 0;
}

.association-details-content li {
    margin: 10px 0;
}

/* Style pour la section des présidents dans la page de détail */
.association-details-content .president-section {
    margin-top: 20px;
}

.president-section h3 {
    color: #007bff;
    border-left: 4px solid #007bff;
    padding-left: 10px;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.president-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.president-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.president-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.president-phone {
    margin-bottom: 5px;
    color: #555;
}

.president-phone a {
    color: #007bff;
    text-decoration: none;
}

.president-phone a:hover {
    text-decoration: underline;
}

.president-divers {
    margin-top: 5px;
    color: #555;
}

/* Bouton de retour */
.return-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
}

.return-button:hover {
    background: #5a6268;
}

/* Style responsive pour les petits écrans */
@media (max-width: 768px) {
    .association-results-grid {
        grid-template-columns: 1fr;
    }
}
