/* ============================================
   PALETTE & BASE
============================================ */
:root {
  --sauge: #A7B9A8;
  --terracotta: #D1865A;
  --vert-fonce: #3B4A3F;
  --bois: #8B4513;
  --creme: #f4ede4;
  --transition: 0.3s ease;
}

body {
  background: var(--creme);
  color: var(--vert-fonce);
  font-family: "Inter", system-ui, sans-serif;
  transition: background var(--transition);
}

/* UTILITAIRES */
.text-vert-fonce { color: var(--vert-fonce) !important; }
.bg-creme { background-color: var(--creme) !important; }
.shadow-soft { box-shadow: 0 8px 20px rgba(59,74,63,0.06); border-radius: 10px; }

/* ============================================
   HEADER
============================================ */
#siteHeader {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1055;
  background: linear-gradient(90deg, var(--creme) 0%, rgba(244,237,228,0.95) 50%, var(--sauge) 100%);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sauge);
  transition: all var(--transition);
  padding: 0.3rem 0; /* Hauteur réduite */
}

#siteHeader .container-fluid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 1rem;
}

/* LOGO */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.logo-img {
  width: 42px; height: 42px;
  border-radius: 50%;
  transition: transform var(--transition);
}
.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--vert-fonce);
  position: relative;
}
.logo-text::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0%; height: 2px;
  background: linear-gradient(to right, var(--vert-fonce), var(--terracotta));
  transition: width var(--transition);
}
.logo-link:hover .logo-text::after { width: 100%; }
.logo-link:hover .logo-img { transform: scale(1.08) rotate(-4deg); }

/* ACTIONS HEADER */
.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .5rem;
}

.icon-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent;
  border-radius: 8px;
  color: var(--vert-fonce);
  transition: all var(--transition);
}
.icon-btn:hover {
  background: rgba(167,185,168,0.15);
  color: var(--terracotta);
  transform: translateY(-1px);
}

/* HEADER COMPACT SCROLL */
body.scrolled #siteHeader {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
body.scrolled .logo-img { width: 36px; height: 36px; }

/* ============================================
   NAVBAR
============================================ */
#siteNav {
  position: sticky;
  top: 60px; /* header height */
  z-index: 1040;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all var(--transition);
  padding: 0.3rem 0; /* hauteur réduite */
}

#siteNav .navbar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.navbar-link {
  color: var(--vert-fonce) !important;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  transition: all var(--transition);
  font-size: 0.95rem;
}
.navbar-link:hover {
  color: var(--terracotta) !important;
  background: rgba(167,185,168,0.12);
}
.navbar-link.active {
  font-weight: 600;
  color: var(--bois) !important;
  border-bottom: 2px solid var(--bois);
}

/* ============================================
   FORMULAIRE DE RECHERCHE
============================================ */
.search-group .input-group {
  max-width: 220px;
}

.search-group input {
  border: 2px solid var(--vert-fonce);
  border-right: none;
  border-radius: 50px 0 0 50px;
  padding: 0.25rem 0.6rem;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.search-group input:focus {
  border-color: var(--sauge);
  box-shadow: 0 0 5px var(--sauge);
}

.search-group button {
  border-radius: 0 50px 50px 0;
  border: 2px solid var(--vert-fonce);
  border-left: none;
  background: var(--terracotta);
  color: #fff;
  padding: 0 0.5rem;
  transition: all var(--transition);
}
.search-group button:hover {
  background: var(--bois);
}

/* ============================================
   DROPDOWNS UTILISATEUR
============================================ */
.dropdown-user img {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--sauge);
  transition: all var(--transition);
}

/* Footer social icons hover effect */
.social-link:hover i {
  color: #0d6efd;
  transform: scale(1.1);
  transition: all 0.3s ease;
}
/* petite séparation verticale */
.vr {
  border-left: 1px solid #dee2e6;
  height: 16px;
}

/* ============================================
   RESPONSIVE NAVBAR
============================================ */
@media (max-width: 992px) {
  #siteHeader .container-fluid { grid-template-columns: 1fr auto; }
  #siteNav { top: 55px; }

  /* Collapse vertical menu */
  #mainNavbar {
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 0.5rem 1rem;
  }

  #mainNavbar .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  #mainNavbar .nav-item {
    width: 100%;
  }

  #mainNavbar .nav-link {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 6px;
    text-align: left;
  }

  /* Recherche + outils en bas */
  .navbar-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .navbar-tools .icon-btn {
    width: 36px;
    height: 36px;
    justify-content: flex-start;
    padding-left: 0.5rem;
  }
}

@media (max-width: 576px) {
  body { padding-top: 65px; }
  .logo-img { width: 36px; height: 36px; }
  .navbar-link { font-size: 0.85rem; padding: 0.35rem 0.5rem; }
  .icon-btn { width: 32px; height: 32px; font-size: 1rem; }
  .search-group input { font-size: 0.8rem; width: 100%; }
}

@media (max-width: 420px) {
  .search-group { display: none; }
  .navbar-link { padding: 0.35rem; font-size: 0.8rem; }
}

/* ============================================
   FOOTER MINIMALISTE STICKY
============================================ */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#siteFooter {
  margin-top: auto; 
  background: var(--creme);
  border-top: 1px solid rgba(0,0,0,0.05);
  color: var(--vert-fonce);
  transition: all var(--transition);
  padding: 0.75rem 0;
}

#siteFooter a {
  transition: opacity var(--transition), color var(--transition);
}

#siteFooter a:hover {
  color: var(--terracotta);
  opacity: 1 !important;
}

.hover-opacity:hover { opacity: 1 !important; }

/* Newsletter input */
#siteFooter input.form-control {
  border: 1px solid var(--sauge);
  border-radius: 50px;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
}

@media (max-width: 576px) {
  #siteFooter img { width: 32px; height: 32px; }
  #siteFooter { padding: 0.5rem 0; }
}

/* ============================================
   PAGE CONNEXION / AUTH
============================================ */
.auth-section {
  background: var(--creme);
  min-height: calc(100vh - 60px - 60px); /* header + navbar approx */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  border-radius: 12px;
  transition: all var(--transition);
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 2rem 1.5rem;
}

.auth-card .logo-img {
  width: 56px;
  height: 56px;
}

.auth-card h1.h6 {
  font-size: 1.1rem;
  color: var(--vert-fonce);
}

.auth-card p {
  font-size: 0.85rem;
  color: #6c757d; 
}

.auth-card .form-control {
  border: 1.5px solid var(--vert-fonce);
  border-radius: 50px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.auth-card .form-control:focus {
  border-color: var(--sauge);
  box-shadow: 0 0 6px var(--sauge);
}

.btn-primary-vert {
  background-color: var(--vert-fonce);
  color: #fff;
  border: none;
  transition: all var(--transition);
}

.btn-primary-vert:hover {
  background-color: var(--terracotta);
  color: #fff;
  transform: translateY(-1px);
}

/* Messages alert */
.auth-card .alert {
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
}

/* Liens mot de passe oublié / créer compte */
.auth-card a {
  font-size: 0.85rem;
  transition: all var(--transition);
}

.auth-card a:hover {
  color: var(--terracotta);
}

/* ==========================
   Responsive Auth Page
=========================== */
@media (max-width: 576px) {
  .auth-card {
    padding: 1.5rem 1rem;
  }
  .auth-card .logo-img {
    width: 48px;
    height: 48px;
  }
  .auth-card h1.h6 {
    font-size: 1rem;
  }
  .auth-card p {
    font-size: 0.8rem;
  }
  .btn-primary-vert {
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
  }
}
