/* ============================================
   CHARTE GRAPHIQUE HESIA
   Primaire : #B8D430 | Secondaire : #3D4145
   Accent : #C5D86D
   ============================================ */

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #2C2C2C;
  background: #FFFFFF;
}

a { color: #B8D430; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #C5D86D; }

/* ============================================
   HEADER
   ============================================ */
header {
  background: #3D4145;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1.2rem;
}

.logo-img { height: 60px; width: auto; }
.logo-text { color: #FFFFFF; }

nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

nav ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  flex-wrap: nowrap;
}

nav a {
  color: #FFFFFF;
  font-weight: 500;
  font-size: 0.9rem;
}
nav a:hover { color: #B8D430; }

.cta-button {
  background: #B8D430;
  color: #2C2C2C;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  margin-left: 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid #B8D430;
  white-space: nowrap;
}

.cta-button:hover {
  background: #C5D86D;
  border-color: #C5D86D;
  color: #2C2C2C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184,212,48,0.3);
}

/* ============================================
   HAMBURGER
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #3D4145;
  color: #FFFFFF;
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 { color: #B8D430; margin-bottom: 1rem; font-size: 1.1rem; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.5rem; }
.footer-column a { color: #FFFFFF; }
.footer-column a:hover { color: #B8D430; }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #C5D86D;
  font-size: 0.9rem;
}

/* ============================================
   CONTENEUR GENERIQUE
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   BREADCRUMB & LIEN RETOUR
   ============================================ */
.breadcrumb { font-size: 0.9em; color: #666; margin-bottom: 10px; }
.breadcrumb a { color: #B8D430; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { margin: 0 8px; color: #ccc; }
.breadcrumb-current { color: #333; }

.lien-retour {
  display: inline-block;
  color: #B8D430;
  text-decoration: none;
  font-size: 0.95em;
  margin-bottom: 20px;
}
.lien-retour:hover { text-decoration: underline; }

/* ============================================
   PAGES INTERNES
   ============================================ */
.page-header {
  background: linear-gradient(135deg, #3D4145 0%, #2C2C2C 100%);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.page-header p { font-size: 1.2rem; color: #C5D86D; }

.content-section { max-width: 800px; margin: 3rem auto; padding: 0 2rem; }
.content-section h2 { color: #3D4145; margin-top: 2rem; margin-bottom: 1rem; }
.content-section p { margin-bottom: 1rem; line-height: 1.8; }

.content-page { max-width: 800px; margin: 3rem auto; padding: 0 2rem; }
.content-page h2 { color: #3D4145; margin-top: 2rem; margin-bottom: 1rem; }
.content-page p { margin-bottom: 1rem; line-height: 1.8; color: #444; }
.content-page ul { margin: 0.5rem 0 1rem 1.5rem; line-height: 1.8; color: #444; }
.content-page li { margin-bottom: 0.5rem; }

/* ============================================
   BLOCS REUTILISABLES
   ============================================ */
.placeholder-box {
  background: #F8F9FA;
  border: 2px dashed #B8D430;
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}
.placeholder-box h3 { color: #3D4145; margin-bottom: 1rem; }
.placeholder-box p { color: #666; }

.cta-box {
  background: linear-gradient(135deg, #B8D430 0%, #C5D86D 100%);
  color: #2C2C2C;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin: 3rem 0;
}
.cta-box h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.cta-box .cta-button { background: #3D4145; color: #FFFFFF; border-color: #3D4145; }

.info-box {
  background: #e8f0fe;
  border-left: 4px solid #4a7fd4;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  color: #2c4a7c;
}
.last-updated { color: #999; font-size: 0.85rem; margin-top: 3rem; }

/* ============================================
   FORMULAIRE GENERIQUE
   ============================================ */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: #F8F9FA;
  padding: 2rem;
  border-radius: 12px;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: #3D4145; font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #E0E0E0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: #B8D430; }
.form-group textarea { resize: vertical; min-height: 120px; }

button[type="submit"] {
  background: #B8D430;
  color: #2C2C2C;
  border: none;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}
button[type="submit"]:hover { background: #C5D86D; transform: translateY(-2px); }

/* ============================================
   RESPONSIVE HEADER & HAMBURGER
   ============================================ */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .page-header h1 { font-size: 1.6rem; }

  header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  #nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #3D4145;
    padding: 20px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  #nav-menu.nav-open { display: block; }
  #nav-menu ul { flex-direction: column; gap: 0; }
  #nav-menu ul li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1em;
  }
  #nav-menu .cta-button { display: block; margin: 15px 0 0 0; text-align: center; }
  .logo-img { height: 40px; }
}

/* Leaflet controls sous le header */
.leaflet-control-container { z-index: 500 !important; }
.leaflet-control { z-index: 500 !important; }
.leaflet-bottom, .leaflet-top { z-index: 500 !important; }
