/**
 * En-tête marketing custom — css_header_custom = 99.
 * Typo marque / nav : variables root (alignées portfolio).
 */

#header.arkt-header {
  position: fixed;
  top: max(var(--arkt-header-float-inset), env(safe-area-inset-top, 0px));
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: var(--arkt-z-header);
  /* Même largeur max que les blocs .full-width (grid) : barre centrée sur le web */
  width: min(var(--arkt-showcase-max-width, 1500px), calc(100vw - (var(--arkt-header-float-inset) * 2)));
  max-width: calc(100vw - (var(--arkt-header-float-inset) * 2));
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  background: var(--arkt-color-header-bg);
  backdrop-filter: blur(var(--arkt-blur-header));
  -webkit-backdrop-filter: blur(var(--arkt-blur-header));
  border: var(--arkt-page-border);
  border-radius: var(--arkt-header-float-radius);
  box-shadow: var(--arkt-header-float-shadow);
}

#header.arkt-header .arkt-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  gap: var(--arkt-space-header-inner-gap);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  position: relative;
}

/* Desktop : tiroir en colonne 2 ; liens centrés entre bord gauche du tiroir et les CTA */
#header.arkt-header .arkt-header__drawer {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--arkt-space-header-inner-gap);
  min-width: 0;
}

#header.arkt-header .arkt-header__drawer > nav {
  justify-self: center;
  min-width: 0;
}

#header.arkt-header .arkt-header__drawer .arkt-header__actions {
  justify-self: end;
}

/* Toggle menu mobile (checkbox + label) : hors écran mais focusable via le label */
#header.arkt-header .arkt-header__nav-toggle {
  position: absolute;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#header.arkt-header .arkt-header__menu-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border-radius: var(--arkt-radius-pill);
  background: var(--arkt-header-pill-bg);
  border: 1px solid var(--arkt-header-pill-border);
  color: var(--arkt-color-white);
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

#header.arkt-header .arkt-header__menu-toggle:hover {
  background: var(--arkt-header-pill-bg-hover);
  border-color: color-mix(in srgb, var(--arkt-header-pill-border) 70%, var(--arkt-color-white));
}

#header.arkt-header .arkt-header__menu-toggle-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  width: 1.15rem;
}

#header.arkt-header .arkt-header__menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#header.arkt-header
  .arkt-header__nav-toggle:checked
  ~ .arkt-header__menu-toggle
  .arkt-header__menu-toggle-box
  .arkt-header__menu-bar:nth-child(1) {
  transform: translateY(calc(0.32rem + 2px)) rotate(45deg);
}

#header.arkt-header
  .arkt-header__nav-toggle:checked
  ~ .arkt-header__menu-toggle
  .arkt-header__menu-toggle-box
  .arkt-header__menu-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#header.arkt-header
  .arkt-header__nav-toggle:checked
  ~ .arkt-header__menu-toggle
  .arkt-header__menu-toggle-box
  .arkt-header__menu-bar:nth-child(3) {
  transform: translateY(calc(-0.32rem - 2px)) rotate(-45deg);
}

#header.arkt-header .arkt-header__menu-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--arkt-color-white) 65%, transparent);
  outline-offset: 2px;
}

#header.arkt-header .arkt-brand {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--arkt-color-white);
  font-weight: var(--arkt-type-h1-weight);
  font-size: var(--arkt-type-brand-size);
  letter-spacing: 0.02em;
  font-family: var(--arkt-font-family-sans);
}

#header.arkt-header .arkt-brand__mark {
  flex-shrink: 0;
}

#header.arkt-header .arkt-brand__logo {
  height: 28px;
  display: block;
  object-fit: contain;
}

#header.arkt-header .arkt-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--arkt-space-nav-gap-y) var(--arkt-space-nav-gap-x);
  list-style: none;
  margin: 0;
  padding: 0;
}

#header.arkt-header .arkt-nav > li {
  position: relative;
}

/*
 * Même boîte pour <a> et <summary> : assets/.../fonts.css impose sur les `a`
 * `line-height: calc(1em + 10px) !important` — le <summary> n’est pas ciblé, d’où
 * une pastille « Services » plus courte sans cette règle alignée.
 */
#header.arkt-header .arkt-nav > li > a,
#header.arkt-header .arkt-nav__dropdown > summary {
  font-size: var(--arkt-type-nav-size) !important;
  line-height: calc(1em + 10px) !important;
  min-height: calc(1em + 10px + 1rem) !important;
}

/* Liens top-level : pastille (état normal + hover maquette) */
#header.arkt-header .arkt-nav > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.05rem;
  border-radius: var(--arkt-radius-pill);
  text-decoration: none;
  font-weight: var(--portfolios-font-weight-normal, 400);
  font-family: var(--arkt-font-family-sans);
  color: var(--arkt-color-white);
  background: var(--arkt-header-pill-bg);
  border: 1px solid var(--arkt-header-pill-border);
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

#header.arkt-header .arkt-nav__dropdown > summary {
  list-style: none;
  cursor: pointer;
  color: var(--arkt-color-white);
  font-weight: var(--portfolios-font-weight-normal, 400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--arkt-font-family-sans);
  padding: 0.5rem 1.05rem;
  border-radius: var(--arkt-radius-pill);
  background: var(--arkt-header-pill-bg);
  border: 1px solid var(--arkt-header-pill-border);
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

/* Même pastille « active » que Accueil (hover ou page courante) sur /home */
#header.arkt-header .arkt-nav > li > a:hover,
#header.arkt-header .arkt-nav > li > a[aria-current="page"],
#header.arkt-header .arkt-nav__dropdown > summary:hover,
#header.arkt-header .arkt-nav__dropdown.arkt-nav__dropdown--services-parent > summary,
#header.arkt-header .arkt-nav__dropdown[open] > summary {
  color: var(--arkt-color-white);
  background: var(--arkt-header-pill-bg-hover);
  border-color: color-mix(in srgb, var(--arkt-header-pill-border) 70%, var(--arkt-color-white));
}

#header.arkt-header .arkt-nav__dropdown > summary::-webkit-details-marker {
  display: none;
}

#header.arkt-header .arkt-nav__dropdown > summary::after {
  content: "";
  flex-shrink: 0;
  width: var(--arkt-size-dropdown-chev);
  height: var(--arkt-size-dropdown-chev);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: var(--arkt-opacity-dropdown-summary);
}

#header.arkt-header .arkt-nav__dropdown[open] > summary::after {
  transform: rotate(225deg) translateY(2px);
}

#header.arkt-header .arkt-nav__dropdown-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 12rem;
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  /* Même traitement que la barre #header.arkt-header (verre sombre + flou) */
  background: var(--arkt-color-header-bg);
  backdrop-filter: blur(var(--arkt-blur-header));
  -webkit-backdrop-filter: blur(var(--arkt-blur-header));
  border: var(--arkt-page-border);
  border-radius: var(--arkt-header-float-radius);
  box-shadow: var(--arkt-header-float-shadow);
}

#header.arkt-header .arkt-nav__dropdown-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--arkt-radius-pill);
  text-decoration: none;
  color: var(--arkt-color-white);
  font-size: var(--arkt-type-nav-size);
  font-weight: var(--portfolios-font-weight-normal, 400);
  font-family: var(--arkt-font-family-sans);
  background: var(--arkt-header-pill-bg);
  border: 1px solid var(--arkt-header-pill-border);
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

#header.arkt-header .arkt-nav__dropdown-panel a:hover {
  background: var(--arkt-header-pill-bg-hover);
  border-color: color-mix(in srgb, var(--arkt-header-pill-border) 70%, var(--arkt-color-white));
}

#header.arkt-header .arkt-header__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--arkt-space-header-actions-gap);
}

/* Icônes hub (arktefakt_icon) dans les CTA header / footer */
#header.arkt-header .arkt-header__hub-user-icon,
#header.arkt-header .arkt-header__hub-website-icon,
#footer.arkt-footer .arkt-header__hub-user-icon,
#footer.arkt-footer .arkt-header__hub-website-icon {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

#header.arkt-header .arkt-header__hub-user-icon svg,
#header.arkt-header .arkt-header__hub-website-icon svg,
#footer.arkt-footer .arkt-header__hub-user-icon svg,
#footer.arkt-footer .arkt-header__hub-website-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
}

#header.arkt-header .arkt-header__hub-user-icon svg path,
#header.arkt-header .arkt-header__hub-website-icon svg path,
#footer.arkt-footer .arkt-header__hub-user-icon svg path,
#footer.arkt-footer .arkt-header__hub-website-icon svg path {
  fill: currentColor;
}

/* Se connecter : pastille discrète (header + pied). S'inscrire = .arkt-btn--primary (même CTA que le hub /manage). */
#header.arkt-header .arkt-header__pill--login.arkt-btn--ghost,
#footer.arkt-footer .arkt-header__pill--login.arkt-btn--ghost {
  background: var(--arkt-header-pill-signup-bg);
  border: 1px solid var(--arkt-header-pill-border);
  color: var(--arkt-color-white);
  box-shadow: none;
}

#header.arkt-header .arkt-header__pill--login.arkt-btn--ghost:hover,
#footer.arkt-footer .arkt-header__pill--login.arkt-btn--ghost:hover {
  background: var(--arkt-header-pill-signup-bg-hover);
  border-color: color-mix(in srgb, var(--arkt-header-pill-border) 70%, var(--arkt-color-white));
  filter: none;
}

/* ----- Tablette / mobile : logo + hamburger sur une ligne ; nav + CTA dans le tiroir ----- */
@media screen and (max-width: 1100px) {
  #header.arkt-header .arkt-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    row-gap: 0;
    column-gap: var(--arkt-space-header-inner-gap);
  }

  /* Logo à gauche, hamburger à droite, même ligne (alignement vertical centré) */
  #header.arkt-header .arkt-brand {
    flex: 1 1 auto;
    min-width: 0;
    align-self: center;
  }

  /* !important : au-dessus de #portfolio_page label { display: block } (ex. contact.css) */
  #portfolio_page #header.arkt-header .arkt-header__menu-toggle,
  #header.arkt-header .arkt-header__menu-toggle {
    display: inline-flex !important;
    flex-shrink: 0;
    align-self: center;
    margin-left: auto;
    margin-bottom: 0 !important;
    font-weight: inherit !important;
  }

  #header.arkt-header .arkt-header__drawer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid color-mix(in srgb, var(--arkt-header-pill-border) 80%, transparent);
    box-sizing: border-box;
    gap: 0.75rem;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      visibility 0.25s ease,
      margin-top 0.25s ease,
      padding-top 0.25s ease,
      border-color 0.2s ease;
  }

  /* Annule le centrage grille desktop dans le tiroir flex */
  #header.arkt-header .arkt-header__drawer > nav {
    justify-self: auto;
    width: 100%;
  }

  #header.arkt-header .arkt-header__drawer .arkt-header__actions {
    justify-self: auto;
    width: 100%;
  }

  #header.arkt-header .arkt-header__nav-toggle:not(:checked) ~ .arkt-header__drawer {
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    gap: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border-top-color: transparent;
  }

  #header.arkt-header .arkt-header__nav-toggle:checked ~ .arkt-header__drawer {
    max-height: min(70vh, 28rem);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #header.arkt-header .arkt-header__drawer .arkt-header__actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap: 0.5rem;
  }

  #header.arkt-header .arkt-header__drawer .arkt-header__actions .arkt-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  #header.arkt-header .arkt-nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
  }

  #header.arkt-header .arkt-nav > li {
    width: 100%;
  }

  #header.arkt-header .arkt-nav > li > a,
  #header.arkt-header .arkt-nav__dropdown > summary {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  #header.arkt-header .arkt-nav__dropdown {
    width: 100%;
  }

  #header.arkt-header .arkt-nav__dropdown > summary {
    width: 100%;
  }

  #header.arkt-header .arkt-nav__dropdown-panel {
    position: static;
    left: auto;
    transform: none;
    margin-top: 0.45rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #header.arkt-header .arkt-nav__dropdown-panel a {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* ----- Mode éditeur : forcer le header custom (hub + fonts) ----- */
body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header {
  position: fixed !important;
  top: max(var(--arkt-header-float-inset), env(safe-area-inset-top, 0px)) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: var(--arkt-z-header) !important;
  /*
   * 100% = largeur de #webpage-simulation (ancre du fixed via transform sur le hub).
   * Ne pas utiliser 100vw : en mode admin la prévisualisation est plus étroite que la fenêtre → débordement.
   */
  width: min(var(--arkt-showcase-max-width, 1500px), calc(100% - (var(--arkt-header-float-inset) * 2))) !important;
  max-width: calc(100% - (var(--arkt-header-float-inset) * 2)) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  background: var(--arkt-color-header-bg) !important;
  backdrop-filter: blur(var(--arkt-blur-header)) !important;
  -webkit-backdrop-filter: blur(var(--arkt-blur-header)) !important;
  border: var(--arkt-page-border) !important;
  border-radius: var(--arkt-header-float-radius) !important;
  box-shadow: var(--arkt-header-float-shadow) !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__inner {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  align-items: center !important;
  gap: var(--arkt-space-header-inner-gap) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__drawer {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: var(--arkt-space-header-inner-gap) !important;
  min-width: 0 !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__drawer > nav {
  justify-self: center !important;
  min-width: 0 !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__drawer .arkt-header__actions {
  justify-self: end !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-brand {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  text-decoration: none !important;
  color: var(--arkt-color-white) !important;
  font-weight: var(--arkt-type-h1-weight) !important;
  font-size: var(--arkt-type-brand-size) !important;
  letter-spacing: 0.02em !important;
  font-family: var(--arkt-font-family-sans) !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__nav-toggle {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  align-self: start !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-brand span {
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav > li > a,
body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav__dropdown > summary {
  font-size: var(--arkt-type-nav-size) !important;
  line-height: calc(1em + 10px) !important;
  min-height: calc(1em + 10px + 1rem) !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav > li > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem 1.05rem !important;
  border-radius: var(--arkt-radius-pill) !important;
  text-decoration: none !important;
  font-weight: var(--portfolios-font-weight-normal, 400) !important;
  font-family: var(--arkt-font-family-sans) !important;
  color: var(--arkt-color-white) !important;
  background: var(--arkt-header-pill-bg) !important;
  border: 1px solid var(--arkt-header-pill-border) !important;
  box-sizing: border-box !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav__dropdown > summary {
  list-style: none !important;
  cursor: pointer !important;
  color: var(--arkt-color-white) !important;
  font-weight: var(--portfolios-font-weight-normal, 400) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  font-family: var(--arkt-font-family-sans) !important;
  padding: 0.5rem 1.05rem !important;
  border-radius: var(--arkt-radius-pill) !important;
  background: var(--arkt-header-pill-bg) !important;
  border: 1px solid var(--arkt-header-pill-border) !important;
  box-sizing: border-box !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav > li > a:hover,
body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav > li > a[aria-current="page"],
body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav__dropdown > summary:hover,
body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav__dropdown.arkt-nav__dropdown--services-parent > summary,
body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav__dropdown[open] > summary {
  color: var(--arkt-color-white) !important;
  background: var(--arkt-header-pill-bg-hover) !important;
  border-color: color-mix(in srgb, var(--arkt-header-pill-border) 70%, var(--arkt-color-white)) !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav__dropdown-panel {
  padding: 0.45rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  background: var(--arkt-color-header-bg) !important;
  backdrop-filter: blur(var(--arkt-blur-header)) !important;
  -webkit-backdrop-filter: blur(var(--arkt-blur-header)) !important;
  border: var(--arkt-page-border) !important;
  border-radius: var(--arkt-header-float-radius) !important;
  box-shadow: var(--arkt-header-float-shadow) !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav__dropdown-panel a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--arkt-radius-pill) !important;
  text-decoration: none !important;
  color: var(--arkt-color-white) !important;
  font-size: var(--arkt-type-nav-size) !important;
  font-weight: var(--portfolios-font-weight-normal, 400) !important;
  font-family: var(--arkt-font-family-sans) !important;
  background: var(--arkt-header-pill-bg) !important;
  border: 1px solid var(--arkt-header-pill-border) !important;
  box-sizing: border-box !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav__dropdown-panel a:hover {
  background: var(--arkt-header-pill-bg-hover) !important;
  border-color: color-mix(in srgb, var(--arkt-header-pill-border) 70%, var(--arkt-color-white)) !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: var(--arkt-space-header-actions-gap) !important;
}

/* Éditeur : surcharger les .arkt-btn du hub (button.css) pour la pastille « Se connecter » header / footer */
body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__pill--login.arkt-btn--ghost,
body.portfolio-editor #webpage-simulation #portfolio_page #footer.arkt-footer .arkt-header__pill--login.arkt-btn--ghost {
  background: var(--arkt-header-pill-signup-bg) !important;
  border: 1px solid var(--arkt-header-pill-border) !important;
  color: var(--arkt-color-white) !important;
  box-shadow: none !important;
  filter: none !important;
}

body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__pill--login.arkt-btn--ghost:hover,
body.portfolio-editor #webpage-simulation #portfolio_page #footer.arkt-footer .arkt-header__pill--login.arkt-btn--ghost:hover {
  background: var(--arkt-header-pill-signup-bg-hover) !important;
  border-color: color-mix(in srgb, var(--arkt-header-pill-border) 70%, var(--arkt-color-white)) !important;
  filter: none !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Éditeur : même comportement hamburger qu’en vitrine (surcharge des !important du bloc éditeur) */
@media screen and (max-width: 1100px) {
  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    row-gap: 0 !important;
    position: relative !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    align-self: center !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__menu-toggle {
    display: inline-flex !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    margin-left: auto !important;
    margin-bottom: 0 !important;
    font-weight: inherit !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__drawer {
    display: flex !important;
    grid-template-columns: unset !important;
    flex-direction: column !important;
    align-items: stretch !important;
    flex: 1 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid color-mix(in srgb, var(--arkt-header-pill-border) 80%, transparent) !important;
    box-sizing: border-box !important;
    gap: 0.75rem !important;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      visibility 0.25s ease,
      margin-top 0.25s ease,
      padding-top 0.25s ease,
      border-color 0.2s ease !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__drawer > nav {
    justify-self: auto !important;
    width: 100% !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__drawer .arkt-header__actions {
    justify-self: auto !important;
    width: 100% !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__nav-toggle:not(:checked) ~ .arkt-header__drawer {
    max-height: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    border-top-color: transparent !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__nav-toggle:checked ~ .arkt-header__drawer {
    max-height: min(70vh, 28rem) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__drawer .arkt-header__actions {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-header__drawer .arkt-header__actions .arkt-btn {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav > li {
    width: 100% !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav > li > a,
  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav__dropdown > summary {
    width: 100% !important;
    justify-content: center !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav__dropdown {
    width: 100% !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav__dropdown > summary {
    width: 100% !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav__dropdown-panel {
    position: static !important;
    left: auto !important;
    transform: none !important;
    margin-top: 0.45rem !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.portfolio-editor #webpage-simulation #portfolio_page #header.arkt-header .arkt-nav__dropdown-panel a {
    width: 100% !important;
    justify-content: center !important;
  }
}
