* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  background: #000;
}

/* ================== IMAGE EN ARRIÈRE-PLAN ================== */
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-image: url('../images/marvel.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.4);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* ================== HEADER ================== */
header {
  background-image: url("../images/marvel.jpg");
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
}

header h1 {
  color: white;
  text-align: center;
  padding: 30px;
  margin: 0;
  font-family: 'Audiowide', cursive;
  font-size: 2rem;
  letter-spacing: 0.5rem;
}

.encadrer {
  padding: 7px;
  color: white;
  font-family: 'Audiowide', cursive;
}

/* ================== ICÔNE UTILISATEUR ================== */
.user-icon-container {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 20;
}

.user-icon-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.user-icon-link:hover {
  background: rgba(213, 2, 65, 0.3);
  border-color: #D50241;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(213, 2, 65, 0.5);
}

/* ================== NAVIGATION ================== */
.menu {
  height: 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-top: #D50241 6px solid;
  border-bottom: #D50241 6px solid;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

ul {
  display: flex;
  justify-content: center;
  padding: 10px;
  gap: 50px;
  list-style: none;
}

.menu a {
  text-decoration: none;
  color: black;
  font-family: 'Space Mono', sans-serif;
  transition: all 0.3s ease;
}

.menu li:hover {
  border-bottom: 2px solid #0890E4;
}

/* ================== CONTENU LÉGAL ================== */
.legal-content {
  min-height: calc(100vh - 200px);
  padding: 60px 20px 80px;
  position: relative;
  z-index: 5;
}

.content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.legal-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid rgba(213, 2, 65, 0.2);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  color: #D50241;
  font-family: 'Audiowide', cursive;
  font-size: 1.5em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #D50241;
  display: inline-block;
}

.legal-section h3 {
  color: #ff1744;
  font-family: 'Space Mono', monospace;
  font-size: 1.1em;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.section-content p {
  color: #333;
  line-height: 1.8;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95em;
  text-align: justify;
}

.section-content p strong {
  color: #D50241;
  font-weight: 600;
}

.section-content ul {
  display: block;
  margin: 15px 0;
  padding-left: 25px;
  list-style-type: disc;
}

.section-content li {
  color: #333;
  line-height: 1.8;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95em;
}

.section-content li strong {
  color: #D50241;
}

.section-content a {
  color: #D50241;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.section-content a:hover {
  color: #ff1744;
  border-bottom: 1px solid #ff1744;
}

/* ================== SECTION CONTACT ================== */
.contact-section {
  background: linear-gradient(135deg, rgba(213, 2, 65, 0.1), rgba(255, 23, 68, 0.05));
  border: 2px solid rgba(213, 2, 65, 0.3);
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
  text-align: center;
}

.contact-section h2 {
  color: #D50241;
  font-family: 'Audiowide', cursive;
  font-size: 1.6em;
  margin-bottom: 20px;
}

.contact-section p {
  color: #333;
  line-height: 1.8;
  margin-bottom: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 0.95em;
}

.contact-section strong {
  color: #D50241;
}

/* ================== FOOTER ================== */
footer {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
}

.footer-container {
  position: relative;
  width: 100%;
  height: 140px;
}

.foot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 15px;
}

.footer-text h2 {
  color: #ff1744;
  font-family: 'Audiowide', cursive;
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.footer-text p {
  font-family: 'Space Mono', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 600px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  margin: 5px 0;
}

.footer-links {
  margin-top: 10px;
  font-size: 0.85rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0 8px;
}

.footer-links a:hover {
  color: #D50241;
  text-shadow: 0 0 10px rgba(213, 2, 65, 0.8);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 1024px) {
  .content-wrapper {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .user-icon-container {
    right: 15px;
    top: 20px;
  }
  
  .user-icon-link span {
    display: none;
  }
  
  .user-icon-link {
    padding: 10px;
    border-radius: 50%;
  }

  header h1 {
    font-size: 1.3rem;
    letter-spacing: 0.3rem;
    padding: 20px 60px 20px 20px;
  }

  ul {
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9em;
  }

  .content-wrapper {
    padding: 30px 20px;
  }

  .legal-section h2 {
    font-size: 1.2em;
  }

  .legal-section h3 {
    font-size: 1em;
  }

  .section-content p,
  .section-content li {
    font-size: 0.9em;
    text-align: left;
  }

  .footer-container {
    height: 160px;
  }

  .footer-text h2 {
    font-size: 1.2rem;
  }

  .footer-text p {
    font-size: 0.8rem;
  }

  .footer-links {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1rem;
    letter-spacing: 0.2rem;
  }

  .content-wrapper {
    padding: 25px 15px;
  }

  .legal-section h2 {
    font-size: 1.1em;
  }

  .section-content p,
  .section-content li {
    font-size: 0.85em;
  }

  .contact-section {
    padding: 20px;
  }

  .contact-section h2 {
    font-size: 1.3em;
  }
}