:root {
  --main-bg-opacity: 0.95;
  --text-bg-opacity: 0.7;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  /* Use column layout so content can grow vertically and page can scroll */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: "Arial", sans-serif;
  /* Allow scrolling (was overflow: hidden which prevented scrolling on long forms) */
  overflow: auto;
  position: relative;
  color: #fff;
}

.background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("../public_image/fond.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(5px);
  opacity: var(--main-bg-opacity);
  z-index: -1;
}

header {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

nav {
  display: flex;
  gap: 15px;
}

.nav-btn {
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, var(--text-bg-opacity));
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.content {
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
  /* Add breathing room so header and footer don't overlap content and allow scrolling */
  padding: 110px 20px 140px;
  box-sizing: border-box;
  min-height: 100vh;
  position: relative;
  overflow-y: auto;
}

/* Ensure creation section has space from the fixed header */
#creation {
  padding-top: 10px;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: inherit;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  background-color: rgba(0, 0, 0, var(--text-bg-opacity));
  padding: 20px 40px;
  border-radius: 10px;
  margin: 0 0 10px 0;
}

.subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: inherit;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  background-color: rgba(0, 0, 0, var(--text-bg-opacity));
  padding: 15px 30px;
  border-radius: 8px;
  margin: 0;
  display: inline-block;
}

.copyright {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-size: clamp(0.8rem, 2vw, 1rem);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

button {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/* Styles pour le bouton connexion/outil */
.nav-btn.outil-active {
  background-color: #4CAF50 !important;
  color: white !important;
  border: 1px solid #45a049 !important;
}

.nav-btn.outil-active:hover {
  background-color: #45a049 !important;
  transform: translateY(-2px);
}
