
/* ── Hero ── */
.mgc-actu-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d5a1b 60%, var(--teal) 100%);
    padding: 75px 50px;
    text-align: center;
    overflow: hidden;
}

.mgc-actu-hero::after {
    content: '🌿';
    position: absolute;
    font-size: 120px;
    opacity: 0.08;
    top: -20px;
    right: -20px;
    transform: rotate(-30deg);
    pointer-events: none;
}

.mgc-leaf-deco {
    position: absolute;
    font-size: 80px;
    opacity: 0.06;
    bottom: 10px;
    left: -10px;
    transform: rotate(20deg);
    pointer-events: none;
}

.mgc-actu-hero h1 {
    font-family: 'Dynapuff', cursive;
    font-size: 3.5rem;
    color: white;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 1;
    animation: slideDown 0.8s cubic-bezier(.22, 1, .36, 1) both;
}

.mgc-actu-hero-sub {
    font-family: 'Bellota', cursive;
    font-style: italic;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    margin-top: 12px;
    position: relative;
    z-index: 1;
    animation: slideDown 0.9s 0.1s cubic-bezier(.22, 1, .36, 1) both;
}

/* ── Toolbar ── */
.mgc-toolbar {
    max-width: 1100px;
    margin: -24px auto 40px;
    padding: 0 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 10;
    animation: fadeUp 0.7s 0.3s both;
}

.mgc-search {
    flex: 1;
    min-width: 100%;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 10px 20px;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(76, 32, 5, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mgc-search:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 24px rgba(69, 158, 69, 0.2);
}

.mgc-search input {
    border: none;
    outline: none;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    color: var(--tertiary-color);
    width: 100%;
    background: transparent;
}

.mgc-search input::placeholder {
    color: var(--gray);
}

.mgc-search-icon {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.mgc-filter-btn {
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.mgc-filter-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.mgc-filter-btn.active {
    background: var(--tertiary-color);
}

/* ── Grid ── */
.mgc-grid {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* ── Card ── */
.mgc-news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(76, 32, 5, 0.07), 0 8px 32px rgba(76, 32, 5, 0.04);
    border: 1.5px solid rgba(184, 228, 145, 0.4);
    transition: transform 0.35s cubic-bezier(.22, 1, .36, 1), box-shadow 0.35s;
    animation: fadeUp 0.6s both;
    display: flex;
    flex-direction: column;
}

.mgc-news-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 16px 48px rgba(76, 32, 5, 0.12), 0 4px 16px rgba(69, 158, 69, 0.15);
}

.mgc-news-card:nth-child(1) {
    animation-delay: 0.1s;
}

.mgc-news-card:nth-child(2) {
    animation-delay: 0.2s;
}

.mgc-news-card:nth-child(3) {
    animation-delay: 0.3s;
}

.mgc-news-card:nth-child(4) {
    animation-delay: 0.4s;
}

.mgc-news-card:nth-child(5) {
    animation-delay: 0.5s;
}

.mgc-news-card:nth-child(6) {
    animation-delay: 0.6s;
}

.mgc-news-card::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--teal), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.mgc-news-card-img-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #e8f5e1 0%, #c8e6c9 50%, #b2dfdb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.mgc-news-card-img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: glint 2.5s ease-in-out infinite;
}

.mgc-news-card-body {
    padding: 22px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mgc-news-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(184, 228, 145, 0.3);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 50px;
    padding: 4px 12px;
    margin-bottom: 12px;
    width: fit-content;
    border: 1px solid rgba(69, 158, 69, 0.2);
}

.mgc-news-card h2 {
    font-family: 'Dynapuff', cursive;
    font-size: 1.15rem;
    color: var(--tertiary-color);
    line-height: 1.35;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.mgc-news-card:hover h2 {
    color: var(--primary-color);
}

.mgc-news-card p {
    font-family: 'Bellota', cursive;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mgc-news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(184, 228, 145, 0.5);
}

.mgc-news-card-date {
    font-size: 0.78rem;
    color: var(--gray);
    font-weight: 500;
}

.mgc-read-btn {
    background: transparent;
    border: 2px solid var(--teal);
    color: var(--teal);
    border-radius: 50px;
    padding: 6px 16px;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mgc-read-btn:hover {
    background: var(--teal);
    color: #fff;
    transform: translateX(3px);
}

/* ── Empty state ── */
.mgc-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.mgc-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

.mgc-empty h3 {
    font-family: 'Dynapuff', cursive;
    font-size: 1.4rem;
    color: var(--tertiary-color);
    margin-bottom: 8px;
}

.mgc-empty p {
    color: var(--gray);
    font-family: 'Bellota', cursive;
}

/* ── Page show ── */
.mgc-show-container {
    max-width: 720px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.mgc-show-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 8px;
    box-shadow: 0 8px 32px rgba(76, 32, 5, 0.12);
}

.mgc-show-content {
    font-family: 'Bellota', cursive;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.9;
}

/* ── Card image réelle ── */
.mgc-news-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
