/* site.css — shared CSS for all apps (minimal, only navbar + utility spacing) */
* {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 12px;
}

body {
  margin: 0;
}

/* Page container */
.container {
  max-width: 90%;
  margin: 20px auto;
  padding: 0 12px;
}

/* Simple form/table spacing for readability */
form div,
table {
  margin-bottom: 10px;
}

/* Simple link/button look */
a.button-like {
  display: inline-block;
  padding: 6px 10px;
  background: #f1f1f1;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
}

/* Two-column form grid for better layout */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.form-grid .field {
  display: flex;
  flex-direction: column;
}

.form-grid label {
  font-weight: 400;
  margin-bottom: 6px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
}

/* Stack to single column on small screens */
@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Enhanced responsive rules and helpers */
.form-container {
  background: #fff;
  padding: 14px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.form-grid .field input[type="checkbox"],
.form-grid .field input[type="radio"] {
  width: auto;
  margin-right: 6px;
}

.form-grid .field textarea {
  min-height: 80px;
  resize: vertical;
}

/* Contact section styling */
#contact-section {
  background: #fbfbff;
  border-radius: 6px;
  padding: 10px;
}

/* Form actions / buttons */
.form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #0d6efd;
  color: #fff;
  border: none;
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
  border: none;
}

.btn-danger {
  background: #dc3545;
  color: #fff;
  border: none;
}

/* anchors that act like buttons */
a.btn {
  color: inherit;
}

/* Make some fields span both columns when necessary */
.full-width {
  grid-column: 1 / -1;
}

/* Responsive breakpoints: change grid earlier on medium screens */
@media (max-width: 1000px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 800px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Small utility styles used in templates */
label {
  display: block;
  margin-bottom: 4px;
}

input,
select,
textarea {
  border: 1px solid #ddd;
  border-radius: 4px;
}


/* -----------NAVBAR-----------------*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #464b65;
  padding: 0.9em 1.4em;
  color: white;
  font-size: 1.2rem;
  font-weight: 570;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body {
  padding-top: 60px; /* Compense la hauteur de la navbar fixe */
}

.nav-links li {
  position: relative;
  list-style: none;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  min-width: 180px;
  border: 1px solid #ddd;
  z-index: 50;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 15px;
  text-decoration: none;
  color: #333;
}

.dropdown-menu li a:hover {
  background: #f0f0f0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.text-logo {
  text-decoration: none;
  color: white;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1em;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: white;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00bcd4;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #464b65;
    position: absolute;
    top: 50px;
    right: 0;
    width: 40%;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}