* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  background: url('img/les\ mystères\ cachés\ 1.png') center/cover no-repeat;
}

/* Général */
p {
  font-size: 19px;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

h2 {
  font-weight: bold;
  font-size: 30px;
  color: #00ff88;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

h1 {
  text-align: center;
  color: #0596f7;
  font-size: 30px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
}

/* Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  color: #eee;
  padding: 10px 20px;
  position: relative;
}

.branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.branding img {
  height: 40px;
}

.branding h1 {
  font-size: 1.8em;
  color: #e1dbdb;
  margin: 0;
}

/* Menu horizontal */
header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 15px;
}

header nav ul li {
  margin: 0 20px;
}

header nav ul li a {
  color: #ccc;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: #03efc7;
}

header nav ul li a.active {
  color: #ff2a2a;
}

/* Titre principal */
.overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 80px 20px;
  text-align: center;
}

.title {
  font-size: 3.5em;
  color: #ff2a2a;
  text-shadow: 2px 2px 8px black;
}

.subtitle {
  font-size: 1.8em;
  margin-bottom: 40px;
  color: #ff2a2a;
}

/* Sélecteur de langue */
.language-selector {
  margin-top: 20px;
}

.language-selector label {
  font-size: 1.2em;
  margin-right: 10px;
}

select {
  padding: 10px;
  font-size: 1em;
  background-color: #2c10c7;
  color: #fff;
  border: 1px solid #555;
}

/* ====== Burger menu ====== */
.burger {
  display: none; /* caché sur desktop */
}

.burger-menu {
  position: relative;
  background-color: #111;
  color: #eee;
  padding: 10px 20px;
  border-radius: 10px;
}

.menu-toggle {
  font-size: 1.8em;
  cursor: pointer;
}

.menu-content {
  display: none;
  flex-direction: column;
  background-color: #181818;
  position: absolute;
  top: 60px;
  left: 0; /* ✅ menu aligné à gauche */
  width: 400px;
  padding: 20px;
  border-radius: 8px;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.menu-content.show {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}

.menu-section {
  list-style: none;
  margin-bottom: 20px;
  background-image: url(img/Dans\ une\ salle\ de\ re.png);
}

.menu-section li {
  margin-bottom: 10px;
}

.menu-section a {
  text-decoration: none;
  color: #eee;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.menu-section a:hover {
  color: #33eaa7;
}

.menu-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.menu-button {
  background-color: #33eaa7;
  color: #0666f7;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

/* ====== Etiquette ====== */
.idee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px;
}

.etiquette {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid #ff2a2a;
  border-radius: 12px;
  padding: 20px;
  max-width: 700px;
  box-shadow: 0 0 20px rgba(255, 42, 42, 0.3);
  transition: transform 0.3s ease;
}

.etiquette:hover {
  transform: scale(1.02);
}

.etiquette img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  margin-right: 20px;
}

.etiquette-texte h3 {
  font-size: 1.6em;
  color: #ff2a2a;
  margin-bottom: 10px;
}

.etiquette-texte p {
  font-size: 1em;
  color: #f0f0f0;
}

/* ====== Ressources ====== */
.ressources {
  padding: 50px;
  background-color: rgba(0, 0, 0, 0.7);
  text-align: center;
}

.ressources h2 {
  color: #ff2a2a;
  font-size: 1.8em;
  margin-bottom: 30px;
}

.ressource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.ressource-item {
  background-color: rgba(20, 20, 20, 0.85);
  padding: 20px;
  border-radius: 10px;
  text-decoration: none;
  color: #f0f0f0;
  box-shadow: 0 0 12px rgba(255, 42, 42, 0.3);
  transition: transform 0.3s ease;
}

.ressource-item:hover {
  transform: scale(1.03);
}

.ressource-item i {
  font-size: 2em;
  margin-bottom: 10px;
  color: #ff2a2a;
}

.ressource-item h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
}

/* ====== Galerie ====== */
.galery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.6);
}

.galery figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(20, 20, 20, 0.8);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(255, 42, 42, 0.3);
  transition: transform 0.3s ease;
}

.galery figure:hover {
  transform: scale(1.03);
}

.galery img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}

.galery figcaption {
  color: #f0f0f0;
  font-size: 0.95em;
  text-align: center;
  font-style: italic;
}

/* ====== Idée / Galerie ====== */
.idee {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 40px;
  margin: 40px auto;
  max-width: 800px;
  border-left: 4px solid #ff2a2a;
  font-style: italic;
  color: #f0f0f0;
  box-shadow: 0 0 20px rgba(255, 42, 42, 0.3);
}

.idee img,
.galery img {
  width: 200px;
  height: auto;
  border-radius: 8px;
}
.idee-bleu {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 40px;
  margin: 40px auto;
  max-width: 800px;
  border-left: 4px solid #0595f4;
  font-style: italic;
  color: #f0f0f0;
  box-shadow: 0 0 20px rgba(31, 137, 251, 0.3);
}

.idee img,
.galery img {
  width: 200px;
  height: auto;
  border-radius: 8px;
}

/* ====== Carrousel ====== */
#carrousel-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

#carrousel {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  max-width: 300px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 42, 42, 0.3);
  color: #f0f0f0;
  text-align: center;
}

.carousel-slide img {
  width: 100%;
  border-radius: 8px;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 2em;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

/* ====== Quiz ====== */
.quiz {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 40px;
  margin: 40px auto;
  max-width: 700px;
  border-radius: 12px;
  color: #f0f0f0;
  box-shadow: 0 0 20px rgba(255, 42, 42, 0.3);
}

.quiz h2 {
  color: #ff2a2a;
  margin-bottom: 20px;
}

.question {
  margin-bottom: 25px;
}

button[type="submit"] {
  background-color: #ff2a2a;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #cc1a1a;
}

.quiz-result {
  margin-top: 10px;
  font-style: italic;
  font-weight: bold;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px;
}

.quiz-block {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 42, 42, 0.3);
  color: #f0f0f0;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.quiz-block:hover {
  background-color: rgba(9, 171, 240, 0.2);
  transform: scale(1.02);
}



/* ====== Jeu fragments ====== */
.jeu-fragments {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 40px;
  text-align: center;
  color: #f0f0f0;
}

.fragment {
  display: inline-block;
  margin: 10px;
  padding: 15px 25px;
  background-color: rgba(255, 42, 42, 0.2);
  border: 2px solid #ff2a2a;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fragment:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 42, 42, 0.5);
}

#fragment-text {
  opacity: 0;
  font-style: italic;
  color: #ff9900;
  margin-top: 10px;
  transition: opacity 0.6s ease;
}

#fragment-text.visible {
  opacity: 1;
}

.hidden-image {
  display: none;
  margin-top: 20px;
  animation: fadeIn 1s ease forwards;
}

.hidden-image img {
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(51, 234, 167, 0.5);
}





/* ====== Vidéo ====== */
.video-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  color: #eee;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.video-card {
  background-color: #181818;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.video-card:hover {
  transform: scale(1.03);
}

.video-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.video-info {
  padding: 10px;
}

.video-info h3 {
  font-size: 1.1em;
  margin-bottom: 5px;
}

.video-info p {
  font-size: 0.9em;
  color: #aaa;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ====== Jeu narratif ====== */
.jeu-narratif {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 40px;
  color: #f0f0f0;
  text-align: center;
}

.choices button {
  margin: 10px;
  padding: 12px 24px;
  background-color: rgba(255, 42, 42, 0.3);
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.choices button:hover {
  background-color: rgba(255, 42, 42, 0.6);
}

.result {
  margin-top: 30px;
  font-style: italic;
  font-size: 1.2em;
}

.image-container img {
  margin-top: 20px;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(51, 234, 167, 0.5);
}

/* ====== Jeu Snake ====== */
.jeu-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.tableau-gauche, .tableau-droite {
  flex: 1 1 200px;
  width: 180px;
  background-color: rgba(0,0,0,0.6);
  padding: 20px;
  color: #f0f0f0;
  border-radius: 12px;
  font-size: 0.9em;
}

.tableau-gauche h3, .tableau-droite h3 {
  color: #ff9900;
  margin-bottom: 10px;
}

.canvas-wrapper {
  flex: 2 1 600px;
  text-align: center;
}

#snakeCanvas {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  background: #000;
  border: 2px solid #ff9900;
  border-radius: 10px;
  touch-action: none;
}

.fragment-text {
  font-style: italic;
  color: #ff9900;
  margin-top: 10px;
}

.score-text {
  font-weight: bold;
  color: #fff;
  margin-top: 5px;
}

.hidden-image {
  margin-top: 20px;
  display: none;
  max-width: 100%;
  border: 2px solid #ff9900;
  border-radius: 8px;
}

.touch-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.touch-controls button {
  font-size: 1.5em;
  padding: 10px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 5px;
}

/* Couleurs molécules */
.mol-noire { color: #333; }
.mol-orange { color: #ff9900; }
.mol-dorée { color: gold; }
.mol-grise { color: #888; }
.mol-rouge { color: #ff2a2a; }
.mol-violette { color: violet; }

/* ====== Jeu de dames ====== */
#plateau-dames {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: 480px;
  height: 480px;
  margin: auto;
  border: 2px solid #444;
  z-index: 1;
}

.case {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  color: #0c0c0c;
  border: 1px solid #333;
}

.dark {
  background-color: #0596f7;
}

.light {
  background-color: #f4abab;
}

.fragment-display {
  margin-top: 20px;
  padding: 10px;
  background: #111;
  color: #eee;
  font-style: italic;
  text-align: center;
}

/* ====== Galerie jeux ====== */
.galerie-jeux {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  color: #eee;
}

.jeu-card {
  display: flex;
  flex-wrap: wrap;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  margin-bottom: 30px;
  overflow: hidden;
}

.jeu-image {
  width: 100%;
  max-width: 300px;
  object-fit: cover;
  border-radius: 8px 0 0 8px;
}

.jeu-description {
  flex: 1;
  padding: 20px;
}

.jeu-description h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.jeu-description p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 15px;
}

.jeu-bouton {
  display: inline-block;
  background-color: #33eaa7;
  color: #111;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.jeu-bouton:hover {
  background-color: #11b558;
}


/* ====== Soutenir ====== */
.overlay {
  text-align: center;
  padding: 80px 20px 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0));
  color: #f0f0f0;
}

.title {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-family: "Georgia", serif;
}

.subtitle {
  font-size: 1.2em;
  font-style: italic;
  color: #ccc;
}

.support-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 40px;
  max-width: 1000px;
  margin: auto;
}

.option {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  border-radius: 12px;
  padding: 20px;
  color: #eee;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.option:hover {
  transform: scale(1.03);
  border-color: #33eaa7;
}

/* ====== Bouton PayPal ====== */
.paypal-button input[type="submit"],
.paywall-container button {
  background-color: #33eaa7;
  color: #111;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.paypal-button input[type="submit"] {
  background-color: #0070ba;
  color: white;
  border-radius: 6px;
  margin-top: 15px;
}

.paypal-button input[type="submit"]:hover {
  background-color: #005c99;
}

.paywall-container button:hover {
  background-color: #11b558;
}

/* ====== BD verrouillée ====== */
.locked-logo {
  width: 80px;
  height: auto;
  opacity: 0.5;
  margin-bottom: 10px;
}

.page.locked {
  background-image: url('logo/A dark, poetic logo .png');
  background-size: 100px auto;
  background-repeat: no-repeat;
  background-position: center 30px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #999;
  text-align: center;
  font-style: italic;
  padding-top: 140px;
}

/* ====== Flipbook ====== */
#flipbook {
  margin: auto;
  max-width: 1000px;
}

#flipbook .page {
  width: 500px;
  height: 500px;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#flipbook .page img,
.page img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
  object-fit: contain;
  padding: 10px;
  border-radius: 8px;
}

/* ====== Paywall ====== */
.paywall-container {
  text-align: center;
  margin: 40px auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #eee;
  border-radius: 12px;
  max-width: 600px;
}

.paywall-container p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.paypal-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.paypal-buttons form {
  display: inline-block;
}



/* ====== Boutique ====== */
.support-block {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 12px;
  max-width: 1000px;
  margin: 40px auto;
  color: #eee;
  align-items: flex-start;
}

.support-image {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.support-description {
  flex: 1;
  min-width: 250px;
}

.support-description h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.support-description p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 15px;
}

.auteur {
  font-style: italic;
  color: #ccc;
}

/* ====== Bloc inscription ====== */
.inscription-block {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
  color: #eee;
}

.inscription-block input[type="email"] {
  padding: 10px;
  width: 80%;
  border: none;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 1em;
}

.inscription-block button {
  background-color: #33eaa7;
  color: #111;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.inscription-block button:hover {
  background-color: #11b558;
}

/* ====== Bloc abonnement ====== */
.abonnement-block {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 12px;
  max-width: 700px;
  margin: 60px auto;
  text-align: center;
  color: #eee;
}

.abonnement-block h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
}

.abonnement-block p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.abonnement-block input[type="email"] {
  padding: 10px;
  width: 80%;
  border: none;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 1em;
}

.abonnement-block button {
  background-color: #33eaa7;
  color: #111;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.abonnement-block button:hover {
  background-color: #11b558;
}

.abonnement-payant {
  margin-top: 30px;
  font-style: italic;
  color: #ccc;
}
 /* a propos */
.about-universe {
  max-width: 900px;        /* largeur confortable pour la lecture */
  margin: 60px auto;       /* centré avec espace autour */
  padding: 40px;
        
  color: #eee;             /* texte clair */
  border-radius: 12px;     /* coins arrondis */
  box-shadow: 0 0 25px rgba(0,0,0,0.4); /* effet spectral */
  font-family: 'Georgia', serif;
  line-height: 1.8;        /* lisibilité accrue */
}
.about-universe{
background-color: rgba(0, 0, 0, 0.6); /* fond sombre pour l’ambiance */
  padding: 40px;
  margin: 40px auto;
  max-width: 800px;
  border-left: 4px solid #05f4dc;
  font-style: italic;
  color: #f0f0f0;
  
}
.about-universe h2 {
  text-align: center;
  font-size: 2.2em;
  color: rgb(51, 234, 167); /* vert spectral */
  text-shadow: 0 0 8px rgba(51, 234, 167, 0.6);
  margin-bottom: 30px;
}

.about-universe p {
  margin-bottom: 25px;     /* espace entre les paragraphes */
  font-size: 1.1em;
  text-align: justify;     /* alignement fluide */
 
}

.about-universe strong {
  color: #ffcc66;          /* mettre en valeur les titres dans le texte */
}








/* ====== Structure principale ====== */
.footer-fragments {
  background-color: rgba(0, 0, 0, 0.5);

  color: #eee;
  padding: 20px 20px;
  font-size: 0.95em;
}
section {
  margin-bottom: 40px; /* espace blanc avant le footer */
  color: white solid 1px;
}
/* ====== Bloc newsletter ====== */
.footer-newsletter {
  text-align: center;
  margin-bottom: 30px;
}

.footer-newsletter h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.footer-newsletter a {
  color: #33eaa7;
  text-decoration: none;
  margin: 0 5px;
}

.footer-newsletter a:hover {
  text-decoration: underline;
}

/* ====== Colonnes de navigation ====== */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h4 {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #33eaa7;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #33eaa7;
}

/* ====== Bas de page ====== */
.footer-bottom {
  text-align: center;
  font-size: 0.85em;
  color:#aaa;
  margin-top: 20px;
}

/* ====== Liens textuels et icônes sociales ====== */
.footer-social {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid #333;
}

/* Liens textuels à gauche */
.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ff2a2a;
  text-shadow: 0 0 6px #ff2a2a;
}

/* Icônes sociales à droite */
.footer-icon {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.footer-icon li a {
  color: #ccc;
  font-size: 1.5em;
  transition: color 0.3s ease;
}

.footer-icon li a:hover {
  color: #ff2a2a;
  text-shadow: 0 0 8px #ff2a2a;
}


/******************************************
                media query
******************************************/

/* ====== Base ====== */
body, html {
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: auto;
  height: auto;
}

#snakeCanvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Branding / nav base */
header {
  position: relative;
  z-index: 10;
}

.nav-menu {
  position: static; /* bureau par défaut */
}

#menu-list {
  display: flex; /* bureau: visible */
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#menu-list li a {
  color: #f0f0f0;
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.3s ease, background-color 0.3s ease;
}

#menu-list li a:hover {
  background-color: rgba(51, 234, 167, 0.2);
  color: #33eaa7;
  border-radius: 6px;
}

/* Burger icône: caché sur bureau */
.burger {
  font-size: 1.8em;
  cursor: pointer;
  display: none;
  color: #f0f0f0;
}
.burger-menu {
  position: relative;
  background-color: #088af4;
  color: #eee;
  padding: 10px 20px;
  border-radius: 10px;
}

.menu-toggle {
  font-size: 1.8em;
  cursor: pointer;
}

.menu-content {
  display: flex;
  flex-direction: column;
  background-color: #181818;
  position: fixed; /* ✅ fixe à l’écran */
  top: 0;
  left: 0; /* collé au bord gauche */
  height: 100vh; /* prend toute la hauteur */
  width: 300px;
  padding: 20px;
  border-radius: 0 8px 8px 0;
  z-index: 1000;

  /* Animation de glissement */
  transform: translateX(-100%); /* caché hors écran */
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}


.menu-content.show {
  transform: translateX(0); /* glisse vers l’écran */
  opacity: 1;
}

/* Apparition spectrale (unique) */
@keyframes apparitionSpectrale {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

/* ====== Large écrans à tablettes: <= 1268px ====== */
@media screen and (max-width: 1268px) {
  /* Fond adaptatif */
  body {
    background-image: url('img/A\ mysterious\ library.png');
    background-size: cover;
    background-position: center;
  }

  /* Canvas sécurité */
  #snakeCanvas {
    position: relative;
    z-index: 1;
    pointer-events: auto;
  }

  /* Nav en position fixe (option flottante sur bord droit) */
  .nav-menu {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 1000;
  }

  /* Menu déroulant mobile (préparation) */
  #menu-list {
    display: none;              /* caché par défaut en mobile/tablette */
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: rgba(142, 59, 59, 0.95);
    width: 220px;
    padding: 20px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  #menu-list.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    animation: apparitionSpectrale 0.5s ease forwards;
  }

  /* Afficher le burger à partir de 1268px et moins */
  .burger {
    display: block;
    position: fixed;
    top: 12px;
    right: 20px;
    z-index: 1001;
  }

  /* Cartes / grilles */
  .galery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px;
  }

  .ressource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Étiquettes */
  .etiquette {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    border: 2px solid #5c3d2e;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(60, 40, 20, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
    backdrop-filter: blur(2px);
  }

  .etiquette:hover {
    transform: scale(1.02);
  }

  .etiquette img {
    width: 70%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid #ccc;
  }

  .etiquette-texte {
    padding: 20px;
    text-align: left;
    font-family: "Georgia", serif;
  }

  .etiquette-texte h3 {
    margin-bottom: 10px;
    font-size: 1.4em;
    color: #e2692d;
  }

  .etiquette-texte p {
    font-size: 1em;
    line-height: 1.6;
    color: #efeded;
  }
}

/* ====== Tablettes et petits écrans: <= 768px ====== */
@media screen and (max-width: 768px) {
  /* Structure de support */
  .support-block {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 20px;
  }

  .support-image {
    max-width: 100%;
    margin: 0 auto;
  }

  .support-description {
    text-align: center;
  }

  .support-description h2 {
    font-size: 1.5em;
  }

  .support-description p {
    font-size: 1em;
  }

  /* Jeux / canvas */
  .jeu-container {
    flex-direction: column;
    padding: 10px;
  }

  .tableau-gauche, .tableau-droite {
    width: 100%;
    margin-bottom: 20px;
  }

  .canvas-wrapper {
    width: 100%;
    overflow-x: auto;
  }

  .jeu-card {
    flex-direction: column;
    align-items: center;
  }

  .jeu-image {
    border-radius: 8px 8px 0 0;
    max-width: 100%;
  }

  .jeu-description {
    text-align: center;
  }

  /* Nav et burger déjà positionnés en section 1268px */
  /* Assure que le menu passe au-dessus du canvas */
  .nav-menu,
  .burger {
    position: fixed;
    z-index: 1001;
  }
}

/* ====== Très petits écrans: <= 480px ====== */
@media screen and (max-width: 480px) {
  .support-description h2 {
    font-size: 1.3em;
  }

  .support-description p {
    font-size: 0.95em;
  }

  .support-block {
    padding: 15px;
  }
}














