/* ========================================
   The header and the footer of blusi.ch, the same on every page
   (MR, Helder 17.11.2026): the contact strip, the menu with its two
   drop-down menus, the footer's four columns.
   Loaded AFTER styles.css (colour tokens, .btn, the base of the nav, of the
   FR/EN switch and of the footer) and BEFORE home.css where a page loads it.
   ======================================== */
:root {
  --park: #0B57A8;
  --park-dark: #084388;
  --park-wash: #E7EEF8;
  --line: #E3EAF2;
  --soft: #F5F8FB;
  --wash: #EEF7FF;
  /* The header is the strip plus the bar. --nav-height stays the name of the
     whole of it: every offset of the pages (hero, anchors, BluSi Park's bar)
     reads it. */
  --strip-height: 36px;
  --bar-height: 72px;
  --nav-height: calc(var(--strip-height) + var(--bar-height));
}
@media (max-width: 768px) {
  :root { --strip-height: 34px; --bar-height: 60px; }
}

/* ---------- BluSi Park's name in two colours (V1), used by the menu.
   On blue grounds "BluSi" in #1CA1FE would vanish: the P sits on its white tile
   and the whole name turns white (.pk--onblue). ---------- */
.pk { display: inline-flex; align-items: center; gap: .42em; line-height: 1; font-weight: 700; }
.pk__p { height: 1.18em; width: auto; display: block; }
.pk__tile { height: 1.55em; width: 1.55em; border-radius: 24%; display: block; box-shadow: 0 2px 10px rgba(0,0,0,.14); }
.pk__w { white-space: nowrap; letter-spacing: -.005em; }
.pk__b { color: #1CA1FE; }
.pk__k { color: #0B57A8; }
.pk--onblue .pk__b, .pk--onblue .pk__k { color: #fff; }

/* ---------- The contact strip (C1): phone, WhatsApp and e-mail on every page,
   FR · EN and « Se connecter » at its right end on wide screens. On a phone it
   keeps the number and two icons. ---------- */
.strip { height: var(--strip-height); background: #0A1628; color: rgba(255,255,255,.8); font-size: 13.5px; line-height: 1.2; }
.strip__in { max-width: var(--container-max); height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.strip__contact { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; white-space: nowrap; min-width: 0; }
.strip__contact li { margin: 0; }
.strip__contact a { display: inline-flex; align-items: center; gap: 7px; min-height: var(--strip-height); color: #fff; font-weight: 700; text-decoration: none; }
.strip__contact a:hover { color: #8FD0FF; }
.strip__label { font-weight: 400; color: rgba(255,255,255,.8); }
.strip__ico { flex: none; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.strip__ico--tel { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.8 19.8 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.strip__ico--chat { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E"); }
.strip__ico--mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M22 7l-10 7L2 7'/%3E%3C/svg%3E"); }
.strip__end { display: flex; align-items: center; gap: 16px; }
.strip .lang-toggle { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.strip .lang-toggle__btn { padding: 4px 11px; font-size: 12.5px; color: rgba(255,255,255,.65); }
.strip .lang-toggle__btn--active { color: #fff; }
.strip .lang-toggle__btn:hover:not(.lang-toggle__btn--active) { color: #fff; }
.strip__login { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.strip__login:hover { color: #8FD0FF; }
@media (max-width: 480px) {
  .strip__in { padding: 0 16px; }
  .strip__contact { gap: 6px; width: 100%; }
  .strip__label, .strip__text { display: none; }
  /* The number first, the two icons at the right end, each a full-height target. */
  .strip__contact li:first-child { margin-right: auto; }
  .strip__contact li + li a { justify-content: center; min-width: 40px; }
  .strip__ico { width: 17px; height: 17px; }
}

/* ---------- The bar: logo, six links, one button (W1 A). « Fonctionnalités »
   and « Tarifs » open a menu, by the mouse, by their arrow button (keyboard
   and touch, js/nav.js), and as unfolding groups in the ☰ menu. The French
   row fits from 1001 px, the ☰ menu takes over from 1000 px down. ---------- */
.nav { height: var(--nav-height); }
.nav__container { position: relative; height: var(--bar-height); gap: 24px; }
.nav__logo { flex: none; }
.nav__panel { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__links { height: 100%; gap: 24px; margin: 0 auto; padding: 0; list-style: none; }
.nav__item { position: relative; height: 100%; display: flex; align-items: center; gap: 2px; margin: 0; }
.nav__link { font-size: 15px; white-space: nowrap; text-decoration: none; }
.nav__park { display: inline-flex; align-items: center; gap: 6px; }
.nav__park img { height: 15px; width: auto; }
.nav__link.is-here { color: var(--park); }
.nav__link.is-here::after { width: 100%; background: var(--park); }
.nav__actions { flex: none; gap: 12px; }
.nav__login { display: none; }
.nav__actions .lang-toggle { display: none; }
.nav__caret { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 28px; margin-right: -6px; border-radius: 6px; color: var(--text-secondary); }
.nav__caret::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--transition-fast); }
.nav__item.is-open > .nav__caret::before { transform: translateY(2px) rotate(225deg); }
.nav__item.is-open > .nav__caret, .nav__caret:hover { color: var(--primary); }

.nav__menu { position: absolute; top: 100%; left: -20px; z-index: 1002; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
.nav__menu-in { background: #fff; border: 1px solid var(--line); border-radius: 0 0 16px 16px; box-shadow: 0 22px 44px rgba(14,34,56,.14); padding: 16px 14px; }
.nav__item.is-open > .nav__menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav__menu a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--text); white-space: nowrap; text-decoration: none; }
.nav__menu a:hover { background: var(--wash); color: var(--primary-dark); }
.nav__menu--fam .nav__menu-in { display: grid; grid-template-columns: repeat(4, auto); gap: 0 14px; }
.nav__menu a.nav__fam-title { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 2px; }
.nav__fam--all { grid-column: 1 / -1; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.nav__fam--all a.nav__fam-title { display: inline-block; margin: 0; }
.nav__menu--list .nav__menu-in { min-width: 230px; }

@media (min-width: 1001px) and (hover: hover) {
  .nav__item--menu:hover > .nav__menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__item--menu:hover > .nav__caret::before { transform: translateY(2px) rotate(225deg); }
  /* Escape closes a menu the mouse still hovers (js/nav.js), until it leaves. */
  .nav__item--menu.is-shut > .nav__menu { visibility: hidden; opacity: 0; }
}

@media (max-width: 1000px) {
  .nav__hamburger { display: flex; }
  /* The ☰ menu: the same links, under the header, as unfolding groups. */
  .nav__panel { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--nav-height)); height: calc(100dvh - var(--nav-height)); flex-direction: column; align-items: center; justify-content: flex-start; gap: 26px; padding: 18px 20px 40px; overflow-y: auto; background: #1a1a2e; visibility: hidden; opacity: 0; transition: opacity var(--transition-base), visibility var(--transition-base); }
  .nav--open .nav__panel { visibility: visible; opacity: 1; }
  .nav__panel > * { flex-shrink: 0; width: 100%; max-width: 440px; }
  .nav__links { display: flex; flex-direction: column; align-items: stretch; height: auto; gap: 0; margin: 0; }
  .nav__item { height: auto; flex-wrap: wrap; justify-content: space-between; gap: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .nav__link { flex: 1; padding: 15px 0; font-size: 19px; color: #fff; }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__link.active, .nav__link.is-here { color: #8FD0FF; }
  /* On the dark panel the name alone, in the links' colour: the P's dark half would vanish. */
  .nav__park img { display: none; }
  .nav__park .pk__b, .nav__park .pk__k { color: inherit; }
  .nav__caret { width: 48px; height: 48px; margin-right: -12px; color: #fff; }
  .nav__item.is-open > .nav__caret, .nav__caret:hover { color: #8FD0FF; }
  .nav__menu { position: static; display: none; width: 100%; visibility: visible; opacity: 1; transform: none; transition: none; }
  .nav__item.is-open > .nav__menu { display: block; }
  .nav__menu-in { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 14px; }
  .nav__menu--fam .nav__menu-in { display: block; }
  .nav__menu a { padding: 9px 0 9px 14px; font-size: 16.5px; color: rgba(255,255,255,.92); white-space: normal; }
  .nav__menu a:hover { background: none; color: #8FD0FF; }
  .nav__menu a.nav__fam-title { padding-left: 0; margin: 8px 0 0; color: #8FD0FF; }
  .nav__fam--all { margin-top: 8px; padding-top: 4px; border-top: 0; }
  .nav__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .nav__actions .lang-toggle { display: inline-flex; margin: 0; }
  .nav__login { display: inline-block; font-size: 17px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
  .nav__actions .btn--primary { width: 100%; padding: 12px 28px; font-size: 16px; }
  .strip__end { display: none; }
}
@media (max-width: 480px) {
  .nav__logo-img { height: 34px; }
}

/* ---------- Footer: the brand, then Produit, Clients, Contact and Légal (W3 A) ---------- */
.footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 48px; }
.footer__links { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer__tagline, .footer__bottom p { margin: 0; }
.footer__col h4 { margin-top: 0; }
@media (max-width: 1024px) { .footer__top { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 768px) { .footer__top { gap: 32px; } .footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
