/* === AC Consultance — Header / Footer propres, cohérents === */

:root {
  --cream: #efe4ca;
  --blue-dark: #17343f;
  --blue-mid: #0e3a47;
  --border: rgba(255,255,255,0.15);
}

/* BASE */
body {
  margin: 0;
  font-family: "Century Schoolbook","Times New Roman",serif;
  background-color: var(--blue-mid);
  color: var(--cream);

  /* espace sous top-bar et au-dessus de bottom-bar */
  padding-top: 5px;     /* ← réduit, corrige espace avant le logo */
  padding-bottom: 44px;
}

/* ---------------------------------------------------------------- */
/* TOP BAR — même style que la bottom, mais un peu plus fine        */
/* ---------------------------------------------------------------- */

.ac-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 44px;                          /* ← réduit */
  display: flex;
  align-items: center;

  background: rgba(20,45,58,0.60);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
}

.ac-topbar__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;        /* ← bouton à droite, logo à gauche */
}

/* Marque / Logo */
.ac-topbar__brand {
  display: flex;
  align-items: center;
  color: var(--cream);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: .2px;
  white-space: nowrap;
  transition: opacity .25s ease;
}
.ac-topbar__brand:hover { opacity: .85; }

.ac-topbar__brand img {
  height: 28px;                           /* ← ajusté, cohérent visuellement */
  margin-right: 8px;
  display: block;
}

/* Navigation */
.ac-topbar__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ac-topbar__nav a {
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--cream);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: .88rem;
  white-space: nowrap;

  transition: background .25s ease, color .25s ease, transform .2s ease;
}

.ac-topbar__nav a:hover {
  background: var(--cream);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------- */
/* BOTTOM BAR (référence visuelle)                                  */
/* ---------------------------------------------------------------- */

.ac-bottombar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(20,45,58,0.60);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 6px rgba(0,0,0,.25);

  font-family: "Century Schoolbook","Times New Roman",serif;
  font-size: .78rem;
  color: var(--cream);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}

.ac-bottombar a {
  color: var(--cream);
  text-decoration: underline;
}
.ac-bottombar a:hover { opacity: 0.85; }

/* ---------------------------------------------------------------- */
/* RESPONSIVE                                                       */
/* ---------------------------------------------------------------- */

/* Top-bar responsive clean */
@media (max-width: 900px) {
  .ac-topbar__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    gap: 8px;
  }

  .ac-topbar__brand {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
  }

  .ac-topbar__nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* Centrage horizontal */
    gap: 6px 8px;              /* Petit spacing entre les boutons */
  }

  .ac-topbar__nav a {
    font-size: 0.9rem;
    padding: 5px 9px;
    white-space: nowrap;
  }
}

/* Encore plus petit (smartphones -> tout s’empile sans écraser) */
@media (max-width: 480px) {
  .ac-topbar__nav {
    flex-direction: column;
    align-items: center;
  }
}

