/* ======================================================
   🎩 header.css — Tyshara (refactoré v1.0 – 24-07-2025)
   Objectif : alignement palette/utilities & responsive doux
   Dépendances : palette.css + utilities.css
   ====================================================== */

/* === 1. Bloc Header Principal ======================== */
.site-header {
  position: fixed !important;
  top: 0; left: 0; width: 100%;
  z-index: var(--z-overlay);
  min-height: 12vw;
  padding: var(--space-sm) var(--space-md);

  background: linear-gradient(
    rgba(232, 212, 207, 0.8),
    rgba(246, 235, 231, 0.8)
  ), url('assets/images/fondheadere.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid color-mix(in srgb, var(--ty-poussiere-or) 40%, transparent);
}

body {
  padding-block: 10vw 4vw !important;
  overflow-x: hidden;
}

/* === 2. Conteneur interne ============================ */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1300px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* === 3. Logo ========================================= */
.header-logo img {
  max-height: 10vw;
  transition: transform var(--dur-normal) var(--ease-standard);
  filter: drop-shadow(0px 0px 8px rgba(245, 216, 224, 0.6));
}

.header-logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0px 0px 12px rgba(245, 216, 224, 0.9));
}

/* === 4. Titre & description ========================== */
.site-title-texts {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-xs);
}

h1.main-title {
  font-family: 'Satisfy', cursive;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--ty-terre-argile);
  margin: 0;
}

p.site-description {
  font-family: 'Satisfy', cursive;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: var(--ty-rose-boise);
  margin: 0;
}

/* === 5. Menu Burger ================================== */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2.5rem;
  color: #fff;
  padding: var(--space-xs);
  transition: transform var(--dur-normal) var(--ease-standard);
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* === 6. Responsive =================================== */
@media screen and (max-width: var(--bp-md)) {
  h1.main-title       { font-size: clamp(2rem, 5vw, 3.5rem); }
  p.site-description  { font-size: clamp(1rem, 3vw, 1.8rem); }
}

@media screen and (max-width: var(--bp-sm)) {
  .site-header {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md);
  }
  .header-container {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .header-logo img { max-height: 80px; }
  h1.main-title      { font-size: clamp(1.8rem, 6vw, 3rem); }
  p.site-description { font-size: clamp(1rem, 4vw, 1.6rem); }
  .menu-toggle       { font-size: 2rem; }
}

@media screen and (max-width: var(--bp-xs)) {
  h1.main-title      { font-size: clamp(1.5rem, 6vw, 2.5rem); }
  p.site-description { font-size: clamp(0.9rem, 4vw, 1.4rem); }
  .menu-toggle       { font-size: 1.8rem; }
}
