/* Grandes Lignes NYT Classic Header */

/* Header fixé en haut, style "journal" */
#glnyt-header.glnyt-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #262739;
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: 'UnifrakturMaguntia', 'Times New Roman', serif;
}

/* Espace en haut pour ne pas cacher le contenu */
body.glnyt-header-active {
  padding-top: 72px;
}

/* Ligne principale : texte à gauche, loupe à droite (mobile = desktop) */
.glnyt-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Titre "Grandes Lignes" */
.glnyt-brand {
  font-size: 2.2rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
}

/* Bouton loupe */
.glnyt-search-toggle {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

/* Icône loupe (cercle + manche) */
.glnyt-search-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  position: relative;
}

.glnyt-search-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transform: rotate(45deg);
  right: -7px;
  bottom: -1px;
}

/* Version plus petite dans le bouton "Rechercher" du formulaire */
.glnyt-search-icon--small {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.glnyt-search-icon--small::after {
  width: 9px;
  height: 2px;
  right: -5px;
  bottom: -1px;
}

/* Barre de recherche */
.glnyt-search-bar {
  display: none;
  background: #262739;
  padding: 0 18px 14px;
}

.glnyt-search-bar.glnyt-open {
  display: block;
}

.glnyt-search-form {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.glnyt-search-field {
  flex: 1;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #ccc;
  font-size: 15px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.glnyt-search-submit {
  border-radius: 999px;
  border: none;
  padding: 7px 14px;
  background: #16376f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive : même structure, texte juste un peu plus petit */
@media (max-width: 768px) {
  body.glnyt-header-active {
    padding-top: 64px;
  }

  .glnyt-inner {
    padding: 10px 14px;
  }

  .glnyt-brand {
    font-size: 1.7rem;
  }
}

/* Masquer le header du thème, MAIS PAS notre header (#glnyt-header) */
body.glnyt-header-active header.site-header,
body.glnyt-header-active #masthead,
body.glnyt-header-active .site-header,
body.glnyt-header-active .elementor-location-header,
body.glnyt-header-active .elementor-header,
body.glnyt-header-active .main-header,
body.glnyt-header-active .navbar,
body.glnyt-header-active .top-header,
body.glnyt-header-active .header-wrap {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* S'assurer que notre header reste bien visible */
body.glnyt-header-active #glnyt-header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}
