@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&display=swap');

/* ==========================================================================
   VARIABLES GLOBALES DU SITE (charte graphique Courtoisie Urbaine)
   ========================================================================== */
:root {
  --fond: #ffffff;
  --texte: #2b2132;
  --adn-jaune: #f2e24d;
  --neutre-bleu: #5c82b5;
  --neutre-bordeaux: #713643;
  --neutre-gris: #646161;
  --border: rgba(43, 33, 50, 0.1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--fond);
  color: var(--texte);
  font-family: 'Manrope', sans-serif;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.site-content {
  flex: 1;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.cu-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: clamp(14px, 2.2vh, 24px) clamp(14px, 3vw, 32px) !important;
  position: relative !important;
}

.cu-header .header-logo {
  position: static !important;
  transform: none !important;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 2;
  border-bottom: 6px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.25s ease;
}

.cu-header .header-logo:hover,
.cu-header .header-logo.actif {
  border-bottom-color: var(--adn-jaune);
}

.cu-header .header-logo img {
  height: clamp(28px, 4vw, 52px) !important;
  width: auto;
  display: block;
}

.cu-header nav {
  display: flex !important;
  align-items: center;
  gap: clamp(14px, 2vw, 34px) !important;
}

/* wp_nav_menu() entoure chaque lien d'un <li> : on retire le point par défaut */
.cu-header nav li {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.cu-header nav a {
  color: #000000 !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-bottom: 6px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

/* .actif = classe manuelle ; current-menu-item = classe automatique de WordPress.
   On les traite pareil pour que le lien de la page active soit toujours surligné. */
.cu-header nav a:hover,
.cu-header nav a.actif,
.cu-header nav li.current-menu-item a,
.cu-header nav li.current_page_item a,
.cu-header nav li.current-menu-parent a,
.cu-header nav li.current-menu-ancestor a {
  color: #000000 !important;
  border-bottom-color: var(--adn-jaune);
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  flex-direction: column;
  gap: 6px;
}

.hamburger-btn span {
  display: block;
  width: 32px;
  height: 3px;
  background-color: #2b2132;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 850px) {
  .hamburger-btn { display: flex; }

  .cu-header {
    background: #ffffff;
    z-index: 1000;
  }

  .cu-header nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px !important;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, visibility 0.4s;
    z-index: 1000;
  }

  .cu-header nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .cu-header nav a {
    font-size: 22px;
    border-bottom-width: 4px;
  }

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
   .site-footer {
    width: 100%;
    background-color: #ffffff;
    padding: 20px 15px;
    border-top: 1px solid #e5e7eb;
    box-sizing: border-box;
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 10px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
    text-align: center;
  }
  
  .footer-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  
  @media (max-width: 768px) {
    .site-footer {
      padding: 16px 12px;
    }
  
    .footer-content {
      gap: 4px 8px;
      font-size: 12px;
      line-height: 1.45;
    }
  
    .footer-item {
      white-space: normal;
      text-align: center;
    }
  
    .footer-item:not(:last-child)::after {
      margin-left: 8px;
    }
  }
  
  .footer-item:not(:last-child)::after {
    content: "•";
    margin: 0 12px;
    color: #9ca3af;
  }
  
  .footer-content a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .footer-content a:hover {
    color: #000000;
    text-decoration: underline;
  }
  
  .site-footer a:hover {
    color: var(--adn-jaune) !important;
  }
