/* ============================================================
   hero-announcement.css
   Styles pour le widget d'annonces planifiées
   À ajouter dans custom-home-styles.css ou charger séparément
   ============================================================ */

/* Repositionne le hero pour un layout 2 colonnes quand une annonce est active */
.hero-content.has-announcement {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-content.has-announcement .hero-text {
    flex: 1 1 55%;
    min-width: 280px;
}

.hero-content.has-announcement .hero-announcement {
    flex: 0 1 340px;
    min-width: 280px;
}

/* Widget annonce */
.hero-announcement {
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    animation: ha-slidein 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    position: relative;
}

@keyframes ha-slidein {
    from { opacity: 0; transform: translateX(30px) scale(0.97); }
    to   { opacity: 1; transform: translateX(0)   scale(1); }
}

.ha-inner {
    padding: 1.25rem 1.4rem 1.2rem;
}

/* Header : badge + bouton fermer */
.ha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ha-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    line-height: 1.6;
}

.ha-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.85rem;
    padding: 2px 4px;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    border-radius: 4px;
}
.ha-close:hover {
    color: #374151;
    transform: scale(1.2);
}

/* Titre & message */
.ha-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.ha-message {
    font-size: 0.87rem;
    color: #475569;
    margin: 0 0 1rem;
    line-height: 1.55;
}

/* Footer : countdown + CTA */
.ha-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ha-countdown {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.ha-cta {
    display: inline-flex;
    align-items: center;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}
.ha-cta:hover {
    opacity: 0.88;
    transform: translateX(2px);
}

/* État fermé */
.hero-announcement.ha-hidden {
    display: none;
}

/* Responsive : empilé sur mobile */
@media (max-width: 767px) {
    .hero-content.has-announcement {
        flex-direction: column;
    }
    .hero-announcement {
        width: 100%;
        margin-top: 1.5rem;
    }
}