/* Style pour le plugin Initiatives Map Registration */

.imr-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.imr-form {
    margin-bottom: 30px;
}

.imr-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.imr-field {
    display: flex;
    flex-direction: column;
}

.imr-field.imr-full {
    grid-column: span 2;
}

.imr-field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.imr-field input, .imr-field textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.imr-field input:focus, .imr-field textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.1);
}

.imr-gdpr {
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.imr-gdpr input {
    margin-top: 4px;
}

.imr-submit {
    margin-top: 25px;
}

.imr-submit button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.imr-submit button:hover {
    background: #135e96;
}

.imr-submit button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.imr-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

.imr-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.imr-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.imr-divider {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.imr-map-title {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
    text-align: center;
}

.imr-map {
    height: 500px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #eee;
    z-index: 1;
}

.imr-action-map {
    height: 260px;
    width: 100%;
    z-index: 1;
}

/* Animations simples */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.imr-container {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 600px) {
    .imr-form-grid {
        grid-template-columns: 1fr;
    }
    .imr-field.imr-full {
        grid-column: span 1;
    }
}

/* Dashboard customizations */
.imr-dashboard-wrapper .nav-pills .nav-link {
    color: #495057;
    transition: all 0.2s ease-in-out;
}
.imr-dashboard-wrapper .nav-pills .nav-link:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}
.imr-dashboard-wrapper .nav-pills .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}
.imr-dashboard-wrapper .form-control:focus,
.imr-dashboard-wrapper .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.imr-dashboard-wrapper .table-responsive {
    border-radius: 8px;
    overflow: hidden;
}
.imr-dashboard-wrapper .spinner-border {
    width: 1rem;
    height: 1rem;
}
.imr-dashboard-wrapper .imr-featured-image-preview img {
    max-height: 220px;
    object-fit: cover;
    width: 100%;
}

/* Public news horizontal cards */
.imr-public-news .imr-news-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.imr-public-news .imr-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.75rem rgba(33, 37, 41, 0.12) !important;
}

.imr-public-news .imr-news-media {
    min-height: 230px;
    background: #f1f3f5;
}

.imr-public-news .imr-news-media img {
    min-height: 230px;
}

.imr-public-news .imr-news-media-placeholder {
    border-right: 1px solid #e9ecef;
}

.imr-public-news .imr-news-media-placeholder i {
    font-size: 3rem;
}

.imr-public-news .imr-news-content > :last-child {
    margin-bottom: 0;
}

.imr-public-news .imr-news-excerpt {
    color: #495057;
    line-height: 1.65;
}

.imr-public-news .imr-news-full-content {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.imr-public-news .imr-news-full-content > :last-child {
    margin-bottom: 0;
}

.imr-public-news .imr-news-single-image {
    max-height: 420px;
    object-fit: cover;
}

.imr-public-news .imr-news-single-content {
    color: #343a40;
    font-size: 1rem;
    line-height: 1.75;
}

.imr-public-news .imr-news-single-content > :last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .imr-public-news .imr-news-media,
    .imr-public-news .imr-news-media img {
        min-height: 190px;
        max-height: 260px;
    }

    .imr-public-news .imr-news-media-placeholder {
        border-right: 0;
        border-bottom: 1px solid #e9ecef;
    }
}
