/* ==========================================================================
   DÉCORATION SAISONNIÈRE DE L'ACCUEIL — mise en place des toiles

   Feuille chargée seulement quand un thème est en service (Administration →
   Paramètres → Décoration de l'accueil). Tout le dessin et le mouvement sont
   dans assets/js/festif.js ; ici, seulement OÙ les toiles se posent :

     .rc-decor__scene     dans le bandeau du haut, derrière le titre ;
     .rc-decor__ambiance  derrière les cartes (grand écran), visible dans les marges ;
     .rc-decor__bouton    le bouton qui masque le décor sur cet appareil.

   Rien ne passe devant le contenu, et aucune toile ne prend un clic.
   ========================================================================== */

.rc-decor__scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Le titre et le bouton du bandeau restent au-dessus de la scène. */
.rc-decor-actif .v2-header__in {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 6px rgba(15, 23, 42, .35);
}

/* Sous le contenu, au-dessus du papier peint de la page. */
.rc-decor__ambiance {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.rc-decor__bouton {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 12px;
    line-height: 30px;
    cursor: pointer;
    opacity: .7;
    transition: opacity .15s ease, background-color .15s ease;
}
.rc-decor__bouton:hover,
.rc-decor__bouton:focus-visible { opacity: 1; background: rgba(255, 255, 255, .3); }
.rc-decor__bouton:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Décor plein écran (Halloween) : par-dessus la page, sous les menus et les fenêtres. */
.rc-decor__devant {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
    pointer-events: none;
}

/* Farce du 1er avril (festif.js) : bandeau alarmant, boutons qui s'enfuient, révélation. */
.rc-farce__alerte {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(127, 29, 29, .25);
    animation: rc-farce-tremble .5s ease-in-out 3;
}
.rc-farce__alerte i { margin-top: 3px; }
.rc-farce__fuyard {
    position: relative;
    z-index: 5;
    transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.rc-farce {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(8, 47, 73, .82);
    animation: rc-farce-entree .35s ease-out;
}
.rc-farce.is-fin { opacity: 0; transition: opacity .4s ease; }
.rc-farce__carte {
    max-width: 440px;
    width: 100%;
    padding: 22px 24px 24px;
    border-radius: 22px;
    background: #ecfeff;
    color: #164e63;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    animation: rc-farce-rebond .6s cubic-bezier(.3, 1.6, .5, 1);
}
.rc-farce__poisson { width: 100%; max-width: 320px; height: auto; }
.rc-farce__titre { font-size: clamp(30px, 8vw, 46px); font-weight: 800; color: #ea580c; line-height: 1.1; margin: 4px 0 10px; }
.rc-farce__carte p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.rc-farce__ok {
    border: 0;
    border-radius: 12px;
    padding: 10px 22px;
    background: #0e7490;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.rc-farce__ok:focus-visible { outline: 3px solid #f97316; outline-offset: 2px; }
@keyframes rc-farce-tremble { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes rc-farce-entree { from { opacity: 0; } to { opacity: 1; } }
@keyframes rc-farce-rebond { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Impression (bordereaux de convocation, fiches…) : aucun décor sur le papier.
   Les toiles sont posées en position fixe par-dessus la page : sans cette règle,
   les scènes plein écran (Halloween, Noël, Nouvel An) s’imprimaient avec le document. */
@media print {
    .rc-decor__scene,
    .rc-decor__ambiance,
    .rc-decor__devant,
    .rc-decor__bouton,
    .rc-farce,
    .rc-farce__alerte {
        display: none !important;
    }
}
