/* The shared header, responsive (2026-11-20, PrimeProfs brand book §5.9): a logo box of fixed size whatever the image
   does (it is served by the WordPress site; its alt text must never spread over the header), a menu that does not run
   into the logo between 1024 and 1366 px, and « Se connecter » kept on one line. */

/* logo: fixed box, alt text hidden if the image does not load */
.elementor-location-header .elementor-element-48f34ecd img {
  display: block; height: 44px; width: auto; max-width: 180px; object-fit: contain;
  overflow: hidden; color: transparent; font-size: 0;
}
.elementor-location-header .elementor-element-48f34ecd a { display: block; min-width: 140px; min-height: 44px; }

/* the right-hand group: buttons on one line */
.elementor-location-header .elementor-element-2e32166e { flex-wrap: nowrap !important; align-items: center; gap: 8px; }

.elementor-location-header .elementor-element-ab1579e .elementor-button { height: 48px; display: inline-flex; align-items: center; }

/* 1024–1279 px: tighter menu so it never runs into the logo */
@media (min-width: 1025px) and (max-width: 1279px) {
  .elementor-location-header .elementor-element-48f34ecd img { height: 38px; max-width: 150px; }
  .elementor-location-header .elementor-element-48f34ecd a { min-width: 120px; min-height: 38px; }
  .elementor-location-header .elementor-element-7269e637 .elementor-item { padding-inline: 9px !important; font-size: 15px !important; }
}

/* tablet and below: ☰ · logo · compact CTA · account */
@media (max-width: 1024px) {
  .elementor-location-header .elementor-element-48f34ecd img { height: 38px; max-width: 150px; }
  .elementor-location-header .elementor-element-48f34ecd a { min-width: 120px; min-height: 38px; }
  .elementor-location-header .elementor-element-ab1579e .elementor-button { height: 40px; }
}
@media (max-width: 767px) {
  .elementor-location-header .elementor-element-48f34ecd img { height: 32px; max-width: 120px; }
  .elementor-location-header .elementor-element-48f34ecd a { min-width: 100px; min-height: 32px; }
}

/* fixes after the first screenshots: « Se connecter » never wraps; the 1024–1279 tightening reaches 1366 px; on a phone
   the four pieces share the width (the logo may shrink) */
.elementor-location-header .elementor-element-ab1579e .elementor-button,
.elementor-location-header .elementor-element-ab1579e .elementor-button-text { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1366px) {
  .elementor-location-header .elementor-element-7269e637 .elementor-item { padding-inline: 10px !important; font-size: 15px !important; }
  .elementor-location-header .elementor-element-ab1579e .elementor-button { padding-inline: 18px !important; font-size: 15px !important; }
}
@media (max-width: 767px) {
  .elementor-location-header .e-con-inner { gap: 8px !important; }
  .elementor-location-header .elementor-element-5f085ba1 { flex-shrink: 1 !important; min-width: 0; }
  .elementor-location-header .elementor-element-48f34ecd a { min-width: 0; }
  .elementor-location-header .elementor-element-48f34ecd img { height: 28px; max-width: 108px; }
  .elementor-location-header .elementor-element-2e32166e { flex-shrink: 0 !important; gap: 6px; }
}
/* the template fixes the phone widths (logo 60 %, buttons 14 %): let the buttons take what they need, the logo the rest */
@media (max-width: 1024px) {
  .elementor-9791 .elementor-element.elementor-element-5f085ba1 { --width: auto; flex: 1 1 auto !important; min-width: 0; align-items: flex-start; }
  .elementor-9791 .elementor-element.elementor-element-2e32166e { --width: auto; flex: 0 0 auto !important; justify-content: flex-end; }
}
/* « Se connecter » on hover: the template turned the text white on a white button (invisible) — keep it violet, on a
   light lavender background */
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button:hover,
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button:focus { color: #849BFF !important; background-color: #F3F5FF !important; }
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button:hover svg,
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button:focus svg { fill: #849BFF !important; }
/* « Se connecter » hover, a little livelier (brand book §4.2 hover shadow): it lifts, a violet glow, a soft lavender
   gradient fills it, the icon slides a touch. Text stays violet. */
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button {
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button-icon { transition: transform .25s ease; }
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button:hover,
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #FFFFFF 0%, #E9EDFF 100%) !important;
  border-color: #738FFF !important;
  box-shadow: 0 8px 24px rgb(132 155 255 / .25);
}
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button:hover .elementor-button-icon { transform: translateX(3px); }
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button:active { transform: translateY(0); box-shadow: 0 4px 12px rgb(132 155 255 / .2); }
@media (prefers-reduced-motion: reduce) {
  .elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button,
  .elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button-icon { transition: none; transform: none !important; }
}
/* « Se connecter » hover, final (2026-11-20): the button fills with the brand violet #849BFF and the text / icon turn
   white, with a visible colour transition (no lift, no gradient). Overrides the two hover blocks above. */
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease !important;
}
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button svg { transition: fill .35s ease; }
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button:hover,
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button:focus-visible {
  transform: none; background: #849BFF !important; background-color: #849BFF !important; border-color: #849BFF !important;
  color: #fff !important; box-shadow: 0 8px 24px rgb(132 155 255 / .15);
}
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button:hover svg,
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button:focus-visible svg { fill: #fff !important; }
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button:hover .elementor-button-icon { transform: none; }
.elementor-9791 .elementor-element.elementor-element-ab1579e .elementor-button:active { transform: none; background-color: #738FFF !important; }
