/* Reset de base */
body, h1, h2, ul, li, p {
  margin: 0;
  padding: 0;
}

/* Corps de la page */
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #ffe6e6, #fddede);
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

/* Conteneur principal */
.carte {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 100%;
  padding: 40px 30px;
}

/* Titres */
h1 {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #b30000;
}

h2 {
  font-size: 1.5em;
  color: #a00000;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

/* Menu principal */
.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.menu button {
  background-color: #b30000;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 12px 24px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
}

.menu button:hover,
.menu button:focus {
  background-color: #800000;
  outline: none;
}

/* Sections cachées par défaut */
.section {
  display: none;
  margin-top: 30px;
}

/* Listes */
ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 5px;
}

/* Bouton retour */
.back-btn {
  margin-top: 20px;
  display: inline-block;
  background: #ccc;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s;
}

.back-btn:hover,
.back-btn:focus {
  background: #bbb;
  outline: none;
}

/* Image et effets */
.image {
  text-align: center;
  margin-top: 20px;
}

.image img {
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 0;
}

.image img:hover,
.image img:focus {
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.35);
  z-index: 1;
  outline: none;
}

/* Ombres colorées persistantes */
.blue-shadow {
  box-shadow: 0 0 15px 3px rgba(0, 120, 255, 0.8) !important;
  transition: box-shadow 0.5s ease;
  z-index: 1;
}

.orange-shadow {
  box-shadow: 0 0 15px 3px rgba(255, 140, 0, 0.8) !important;
  transition: box-shadow 0.5s ease;
  z-index: 1;
}

.black-shadow {
  box-shadow: 0 0 15px 3px rgba(0, 0, 0, 0.8) !important;
  transition: box-shadow 0.5s ease;
  z-index: 1;
}

/* Liens */
a {
  color: #b30000;
  text-decoration: underline;
}

a:hover,
a:focus {
  color: #800000;
  outline: none;
}

/* Responsive - petit écran */
@media (max-width: 480px) {
  .carte {
    padding: 20px 15px;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.3em;
  }

  .image img {
    max-width: 100%;
  }

  .menu button {
    width: 100%;
    padding: 14px 0;
  }
}
