/* ==========================================================================
   FOOTER STAFF / DIRECTION
   ========================================================================== */

.footer-staff {
  padding: 25px 0;
  width: 100%;
}

.footer-staff__container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-staff__box {
  flex: 1 1 250px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-staff__box:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.footer-staff__title {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.footer-staff__info {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive amin'ny Smartphone */
@media (max-width: 768px) {
  .footer-staff {
    padding: 15px 0;
  }
  
  .footer-staff__container {
    gap: 12px;
  }

  .footer-staff__box {
    flex: 1 1 100%;
    padding: 15px;
  }
}

/* ==========================================================================
   FOOT-STYLE.CSS
   Carte de présentation du développeur / créateur, intégrée au footer.
   Rafitra: fond animé, carte, statistiques, badges technologiques, liens.
   ========================================================================== */

.site-footer{
  position:relative;
  margin-top:0px;
  overflow:hidden;
  background:#0f1b2b;
  color:#e7edf5;
}

/* Lueur décorative en fond, discrète et animée */
.footer-glow{
  position:absolute;
  inset:-40% -10% auto -10%;
  height:280px;
  background:radial-gradient(60% 100% at 30% 0%, rgba(232,73,29,.28), transparent 70%),
             radial-gradient(50% 100% at 80% 0%, rgba(46,134,222,.22), transparent 70%);
  filter:blur(10px);
  pointer-events:none;
  animation:glowShift 12s ease-in-out infinite alternate;
}
@keyframes glowShift{
  from{ transform:translateX(-4%); }
  to{ transform:translateX(4%); }
}
@media (prefers-reduced-motion: reduce){
  .footer-glow{ animation:none; }
}

.footer-container{
  position:relative;
  max-width:1000px;
  margin:0 auto;
  padding:50px 20px 30px;
}

/* --------------------------------------------------------------------
   Carte développeur
   -------------------------------------------------------------------- */
.dev-card{
  display:flex;
  gap:28px;
  align-items:flex-start;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:30px;
  backdrop-filter:blur(6px);
  opacity:0;
  transform:translateY(24px);
  transition:opacity .7s ease, transform .7s ease;
}
.dev-card.is-visible{
  opacity:1;
  transform:none;
}

/* Avatar */
.dev-card__avatar{
  position:relative;
  flex:0 0 auto;
  width:96px;
  height:96px;
  border-radius:50%;
  overflow:hidden;
  background:linear-gradient(135deg,#e8491d,#2e86de);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 25px rgba(0,0,0,.35);
}
.dev-card__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.dev-card__initials{
  display:none;
  font-size:1.6rem;
  font-weight:700;
  color:#fff;
  letter-spacing:.05em;
}
.dev-card__avatar--fallback .dev-card__initials{ display:block; }
.dev-card__status{
  position:absolute;
  right:4px;
  bottom:4px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#2ecc71;
  border:3px solid #0f1b2b;
  box-shadow:0 0 0 0 rgba(46,204,113,.6);
  animation:statusPulse 2.4s ease-out infinite;
}
@keyframes statusPulse{
  0%{ box-shadow:0 0 0 0 rgba(46,204,113,.55); }
  70%{ box-shadow:0 0 0 10px rgba(46,204,113,0); }
  100%{ box-shadow:0 0 0 0 rgba(46,204,113,0); }
}

/* Infos textuelles */
.dev-card__info{ flex:1 1 auto; min-width:0; }
.dev-card__name{
  margin:0 0 4px;
  font-size:1.35rem;
  font-weight:700;
  color:#fff;
}
.dev-card__role{
  margin:0 0 14px;
  font-size:.95rem;
  font-weight:600;
  color:#ff9f7a;
  min-height:1.3em;
}
.dev-card__cursor{
  display:inline-block;
  margin-left:2px;
  animation:blink 1s step-end infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

.dev-card__bio{
  margin:0 0 20px;
  font-size:.92rem;
  line-height:1.65;
  color:#c4d0e0;
  max-width:60ch;
}
.dev-card__bio strong{ color:#fff; }

/* Statistiques animées */
.dev-card__stats{
  display:flex;
  flex-wrap:wrap;
  gap:26px;
  margin-bottom:22px;
}
.stat{
  display:flex;
  flex-direction:column;
  min-width:90px;
}
.stat__number{
  font-size:1.6rem;
  font-weight:800;
  color:#fff;
  line-height:1;
}
.stat__suffix{
  font-size:1.1rem;
  font-weight:700;
  color:#ff9f7a;
}
.stat__label{
  margin-top:4px;
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#8fa1bb;
}

/* Stack technique */
.dev-card__stack{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  margin:0 0 22px;
  padding:0;
}
.tech-badge{
  padding:5px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  font-size:.75rem;
  font-weight:600;
  color:#e7edf5;
  transition:background-color .2s ease, transform .2s ease, border-color .2s ease;
}
.tech-badge:hover{
  background:rgba(232,73,29,.18);
  border-color:rgba(232,73,29,.4);
  transform:translateY(-2px);
}

/* Liens de contact */
.dev-card__links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.dev-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  border-radius:10px;
  background:#ffffff;
  color:#0f1b2b;
  font-size:.85rem;
  font-weight:700;
  text-decoration:none;
  transition:transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.dev-link:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 18px rgba(0,0,0,.25);
  background:#f1f4f9;
}
.dev-link__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

/* --------------------------------------------------------------------
   Bas de page (copyright + logo MEN)
   -------------------------------------------------------------------- */
.footer-bottom{
  position:relative;
  border-top:1px solid rgba(255,255,255,.08);
  padding:20px 20px 26px;
  max-width:1000px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.footer-bottom p{
  margin:0;
  font-size:.8rem;
  letter-spacing:.02em;
  color:#8fa1bb;
}
.footer-bottom .author-name{
  font-weight:700;
  color:#fff;
}
.footer-bottom img{
  width:42px;
  height:42px;
  object-fit:contain;
  opacity:.85;
  transition:opacity .2s ease, transform .2s ease;
}
.footer-bottom img:hover{
  opacity:1;
  transform:scale(1.06);
}

/* --------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------- */
@media (max-width: 720px){
  .dev-card{
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding:24px;
  }
  .dev-card__stats,
  .dev-card__stack,
  .dev-card__links{
    justify-content:center;
  }
  .dev-card__bio{ max-width:none; }
  .footer-bottom{
    flex-direction:column-reverse;
    text-align:center;
  }
}