/**
 * imse-bandeau-jc.css
 * Bandeau jeu-concours empire V2 — 2 bandes + compteur LIVE
 * Design flat empire : navy/cream/gold (PAS de gradients lourds ni drop-shadow)
 * Mobile-first responsive : mobile (< 768px) compteur 2x2 / tablette+ horizontal
 *
 * Seal : EMPIRE-2026-06-08-7LG5
 */

:root {
    --imse-jc-navy:        #0a1f44;
    --imse-jc-navy-soft:   rgba(10, 31, 68, 0.92);
    --imse-jc-cream:       #f5f1e8;
    --imse-jc-cream-light: #fcf6e7;
    --imse-jc-gold:        #d4a574;
    --imse-jc-gold-accent: #b8884e;
    --imse-jc-gold-light:  #e8c089;
}

.imse-bandeau-jc {
    max-width: 720px;
    margin: 24px auto;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--imse-jc-navy);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(10, 31, 68, 0.08);
}

/* ===== BANDE 1 : Header navy + bordure gold ===== */
.imse-bandeau-jc__header {
    background: var(--imse-jc-navy);
    border: 1.5px solid var(--imse-jc-gold);
    border-radius: 8px 8px 0 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.imse-bandeau-jc__trophee {
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.imse-bandeau-jc__trophee svg {
    width: 32px;
    height: 32px;
    display: block;
}

.imse-bandeau-jc__texte {
    flex: 1 1 auto;
    min-width: 200px;
}

.imse-bandeau-jc .imse-bandeau-jc__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--imse-jc-cream) !important;
    margin: 0 0 4px;
    padding: 0;
    letter-spacing: 0.01em;
    line-height: 1.25;
    background: transparent !important;
    text-shadow: none;
}

.imse-bandeau-jc .imse-bandeau-jc__subtitle {
    font-size: 0.78rem;
    color: var(--imse-jc-gold) !important;
    margin: 0;
    padding: 0;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.imse-bandeau-jc__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(90deg, var(--imse-jc-gold) 0%, var(--imse-jc-gold-light) 50%, var(--imse-jc-gold) 100%);
    color: var(--imse-jc-navy);
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 22px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.imse-bandeau-jc__cta:hover,
.imse-bandeau-jc__cta:focus-visible {
    transform: translateX(2px);
    box-shadow: 0 4px 14px rgba(212, 165, 116, 0.45);
    outline: none;
}

.imse-bandeau-jc__cta-text {
    letter-spacing: 0.06em;
}

.imse-bandeau-jc__cta-arrow {
    font-size: 1rem;
}

.imse-bandeau-jc__cta-time {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.85;
    margin-left: 2px;
}

/* ===== BANDE 2 : Compteur cream + bordure gold ===== */
.imse-bandeau-jc__countdown {
    background: var(--imse-jc-cream);
    border: 1.5px solid var(--imse-jc-gold);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 22px 20px 18px;
    text-align: center;
}

.imse-bandeau-jc .imse-bandeau-jc__countdown-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--imse-jc-navy) !important;
    margin: 0 0 16px;
    padding: 0;
    background: transparent !important;
    text-shadow: none;
}

.imse-bandeau-jc__countdown-cases {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.imse-bandeau-jc__case {
    background: var(--imse-jc-navy);
    border-radius: 6px;
    padding: 10px 14px;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.imse-bandeau-jc__case-digit {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--imse-jc-cream);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.imse-bandeau-jc__case-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    color: var(--imse-jc-gold);
    margin-top: 4px;
    letter-spacing: 0.06em;
    line-height: 1;
}

.imse-bandeau-jc__separator {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--imse-jc-navy);
    line-height: 1;
    margin: 0 2px;
}

.imse-bandeau-jc__date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid rgba(212, 165, 116, 0.4);
}

.imse-bandeau-jc__date strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.75rem;
    color: var(--imse-jc-navy);
    font-weight: 700;
    line-height: 1.1;
}

.imse-bandeau-jc__date small {
    font-size: 0.68rem;
    color: var(--imse-jc-navy);
    margin-top: 2px;
    font-weight: 500;
    line-height: 1;
}

.imse-bandeau-jc__note {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--imse-jc-navy);
    margin: 8px 0 0;
    opacity: 0.85;
}

/* ===== Affichage post-tirage ===== */
.imse-bandeau-jc__ended {
    background: var(--imse-jc-cream);
    border: 1.5px solid var(--imse-jc-gold);
    border-radius: 8px;
    padding: 28px 20px;
    text-align: center;
}

.imse-bandeau-jc__ended p {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--imse-jc-navy);
    margin: 0;
}

/* ===== RESPONSIVE ===== */

/* Mobile portrait (< 540px) : compteur 2x2 + CTA pleine largeur */
@media (max-width: 540px) {
    .imse-bandeau-jc {
        margin: 16px;
    }
    .imse-bandeau-jc__header {
        padding: 14px 16px;
        gap: 12px;
    }
    .imse-bandeau-jc__title {
        font-size: 0.95rem;
    }
    .imse-bandeau-jc__subtitle {
        font-size: 0.72rem;
    }
    .imse-bandeau-jc__cta {
        flex: 1 1 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 0.8rem;
    }
    .imse-bandeau-jc__countdown {
        padding: 18px 14px 14px;
    }
    .imse-bandeau-jc__countdown-cases {
        gap: 4px;
    }
    .imse-bandeau-jc__case {
        padding: 8px 10px;
        min-width: 48px;
    }
    .imse-bandeau-jc__case-digit {
        font-size: 1.35rem;
    }
    .imse-bandeau-jc__case-label {
        font-size: 0.55rem;
    }
    .imse-bandeau-jc__separator {
        font-size: 1.1rem;
    }
    .imse-bandeau-jc__date {
        flex: 1 1 100%;
        flex-direction: row;
        justify-content: center;
        gap: 6px;
        margin: 10px 0 0;
        padding: 8px 0 0;
        border-left: none;
        border-top: 1px solid rgba(212, 165, 116, 0.4);
    }
    .imse-bandeau-jc__date small {
        margin-top: 0;
    }
}

/* Tablette (541-1023px) : compteur horizontal compact */
@media (min-width: 541px) and (max-width: 1023px) {
    .imse-bandeau-jc__case {
        min-width: 64px;
    }
    .imse-bandeau-jc__case-digit {
        font-size: 1.6rem;
    }
}

/* Desktop (>= 1024px) : compteur horizontal + date à droite */
@media (min-width: 1024px) {
    .imse-bandeau-jc {
        max-width: 800px;
    }
    .imse-bandeau-jc__header {
        padding: 18px 24px;
    }
    .imse-bandeau-jc__title {
        font-size: 1.12rem;
    }
    .imse-bandeau-jc__case {
        padding: 12px 18px;
        min-width: 70px;
    }
    .imse-bandeau-jc__case-digit {
        font-size: 1.9rem;
    }
}

/* Réduction d'animations si user préfère */
@media (prefers-reduced-motion: reduce) {
    .imse-bandeau-jc__cta {
        transition: none;
    }
    .imse-bandeau-jc__cta:hover {
        transform: none;
    }
}
