/* ============================
   Server553 - Style global
   (desktop / tablet / mobile)
   ============================ */

/* --------- Variables --------- */
:root{
  --bg: #0b0c10;
  --panel: #12141a;
  --text: #ffc69d;     /* Texte par défaut : orange vif */
  --muted: #a5b0c2;    /* Texte secondaire */
  --accent: #ff6b00;   /* Boutons / liens / highlights */
  --border: #1f2430;
  --shadow: rgba(0,0,0,.35);
  --maxw: 1100px;

  /* Rythme typographique */
  --fs-base: 16px;
  --fs-h1: clamp(24px, 3vw, 40px);
  --radius: 16px;
}

/* --------- Reset / Base --------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ font-size: var(--fs-base); }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height:1.5;
}

/* Liens */
a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Titres & texte */
h1{ font-size: var(--fs-h1); margin:0 0 .5rem; color: var(--accent); }
h2,h3,h4,h5,h6{ color: var(--accent); margin: .75rem 0 .5rem; }
p{ margin: 0 0 1rem; }

/* Conteneur */
.wrapper{ max-width: var(--maxw); margin: 0 auto; padding: 16px; }

/* --------- Header & Footer images ---------
   HTML: <div class="hero-aspect header">...</div> et <div class="hero-aspect footer">...</div>
   L'aspect-ratio est géré via padding-top et s'adapte par breakpoint
------------------------------------------- */

/* Conteneur avec ratio */
.hero-aspect{ position: relative; width:100%; }

/* Header par défaut (desktop ~1920x400 ≈ 20%) */
.hero-aspect.header::before{ content:""; display:block; padding-top:20%; }

/* Footer par défaut (desktop ~1920x300 ≈ 15.6%) */
.hero-aspect.footer::before{ content:""; display:block; padding-top:16%; }

/* Le <picture> occupe tout l’espace du ratio */
.header-picture,
.footer-picture{ position:absolute; inset:0; display:block; width:100%; height:100%; }
.header-picture img,
.footer-picture img{
  width:100%; height:100%;
  display:block;
  object-fit: cover;          /* Remplir le cadre en gardant un rendu propre */
}

/* --------- Cartes / sections --------- */
.card{
  background: linear-gradient(180deg, #131722 0%, #0e1118 100%);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px var(--shadow);
}

/* --------- Boutons --------- */
.btn,
.cta{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  background: var(--accent);
  color:#0b0906;
  font-weight:700;
  padding: 12px 20px;
  border:none;
  border-radius: 999px;
  cursor:pointer;
  text-decoration:none;
  transition: transform .12s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px rgba(255,107,0,.25);
}
.btn:hover, .cta:hover{ transform: translateY(-1px); filter: brightness(1.06); }
.btn:active, .cta:active{ transform: translateY(0); filter: brightness(.98); }
.btn:focus-visible, .cta:focus-visible{
  outline: 2px solid #fff2; outline-offset: 2px;
}

/* Variantes */
.btn--ghost{
  background: transparent;
  color: var(--accent);
  border:1px solid var(--accent);
  box-shadow:none;
}
.btn--dark{
  background:#1b1f2a;
  color:#fff;
}

/* Tailles */
.btn--lg{ padding: 14px 26px; font-size: 1.05rem; }
.btn--sm{ padding: 8px 14px; font-size: .9rem; }

/* --------- Footer --------- */
footer{ padding: 24px 0 40px; }
.fineprint{ color: var(--muted); font-size: 14px; text-align:center; margin-top: 8px; }

/* --------- Layout principal --------- */
main{ padding: 24px 0 56px; }

/* --------- Utilitaires --------- */
.mt-1{ margin-top:.5rem; }
.mt-2{ margin-top:1rem; }
.mt-3{ margin-top:1.5rem; }
.center{ text-align:center; }

/* ============================
   Breakpoints
   - ≥1024px : Desktop (défaut)
   - 640–1023px : Tablet
   - ≤639px : Mobile
   ============================ */

/* ----- Tablet (≥640px et <1024px) ----- */
@media (min-width:640px) and (max-width:1023.98px){
  .wrapper{ padding:24px; }
  main{ padding: 32px 0 72px; }
  .card{ padding: 28px; }

  /* Header un peu plus haut en tablette */
  .hero-aspect.header::before{ padding-top:24%; }
  /* Footer un peu plus haut aussi */
  .hero-aspect.footer::before{ padding-top:18%; }
}

/* ----- Mobile (≤639px) ----- */
@media (max-width:639.98px){
  .wrapper{ padding:16px; }
  .card{ padding:20px; }

  /* Header plus haut pour garder lisibilité du visuel mobile */
  .hero-aspect.header::before{ padding-top:36%; }
  /* Footer plus haut également */
  .hero-aspect.footer::before{ padding-top:24%; }

  /* Boutons en plein largeur si besoin */
  .btn, .cta{ width:100%; }
}

/* ============================
   NAVIGATION (static click submenus)
   ============================ */
.nav{
  position: sticky; top:0; z-index: 50;
  background: linear-gradient(180deg, #0f131c 0%, #0b0c10 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(4px);
}
.nav__inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; }

/* Marque */
.nav__brand{ display:flex; align-items:center; gap:.5rem; text-decoration:none; }
.nav__logo{ font-weight:800; letter-spacing:.5px; color: var(--text); }

/* Burger */
.nav__toggle{
  display:none;
  background: transparent; border:1px solid #ffffff1a; border-radius:10px;
  padding:8px 10px; cursor:pointer;
}
.nav__bar{ display:block; width:22px; height:2px; background:#fff; margin:4px 0; }

/* Menu (desktop par défaut) */
.nav__menu{
  display:flex; align-items:center; gap:12px; list-style:none; margin:0; padding:0;
}
.nav__item > a, .nav__link{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:12px 14px; border-radius:10px; font-weight:700; color: var(--text);
  text-decoration:none; transition: background .2s ease, color .2s ease;
}
.nav__item > a:hover, .nav__link:hover{
  background: #ffffff0f;
}

/* Chevron animé */
.chev{ display:inline-block; transition: transform .18s ease; }
.has-sub.is-open .chev{ transform: rotate(180deg); }

/* Sous-menus: collés juste sous l'onglet, visibles via .is-open */
.has-sub{ position: relative; }
.subnav{
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: #111522;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow);
  display: none;
  list-style: none;
  z-index: 100;
}
.has-sub.is-open > .subnav{ display:block; }
.subnav a{
  display:block; padding:10px 12px; border-radius:8px; color: var(--text);
}
.subnav a:hover{ background:#ffffff12; }

/* --- Mobile / Tablette: panneau + accordéon --- */
@media (max-width:1023.98px){
  .nav__toggle{ display:block; }
  .nav__menu{
    position: fixed; inset: 64px 0 0 0;
    background: #0b0c10;
    border-top: 1px solid var(--border);
    display:none; flex-direction: column; align-items: stretch;
    gap:0; padding: 8px 12px;
  }
  .nav__menu.is-open{ display:flex; }

  .nav__item > a, .nav__link{
    padding:14px 12px; border-radius:12px; font-size:1.02rem;
  }

  /* Sous-menus en colonnes (accordéon) */
  .has-sub{ position: static; }
  .subnav{
    position: static; display:none; padding: 6px 8px;
    background:#0e121c; border-radius:10px; border: 1px solid var(--border);
  }
  .has-sub.is-open > .subnav{ display:block; }
}

/* ===== Lang switcher (Google Translate) ===== */
.langbar{ display:flex; align-items:center; gap:12px; position:relative; }
.langbar .lang-toggle{ background: var(--accent); color:#0b0906; border:none; }
.langbar .lang-menu{
  position: absolute; right:0; top: calc(100% + 6px);
  background: #111522;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow);
  list-style: none;
  padding: 6px;
  z-index: 60;
}
.langbar .lang-menu li{ margin: 0; }
.langbar .lang-menu button{
  display:block; width:100%;
  background: transparent; border:none; cursor:pointer;
  color: var(--text); text-align:left;
  padding: 10px 12px; border-radius: 8px;
}
.langbar .lang-menu button:hover{ background:#ffffff12; }
#google_translate_element { position: absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
/* === Support langue arabe (RTL) === */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .nav__inner { flex-direction: row-reverse; }
html[dir="rtl"] .nav__menu { text-align: right; }
html[dir="rtl"] .langbar .lang-menu { left: 0; right: auto; }
html[dir="rtl"] .subnav { right: 0; left: auto; }

.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;      /* limite la largeur sur grand écran */
  margin: 16px auto;     /* centre le bloc */
  aspect-ratio: 16 / 9;  /* ratio vidéo moderne (au lieu du duo padding/height) */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,.3);
}
.video-container iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
/* ===== Bouton Retour en Haut ===== */
#backToTop {
  position: fixed;
  bottom: 20px;           /* hauteur depuis le bas */
  left: 20px;             /* ✅ sur la gauche maintenant */
  z-index: 9999;
  background: linear-gradient(90deg, #ff6b00, #ffae00);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
  pointer-events: none;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  transform: scale(1.1);
}

/* ======== Titre style feu animé ======== */
.fire-title {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 36px);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  background: linear-gradient(45deg, #ff7b00, #ffae00, #ff3c00);
  background-size: 200% 200%;
  animation: fireGradient 2s infinite alternate;
  box-shadow: 0 0 25px rgba(255, 140, 0, 0.6), 0 0 50px rgba(255, 60, 0, 0.4);
  transition: all 0.3s ease;
}

/* Animation du feu (mouvement de couleur) */
@keyframes fireGradient {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 20px rgba(255, 120, 0, 0.6);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 35px rgba(255, 200, 0, 0.8);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 20px rgba(255, 60, 0, 0.6);
  }
}

/* Effet au survol */
.fire-title:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}
/* ======== Titre H3 style feu animé ======== */
.fire-title-small {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(16px, 2vw, 26px);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  background: linear-gradient(45deg, #ff7b00, #ffae00, #ff3c00);
  background-size: 200% 200%;
  animation: fireGradientSmall 2s infinite alternate;
  box-shadow: 0 0 18px rgba(255, 140, 0, 0.5), 0 0 35px rgba(255, 60, 0, 0.3);
  transition: all 0.3s ease;
}

/* Animation du feu (mouvement de couleur) */
@keyframes fireGradientSmall {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 15px rgba(255, 120, 0, 0.5);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 25px rgba(255, 200, 0, 0.7);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 15px rgba(255, 60, 0, 0.5);
  }
}

/* Effet au survol */
.fire-title-small:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}










/* ===== Variables personnalisables (couleurs du feu) ===== */
:root{
  --fire1: #ff7b00;
  --fire2: #ffae00;
  --fire3: #ff3c00;
  --fire-radius: 16px;
}

/* ===== Cadre image style "feu" ===== */
.fire-img{
  --pad: 6px;                        /* épaisseur du cadre feu */
  display:inline-block;
  border-radius: var(--fire-radius);
  padding: var(--pad);
  background: linear-gradient(45deg, var(--fire1), var(--fire2), var(--fire3));
  background-size: 200% 200%;
  animation: firePulse 2s infinite alternate;
  box-shadow: 0 0 25px rgba(255,140,0,.45), 0 0 50px rgba(255,60,0,.25);
  cursor: zoom-in;
  text-align:center;
}
.fire-img img{
  display:block;
  width: min(100%, 520px);           /* largeur max de la vignette */
  height: auto;
  border-radius: calc(var(--fire-radius) - var(--pad));
}
.fire-img figcaption{
  color:#fff; opacity:.85; font-size:.9rem; margin-top:6px;
}

/* Animation du feu (même logique que tes titres) */
@keyframes firePulse{
  0%   { background-position: 0% 50%; box-shadow: 0 0 18px rgba(255, 120, 0, .5); }
  50%  { background-position: 100% 50%; box-shadow: 0 0 30px rgba(255, 200, 0, .7); }
  100% { background-position: 0% 50%; box-shadow: 0 0 18px rgba(255, 60, 0, .5); }
}

/* ===== Lightbox plein écran ===== */
.fire-lightbox{
  position: fixed; inset:0; display:none;
  align-items:center; justify-content:center;
  background: rgba(0,0,0,.7);
  z-index: 100001;
  padding: 24px;
}
.fire-lightbox.open{ display:flex; }
.fire-large{
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  border-radius: var(--fire-radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}

/* Bouton fermer */
.fire-close{
  position:absolute; top:16px; right:16px;
  border:none; cursor:pointer;
  background: linear-gradient(45deg, var(--fire1), var(--fire2));
  color:#0b0c10; font-weight:800;
  border-radius: 999px;
  width:40px; height:40px; line-height:40px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.fire-close:hover{ filter:brightness(1.1); transform: translateY(-1px); }
/* Centrer l'image feu */
.fire-img {
  display: inline-block;
  margin: 0 auto;           /* centrage horizontal */
  text-align: center;
}

/* S'assurer que le parent (section ou div) centre bien le contenu */
.fire-img-container,
.fire-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
/* Correction : centrer et contenir parfaitement l'image dans le cadre feu */
.fire-img {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  border-radius: var(--fire-radius);
  padding: var(--pad);
  background: linear-gradient(45deg, var(--fire1), var(--fire2), var(--fire3));
  background-size: 200% 200%;
  animation: firePulse 2s infinite alternate;
  box-shadow: 0 0 25px rgba(255,140,0,.45), 0 0 50px rgba(255,60,0,.25);
  cursor: zoom-in;
}

.fire-img img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: cover;         /* ✅ centre visuellement l’image */
  border-radius: calc(var(--fire-radius) - var(--pad));
}
/* ===== Barre de chargement enflammée (version centrée) ===== */
#flame-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* ✅ centre parfaitement */
  width: min(90vw, 400px);          /* largeur responsive */
  height: 10px;                     /* épaisseur de la barre */
  pointer-events: none;
  z-index: 99999;
  opacity: 0;                       /* cachée par défaut */
  transition: opacity .18s ease;
}

#flame-loader.active {
  opacity: 1;
}

#flame-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #ff6b00 0%,
    #ffae00 35%,
    #ffd166 60%,
    #ff6b00 100%
  );
  background-size: 200% 100%;
  animation: flameShift 0.6s linear infinite;
  box-shadow: 
    0 0 12px rgba(255, 107, 0, 0.75),
    0 0 24px rgba(255, 174, 0, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.25);
  overflow: visible;
}

@keyframes flameShift {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ✅ Optionnel : texte centré sous la barre */
#flame-loader .flame-text {
  display: block;
  text-align: center;
  color: #ffae00;
  font-weight: bold;
  font-family: Arial, sans-serif;
  margin-top: 12px;
  font-size: 1rem;
  text-shadow: 0 0 8px rgba(255, 140, 0, 0.8);
}

/* Lueur "flamme" optionnelle */
#flame-progress::after{
  content:"";
  position:absolute;
  left:0; top:-8px;
  width:100%; height:14px;
  background:
    radial-gradient(12px 6px at 12% 100%, rgba(255,210,100,.55), transparent 60%),
    radial-gradient(14px 7px at 38% 100%, rgba(255,170,40,.45), transparent 60%),
    radial-gradient(12px 6px at 64% 100%, rgba(255,210,100,.55), transparent 60%),
    radial-gradient(16px 8px at 86% 100%, rgba(255,140,0,.55), transparent 60%);
  filter: blur(3px);
  animation: flameFlicker .5s infinite alternate;
  pointer-events:none;
}
@keyframes flameFlicker{
  0% { opacity:.85; transform: translateY(0); }
  100%{ opacity:.55; transform: translateY(-1px); }
}

/* petit effet de “flamme” */
@keyframes flameGlow{
  from { filter: drop-shadow(0 0 6px rgba(255,120,0,.5)); }
  to   { filter: drop-shadow(0 0 16px rgba(255,180,0,.7)); }
}


/* Lueur "flammes" au-dessus de la barre */
#flame-progress::after{
  content: "";
  position: absolute;
  left: 0; top: -8px;
  width: 100%; height: 14px;
  background:
    radial-gradient(12px 6px at 12% 100%, rgba(255,210,100,.55), transparent 60%),
    radial-gradient(14px 7px at 38% 100%, rgba(255,170,40,.45), transparent 60%),
    radial-gradient(12px 6px at 64% 100%, rgba(255,210,100,.55), transparent 60%),
    radial-gradient(16px 8px at 86% 100%, rgba(255,140,0,.55), transparent 60%);
  filter: blur(3px);
  animation: flameFlicker .5s infinite alternate;
  pointer-events: none;
}

@keyframes flameShift{
  0%   { background-position:   0% 0; }
  100% { background-position: 200% 0; }
}

@keyframes flameFlicker{
  0%   { opacity: .85; transform: translateY(0); }
  100% { opacity: .55; transform: translateY(-1px); }
}

/* —— Thème facile : change les couleurs ici si tu veux un feu bleu/violet
#flame-progress{
  background: linear-gradient(90deg, #00bfff, #1e90ff 35%, #9ad1ff 60%, #00bfff);
}
#flame-progress::after{
  background:
    radial-gradient(12px 6px at 12% 100%, rgba(140,200,255,.6), transparent 60%),
    radial-gradient(14px 7px at 38% 100%, rgba(80,160,255,.5), transparent 60%),
    radial-gradient(12px 6px at 64% 100%, rgba(140,200,255,.6), transparent 60%),
    radial-gradient(16px 8px at 86% 100%, rgba(0,140,255,.55), transparent 60%);
}
*/
.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;                   /* espace entre logo et texte */
  text-decoration: none;
}

.nav__logo-img {
  height: 80px;               /* ou 50px selon ton header */
  width: auto;
  transition: transform .2s ease;
}

.nav__logo-text {
  color: var(--accent, orange);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav__brand:hover .nav__logo-img {
  transform: scale(1.08);
}

/* ===============================
   STYLE GÉNÉRAL OPTIMISÉ SERVER553
   =============================== */

/* --- Chat flottant Server553 --- */
#s553-chat {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 99999;
  width: min(100vw - 24px, 460px);
  max-height: min(90vh, 760px);
  background: linear-gradient(180deg, #14161a 0%, #0f1114 100%);
  border: 1px solid #1f2430;
  border-radius: 16px;
  display: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
  overflow: hidden;
}

/* Ouvrir le chat quand aria-hidden passe à false (priorité max) */
#s553-chat[aria-hidden="false"]{
  display: flex !important;
  flex-direction: column;
}



/* Pseudo et heure alignés à droite */
.s553-msg__meta {
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: #ffb84d;
  text-shadow: 0 0 6px rgba(255, 120, 0, 0.45);
  margin: 0 6px 2px 6px;
}

/* Conteneur des messages */
#s553-chat-feed {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  font-size: 15px;
}

/* Champs de saisie */
#s553-chat-text,
#s553-chat-name {
  height: 44px;
  font-size: 15px;
  border-radius: 10px;
}

/* Bouton d’envoi */
.s553-chat__send {
  width: 46px;
  border-radius: 10px;
}

/* Bouton d’ouverture du chat */
#s553-chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff6b00, #ff9d00);
  box-shadow: 0 6px 20px rgba(255, 110, 0, .4);
  cursor: pointer;
  z-index: 100000;
}

/* RTL (langues droite→gauche) */
html[dir="rtl"] #s553-chat {
  left: 20px;
  right: auto;
}
html[dir="rtl"] #s553-chat-launcher {
  left: 20px;
  right: auto;
}

/* --- Fire image section (version unique) --- */
.fire-img {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  border-radius: 16px;
  overflow: hidden;
  max-width: 90%;
}

.fire-img img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.fire-img img:hover {
  transform: scale(1.05);
}

/* ====== Responsive ====== */

/* Tablettes et grands téléphones */
@media (max-width: 768px) {
  #s553-chat {
    right: 12px;
    bottom: 84px;
    width: min(96vw, 440px);
    max-height: min(82vh, 720px);
  }

  #s553-chat-launcher {
    right: 12px;
    bottom: 12px;
    width: 56px;
    height: 56px;
  }

  html[dir="rtl"] #s553-chat {
    left: 12px;
    right: auto;
  }

  html[dir="rtl"] #s553-chat-launcher {
    left: 12px;
    right: auto;
  }
}

/* Téléphones (quasi plein écran) */
@media (max-width: 480px) {
  #s553-chat {
    right: 0;
    bottom: 0;
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  #s553-chat .s553-chat__header {
    padding: 8px 10px;
  }

  #s553-chat-feed {
    padding: 10px;
    font-size: 14px;
  }

  #s553-chat .s553-chat__input {
    gap: 6px;
    padding: 8px;
  }

  #s553-chat #s553-chat-text,
  #s553-chat #s553-chat-name {
    height: 42px;
    font-size: 15px;
    border-radius: 10px;
  }

  #s553-chat .s553-chat__send {
    width: 44px;
    border-radius: 10px;
  }

  #s553-chat-launcher {
    right: 10px;
    bottom: 10px;
    width: 54px;
    height: 54px;
  }

  html[dir="rtl"] #s553-chat {
    left: 0;
    right: auto;
  }

  html[dir="rtl"] #s553-chat-launcher {
    left: 10px;
    right: auto;
  }
}

/* Très petits écrans */
@media (max-width: 380px) {
  #s553-chat {
    right: 0;
    bottom: 0;
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  #s553-chat-launcher {
    right: 8px;
    bottom: 8px;
    width: 52px;
    height: 52px;
  }

  html[dir="rtl"] #s553-chat {
    left: 0;
    right: auto;
  }

  html[dir="rtl"] #s553-chat-launcher {
    left: 8px;
    right: auto;
  }
}


.user-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #ff6b00, #ffae00);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#userBadge {
  font-weight: 600;
}

.btn-login, .btn-logout {
  background: #ff6b00;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-login:hover, .btn-logout:hover {
  background: #ff8500;
}

.btn-fire {
  position: relative;
  display: inline-block;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #ff6b00, #ffae00, #ff6b00);
  background-size: 300% 100%;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.7), 0 0 20px rgba(255, 174, 0, 0.4);
  overflow: hidden;
  z-index: 1;
}

.btn-fire:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 107, 0, 1), 0 0 40px rgba(255, 174, 0, 0.8);
}

/* Animation du feu (dégradé en mouvement) */
.btn-fire::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, #ff6b00, #ffae00, #ffd166, #ff6b00);
  background-size: 400% 100%;
  z-index: -1;
  animation: flameFlow 2s linear infinite;
  border-radius: 50px;
}

@keyframes flameFlow {
  0% { background-position: 0% 0; }
  100% { background-position: 400% 0; }
}
