@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600;700&display=swap');

/* Shared navbar component scoped with sp-navbar BEM classes only */

.spNavbarRoot { position: relative; z-index: 1100; }

.spNavbarRoot .sp-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  font-family: "Inter", "Roboto", "Open Sans", sans-serif;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 102, 204, 0.1);
  box-shadow: 0 10px 40px rgba(10, 26, 47, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 18px 0;
  transform: translateY(0);
  opacity: 1;
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spNavbarRoot .sp-navbar.scrolled {
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(10, 26, 47, 0.1);
}

.spNavbarRoot .sp-navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 20px;
}

.spNavbarRoot .sp-navbar__left,
.spNavbarRoot .sp-navbar__center,
.spNavbarRoot .sp-navbar__right {
  display: flex;
  align-items: center;
}

.spNavbarRoot .sp-navbar__left {
  flex: 0 0 auto;
}

.spNavbarRoot .sp-navbar__center {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.spNavbarRoot .sp-navbar__right {
  flex: 0 0 auto;
  gap: 14px;
}

.spNavbarRoot .sp-navbar__brand {
  display: inline-flex;
  align-items: center;
}

.spNavbarRoot .sp-navbar__logo {
  height: 52px;
  width: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spNavbarRoot .sp-navbar__logo:hover {
  transform: translateY(-2px) scale(1.05);
}

.spNavbarRoot .sp-navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
}

.spNavbarRoot .sp-navbar__item {
  display: flex;
  align-items: center;
}

.spNavbarRoot .sp-navbar__link {
  display: block;
  padding: 8px 4px;
  color: #0a1a2f;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spNavbarRoot .sp-navbar__link:hover {
  color: #0066cc;
  transform: translateY(-2px);
}

.spNavbarRoot .sp-navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0066cc, #2c59d0, #0066cc);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.spNavbarRoot .sp-navbar__link:hover::after {
  width: 45%;
}

.spNavbarRoot .sp-navbar__link.is-active::after,
.spNavbarRoot .sp-navbar__link[aria-current="page"]::after {
  width: 100%;
}

.spNavbarRoot .sp-navbar__link.is-active,
.spNavbarRoot .sp-navbar__link[aria-current="page"] {
  color: #0066cc;
  font-weight: 700;
}

.spNavbarRoot .sp-navbar__lang {
  border: 1px solid #0066cc;
  border-radius: 999px;
  background: transparent;
  color: #0066cc;
  padding: 6px 12px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.spNavbarRoot .sp-navbar__lang:hover {
  background: #0066cc;
  color: #ffffff;
}

.spNavbarRoot .sp-navbar__toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #0a1a2f;
  font-size: 1.5rem;
  line-height: 1;
  padding: 5px;
  cursor: pointer;
}

.spNavbarRoot .sp-navbar__spacer {
  height: 0;
  flex-shrink: 0;
}

.spNavbarRoot .sp-navbar__overlay {
  display: none;
}

@media (max-width: 1200px) {
  .spNavbarRoot .sp-navbar__links {
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .spNavbarRoot .sp-navbar__container {
    padding: 0 24px;
  }

  .spNavbarRoot .sp-navbar__links {
    gap: 18px;
  }

  .spNavbarRoot .sp-navbar__link {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .spNavbarRoot::after {
    content: none;
  }

  body.sp-nav-menu-open {
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
  }

  .spNavbarRoot .sp-navbar__container {
    padding: 0 20px;
    min-height: 72px;
  }

  .spNavbarRoot .sp-navbar__logo {
    height: 44px;
  }

  .spNavbarRoot .sp-navbar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(0, 102, 204, 0.2);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(10, 26, 47, 0.1);
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease, background-color 300ms ease;
  }

  .spNavbarRoot .sp-navbar__toggle:hover,
  .spNavbarRoot .sp-navbar__toggle:active,
  .spNavbarRoot .sp-navbar__toggle:focus-visible,
  .spNavbarRoot .sp-navbar__toggle.is-open {
    transform: translateY(-1px);
    border-color: rgba(0, 102, 204, 0.38);
    box-shadow: 0 10px 20px rgba(10, 26, 47, 0.14);
  }

  .spNavbarRoot .sp-navbar__overlay {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    appearance: none;
    transition: opacity 300ms ease, visibility 300ms ease;
    z-index: 1085;
  }

  .spNavbarRoot.is-menu-open .sp-navbar__overlay,
  .spNavbarRoot.menu-open .sp-navbar__overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .spNavbarRoot .sp-navbar__links {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 255, 0.98) 100%);
    box-shadow: -24px 0 48px rgba(10, 26, 47, 0.18);
    padding: calc(88px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 300ms ease, visibility 300ms ease;
    will-change: transform;
    contain: paint;
    z-index: 1090;
    border-left: 1px solid rgba(0, 102, 204, 0.1);
    border-radius: 28px 0 0 28px;
    scrollbar-width: thin;
  }

  .spNavbarRoot .sp-navbar__links.is-open,
  .spNavbarRoot .sp-navbar__links.menu-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .spNavbarRoot .sp-navbar__item {
    width: 100%;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 220ms ease, transform 300ms ease;
  }

  .spNavbarRoot .sp-navbar__links.is-open .sp-navbar__item,
  .spNavbarRoot .sp-navbar__links.menu-open .sp-navbar__item {
    opacity: 1;
    transform: translateX(0);
  }

  .spNavbarRoot .sp-navbar__item:nth-child(1) { transition-delay: 0.02s; }
  .spNavbarRoot .sp-navbar__item:nth-child(2) { transition-delay: 0.04s; }
  .spNavbarRoot .sp-navbar__item:nth-child(3) { transition-delay: 0.06s; }
  .spNavbarRoot .sp-navbar__item:nth-child(4) { transition-delay: 0.08s; }
  .spNavbarRoot .sp-navbar__item:nth-child(5) { transition-delay: 0.10s; }
  .spNavbarRoot .sp-navbar__item:nth-child(6) { transition-delay: 0.12s; }
  .spNavbarRoot .sp-navbar__item:nth-child(7) { transition-delay: 0.14s; }
  .spNavbarRoot .sp-navbar__item:nth-child(8) { transition-delay: 0.16s; }

  .spNavbarRoot .sp-navbar__link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 16px 18px;
    border-radius: 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #0a1a2f;
    line-height: 1.35;
    border: 1px solid transparent;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    transition: transform 300ms ease, background-color 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
  }

  .spNavbarRoot .sp-navbar__link::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    width: 22px;
    min-width: 22px;
    display: inline-flex;
    justify-content: center;
    color: #2b6fcf;
    opacity: 0.92;
    font-size: 0.92rem;
    flex-shrink: 0;
  }

  .spNavbarRoot .sp-navbar__item:nth-child(1) .sp-navbar__link::before { content: "\f0c0"; }
  .spNavbarRoot .sp-navbar__item:nth-child(2) .sp-navbar__link::before { content: "\f0c3"; }
  .spNavbarRoot .sp-navbar__item:nth-child(3) .sp-navbar__link::before { content: "\f0fa"; }
  .spNavbarRoot .sp-navbar__item:nth-child(4) .sp-navbar__link::before { content: "\f0b1"; }
  .spNavbarRoot .sp-navbar__item:nth-child(5) .sp-navbar__link::before { content: "\f0ac"; }
  .spNavbarRoot .sp-navbar__item:nth-child(6) .sp-navbar__link::before { content: "\f1ea"; }
  .spNavbarRoot .sp-navbar__item:nth-child(7) .sp-navbar__link::before { content: "\f132"; }
  .spNavbarRoot .sp-navbar__item:nth-child(8) .sp-navbar__link::before { content: "\f0e0"; }

  .spNavbarRoot .sp-navbar__link::after {
    display: none;
  }

  .spNavbarRoot .sp-navbar__link:hover,
  .spNavbarRoot .sp-navbar__link:active,
  .spNavbarRoot .sp-navbar__link:focus-visible {
    transform: translateX(4px);
    color: #0b5ed7;
    background: rgba(0, 102, 204, 0.08);
    border-color: rgba(0, 102, 204, 0.14);
    box-shadow: 0 10px 18px rgba(10, 26, 47, 0.08);
  }

  .spNavbarRoot .sp-navbar__link.is-active,
  .spNavbarRoot .sp-navbar__link[aria-current="page"] {
    color: #0b5ed7;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.14) 0%, rgba(11, 94, 215, 0.08) 100%);
    border-color: rgba(0, 102, 204, 0.18);
    box-shadow: inset 3px 0 0 #0b5ed7;
  }

  .spNavbarRoot .sp-navbar__link.is-active::before,
  .spNavbarRoot .sp-navbar__link[aria-current="page"]::before {
    color: #0b5ed7;
  }

  .spNavbarRoot .sp-navbar__lang {
    min-width: 50px;
    height: 40px;
    padding: 0 13px;
    border-radius: 12px;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    background: #ffffff;
    border-color: rgba(0, 102, 204, 0.22);
    box-shadow: 0 5px 14px rgba(10, 26, 47, 0.1);
  }

  .spNavbarRoot .sp-navbar__right {
    gap: 10px;
  }

  .spNavbarRoot .sp-navbar__spacer {
    height: 85px;
  }
}

@media (max-width: 576px) {
  .spNavbarRoot .sp-navbar__container {
    padding: 0 16px;
    min-height: 68px;
  }

  .spNavbarRoot .sp-navbar__logo {
    height: 40px;
  }

  .spNavbarRoot .sp-navbar__links {
    width: 80%;
    max-width: 320px;
    padding: calc(82px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
    gap: 8px;
    border-radius: 24px 0 0 24px;
  }

  .spNavbarRoot .sp-navbar__link {
    min-height: 52px;
    padding: 15px 16px;
    font-size: 0.95rem;
    border-radius: 14px;
  }

  .spNavbarRoot .sp-navbar__spacer {
    height: 75px;
  }
}

/* Unified footer theme (from Carriere page) */
footer {
  background: var(--bg-gradient-dark, linear-gradient(135deg, #0a1a2f 0%, #152642 100%));
  color: #ffffff;
  padding: 90px 0 40px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: none;
  display: none;
}

footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
  width: 100%;
}

footer .footer-section {
  display: flex;
  flex-direction: column;
  width: 100%;
}

footer .footer-logo {
  width: 180px;
  max-width: 100%;
  margin-bottom: 25px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

footer .footer-logo:hover {
  transform: translateY(-5px) scale(1.05);
  filter: brightness(0) invert(1) drop-shadow(0 5px 15px rgba(255, 255, 255, 0.1));
}

footer .footer-section p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 0.95rem;
  font-weight: 400;
  font-family: "Inter", "Roboto", "Open Sans", sans-serif;
}

footer .footer-section h3 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-family: "Inter", "Roboto", "Open Sans", sans-serif;
}

footer .footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 2px;
  background: var(--accent-blue, #2c59d0);
  transition: width 0.3s ease;
}

footer .footer-section:hover h3::after {
  width: 70px;
}

footer .footer-section ul {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

footer .footer-section ul li {
  margin-bottom: 14px;
  position: relative;
  width: 100%;
}

footer .footer-section ul li::before {
  content: ">";
  position: absolute;
  left: -20px;
  color: var(--accent-blue, #2c59d0);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

footer .footer-section ul li:hover::before {
  opacity: 1;
  transform: translateX(0);
}

footer .footer-section ul li a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.92rem;
  display: inline-block;
  padding: 3px 0;
  font-weight: 400;
  font-family: "Inter", "Roboto", "Open Sans", sans-serif;
}

footer .footer-section ul li a:hover {
  color: var(--accent-blue, #2c59d0);
  transform: translateX(6px);
}

footer .footer-section .social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

footer .social-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

footer .social-icon:hover {
  background: var(--accent-blue, #2c59d0);
  transform: translateY(-6px) scale(1.12);
  box-shadow: 0 8px 20px rgba(44, 89, 208, 0.3);
}

footer .social-icon:hover::before {
  left: 100%;
}

footer .footer-section i {
  margin-right: 10px;
  color: var(--accent-blue, #2c59d0);
  width: 20px;
  text-align: center;
}

footer .footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 400;
  font-family: "Inter", "Roboto", "Open Sans", sans-serif;
  width: 100%;
}

footer .footer-bottom p:first-child {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
  font-weight: 600;
  font-family: "Inter", "Roboto", "Open Sans", sans-serif;
}

/* Footer mobile UX only (desktop untouched) */
@media (max-width: 768px) {
  footer {
    padding: 52px 0 24px;
  }

  footer .container {
    padding: 0 20px;
  }

  footer .footer-content {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 14px 22px;
    max-width: 560px;
    margin: 0 auto 18px;
    align-items: start;
  }

  /* Mobile: marque a gauche, contact a droite, navigation dessous */
  footer .footer-content > .footer-section:nth-child(1) {
    order: 1;
    grid-column: 1;
    grid-row: 1;
  }

  footer .footer-content > .footer-section:nth-child(4) {
    order: 2;
    grid-column: 2;
    grid-row: 1;
  }

  footer .footer-content > .footer-section:nth-child(2) {
    order: 3;
    grid-column: 1;
    grid-row: 2;
  }

  footer .footer-content > .footer-section:nth-child(3) {
    order: 4;
    grid-column: 2;
    grid-row: 2;
  }

  /* Garder toutes les informations visibles en mobile */
  footer .footer-content > .footer-section:nth-child(4),
  footer .footer-section.footer-contact-priority {
    display: flex;
  }

  footer .footer-section {
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: stretch;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  footer .footer-content > .footer-section:nth-child(1) {
    align-items: flex-start;
    text-align: left;
    padding: 0;
    margin-bottom: 0;
  }

  footer .footer-content > .footer-section:nth-child(4) {
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
  }

  footer .footer-logo {
    width: 154px;
    margin-bottom: 14px;
  }

  footer .footer-section h3 {
    margin-bottom: 0;
    padding-bottom: 10px;
    font-size: 0.98rem;
  }

  footer .footer-section h3::after {
    width: 38px;
  }

  footer .footer-section p {
    margin-bottom: 10px;
    line-height: 1.65;
    font-size: 0.92rem;
  }

  footer .footer-content > .footer-section:nth-child(1) p {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  footer .footer-section .social-icons {
    justify-content: flex-start;
    gap: 12px;
    margin-top: 10px;
  }

  footer .social-icon {
    width: 42px;
    height: 42px;
  }

  footer .footer-section.footer-collapsible h3 {
    margin: 0;
    padding: 12px 34px 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    user-select: none;
  }

  footer .footer-section.footer-collapsible h3::after {
    content: "\f078";
    position: absolute;
    right: 0;
    left: auto;
    top: 50%;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    transform: translateY(-50%);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.74);
    transition: transform 0.25s ease, color 0.25s ease;
  }

  footer .footer-section.footer-collapsible h3:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 89, 208, 0.28);
    border-radius: 8px;
  }

  footer .footer-section.footer-collapsible ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.22s ease, margin-top 0.22s ease;
  }

  footer .footer-section.footer-collapsible.is-open ul {
    max-height: 420px;
    opacity: 1;
    margin-top: 8px;
    pointer-events: auto;
  }

  footer .footer-section.footer-collapsible.is-open h3::after {
    transform: translateY(-50%) rotate(180deg);
    color: #ffffff;
  }

  footer .footer-section.footer-collapsible ul li {
    margin: 0;
  }

  footer .footer-section.footer-collapsible ul li::before {
    display: none;
  }

  footer .footer-section.footer-collapsible ul li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 42px;
    width: 100%;
    padding: 8px 0;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    line-height: 1.2;
    transform: none;
    font-size: 0.9rem;
  }

  footer .footer-section.footer-collapsible ul li a:hover,
  footer .footer-section.footer-collapsible ul li a:active {
    background: transparent;
    border-color: rgba(44, 89, 208, 0.35);
    transform: translateX(2px);
  }

  footer .footer-section.footer-contact-priority {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-top: 0;
    border-bottom: 0;
  }

  footer .footer-section.footer-contact-priority h3 {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  footer .footer-section.footer-contact-priority p {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    column-gap: 8px;
    row-gap: 0;
    max-width: 100%;
    margin: 0 0 8px;
    padding: 0;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 0;
    line-height: 1.55;
  }

  footer .footer-section.footer-contact-priority p:last-child {
    margin-bottom: 0;
  }

  footer .footer-section.footer-contact-priority p i {
    width: 16px;
    margin: 3px 0 0;
    margin-right: 0;
    line-height: 1;
    text-align: center;
    flex-shrink: 0;
  }

  footer .footer-section.footer-contact-priority p,
  footer .footer-section.footer-contact-priority p a,
  footer .footer-section.footer-contact-priority p span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  footer .footer-section.footer-contact-priority p a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
  }

  footer .footer-bottom {
    max-width: 560px;
    padding-top: 18px;
    margin: 8px auto 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
  }

  footer .footer-bottom p {
    margin: 0;
  }

  footer .footer-bottom p:first-child {
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
  }

  /* Rehausser le chatbot au-dessus du footer */
  body .pharma-chatbot,
  body #bp-web-widget-container,
  body #bp-web-widget,
  body .bpFab {
    bottom: 86px !important;
  }
}

@media (max-width: 519px) {
  footer .container {
    padding: 0 16px;
  }

  footer .footer-content {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 12px 16px;
    max-width: 420px;
    margin-bottom: 18px;
  }

  footer .footer-logo {
    width: 138px;
    margin-bottom: 12px;
  }

  footer .footer-section p {
    font-size: 0.9rem;
  }

  footer .footer-content > .footer-section:nth-child(1) p {
    font-size: 0.88rem;
  }

  footer .footer-section.footer-contact-priority p {
    grid-template-columns: 15px minmax(0, 1fr);
    column-gap: 7px;
    font-size: 0.88rem;
  }

  footer .footer-section.footer-collapsible h3 {
    font-size: 0.9rem;
  }

  footer .footer-section.footer-collapsible h3 {
    padding-bottom: 10px;
  }

  footer .footer-section.footer-collapsible ul li a {
    min-height: 40px;
    padding: 8px 0;
  }

  footer .footer-bottom {
    padding-top: 16px;
  }
}

/* Mobile large: garder le duo marque/contact en tete */
@media (min-width: 520px) and (max-width: 768px) {
  footer .footer-content {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    max-width: 560px;
    gap: 14px 24px;
    align-items: start;
  }

  footer .footer-content > .footer-section:nth-child(1) {
    grid-column: 1;
  }

  footer .footer-content > .footer-section:nth-child(4) {
    grid-column: 2;
  }

  footer .footer-content > .footer-section:nth-child(2) {
    grid-column: 1;
  }

  footer .footer-content > .footer-section:nth-child(3) {
    grid-column: 2;
  }

  footer .footer-section.footer-collapsible h3 {
    padding-bottom: 10px;
  }

  footer .footer-section.footer-collapsible.is-open ul {
    max-height: 360px;
  }
}

/* Chatbot compact sizing for better page fluidity */
html body .pharma-chatbot {
  right: 16px !important;
  bottom: 24px !important;
}

html body .pharma-chatbot .chatbot-btn {
  width: 52px !important;
  height: 52px !important;
  font-size: 20px !important;
}

html body .pharma-chatbot .chatbot-btn i {
  display: inline-block !important;
}

html body .pharma-chatbot .chatbot-btn::before {
  content: none !important;
}

html body .pharma-chatbot .chatbot-window {
  right: 0 !important;
  left: auto !important;
  width: 300px !important;
  height: 380px !important;
  max-width: calc(100vw - 32px) !important;
  max-height: min(62vh, 430px) !important;
  bottom: 62px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

html body .pharma-chatbot .chatbot-msg.bot {
  border-left: none !important;
}

html body .pharma-chatbot .chatbot-msg.bot:not(.typing-indicator) {
  position: relative;
  padding-left: 44px !important;
}

html body .pharma-chatbot .chatbot-msg.bot:not(.typing-indicator)::before {
  content: "🤖";
  position: absolute;
  left: 10px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  background: linear-gradient(135deg, #2C59D0, #4DABF7);
  box-shadow: 0 2px 6px rgba(44, 89, 208, 0.35);
}

@media (max-width: 992px) {
  html body .pharma-chatbot {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: max(92px, calc(env(safe-area-inset-bottom) + 84px)) !important;
  }

  html body .pharma-chatbot .chatbot-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 18px !important;
    box-shadow: 0 10px 24px rgba(44, 89, 208, 0.24) !important;
  }

  html body .pharma-chatbot .chatbot-window {
    width: min(360px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    height: min(68dvh, 500px) !important;
    max-height: calc(100dvh - 132px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    bottom: 64px !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 40px rgba(11, 23, 38, 0.2) !important;
  }

  html body .pharma-chatbot .chatbot-header {
    padding: 14px !important;
  }

  html body .pharma-chatbot .chatbot-title {
    gap: 8px !important;
    min-width: 0;
  }

  html body .pharma-chatbot .chatbot-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    flex-shrink: 0;
  }

  html body .pharma-chatbot .chatbot-title-text h4 {
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
  }

  html body .pharma-chatbot .chatbot-title-text small {
    font-size: 0.68rem !important;
    line-height: 1.2 !important;
  }

  html body .pharma-chatbot .chatbot-controls {
    gap: 6px !important;
  }

  html body .pharma-chatbot .chatbot-control-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 11px !important;
    flex-shrink: 0;
  }

  html body .pharma-chatbot .chatbot-messages {
    padding: 14px !important;
    gap: 10px !important;
    overscroll-behavior: contain;
  }

  html body .pharma-chatbot .chatbot-msg {
    max-width: 92% !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    border-radius: 12px !important;
  }

  html body .pharma-chatbot .chatbot-msg.bot:not(.typing-indicator) {
    padding-left: 40px !important;
  }

  html body .pharma-chatbot .chatbot-msg.bot:not(.typing-indicator)::before {
    left: 8px;
    top: 10px;
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  html body .pharma-chatbot .chatbot-quick {
    max-width: 100%;
    padding: 6px 10px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  html body .pharma-chatbot .chatbot-input-area {
    gap: 8px !important;
    padding: 10px 12px !important;
    min-width: 0;
  }

  html body .pharma-chatbot .chatbot-input {
    min-width: 0;
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

  html body .pharma-chatbot .chatbot-send {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    flex: 0 0 38px !important;
  }

  html body .pharma-chatbot .chatbot-footer {
    padding: 7px 12px !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 576px) {
  html body .pharma-chatbot {
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: max(86px, calc(env(safe-area-inset-bottom) + 78px)) !important;
  }

  html body .pharma-chatbot .chatbot-btn {
    width: 48px !important;
    height: 48px !important;
    font-size: 17px !important;
  }

  html body .pharma-chatbot .chatbot-window {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    height: min(64dvh, 440px) !important;
    max-height: calc(100dvh - 118px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    bottom: 60px !important;
    border-radius: 16px !important;
  }

  html body .pharma-chatbot .chatbot-header {
    padding: 12px !important;
  }

  html body .pharma-chatbot .chatbot-title-text h4 {
    font-size: 0.88rem !important;
  }

  html body .pharma-chatbot .chatbot-title-text small {
    font-size: 0.64rem !important;
  }

  html body .pharma-chatbot .chatbot-messages {
    padding: 12px !important;
  }

  html body .pharma-chatbot .chatbot-msg {
    max-width: 94% !important;
    font-size: 11.5px !important;
  }

  html body .pharma-chatbot .chatbot-quick {
    padding: 5px 9px !important;
    font-size: 9.5px !important;
  }

  html body .pharma-chatbot .chatbot-input-area {
    padding: 9px 10px !important;
    gap: 7px !important;
  }

  html body .pharma-chatbot .chatbot-input {
    font-size: 12px !important;
    padding: 9px 11px !important;
  }

  html body .pharma-chatbot .chatbot-send {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex-basis: 36px !important;
  }
}

@media (max-width: 400px) {
  html body .pharma-chatbot .chatbot-window {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    height: min(62dvh, 410px) !important;
    max-height: calc(100dvh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    bottom: 58px !important;
  }

  html body .pharma-chatbot .chatbot-avatar {
    width: 30px !important;
    height: 30px !important;
  }

  html body .pharma-chatbot .chatbot-msg.bot:not(.typing-indicator) {
    padding-left: 38px !important;
  }

  html body .pharma-chatbot .chatbot-msg.bot:not(.typing-indicator)::before {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
}

/* Hero video mobile responsiveness (index) */
@media (max-width: 768px) {
  body .hero-section-dislog {
    min-height: 0 !important;
    height: min(72vh, 520px) !important;
    max-height: 520px !important;
  }

  body .hero-video-container,
  body .hero-video-container video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

@media (max-width: 576px) {
  body .hero-section-dislog {
    height: min(62vh, 430px) !important;
    max-height: 430px !important;
  }
}
