/* =====================================================
   RESET CSS — PROPRE & SÛR (Energywell)
   Aucun étirement d’images
===================================================== */

/* Box sizing universel */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Suppression marges par défaut */
html,
body,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
dl, dd,
ol, ul,
figure,
fieldset, legend {
  margin: 0;
  padding: 0;
}

/* Base HTML */
html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Listes */
ol,
ul {
  list-style: none;
}

/* Liens */
a {
  text-decoration: none;
  color: inherit;
}

/* Médias — POINT CRITIQUE (ANTI BUG) */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;   /* ← LIGNE CLÉ : JAMAIS 100% */
}

/* Boutons & formulaires */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Boutons cliquables */
button {
  cursor: pointer;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Citations */
blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
}

/* Accessibilité focus */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Réduction animations si demandé */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* =====================================================
   HEADER — STRUCTURE BLOQUÉE (FINAL)
===================================================== */
.header-main {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    height: 72px;
    min-height: 72px;
}

.header-container {
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
}

.header-nav a {
    flex-shrink: 0;
}

@media (min-width: 1600px) {
    .header-container {
        padding-left: 48px;
        padding-right: 48px;
    }
}
