/* ===== Base ===== */
body {
  background-color: #121212;
  color: #f0f0f0;
  font-family: 'Rubik', sans-serif;
  margin: 0;
  padding: 0;
}

a {
  color: #f0f0f0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Header ===== */
header {
  background-color: #1a1a1a;
  color: white;
  padding: 1rem;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-family: 'Rubik Glitch', cursive;
  font-size: 1.8rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem;
  transition: text-shadow 0.3s ease-in-out;
}

.main-nav a:hover,
.main-nav a.active {
  text-shadow: 0 0 8px #d94fff, 0 0 16px #d94fff;
}

.logo-link {
  color: white;
  text-decoration: none;
  transition: text-shadow 0.3s ease-in-out;
}

.logo-link:hover {
  text-shadow: 0 0 10px #d94fff, 0 0 20px #d94fff, 0 0 30px #d94fff;
}

/* ===== Social Icons ===== */
.social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.social-icons img {
  width: 24px;
  height: 24px;
  display: inline-block;
}

.social-icons a img {
  width: 24px;
  height: 24px;
  margin: 0 8px;
  filter: grayscale(100%) brightness(0.85);
  transition: filter 0.3s ease, transform 0.3s ease;
  background: none;
  object-fit: contain;
}

.social-icons a:hover img {
  filter: drop-shadow(0 0 6px #d94fff) brightness(1.2);
  transform: scale(1.2);
}

@keyframes pulse-violet {
  0% {
    filter: drop-shadow(0 0 4px #a64af5);
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 10px #d59aff);
    transform: scale(1.2);
  }
  100% {
    filter: drop-shadow(0 0 4px #a64af5);
    transform: scale(1);
  }
}

/* ===== Footer ===== */
footer {
  background-color: #1a1a1a;
  color: #aaa;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
}

footer .absurde {
  font-style: italic;
  font-size: 0.8rem;
  color: #777;
}

.site-footer {
  background-color: #0e0e0e;
  padding: 40px 20px;
  text-align: center;
  color: #ccc;
  font-size: 0.9em;
  border-top: 1px solid #222;
  margin-top: 60px;
}

.footer-content p {
  margin: 10px 0;
  line-height: 1.6;
}

.footer-content .note {
  font-style: italic;
  font-size: 0.85em;
  color: #888;
}

.footer-social {
  margin-top: 20px;
}

.footer-social a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.footer-social img {
  width: 24px;
  height: 24px;
  filter: grayscale(100%) brightness(0.9);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover img {
  filter: drop-shadow(0 0 6px #d94fff) brightness(1.2);
  transform: scale(1.2);
}

/* ===== Page d'accueil ===== */

.hero {
  text-align: center;
  padding: 3rem 1rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-family: 'Rubik Glitch', cursive;
  margin-bottom: 0.5rem;
}

.slogan {
  font-size: 1.3rem;
  color: #ccc;
  font-style: italic;
}

.intro, .projets, .appel {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}

.univers {
  margin: 3rem auto;
  text-align: center;
}

.univers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.univers-card {
  background-color: #111;
  border-radius: 1rem;
  padding: 20px;
  width: 220px;
  box-shadow: 0 0 0 transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.univers-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px #d94fff;
}

.univers-title {
  font-size: 1em;
  font-weight: 600;
  color: #fff;
  margin-top: 8px;
}

/* ===== Boutique Sections ===== */
.page-boutique section {
  margin: 4rem auto;
  padding: 1rem 1rem 2rem;
  max-width: 95vw;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(200, 100, 255, 0.15);
}

.page-boutique h1 {
  text-align: center;
  margin-top: 2rem;
  font-family: 'Rubik Glitch', cursive;
}

.page-boutique .intro-boutique {
  text-align: center;
  font-size: 1.1rem;
  color: #ccc;
  margin: 0 auto 3rem;
  max-width: 700px;
}

/* ===== Carrousel ===== */
.carousel-wrapper {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 30px rgba(150, 0, 255, 0.2);
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: auto; /* était 'smooth', on le désactive pour éviter conflit drag */
  -webkit-overflow-scrolling: touch; /* meilleur scroll tactile */
  overscroll-behavior-x: contain; /* empêche "rebond" iOS */
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(150, 0, 255, 0.2);
  transition: box-shadow 0.3s ease-in-out;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
  background: black;
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.carousel-item img {
  max-width: 100%;
  border-radius: 5px;
}

.carousel-item:hover {
  transform: scale(1.05);
}

.carousel-buttons {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.carousel:hover {
  animation: glow-carousel 1.8s ease-in-out infinite;
}

@keyframes glow-carousel {
  0%, 100% {
    box-shadow: 0 0 20px rgba(150, 0, 255, 0.1);
  }
  75% {
    box-shadow: 0 0 40px rgba(150, 0, 255, 0.25);
  }
}

.carousel.dragging {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

.carousel-container {
  position: relative;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-button:hover {
  background: rgba(150, 0, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.carousel-button.left {
  left: 5px;
}

.carousel-button.right {
  right: 5px;
}

/* ===== Boutons ===== */
.btn-extrait,
.btn-kofi {
  background-color: #2e2e2e;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border: 1px solid #a64af5;
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s;
}

.btn-extrait:hover,
.btn-kofi:hover {
  background-color: #a64af5;
  transform: scale(1.05);
  color: #000;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem auto;
  max-width: 800px;
  box-shadow: 0 0 12px rgba(150, 0, 255, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(150, 0, 255, 0.3);
}

.page-jeux iframe {
  background-color: #000;
}

.generateur-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.lien-bouton {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  background-color: #d94fff;
  color: black;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.lien-bouton:hover {
  background-color: #fff;
  color: #d94fff;
}


/* ===== Layout commun ===== */
main {
  padding: 2.5rem 1.25rem;
}

main h1 {
  text-align: center;
  margin: 2rem 0 1.5rem;
}

/* ===== Blocs “chantier” ===== */
.chantier {
  max-width: 820px;
  margin: 5rem auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0 18px rgba(150, 0, 255, 0.12);
}

.chantier p {
  color: #ccc;
  line-height: 1.6;
}

/* ===== Contact ===== */
.page-contact {
  max-width: 950px;
  margin: 0 auto;
}

.page-contact .note {
  color: #bfbfbf;
}

.reseaux-plus {
  margin-top: 2.5rem;
}

.reseaux-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.reseau-item a {
  display: block;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(150, 0, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.reseau-item a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(150, 0, 255, 0.25);
}

.reseau-item img {
  width: 26px;
  height: 26px;
  margin-bottom: 0.6rem;
  filter: grayscale(100%) brightness(0.9);
}

.reseau-item strong {
  display: block;
  margin: 0.25rem 0 0.25rem;
}

.reseau-item p {
  margin: 0.25rem 0 0;
  color: #ccc;
  line-height: 1.4;
}

/* ===== Publications (mise en page simple) ===== */
.blog-page {
  max-width: 1050px;
  margin: 0 auto;
}

.blog-page h2 {
  margin-top: 2rem;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.blog-list article,
.kofi-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 0 12px rgba(150, 0, 255, 0.08);
}

.blog-list h3 {
  margin-top: 0;
}

.kofi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.kofi-card img {
  width: 100%;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}

.blog-page .button,
.kofi-card .button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0.6rem;
  background: #d94fff;
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.blog-page .button:hover,
.kofi-card .button:hover {
  background: #fff;
  color: #d94fff;
}

/* ===== Jeux ===== */
.page-jeux .carte {
  max-width: 900px;
  margin: 1.2rem auto;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 12px rgba(150, 0, 255, 0.08);
}

.page-jeux .etat {
  color: #bbb;
  font-style: italic;
}
