/* 🌌 Fond personnalisé — image brute sans filtre */
body {
  background: url('../image-fond.png') no-repeat center center fixed;
  background-color: #212529;
  background-size: cover;
  color: #f8f9fa;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  opacity: 0;
  animation: fadeIn 0.8s ease-in forwards;
}

/* 🌟 Animation d’entrée en fondu */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* 🌫️ Transparence des blocs */
.container,
.notice,
.footer,
.gallery-item,
.logo-wrapper,
.badge-container {
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* 🧭 Barre de navigation */
nav {
  background-color: rgba(52, 58, 64, 0.6);
  backdrop-filter: blur(3px);
  padding: 12px 0;
  text-align: center;
}

nav a {
  color: #ff5733;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  font-size: 1rem;
}

nav a:hover {
  text-decoration: underline;
}

/* 📦 Conteneur principal */
.container {
  max-width: 1100px;
  width: 95%;
  padding: 30px 20px;
  text-align: center;
  margin: auto;
}

/* 🖼️ Logo animé */
.logo-wrapper {
  margin-top: 40px;
  position: relative;
}

.logo-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,87,51,0.3) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
}

.badge-container {
  position: relative;
  display: inline-block;
}

.logo-neon,
.logo-envelope {
  display: block;
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: auto;
  border-radius: 20px;
  animation: neonTurquoise 2s infinite alternate, glowPulse 3s infinite ease-in-out;
}

.logo-envelope.send {
  animation: envelopeSend 2.5s forwards ease-in-out;
}

.badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #ff5733;
  color: #fff;
  border-radius: 50%;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 0 6px rgba(255,87,51,0.4);
}

/* 📝 Titres et textes */
h1 {
  font-size: 2.2rem;
  color: #ff5733;
  margin-bottom: 20px;
}

h2 {
  color: #ff5733;
  margin-top: 40px;
}

p {
  font-size: 1.1rem;
  color: #ced4da;
  margin-bottom: 20px;
}

.description {
  margin: 30px 0;
}

/* 📌 Bouton d'action */
.cta-button,
a.button {
  display: inline-block;
  background-color: #ff5733;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-bottom: 30px;
}

.cta-button:hover,
a.button:hover {
  background-color: #e04c2d;
}

/* 🖼️ Galerie réalisations */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 10px;
}

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

.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(33,37,41,0.6);
  backdrop-filter: blur(2px);
  color: #fff;
  padding: 10px;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .caption {
  opacity: 1;
}

.gallery-item:nth-child(1) { box-shadow: 0 0 20px #00ffff; }
.gallery-item:nth-child(2) { box-shadow: 0 0 20px #ff00ff; }
.gallery-item:nth-child(3) { box-shadow: 0 0 20px #00ff00; }
.gallery-item:nth-child(4) { box-shadow: 0 0 20px #ff9900; }
.gallery-item:nth-child(5) { box-shadow: 0 0 20px #ff0000; }
.gallery-item:nth-child(6) { box-shadow: 0 0 20px #3399ff; }

/* ⚠️ Notice */
.notice {
  padding: 15px 20px;
  border-radius: 8px;
  color: #f8f9fa;
  font-weight: bold;
  margin-top: 30px;
}

/* 🧑‍💼 Auteur */
.author {
  font-size: 0.9rem;
  color: #ced4da;
  margin-top: 30px;
  text-align: center;
}

/* 🦶 Pied de page */
.footer {
  padding: 20px;
  font-size: 0.9rem;
  color: #ced4da;
  text-align: center;
}

.footer a {
  color: #ff5733;
  text-decoration: none;
  margin: 0 10px;
}

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

/* 🖱️ Menu contextuel personnalisé */
#customMenu a {
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

#customMenu a:hover {
  color: #fff;
}

/* ✨ Animations */
@keyframes neonTurquoise {
  from {
    box-shadow: 0 0 10px #00fff0, 0 0 20px #00ffd5, 0 0 30px #00ffcc, 0 0 40px #00ffbf;
  }
  to {
    box-shadow: 0 0 15px #00ffe0, 0 0 25px #00ffd5, 0 0 35px #00ffcc, 0 0 45px #00ffbf;
  }
}

@keyframes glowPulse {
  0%, 100% { filter: brightness(0.6); }
  50% { filter: brightness(1.4); }
}

@keyframes envelopeSend {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  30% { transform: scale(0.9) rotateX(20deg); }
  50% { transform: scale(0.7) rotateX(90deg); }
  100% { transform: translateY(-600px) scale(0.2) rotate(720deg); opacity: 0; }
}
