/* header.css */

:root {
  --main-color: #002147;
  --accent-color: #FFD700;
  --white-color: #ffffff;
  --dark-accent: #FFC107;
  --text-color: #ffffff; /* manquait pour .logo-text et .header-subtitle */
}

/* Reset de base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Styles du header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--main-color);
  color: var(--white-color);
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.3s, box-shadow 0.3s;
}

.header__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 0.7rem 1.5rem; /* légèrement réduit */
  position: relative;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem; /* réduit */
  color: var(--white-color);
}

.logo-img {
  height: 35px; /* réduit */
  width: auto;
}

.logo-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 8px; /* réduit */
}

.logo-text {
  font-size: 1rem; /* réduit */
  font-weight: bold;
  color: var(--text-color);
}

.header-subtitle {
  font-size: 0.8rem; /* petite taille */
  color: var(--text-color);
  opacity: 0.8;
  margin-top: 2px;
}

/* Navigation */
.header__nav {
  display: flex;
  align-items: center;
}

.header__menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.5rem; /* réduit */
}

/* Liens */
.header__link {
  color: var(--white-color);
  text-decoration: none;
  font-weight: 500; /* plus léger */
  font-size: 0.9rem; /* réduit */
  transition: color 0.3s;
}

.header__link:hover {
  color: var(--accent-color);
}

/* Bouton publier un livre */
.header__btn {
  background: linear-gradient(90deg, var(--accent-color) 0%, var(--dark-accent) 100%);
  padding: 0.4rem 0.8rem; /* réduit */
  border-radius: 20px;
  color: var(--main-color);
  font-weight: bold;
  font-size: 0.9rem; /* réduit */
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.header__btn:hover {
  background: linear-gradient(90deg, var(--dark-accent) 0%, var(--accent-color) 100%);
}

/* Bouton appel à l'action */
.header__cta .btn {
  padding: 0.5rem 1.1rem; /* réduit */
  background: var(--accent-color);
  color: var(--main-color);
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.9rem; /* réduit */
  text-decoration: none;
  transition: background 0.3s;
}

.header__cta .btn:hover {
  background: var(--dark-accent);
}

/* Burger menu bouton (mobile) */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.burger-line {
  width: 100%;
  height: 3px;
  background: var(--white-color);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header__burger {
    display: flex;
  }

  .header__nav {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: var(--main-color);
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 1rem 0;
  }

  .header__nav.nav-open {
    display: flex;
  }

  .header__menu {
    flex-direction: column;
    gap: 1.2rem;
  }
}
.logo-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 10px;
  color: var(--white-color); /* <<< Ajout important */
}

.logo-text {
  font-size: 1rem; /* réduit */
  font-weight: bold;
  color: inherit; /* <<< hérite bien du parent */
}

.header-subtitle {
  font-size: 0.75rem;
  opacity: 0.8;
  color: inherit; /* <<< hérite aussi du blanc */
  margin-top: 2px;
}
body .header .header__logo .logo-title-group .logo-text {
  font-size: 1rem !important;
}

body .header .header__logo .logo-title-group .header-subtitle {
  font-size: 0.75rem !important;
}