/* ================ STYLE SOMBRE TWITCH =================*/

/* =================== BASE GÉNÉRALE =================== */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 200px; /* hauteur de ton header + menu */
}

body {
	padding-top: 200px; /* header + menu */
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: #0e0e10;
	color: #f1f1f1;
	margin: 0;
}

h1 {
	margin: 10px 0;
	font-size: 2em;
}

/* =================== HEADER FIXE ===================== */

header {
	background: #9146FF;
	color: white;
	padding: 20px;
	text-align: center;
	box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

header img {
  max-height: 100px;
  margin-bottom: 10px;
}

header.banner {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 999;
	background-color: #9146FF; /* ou #1f1f23 si plus sobre */
	box-shadow: 0 2px 8px rgba(0,0,0,0.5);
	padding: 20px 0;
}

.banner {
	background: url('images/banner.jpg') no-repeat center center;
	background-size: cover;
	padding: 40px 20px;
	color: white;
	box-shadow: 0 4px 8px rgba(0,0,0,0.5);
	position: relative;
}

.banner::after {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 0;
}

.banner-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1000px;
	margin: auto;
	flex-wrap: wrap;
	gap: 20px;
}

.logo {
	max-height: 100px;
	border-radius: 8px;
}

.title {
	flex: 1;
	text-align: left;
}

.title h1 {
	margin: 0;
	font-size: 2.5em;
}

.title p {
	margin-top: 5px;
	color: #ccc;
}

.socials a {
	font-size: 28px;
	color: white;
	margin-left: 15px;
	transition: color 0.3s;
}

.socials a:hover {
	color: #9146FF;
}

/* =================== MENU ======================== */

.navbar {
  position: fixed;
  top: 145px; /* juste sous le header (ajuste si besoin) */
  left: 0;
  width: 100%;
  background-color: #1f1f23;
  z-index: 998;
  padding: 10px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  flex-wrap: wrap;
}

.navbar li {
  display: inline;
}

.navbar a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 8px 16px;
  transition: background 0.3s, color 0.3s;
  border-radius: 6px;
}

.navbar a:hover {
  background-color: #9146FF;
  color: #fff;
}

/* ======== MENU DÉROULANT POUR SOUTIEN ======== */

.navbar .dropdown {
  position: relative;
}

.navbar .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1f1f23;
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #333;
  border-radius: 0 0 6px 6px;
  z-index: 999;
  min-width: 200px;
}

.navbar .submenu li a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
  transition: background 0.2s;
}

.navbar .submenu li a:hover {
  background-color: #9146FF;
}

.navbar .dropdown:hover .submenu {
  display: block;
}

/* ============ PLANNING / GESTION PLANNING ============ */

.weekly-planning {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.planning-thumb {
  display: block;
  max-width: 100px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 5px auto;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.planning-table td {
  text-align: center;
  vertical-align: top;
  transition: transform 0.2s ease, background-color 0.2s ease;
  padding: 10px;
}

.event-tippy {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.event-tippy:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(145, 70, 255, 0.5);
  z-index: 2;
}

.tippy-box[data-theme~='large-tooltip'] {
  font-size: 18px;
  max-width: 400px;
  padding: 20px;
  line-height: 1.6;
  background-color: #1f1f23;
  color: white;
  border: 1px solid #9146FF;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.tippy-box[data-theme~='large-tooltip'] img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.tippy-box[data-animation='perspective'][data-state='hidden'] {
  transform: perspective(700px) rotateX(-20deg);
  opacity: 0;
}

.tippy-box[data-animation='perspective'][data-state='visible'] {
  transform: perspective(700px) rotateX(0);
  opacity: 1;
  transition: all 300ms ease;
}

/* Contenu survolé dans une case */
/*.planning-table td:hover {
  transform: scale(1.05);
  background-color: #2d2d3a;
  z-index: 10;
  position: relative;
  border-radius: 6px;
}*/


/* Image plus grande au survol */
/*.planning-table td:hover .planning-thumb {
  transform: scale(1.5);
  transition: transform 0.2s ease;
}*/

/* Texte plus grand au survol */
/*.planning-table td:hover small {
  font-size: 1.5em;
  font-weight: bold;
}*/

/* Image pas de stream*/
/*.no-stream {
  text-align: center;
  color: #888;
  opacity: 0.6;
}*/

/* =================== FORMULAIRES ===================== */

.form-container {
  margin: 40px auto;
  width: 90%;
  max-width: 600px;
  background: #1f1f23;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.form-container h2 {
  margin-bottom: 20px;
  color: #fff;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 5px;
  background-color: #2b2b31;
  color: #fff;
}

input[type="submit"] {
  background-color: #9146FF;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
}

input[type="submit"]:hover {
  background-color: #772ce8;
}

a.btn, .btn {
  padding: 8px 14px;
  margin: 0 4px;
  border-radius: 4px;
  text-decoration: none;
  color: white;
  font-weight: bold;
}

a.edit {
  background-color: #1db954;
}

a.delete {
  background-color: #e63946;
}

a.login, a.logout {
  background: #6441a5;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  position: absolute;
  top: 20px;
  right: 20px;
}

.twitch-header-status {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  padding: 10px;
  background-color: #1f1f23;
  color: #ff4d4d;
  border-bottom: 2px solid #9146FF;
}
.twitch-header-status a {
  color: #fff;
  text-decoration: underline;
}
.twitch-header-status a:hover {
  color: #9146FF;
}

/* =================== FOOTER ========================== */

footer {
  text-align: center;
  padding: 20px;
  color: #888;
  margin-top: 50px;
}

footer a {
  color: #aaa;
  text-decoration: none;
  margin: 0 5px;
  font-size: 14px;
}

footer a:hover {
  color: #fff;
}

/* =================== COOKIES ========================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #1f1f23;
  color: white;
  padding: 15px 20px;
  z-index: 999;
  border-top: 2px solid #9146FF;
  font-size: 14px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  border-radius: 10px 10px 0 0;
}

.cookie-banner p {
  margin: 0 0 10px 0;
  text-align: center;
}

.cookie-banner button {
  background: #9146FF;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
}

.cookie-banner button:hover {
  background: #772ce8;
}

/* =================== PAGE ACCUEIL ==================== */

.hero, .about-home, .cta-links {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 50px 20px;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  color: #ccc;
}

.btn {
  background-color: #9146FF;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  margin-top: 20px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* =================== PAGE LIVE ======================= */

.live-section {
  max-width: 1000px;
  margin: 60px auto;
  text-align: center;
  color: white;
  padding: 20px;
}

.live-section h2 {
  font-size: 2em;
  margin-bottom: 30px;
}

.twitch-embed iframe {
  width: 100%;
  max-width: 900px;
  height: 500px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

.live-wrapper {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
  color: white;
  text-align: center;
}

@media (max-width: 1000px) {
  .live-container {
    flex-direction: column;
    align-items: center;
  }

  .twitch-player, .twitch-chat {
    width: 95%;
  }
}

.live-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Encapsule les iframes dans des blocs responsives */
.twitch-player, .twitch-chat {
  flex: 1 1 400px;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

.twitch-player iframe,
.twitch-chat iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* =================== PAGE À PROPOS =================== */

.presentation-section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
  color: white;
  text-align: center;
}

.presentation-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.presentation-photo {
  width: 200px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.presentation-centered p {
  max-width: 700px;
  line-height: 1.6;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.bio-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  color: #ddd;
  font-size: 16px;
}

.bio-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bio-list i {
  color: #9146FF;
  font-size: 18px;
}

/* =================== PAGE SOUTIEN ==================== */

.donation-warning {
  margin: 30px auto;
  max-width: 700px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #2b2b31;
  color: #ff4d4d;
  border: 2px solid #ff4d4d;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.3);
  font-size: 17px;
  font-weight: bold;
}

.donation-warning i {
  font-size: 30px;
  color: #ff4d4d;
}

.donation-warning p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* =================== PAGE CONTACT ==================== */

.contact-section {
  margin: 60px auto;
  max-width: 600px;
  background: #1f1f23;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  color: white;
}

.contact-section h2 {
  margin-bottom: 20px;
}

.contact-section input,
.contact-section textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background-color: #2b2b31;
  border: none;
  border-radius: 5px;
  color: white;
}

.contact-section input[type="submit"] {
  background-color: #9146FF;
  font-weight: bold;
  cursor: pointer;
}

.contact-links {
  text-align: center;
  margin-top: 20px;
}

.contact-links a {
  color: #bbb;
  text-decoration: none;
  font-size: 16px;
}

.contact-links a:hover {
  color: #fff;
}

/* =================== FONDU DU CONTENU ================ */

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeSlideUp 1s ease-out forwards;
}

/* =================== RESPONSIVE ====================== */

@media (max-width: 768px) {
  body {
    padding-top: 180px; /* si header + menu */
  }
  header.banner {
    padding: 10px 0;
  }
}

@media (max-width: 600px) {
  .donation-warning {
    flex-direction: column;
    text-align: center;
  }

  .donation-warning i {
    margin-bottom: 10px;
  }
}
