/* -------------------------------------------------------- */
/* style.css – Effet "porte de garage" 3D stable */
/* -------------------------------------------------------- */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
  background-color: #f2f2f2;
  color: #111;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  background: linear-gradient(to right, #0055A4 0%, #ffffff 17%, #ffffff 83%, #EF4135 100%);
  padding: 15px 20px;
  position: relative;
  z-index: 1000;
  perspective: 1000px;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

header h1 {
  margin: 5px 0 12px;
  font-size: 2em;
  font-weight: 700;
  letter-spacing: 0.1px;
  color: #6A0DAD; /* couleur violet */ /* color: #111; couleur noire */
  text-shadow: 2px 2px 3px rgba(255, 0, 0, 0.5);
  transition: color 0.3s ease;
}

header h1:hover {
  color: #0066B9;
}

header a {
  text-decoration: none; /* supprime le soulignement du lien */
  color: inherit;        /* conserve la couleur du h1 */
}

/* Navigation */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Boutons du menu */
.menu-item button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  padding: 0;
  text-shadow: 1px 1px 2px rgba(255,0,0,0.35);
  letter-spacing: 0.25px;

  background: linear-gradient(to right, #00bfff, #1e90ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  font-weight: 600;
  font-size: 1.1em;
}

.menu-item button:hover {
  -webkit-text-fill-color: #0066B9;
  background: none;
}

/* LIENS normaux */
nav a {
  font-weight: 600;
  font-size: 1.1em;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(255,0,0,0.35);
  letter-spacing: 0.25px;

  background: linear-gradient(to right, #00bfff, #1e90ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav a:hover {
  -webkit-text-fill-color: #0066B9;
  background: none;
}

/* PANNEAU CENTRAL UNIQUE */
.submenu {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translateX(-50%) rotateX(-90deg);
  transform-origin: top center;
  min-width: 275px;

  border-radius: 3px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);

  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
  backface-visibility: hidden;
  z-index: 2000;

  background-image: linear-gradient(to bottom,
        rgba(255, 150, 0, 1) 0%,
        rgba(250, 190, 0, 1) 33%,
        rgba(240, 220, 155, 1) 66%,
        rgba(230, 255, 255, 1) 100%);
  background-size: 100% 200%;

}

.submenu li {
  padding: 8px 12px;
}

.submenu li:hover {
  background-color: #f2f2f2;
}

/* MAIN */
main {
  flex: 1;
  padding: 40px 20px;
  background: linear-gradient(to bottom, #00bfff 0%, #3399ff 50%, #0055A4 100%);
}

main section {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* FOOTER */
footer {
  background-color: #111;
  color: #eee;
  text-align: center;
  padding: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
}
