/* ===== MODULE ADS (Annonces) ===== */

/* ===== HERO ===== */
.ads-hero {
    background: linear-gradient(135deg, #0a2a3a 0%, #114a60 100%);
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
}
.ads-hero .hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.ads-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #fff;
}
.ads-hero p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== LISTE ===== */
.ads-list {
    padding: 50px 0 60px;
    background: #f8fafc;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.ads-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ads-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border-color: #d4af37;
}

.ads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ads-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ads-date {
    font-size: 0.78rem;
    color: #64748b;
}
.ads-date i {
    color: #d4af37;
    margin-right: 4px;
}

.ads-title {
    font-size: 1.2rem;
    color: #0a2a3a;
    line-height: 1.35;
}

.ads-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: #475569;
}
.ads-meta i {
    color: #2e7d32;
    margin-right: 4px;
}

.ads-description {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
    flex: 1;
}

.ads-actions {
    margin-top: 4px;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: #2e7d32;
    color: #fff;
}
.btn-primary:hover {
    background: #1b5e20;
    transform: translateY(-2px);
}
.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}
.empty-state i {
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}
.empty-state p {
    font-size: 1.05rem;
    color: #475569;
    margin: 4px 0;
}
.empty-state p:last-child {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* ===== CTA FINAL ===== */
.cta-final {
    padding: 50px 0;
    text-align: center;
}
.cta-final h2 {
    font-size: 1.8rem;
    color: #0a2a3a;
    margin-bottom: 12px;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ads-hero {
        padding: 50px 0 30px;
    }
    .ads-hero h1 {
        font-size: 1.8rem;
    }
    .ads-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FILTRES ===== */
.ads-filters-section {
    background: #f8fafc;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}
.ads-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}
.filter-chip:hover {
    border-color: var(--chip-color, #2e7d32);
    color: var(--chip-color, #2e7d32);
    transform: translateY(-2px);
}
.filter-chip.active {
    background: var(--chip-color, #2e7d32);
    color: #fff;
    border-color: var(--chip-color, #2e7d32);
}

/* ===== IMAGE DANS CARTE ===== */
.ads-image {
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    margin: 12px 0;
}
.ads-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== CARTE EXPIRÉE ===== */
.ads-card.expired {
    opacity: 0.7;
}
.ads-card.expired .ads-title {
    color: #94a3b8;
}
.expired-date {
    color: #dc2626 !important;
}

/* ===== PAGE DÉTAIL ===== */
.ads-detail-page {
    padding: 50px 0 60px;
    background: #f8fafc;
}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.btn-back:hover { gap: 12px; }

.ads-detail-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.ads-detail-title {
    font-size: 1.8rem;
    color: #0a2a3a;
    margin: 16px 0;
    line-height: 1.3;
}
.ads-detail-image {
    margin: 20px 0;
    border-radius: 16px;
    overflow: hidden;
    max-height: 300px;
}
.ads-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ads-detail-content {
    font-size: 1rem;
    color: #334155;
    line-height: 1.8;
    margin: 24px 0;
}
.ads-detail-content p { margin-bottom: 14px; }
.ads-detail-content h2, .ads-detail-content h3 {
    color: #0a2a3a;
    margin: 20px 0 10px;
}
.ads-detail-content ul, .ads-detail-content ol {
    margin: 12px 0 12px 24px;
}
.ads-detail-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 14px 0;
}

/* ===== CANDIDATURE ===== */
.ads-candidature-block {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    border-top: 4px solid #d4af37;
    margin-top: 30px;
}
.ads-candidature-block h2 {
    color: #0a2a3a;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.candidature-form .form-group {
    margin-bottom: 14px;
}
.candidature-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0a2a3a;
}
.candidature-form input,
.candidature-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
}
.candidature-form input:focus,
.candidature-form textarea:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.alert-message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.alert-message.success { background: #d4edda; color: #155724; }
.alert-message.error   { background: #f8d7da; color: #721c24; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ads-detail-card { padding: 20px 16px; }
    .ads-detail-title { font-size: 1.4rem; }
    .ads-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .filter-chip { white-space: nowrap; }
}