#ihc-root {
    position: static;
}

.ihc-pumpkin {
    position: fixed;
    /* Au-dessus de tout élément fixe du thème (player radio, bandeaux...)
       qui pourrait sinon passer devant et la rendre invisible/incliquable. */
    z-index: 99000;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    opacity: .4;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
    transition: opacity .25s ease, transform .25s ease;
    animation: ihc-float 3.4s ease-in-out infinite;
}
.ihc-pumpkin:hover,
.ihc-pumpkin:focus-visible {
    opacity: 1;
    transform: scale(1.15);
}
.ihc-pumpkin img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ihc-pumpkin.ihc-found {
    opacity: .55;
}
.ihc-pumpkin.ihc-found::after {
    content: '✓';
    position: absolute;
    top: -4px;
    right: -4px;
    background: #2e7d32;
    color: #fff;
    font-size: 11px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes ihc-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* ── Emplacements ────────────────────────────────────────────────────── */
.ihc-slot-coin-haut-gauche { top: 130px; left: 2%; }
.ihc-slot-coin-haut-droite { top: 130px; right: 2%; }
.ihc-slot-milieu-gauche    { top: 45%;   left: 1.5%; }
.ihc-slot-milieu-droite    { top: 45%;   right: 1.5%; }
.ihc-slot-bas-gauche       { bottom: 8%; left: 3%; }
.ihc-slot-bas-droite       { bottom: 8%; right: 3%; }
.ihc-slot-centre-haut      { top: 130px; left: 50%; transform: translateX(-50%); }
.ihc-slot-centre-bas       { bottom: 18%; left: 50%; transform: translateX(-50%); }

@media (max-width: 680px) {
    .ihc-pumpkin { width: 38px; height: 38px; font-size: 24px; }
    .ihc-slot-milieu-gauche, .ihc-slot-milieu-droite { top: 38%; }
    .ihc-slot-centre-haut { top: 110px; }
    /* Sur mobile, le player radio fixe en bas prend proportionnellement
       plus de place qu'en desktop (où "bottom: 8%/18%" restait au-dessus
       de lui) : on remonte les emplacements du bas avec une valeur fixe
       assez haute pour toujours passer au-dessus de ce player, quel que
       soit le gabarit de page. */
    .ihc-slot-bas-gauche, .ihc-slot-bas-droite { bottom: 130px; }
    .ihc-slot-centre-bas { bottom: 160px; }
}

/* ── Modale de révélation ───────────────────────────────────────────── */
.ihc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 20, .65);
    z-index: 9100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ihc-modal {
    background: #fff;
    border-radius: 10px;
    max-width: 420px;
    width: 100%;
    padding: 24px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
    font-family: inherit;
}
.ihc-modal h3 {
    margin: 0 0 12px;
    font-size: 18px;
}
.ihc-modal p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}
.ihc-modal-answer-cta {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.ihc-modal-answer-cta p {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
}
.ihc-modal-answer-btn {
    display: inline-block;
    background: #ff7518;
    color: #fff;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}
.ihc-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 6px;
}

/* ── Badge CTA ───────────────────────────────────────────────────────
   Un badge compact en haut de l'écran plutôt qu'un bandeau pleine
   largeur en bas : la plupart des lecteurs radio intégrés (barre de
   lecture persistante) sont ancrés en bas de page, donc on évite
   complètement cette zone pour ne jamais se superposer à eux. */
.ihc-cta {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 9200;
    background: #2d2140;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(320px, calc(100% - 24px));
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.ihc-cta span { font-size: 13px; line-height: 1.3; }
.ihc-cta a {
    background: #ff7518;
    color: #fff;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.ihc-cta-close {
    background: none;
    border: none;
    color: #fff;
    opacity: .7;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
}

@media (max-width: 520px) {
    .ihc-cta { top: 8px; right: 8px; left: 8px; max-width: none; font-size: 12px; }
}

/* ── Notice "réponses pas encore ouvertes" ──────────────────────────────
   Remplace le formulaire natif du jeu-concours lié tant que la date
   d'ouverture des réponses (réglée séparément de la date_debut du jeu)
   n'est pas atteinte, même si le jeu apparaît déjà "en cours". */
.ihc-reponses-notice {
    background: #fff4e5;
    border: 1px solid #ffb74d;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.5;
    color: #5c3d00;
}
