/** Composants partagés par l’accueil et les futures pages. */
.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem var(--gutter);
}

.menu-toggle {
  display: none;
}

.wordmark {
  display: inline-block;
  flex-shrink: 0;
  width: 280px;
  text-decoration: none;
}

.wordmark img,
.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 3rem);
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
}

.primary-nav a:hover {
  text-decoration: underline;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  min-height: 48px;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--color-line);
  transition: background-color 200ms ease;
}

.button-link:hover {
  background: #eaece2;
}

.button-link > span {
  font-size: 1.4rem;
}

/* CTA des trois écrans photographiques : une finition partagée, flèche transparente. */
.button-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.5rem 0.5rem 1.375rem;
  border: 1px solid rgba(255, 253, 245, 0.55);
  border-radius: 999px;
  color: var(--color-white);
  background: transparent;
  font-size: 0.8125rem;
  letter-spacing: 0.025em;
  text-transform: none;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.button-pill:focus-visible {
  color: var(--color-ink);
  background: var(--color-paper);
  border-color: var(--color-paper);
  transform: translate(var(--button-offset-x, 0px), -2px);
}

/* Le survol coloré ne s’active que lorsqu’un appareil sait réellement survoler. */
@media (hover: hover) and (pointer: fine) {
  .button-pill:hover {
    color: var(--color-ink);
    background: var(--color-paper);
    border-color: var(--color-paper);
    transform: translate(var(--button-offset-x, 0px), -2px);
  }
}

.button-pill > span {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: inherit;
  background: transparent;
  font-size: 1.125rem;
}

.next-screen {
  --button-offset-x: -50%;
  position: absolute;
  z-index: 3;
  bottom: 1.5rem;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 3rem);
  text-align: center;
  transform: translateX(-50%);
}

.screen-label {
  position: absolute;
  z-index: 2;
  top: 1.75rem;
  left: var(--gutter);
  max-width: calc(100% - 2 * var(--gutter));
  color: var(--color-white);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.75rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-brand {
  width: 220px;
  flex-shrink: 0;
  text-decoration: none;
}

/* Bandeau cookies (SEOPress) : petite carte en bas à gauche, refus en lien. */
.seopress-user-consent.seopress-edit-choice { display: none !important; }
body .seopress-user-consent.seopress-user-message { display: flex !important; flex-flow: row wrap !important; align-items: center !important; justify-content: space-between !important; gap: 14px 16px !important; left: 24px !important; right: auto !important; bottom: 10vh !important; width: min(340px, calc(100vw - 32px)) !important; padding: 20px !important; border-radius: 12px !important; background: #23382a !important; color: var(--color-white) !important; box-shadow: 0 12px 32px rgba(0,0,0,.28) !important; text-align: left !important; font: 13px/1.5 Georgia, serif; }
body .seopress-user-consent.seopress-user-message p:first-child { flex: 1 1 100%; width: auto !important; margin: 0 !important; color: rgba(255,253,245,.82) !important; font-size: 13px !important; line-height: 1.55 !important; text-align: left !important; }
body .seopress-user-consent.seopress-user-message p a { color: var(--color-white) !important; text-decoration: underline; text-underline-offset: 3px; }
body .seopress-user-consent.seopress-user-message p:last-child { display: contents !important; }
body #seopress-user-consent-accept { order: 2; flex: 0 0 auto; width: auto !important; min-height: 40px; margin: 0 !important; padding: 8px 22px !important; border: 1px solid var(--color-paper) !important; border-radius: 999px !important; background: var(--color-paper) !important; color: var(--color-ink) !important; font: 13px/1.4 Georgia, serif !important; cursor: pointer; }
body #seopress-user-consent-close { order: 1; position: static !important; flex: 0 0 auto; width: auto !important; min-height: 0; margin: 0 !important; padding: 4px 0 !important; border: 0 !important; background: none !important; color: rgba(255,253,245,.82) !important; font: 13px/1.4 Georgia, serif !important; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body #seopress-user-consent-close:hover { color: var(--color-white) !important; }
body .seopress-user-consent.seopress-user-consent-hide { display: none !important; }
@media (max-width: 700px) {
  body .seopress-user-consent.seopress-user-message { left: 16px !important; bottom: 5vh !important; width: calc(100vw - 32px) !important; padding: 16px !important; }
}

@media (max-width: 700px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.625rem 1rem;
    padding-top: 1.25rem;
    padding-bottom: 0.75rem;
  }

  .wordmark {
    width: min(230px, 100%);
  }

  .primary-nav {
    grid-column: 1 / -1;
    justify-content: center;
    gap: 1.5rem;
  }

  .has-mobile-menu .menu-toggle {
    display: inline-grid;
    place-items: center;
    align-self: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: inherit;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle-icon {
    display: grid;
    gap: 4px;
    width: 18px;
  }

  .menu-toggle-icon > span {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform-origin: center;
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .is-menu-open .menu-toggle-icon > span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .is-menu-open .menu-toggle-icon > span:nth-child(2) {
    opacity: 0;
  }

  .is-menu-open .menu-toggle-icon > span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .has-mobile-menu .primary-nav {
    position: absolute;
    top: calc(100% - 0.25rem);
    right: var(--gutter);
    left: var(--gutter);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-line);
    color: var(--color-ink);
    background: rgba(247, 244, 236, 0.97);
    box-shadow: 0 1rem 2rem rgba(12, 29, 19, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
  }

  .welcome .primary-nav {
    border-color: rgba(255, 253, 245, 0.35);
    color: var(--color-white);
    background: rgba(12, 29, 19, 0.92);
    box-shadow: 0 1rem 2rem rgba(12, 29, 19, 0.32);
    backdrop-filter: blur(10px);
  }

  .has-mobile-menu .is-menu-open .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .has-mobile-menu .primary-nav a {
    justify-content: center;
    width: 100%;
    min-height: 48px;
  }

  .next-screen {
    bottom: 1rem;
  }

  .screen-label {
    top: 1.25rem;
    font-size: 0.6875rem;
  }

  .footer-location {
    display: none;
  }
}

/* Sous 430 px, le logo et le retour au début composent un seul axe centré. */
@media (max-width: 429px) {
  .site-footer {
    flex-direction: column;
    justify-content: center;
    gap: 0;
    text-align: center;
  }

  .site-footer nav {
    width: 100%;
    justify-content: center;
  }

  .footer-brand {
    margin-inline: auto;
  }
}
