/* =============================================================================
   BOOPETS — Hôtesse d’accueil de l’Espace Invocateur (v1.0.0)
   Portrait à gauche, message à droite, raccourcis en bas.
   Palette héritée du site : nuit #10203A, ambre #F7BE48, corail #EE744E.
   ========================================================================== */

.hote-accueil{
  position:fixed; inset:0; z-index:2000;
  display:grid; place-items:center;
  padding:74px 18px 34px;
  --hote-aura:#f6bc47; --hote-aura-2:#e9843d;
}
.hote-accueil[data-ferme]{display:none}

/* ---- Voile ---------------------------------------------------------------- */
.hote-voile{
  position:absolute; inset:0; display:block;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(24,44,80,.72), transparent 60%),
    rgba(3,7,16,.88);
  backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px);
  animation:hote-voile-apparait .45s ease both;
}

/* ---- Panneau -------------------------------------------------------------- */
.hote-panneau{
  position:relative;
  width:min(960px,100%);
  display:grid; grid-template-columns:290px minmax(0,1fr); align-items:center; gap:8px 34px;
  padding:38px 42px 40px;
  border:1px solid rgba(229,177,70,.82); border-radius:26px;
  background:linear-gradient(150deg,rgba(18,35,61,.98),rgba(5,14,27,.99));
  box-shadow:0 34px 90px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.06);
  animation:hote-panneau-apparait .5s cubic-bezier(.2,.9,.3,1) both;
}
.hote-panneau::before{
  content:""; position:absolute; left:14%; right:14%; top:-1px; height:2px;
  background:linear-gradient(90deg,transparent,#f6e5b2,transparent);
  box-shadow:0 0 18px rgba(247,214,130,.65);
}
.hote-panneau::after{
  content:"◇"; position:absolute; left:50%; bottom:-17px; transform:translateX(-50%);
  padding:0 14px; color:#e8b548; font-size:26px; line-height:32px;
  background:radial-gradient(closest-side,#0a1424 62%,rgba(10,20,36,0));
}

/* ---- Croix de sortie ------------------------------------------------------ */
.hote-fermer{
  position:absolute; top:12px; right:14px; z-index:3;
  display:grid; place-items:center; width:44px; height:44px;
  border:1px solid rgba(233,194,106,.34); border-radius:50%;
  background:rgba(6,13,26,.72); color:#e9c26a; font-size:18px; line-height:1;
  text-decoration:none; transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.hote-fermer:hover{background:rgba(233,194,106,.14); border-color:rgba(233,194,106,.6); transform:rotate(90deg)}

/* ---- Portrait ------------------------------------------------------------- */
.hote-portrait{position:relative; align-self:center; margin:-34px 0 -20px}
.hote-portrait img{
  position:relative; z-index:2; display:block; width:100%; height:auto;
  filter:drop-shadow(0 20px 34px rgba(0,0,0,.55));
  animation:hote-portrait-entre .62s cubic-bezier(.2,.9,.3,1) both .06s;
}
.hote-halo{
  position:absolute; z-index:1; left:50%; top:46%; transform:translate(-50%,-50%);
  width:118%; aspect-ratio:1; border-radius:50%;
  background:radial-gradient(circle at 50% 50%, var(--hote-aura) 0%, var(--hote-aura-2) 34%, transparent 68%);
  opacity:.34; filter:blur(10px);
  animation:hote-halo-respire 5.5s ease-in-out infinite;
}

/* ---- Message -------------------------------------------------------------- */
.hote-message{padding-bottom:4px}
.hote-kicker{
  margin:0 0 8px; color:#e9b84e; font-size:.72rem; font-weight:800;
  text-transform:uppercase; letter-spacing:.2em;
}
.hote-kicker span{margin-right:6px}
.hote-nom{
  margin:0; font-family:Georgia,serif; font-size:clamp(2rem,4.2vw,2.9rem); line-height:1;
  background:linear-gradient(180deg,#fff7dd 0%,#f2c45e 62%,#c98721 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hote-role{margin:8px 0 18px; color:#8f9ab7; font-size:.85rem; letter-spacing:.04em}
.hote-intro{
  margin:0 0 18px; color:#f2eee2; font-size:1.08rem; line-height:1.62;
  font-family:Georgia,serif;
}

/* ---- Les nouvelles -------------------------------------------------------- */
.hote-nouvelles{
  list-style:none; display:grid; gap:9px; margin:0 0 18px; padding:0;
  max-height:min(42vh,330px); overflow-y:auto; overscroll-behavior:contain;
  scrollbar-width:thin; scrollbar-color:rgba(233,194,106,.45) transparent;
}
.hote-nouvelles::-webkit-scrollbar{width:6px}
.hote-nouvelles::-webkit-scrollbar-thumb{background:rgba(233,194,106,.4); border-radius:99px}
.hote-nouvelles li{
  display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:13px;
  padding:11px 15px;
  border:1px solid rgba(255,255,255,.08); border-left:2px solid rgba(233,194,106,.65);
  border-radius:14px; background:rgba(255,255,255,.045);
  animation:hote-ligne-apparait .42s ease both;
  animation-delay:calc(.22s + var(--i,0) * .07s);
}
.hote-icone{
  display:grid; place-items:center; width:34px; height:34px; border-radius:11px;
  background:rgba(233,194,106,.13); border:1px solid rgba(233,194,106,.22); font-size:17px;
}
.hote-texte{color:#e6e3da; font-size:.97rem; line-height:1.5}

.hote-sortie{margin:0 0 20px; color:#aab1c9; font-family:Georgia,serif; font-style:italic; font-size:.98rem}

/* ---- Raccourcis ----------------------------------------------------------- */
.hote-actions{display:flex; flex-wrap:wrap; gap:10px}
.hote-bouton{
  display:inline-block; padding:11px 20px; border-radius:999px;
  border:1px solid rgba(233,194,106,.5);
  background:linear-gradient(180deg,#f7dd9c,#e0ac48);
  color:#3a2708; font-size:.92rem; font-weight:800; text-decoration:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6), 0 12px 26px rgba(0,0,0,.34);
  transition:transform .16s ease, box-shadow .16s ease;
}
.hote-bouton:hover{transform:translateY(-2px); box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 16px 34px rgba(233,194,106,.3)}
.hote-bouton-discret{
  background:transparent; color:#e9c26a; border-color:rgba(233,194,106,.3);
  box-shadow:none; font-weight:600;
}
.hote-bouton-discret:hover{background:rgba(233,194,106,.1); box-shadow:none}

/* ---- Bouton de rappel (relire le message) --------------------------------- */
.hote-rappel{
  position:fixed; right:18px; bottom:18px; z-index:1500;
  width:62px; height:62px; padding:0; overflow:hidden;
  border:1px solid rgba(233,194,106,.55); border-radius:50%;
  background:radial-gradient(circle at 50% 30%, rgba(233,194,106,.28), rgba(8,16,30,.96));
  box-shadow:0 14px 32px rgba(0,0,0,.45); cursor:pointer;
  animation:hote-rappel-apparait .4s ease both;
}
.hote-rappel img{display:block; width:100%; height:100%; object-fit:cover; object-position:50% 16%; transform:scale(1.22)}
.hote-rappel:hover{border-color:rgba(233,194,106,.9)}

/* ---- Accessibilité -------------------------------------------------------- */
.hote-accueil a:focus-visible,
.hote-rappel:focus-visible{outline:2px solid #f7be48; outline-offset:3px}

/* ---- Animations ----------------------------------------------------------- */
@keyframes hote-voile-apparait{from{opacity:0}to{opacity:1}}
@keyframes hote-panneau-apparait{from{opacity:0; transform:translateY(22px) scale(.975)}to{opacity:1; transform:none}}
@keyframes hote-portrait-entre{from{opacity:0; transform:translateX(-26px) translateY(14px)}to{opacity:1; transform:none}}
@keyframes hote-ligne-apparait{from{opacity:0; transform:translateY(8px)}to{opacity:1; transform:none}}
@keyframes hote-halo-respire{0%,100%{opacity:.34; transform:translate(-50%,-50%) scale(1)}50%{opacity:.5; transform:translate(-50%,-50%) scale(1.06)}}
@keyframes hote-rappel-apparait{from{opacity:0; transform:scale(.7)}to{opacity:1; transform:none}}

/* ---- Mobile --------------------------------------------------------------- */
@media (max-width:760px){
  .hote-accueil{padding:12px}
  .hote-panneau{
    grid-template-columns:1fr; align-items:start; gap:0;
    padding:20px 20px 26px; border-radius:22px;
    max-height:92vh; overflow-y:auto; overscroll-behavior:contain;
  }
  .hote-panneau::after{display:none}
  .hote-portrait{width:136px; margin:0 auto 4px}
  .hote-nouvelles{max-height:none; overflow:visible}
  .hote-message{max-height:none; overflow:visible; padding:0}
  .hote-nom{font-size:1.9rem}
  .hote-intro{font-size:1rem}
  .hote-texte{font-size:.93rem}
  .hote-actions .hote-bouton{flex:1 1 auto; text-align:center}
  .hote-rappel{width:54px; height:54px; right:14px; bottom:14px}
}

@media (max-width:400px){
  .hote-panneau{padding:22px 16px 26px}
  .hote-nouvelles li{padding:10px 12px; gap:10px}
  .hote-icone{width:30px; height:30px; font-size:15px}
}

/* ---- Mouvement réduit ----------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .hote-voile,.hote-panneau,.hote-portrait img,.hote-nouvelles li,.hote-halo,.hote-rappel{animation:none!important}
  .hote-fermer:hover,.hote-bouton:hover{transform:none}
}
