/* --- Reset de base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Layout global --- */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
  background-color: #f5f6fa;
  color: #333;
}

/* --- Contenu principal --- */
main, section {
  flex: 1;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* --- Header --- */
header {
  background-color: #2f3640;
  color: #f5f6fa;
  padding: 2rem 0;
  text-align: center;
}

header h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  color: #dcdde1;
}

/* --- Toolbar --- */
.toolbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.toolbar ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background-color: #012030;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.toolbar ul li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #fff;
  transition: width 0.3s ease;
}

.toolbar ul li a:hover::after {
  width: 100%;
}

.toolbar ul li a:hover {
  background-color: #0097e6;
  color: #fff;
}

/* --- Dropdown --- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #012030;
  color: #fff;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.dropbtn:hover {
  background-color: #0097e6;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f5f6fa;
  min-width: 180px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  border-radius: 6px;
  z-index: 1000;
  overflow: hidden;
  top: 100%;
}

.dropdown-content a {
  color: #2f3640;
  padding: 0.8rem 1rem;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #00a8ff;
  color: #fff;
}

/* Animation douce */
.dropdown-content {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --- Sections --- */
section {
  padding: 4rem 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2f3640;
  text-align: center;
}

section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  text-align: center;
  color: #555;
}

/* --- Boutons --- */
.btn, button {
  display: inline-block;
  text-decoration: none;
  background-color: #00a8ff;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover, button:hover {
  background-color: #0097e6;
}

/* --- Citation (formulaires) --- */
.citation {
  margin-top: 20px;
  padding: 15px;
  border-left: 4px solid #00a8ff;
  background: #f9fbfd;
  font-size: 1rem;
  white-space: pre-line;
  text-align: justify;
}

.citation p {
  margin: 0;
  text-indent: -20px;
  padding-left: 20px;
}

/* --- Footer --- */
footer {
  background-color: #2f3640;
  color: #f5f6fa;
  text-align: center;
  padding: 2rem 0;
  margin-top: auto;
}

footer p {
  font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .toolbar ul {
    flex-direction: column;
  }

  .toolbar ul li {
    margin: 0.5rem 0;
  }
}
/* --- Inputs et formulaires améliorés --- */
form {
  margin-top: 2rem;
}

form label {
  display: block;
  font-weight: bold;
  margin: 1rem 0 0.5rem;
  color: #2f3640;
}

form input, 
form textarea, 
form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fff;
  color: #333;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

form input:focus, 
form textarea:focus, 
form select:focus {
  border-color: #00a8ff;
  box-shadow: 0 0 6px rgba(0,168,255,0.3);
  outline: none;
  background-color: #fdfefe;
}

form input::placeholder, 
form textarea::placeholder {
  color: #999;
  opacity: 1;
  font-style: italic;
}

/* --- Boutons cohérents --- */
button, .btn {
  display: inline-block;
  text-decoration: none;
  background-color: #00a8ff;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
}

button:hover, .btn:hover {
  background-color: #0097e6;
  transform: translateY(-2px);
}

button:active, .btn:active {
  transform: translateY(0);
}
/* Notifications */
.notification {
  display: inline-block;
  margin-left: 15px;
  padding: 0.5rem 1rem;
  background-color: #00a8ff;
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}
