.twitch-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-width: 320px;
  box-sizing: border-box;
}

.offline-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  background: radial-gradient(circle, rgba(20,0,0,1), rgba(0,0,0,1));
  color: #fff;
  text-align: center;
  z-index: 2;
}
/*
  Feuille de style globale pour MrLyu
  Mobile-first, accessible, moderne
*/
:root {
  --primary: #ff1f1f;
  --primary-glow: rgba(255, 31, 31, 0.4);
  --bg: #050505;
  --card-bg: rgba(255, 255, 255, 0.03); /* Effet vitre très léger */
  --border-glass: rgba(255, 255, 255, 0.1);
}
html {
  height: 100%;
}
body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 10%, #4a0000 0%, #1a0a0a 60%, #050505 100%);
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

h1.contact-title {
  text-align: center;
  margin-bottom: 40px;
}

.contact-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.contact-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 28px 32px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 260px;
  max-width: 350px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glass);
  transition: box-shadow 0.25s, border 0.25s, transform 0.18s;
  position: relative;
}
.contact-card:hover {
  border: 1.5px solid #FF4B4B;
  box-shadow: 0 0 32px 0 #FF4B4B, 0 2px 32px 0 rgba(0,0,0,0.30);
  transform: translateY(-6px) scale(1.03);
  z-index: 2;
}
.contact-card .icon {
  width: 40px;
  height: 40px;
  margin-right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-link {
  color: #FF4B4B;
  font-weight: bold;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s;
}
.contact-link:hover {
  color: #fff;
  text-shadow: 0 0 8px #FF4B4B;
}

 .contact-footer {
   background: rgba(20,20,20,0.85);
   border-top: 1px solid rgba(255,255,255,0.05);
   padding: 24px 0 12px 0;
   text-align: center;
   color: #aaa;
   font-size: 0.98em;
   flex-shrink: 0;
   margin-top: 0;
 }

/* Responsive pour les cartes contact */
@media (max-width: 900px) {
  .contact-cards {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .contact-card {
    width: 100%;
    max-width: 420px;
  }
}

.wrapper {
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
  max-width: 1800px;
  box-sizing: border-box;
}


/* Pour la page live, s'assurer que le contenu prend la bonne hauteur sans forcer le flex sur .wrapper */
.wrapper .live-flex {
  flex: 1 0 auto;
}

.contact-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
header {
  margin-top: 30px;
  text-align: center;
  margin-bottom: 30px;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list a {
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-list a[aria-current="page"], .nav-list a:hover {
  background: var(--primary-glow);
  color: #fff;
}
.avatar-main {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 25px var(--primary-glow);
  margin-bottom: 15px;
}
.branding {
  text-align: center;
}
.cta {
  display: inline-block;
  margin: 10px 8px 0 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 10px var(--primary-glow);
  transition: background 0.2s, transform 0.2s;
}
.cta.secondary {
  background: #222;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cta:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
}
.status {
  font-size: 1.1em;
  margin: 10px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  width: 100%;
}
.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: 0.3s;
  border: 1px solid var(--border-glass);
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  background: rgba(255,255,255,0.1);
}
.card .icon {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}
h1 {
  font-size: 2.2rem;
  text-transform: uppercase;
}
h1 span {
  color: var(--primary);
}
h2 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--primary);
}
.desc {
  margin-top: 20px;
  color: #ccc;
  font-size: 1rem;
}
.twitch-container {
  flex: 3;
  height: 75%;
  width: 100%;
  aspect-ratio: auto; /* on enlève le ratio forcé */
  min-width: 320px;
  max-width: 1200px;
  max-height: calc(1200px * 9 / 16); /* pour garder le ratio 16:9 */
  position: relative;
  padding-bottom: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 31, 31, 0.3);
  margin-bottom: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.twitch-container iframe {
  width: 100%;
  height: 100%;
  min-height: 250px;
  border-radius: 20px;
}
.twitch-chat {
  flex: 1 1 0;
  width: 100%;
  max-width: 600px;
  min-width: 250px;
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 31, 31, 0.2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  height: 75%;
  display: flex;
  flex-direction: column;
}
.twitch-chat iframe {
  flex: 1;  
  border: 1px solid rgba(255, 31, 31, 0.3);

}
/* Layout flex pour live + chat */
.live-flex {
  display: flex;
  gap: 30px;
  align-items: stretch;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  height: 70vh;
}
.twitch-chat iframe {
  width: 100%;
  height: 500px;
  border: none;
}
@media (max-width: 600px) {
  .wrapper {
    padding: 20px 5px;
  }
  .avatar-main {
    width: 80px;
    height: 80px;
  }
  h1 {
    font-size: 1.3rem;
  }
  .card {
    flex-direction: column;
    align-items: flex-start;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .live-flex {
    flex-direction: column;
    height: auto;
    max-height: none;
  }
  .twitch-container {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .twitch-chat iframe {
    height: 350px;
  }
}

/* --- Amélioration affichage réseaux & recrutement --- */

/* Remplir l'espace vertical sur toutes les pages principales */
.wrapper, .reseaux-wrapper, .recrutement-wrapper {
  min-height: 70vh;
  padding-bottom: 40px;
}

/* Modernisation des cartes réseaux */
.reseaux-list, .networks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-bottom: 30px;
}

.reseau-card, .network-card, .card-reseau {
  background: var(--card-bg, rgba(255,255,255,0.04));
  border: 1.5px solid var(--border-glass, rgba(255,255,255,0.10));
  border-radius: 16px;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
  padding: 28px 36px;
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-size: 1.1em;
  transition: box-shadow 0.2s, border 0.2s, transform 0.18s;
  cursor: pointer;
  position: relative;
}
.reseau-card:hover, .network-card:hover, .card-reseau:hover {
  border: 1.5px solid var(--primary, #ff1f1f);
  box-shadow: 0 0 32px 0 var(--primary-glow, #ff1f1f44), 0 2px 32px 0 rgba(0,0,0,0.30);
  transform: translateY(-6px) scale(1.03);
  z-index: 2;
}
.reseau-card .icon, .network-card .icon, .card-reseau .icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
}

/* Bloc recrutement plus moderne */
.recrutement-bloc, .recrutement-card, .recrutement-box {
  background: var(--card-bg, rgba(255,255,255,0.04));
  border: 1.5px solid var(--border-glass, rgba(255,255,255,0.10));
  border-radius: 16px;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
  padding: 32px 40px;
  margin-bottom: 30px;
  color: #fff;
  font-size: 1.1em;
}

/* Responsive réseaux */
@media (max-width: 900px) {
  .reseaux-list, .networks-list {
    flex-direction: column;
    gap: 18px;
  }
  .reseau-card, .network-card, .card-reseau {
    width: 100%;
    min-width: unset;
    padding: 22px 16px;
  }
}
