/* ===================== GLOBAL ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body, html {
  height: 100%;
  width: 100%;
  background: #f8fff9;
  color: #222;
  overflow-x: hidden;
}

.hidden { display: none; }

/* ===================== HEADER ===================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #fafff8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  z-index: 10;
}

header h1 {
  color: #27ae60;
  font-size: 1.5em;
}

#menu-btn {
  background: none;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
  color: #27ae60;
  transition: transform 0.3s ease;
  z-index: 20;
}

#menu-btn:hover { transform: scale(1.1); }

/* ===================== MENU LATÉRAL ===================== */
#side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 270px;
  height: 100%;
  background: #ffffff;
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 15;
}

#side-menu.open { transform: translateX(0); }

#close-menu {
  background: none;
  border: none;
  font-size: 1.5em;
  float: right;
  cursor: pointer;
  color: #27ae60;
}

#side-menu ul { list-style: none; padding: 0; margin-top: 60px; }
#side-menu li { margin: 25px 0; }
#side-menu a {
  text-decoration: none;
  color: #2ecc71;
  font-weight: 600;
  font-size: 1.1em;
  transition: color 0.3s;
}
#side-menu a:hover { color: #1e9b57; }

/* ===================== BUTTONS ===================== */
button, .choice-btn, .submit-btn {
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover, .choice-btn:hover, .submit-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.choice-btn, .submit-btn { color: white; text-decoration: none; display: inline-block; text-align: center; }

/* ===================== FORMULAIRES ===================== */
.form-container, .auth-box {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  padding: 25px;
  margin: 40px auto;
  max-width: 600px;
  animation: fadeIn 0.4s ease;
}

.form-container h2, .auth h1 { text-align: center; margin-bottom: 20px; color: #27ae60; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d3f5da;
  border-radius: 10px;
  font-size: 1em;
  margin-top: 5px;
  margin-bottom: 15px;
  background: #f9fff9;
  transition: border 0.3s ease;
}

input:focus, select:focus { border-color: #2ecc71; outline: none; }

label { font-weight: 600; margin-top: 10px; display: block; color: #333; }

/* ===================== SPECIFIC BUTTONS ===================== */
#add-assertion, #add-interest {
  display: inline-block;
  background: #eaffea;
  border: 1px solid #c6f3cb;
  border-radius: 10px;
  padding: 8px 14px;
  color: #27ae60;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 15px;
}

#add-assertion:hover, #add-interest:hover {
  background: #d5fcd9;
  transform: scale(1.03);
}

/* Prix dynamique */
.prix {
  background: #f6fff7;
  border-radius: 12px;
  padding: 10px;
  margin: 15px 0;
  font-weight: 600;
  text-align: center;
  color: #2ecc71;
  font-size: 1.1em;
}

/* ===================== ACCUEIL ===================== */
.home { text-align: center; padding: 80px 20px; position: relative; z-index: 5; }

.intro h2 { font-size: 1.8em; animation: fadeInDown 1s ease forwards; }
.intro p { font-size: 1em; line-height: 1.5em; max-width: 500px; margin: 0 auto 40px; animation: fadeInUp 1.2s ease forwards; }

.choices { display: flex; flex-direction: column; gap: 15px; max-width: 300px; margin: 0 auto; }
.choice-btn.green { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.choice-btn.blue { background: linear-gradient(135deg, #3498db, #5dade2); }

footer { margin-top: 60px; font-size: 0.8em; color: #777; }

/* ===================== AUTH ===================== */
.auth { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100vh; background: radial-gradient(circle at 30% 50%, #e8fff2, #ffffff); text-align: center; }
.auth-box { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; padding: 20px; }
.auth-box button { background: linear-gradient(135deg, #27ae60, #2ecc71); color: white; }
.switch { font-size: 0.9em; color: #555; }
.switch a { color: #27ae60; text-decoration: none; font-weight: bold; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes fadeInDown { from {opacity:0; transform:translateY(-20px);} to {opacity:1; transform:translateY(0);} }
@keyframes fadeInUp { from {opacity:0; transform:translateY(20px);} to {opacity:1; transform:translateY(0);} }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .form-container, .auth-box { margin: 20px; padding: 20px; }
  input, select { font-size: 0.95em; }
  .submit-btn, .choice-btn { font-size: 1em; }
}
