/* =========================
   HEADER GLOBAL (FIXE)
   ========================= */
.site-header{
  height: var(--header-h);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;

  background: #ce3055;
  overflow: visible;

  z-index: 9999;

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

/* =========================
   CONTENU (AU-DESSUS DE LA VAGUE)
   ========================= */
.header-content{
  width: 100%;
  max-width: 1100px;
  padding: 0 1.2rem;

  white-space: normal;
  display: grid;
  grid-template-columns: auto 1fr auto; /* gauche | centre | droite */
  align-items: center;

  position: relative;
  z-index: 10001;
}

/* =========================
   LOGOS
   ========================= */
.header-logo-left{
  height: 100px;
  width: auto;
  display: block;
  justify-self: start;
  flex-shrink: 0;
}

.header-logo-right{
  height: 80px;
  width: auto;
  display: block;

  justify-self: end;
  flex-shrink: 0;

  transform: translateY(20px);
}

/* =========================
   CENTRE (TITRE + SOUS-MENU)
   ========================= */
.header-center{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;

  z-index: 10002; /* au-dessus du contenu et de la vague */
}

/* TITRE */
.header-title{
  margin: 0;
  text-align: center;

  font-family: "Core Dodam", serif;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #F2E6E9;

  pointer-events: auto; /* le centre contient des boutons */
}

/* SOUS-MENU (style texte) */
.header-subnav{
  margin: 0;
  font-size: 0.95rem;
  color: #F2E6E9;
  text-align: center;
  white-space: nowrap;
}

.header-subnav button{
  background: none;
  border: none;
  padding: 0;

  font: inherit;
  color: inherit;

  cursor: pointer;
  text-decoration: underline;
}

.header-subnav button.active{
  text-decoration: none;
  font-weight: 700;
}

.header-subnav span{
  margin: 0 0.4rem;
  opacity: 0.85;
}

/* =========================
   VAGUE DÉCORATIVE (DOIT PASSER DEVANT LE MAIN)
   ========================= */
.header-wave{
  position: absolute;
  left: 0;
  bottom: calc(var(--header-wave) * -1);
  width: 100%;
  height: 130px;

  transform: scaleY(-1);

  z-index: 10000; /* devant le main, derrière le contenu */
  pointer-events: none;
}

.header-wave path{
  fill: #ce3055;
}

/* ===============================
   RESPONSIVE : suppression vagues
   =============================== */

@media (max-width: 900px){
  .header-wave{
    display: none;
  }

  .site-header{
    padding-bottom: 0;
  }
}


@media (max-width: 700px){
  /* logos plus petits */
  .header-logo-left{ height: 60px; }
  .header-logo-right{ height: 55px; transform: translateY(10px); }

  /* sous-menu plus compact */
  .header-subnav{ font-size: 0.9rem; }

  /* centre moins “rigide” (on évite les collisions visuelles) */
  .header-center{ gap: 0.25rem; }
}

@media (max-width: 520px){
  /* on masque le logo gauche, souvent celui qui fait déborder */
  .header-logo-left{ display: none; }

  /* signature : soit on la réduit beaucoup, soit on la cache */
  .header-logo-right{ height: 45px; opacity: 0.9; }

  /* titre + sous-menu encore plus petits */
  .header-title{ font-size: 1.15rem; }
  .header-subnav{ font-size: 0.85rem; }
}

@media (max-width: 390px){
  /* en ultra petit, la signature devient optionnelle */
  .header-logo-right{ display: none; }

  /* sous-menu sur 2 lignes si besoin */
  .header-subnav{ white-space: normal; line-height: 1.2; }
}
