/* header.css – logo et titre (desktop inchangé) */

header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.4rem 0;
}

header img {
  height: 90px;
  margin: 0 .8rem;
}

.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
}

/* ==== Mobile only (≤768px) ==== */
@media (max-width: 768px) {
  header {
    justify-content: space-between;
    padding: 1rem;
    /* garde tout sur une ligne */
    flex-wrap: nowrap;
  }

  header img {
    /* logos redimensionnés automatiquement selon la largeur */
    flex: 0 1 15%;           /* peuvent rétrécir jusqu’à 15% du header */
    max-height: clamp(40px, 10vw, 60px);
    width: auto;
    object-fit: contain;
  }

  .site-title {
    /* prend l’espace restant mais rétrécit la police si besoin */
    flex: 1 1 70%;
    text-align: center;
    font-size: clamp(1.2rem, 5vw, 2rem);
    margin: 0 .5rem;
    white-space: nowrap;     /* sur une ligne */
  }
}

/* ==== Très petits écrans (≤360px) ==== */
@media (max-width: 360px) {
  header img {
    max-height: 40px;
    flex: 0 1 20%;
  }
  .site-title {
    font-size: clamp(1rem, 6vw, 1.4rem);
    margin: 0 .3rem;
  }
}

/* --------------------------------------------------------------
   HEADER repliable sans laisser de vide en haut de page
   -------------------------------------------------------------- */
   header{
    padding: 1.2rem 0;
    margin: 0;
    background: #fff;          /* ou ta couleur réelle */
    transition:
      max-height .3s ease,
      opacity    .3s ease;
    overflow: hidden;
    max-height: 140px;         /* ≈ hauteur réelle     */
  }
  
  body.nav-open header{
    position: absolute;        /* SORT du flux         */
    top: 0; left: 0; right: 0; /* colle en haut si besoin */
    max-height: 0;
    opacity: 0;
    pointer-events: none;
  }
  