/* ============================================
   Corner layer – calque en bas à droite
   Positionné à l’extrême bas-droite de l’écran
   Base = Desktop
   ============================================ */
.corner-layer {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0;
  width: 260px;
  max-width: 28vw;
  min-height: 90px;
  pointer-events: auto;
}

.corner-layer-content {
  background: rgba(26, 29, 41, 0.92);
  backdrop-filter: blur(16px);
  padding: 20px 22px;
  min-height: 80px;
  border-radius: 12px 0 0 0;
  border: 1px solid var(--border-color);
  border-right: none;
  border-bottom: none;
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.corner-layer-content:empty::after {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--card-bg);
}

/* Texte de bienvenue */
.corner-layer-welcome {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
}

/* ============================================
   Tablet (≤ 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
  .corner-layer {
    width: 220px;
    max-width: 32vw;
    min-height: 85px;
  }

  .corner-layer-content {
    padding: 18px 20px;
    min-height: 75px;
    border-radius: 10px 0 0 0;
  }

  .corner-layer-welcome {
    font-size: 14px;
  }
}

/* ============================================
   Mobile (≤ 768px)
   ============================================ */
@media screen and (max-width: 768px) {
  .corner-layer {
    width: 88%;
    max-width: 280px;
    min-height: 72px;
  }

  .corner-layer-content {
    padding: 14px 16px;
    min-height: 68px;
    border-radius: 10px 0 0 0;
  }

  .corner-layer-welcome {
    font-size: 14px;
  }
}

/* ============================================
   Small mobile (≤ 480px)
   ============================================ */
@media screen and (max-width: 480px) {
  .corner-layer {
    width: 92%;
    max-width: 260px;
    min-height: 64px;
  }

  .corner-layer-content {
    padding: 12px 14px;
    min-height: 60px;
    border-radius: 8px 0 0 0;
  }

  .corner-layer-welcome {
    font-size: 13px;
  }
}

/* ============================================
   Paysage mobile – panneau un peu plus étroit
   ============================================ */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .corner-layer {
    width: 70%;
    max-width: 240px;
    min-height: 56px;
  }

  .corner-layer-content {
    padding: 10px 12px;
    min-height: 52px;
  }

  .corner-layer-welcome {
    font-size: 12px;
  }
}
