/*
 * Visual refresh for the legacy central pages.
 * Content, links and Nicepage form markup remain untouched.
 */
:root {
  --ab-ink: #102638;
  --ab-navy: #102b40;
  --ab-navy-deep: #0b1e2c;
  --ab-blue: #1678b8;
  --ab-blue-bright: #2598d2;
  --ab-gold: #d5aa45;
  --ab-cloud: #eef4f7;
  --ab-paper: #ffffff;
  --ab-line: #cad8e0;
  --ab-muted: #586b78;
}

html { scroll-behavior: smooth; }

body.u-body {
  margin: 0;
  color: var(--ab-ink);
  background: var(--ab-paper);
  font-family: Montserrat, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.u-body h1,
body.u-body h2,
body.u-body h3,
body.u-body h4 {
  color: var(--ab-ink);
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
}

body.u-body p,
body.u-body label,
body.u-body input,
body.u-body select,
body.u-body textarea,
body.u-body button {
  font-family: Montserrat, Arial, sans-serif;
}

body.u-body .u-sheet {
  width: min(1160px, calc(100% - 48px));
}

/* Header */
body.u-body #MENU.u-header {
  min-height: 92px;
  background: var(--ab-navy-deep) !important;
  border-bottom: 4px solid var(--ab-gold);
  box-shadow: 0 8px 28px rgba(7, 28, 43, 0.18);
}

body.u-body #MENU .u-sheet-1 { min-height: 88px; }

body.u-body #MENU .u-logo {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #fff;
  border-left: 4px solid var(--ab-blue);
  border-radius: 0 !important;
}

body.u-body #MENU .u-logo-image { object-fit: contain; }

body.u-body #MENU .u-nav-container .u-nav-link {
  margin: 0 3px;
  padding: 12px 17px !important;
  color: #fff !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px !important;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

body.u-body #MENU .u-nav-container .u-nav-link:hover,
body.u-body #MENU .u-nav-container .u-nav-link.active {
  color: #fff !important;
  background: var(--ab-blue) !important;
  border-color: var(--ab-blue) !important;
  transform: translateY(-2px);
}

body.u-body #MENU .menu-collapse .u-nav-link,
body.u-body #MENU .menu-collapse svg {
  color: #fff !important;
  fill: #fff !important;
}

body.u-body #MENU .u-sidenav { background: var(--ab-navy-deep) !important; }

/* Buttons keep their original labels and destinations. */
body.u-body .u-btn,
body.u-body a.u-btn,
body.u-body .u-upload-button {
  border: 1px solid transparent !important;
  border-radius: 3px !important;
  box-shadow: 0 7px 18px rgba(16, 63, 91, 0.16);
  font-weight: 800;
  letter-spacing: 0.025em;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

body.u-body .u-btn:hover,
body.u-body a.u-btn:hover,
body.u-body .u-upload-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 24px rgba(16, 63, 91, 0.22);
}

body.u-body .u-palette-1-base,
body.u-body .u-btn-submit {
  color: #fff !important;
  background: var(--ab-blue) !important;
}

/* Homepage hero */
body.u-body #index-haut {
  min-height: 560px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(8, 29, 43, 0.94) 0%, rgba(10, 37, 55, 0.84) 48%, rgba(10, 37, 55, 0.25) 100%),
    url('/wp-content/uploads/2024/06/female-work-brainstorming.jpg') !important;
  background-position: center !important;
}

body.u-body #index-haut .u-sheet-1 {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

body.u-body #index-haut .u-text-1 {
  max-width: 780px;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(2.75rem, 5.3vw, 4.9rem) !important;
  line-height: 0.98;
  text-align: left;
  text-wrap: balance;
}

body.u-body #index-haut .u-layout-wrap-1 {
  max-width: 760px;
  margin: 40px 0 0 !important;
}

body.u-body #index-haut .u-layout-cell-1 { min-height: auto !important; }

body.u-body #index-haut .u-container-layout-1 {
  padding: 25px 28px !important;
  background: rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--ab-gold);
  backdrop-filter: blur(7px);
}

body.u-body #index-haut .u-text-2 {
  margin: 0 !important;
  color: #eef5f8 !important;
  font-size: clamp(1rem, 1.45vw, 1.18rem) !important;
  line-height: 1.75;
  text-align: left;
}

/* Homepage sections */
body.u-body #demandez-une-offre,
body.u-body #carousel_fe96,
body.u-body #Nouscontacter { background-image: none !important; }

body.u-body #demandez-une-offre {
  background: var(--ab-cloud) !important;
  border-top: 1px solid var(--ab-line);
  border-bottom: 1px solid var(--ab-line);
}

body.u-body #demandez-une-offre .u-list-item {
  background: #fff;
  border-top: 6px solid var(--ab-blue);
  box-shadow: 0 20px 50px rgba(16, 54, 77, 0.1);
}

body.u-body #demandez-une-offre .u-container-layout-1 { padding: 44px !important; }

body.u-body #demandez-une-offre .u-text-1,
body.u-body #demandez-une-offre .u-text-2 { color: var(--ab-ink) !important; }

body.u-body #nos-partenaires {
  background-image: none !important;
  background: var(--ab-navy) !important;
  border-top: 5px solid var(--ab-gold);
}

body.u-body #nos-partenaires .u-text-1 { color: #fff !important; }

body.u-body #nos-partenaires .u-list-item {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(3, 18, 27, 0.18);
}

body.u-body #nos-partenaires img { filter: saturate(0.88) contrast(1.04); }

body.u-body #carousel_fe96 { background: #f7fafb !important; }

body.u-body #carousel_fe96 .u-list-item {
  background: #fff;
  border: 1px solid var(--ab-line);
  border-top: 5px solid var(--ab-blue);
  box-shadow: 0 14px 34px rgba(16, 54, 77, 0.08);
}

body.u-body #carousel_fe96 .u-list-item:nth-child(2) { border-top-color: var(--ab-gold); }
body.u-body #carousel_fe96 .u-list-item:nth-child(3) { border-top-color: var(--ab-navy); }

body.u-body #Nouscontacter {
  background: var(--ab-navy-deep) !important;
  border-top: 5px solid var(--ab-gold);
}

body.u-body #Nouscontacter .u-layout-cell {
  color: var(--ab-ink) !important;
  background: #fff !important;
  border-radius: 0 !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
  opacity: 1 !important;
}

/* Interior pages */
body.u-body section.u-section-2:not(#index-haut),
body.u-body section.u-section-3:not(#demandez-une-offre) {
  background-color: var(--ab-cloud) !important;
}

body.u-body .u-group.u-radius,
body.u-body .u-layout-cell.u-radius,
body.u-body .u-form.u-radius,
body.u-body .u-shape-round,
body.u-body .u-list-item.u-shape-round { border-radius: 0 !important; }

body.u-body .u-group,
body.u-body .u-form,
body.u-body .u-layout-cell.u-white,
body.u-body .u-list-item { border-color: var(--ab-line); }

body.u-body .u-group.u-opacity,
body.u-body .u-layout-cell.u-opacity { opacity: 1 !important; }

body.u-body .u-container-layout { border-radius: 0 !important; }

/* Form markup and behaviour stay unchanged. */
body.u-body .u-form {
  padding: clamp(20px, 3vw, 36px) !important;
  background: #fff !important;
  border-top: 5px solid var(--ab-blue);
  border-radius: 0 !important;
  box-shadow: 0 18px 45px rgba(16, 54, 77, 0.12);
}

body.u-body .u-form .u-label,
body.u-body .u-form .u-field-label {
  color: var(--ab-ink) !important;
  font-size: 0.85rem;
  font-weight: 750;
}

body.u-body .u-form .u-input,
body.u-body .u-form select,
body.u-body .u-form textarea {
  color: var(--ab-ink) !important;
  background: #f8fbfc !important;
  border: 1px solid #aebfc9 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

body.u-body .u-form .u-input:focus,
body.u-body .u-form select:focus,
body.u-body .u-form textarea:focus {
  background: #fff !important;
  border-color: var(--ab-blue) !important;
  box-shadow: 0 0 0 3px rgba(22, 120, 184, 0.14) !important;
  outline: none;
}

body.u-body .u-form .u-btn-submit {
  min-height: 50px;
  border-left: 5px solid var(--ab-gold) !important;
}

body.u-body .u-footer {
  color: #cbd7dd !important;
  background: var(--ab-navy-deep) !important;
  border-top: 4px solid var(--ab-gold);
}

body.u-body .u-footer a,
body.u-body .u-footer .u-text { color: #dbe5e9 !important; }

body.u-body .u-back-to-top {
  background: var(--ab-blue) !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px !important;
}

.migration-cookie-notice {
  position: fixed;
  z-index: 100000;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  color: #fff;
  background: rgba(11, 30, 44, 0.98);
  font: 14px/1.4 Arial, sans-serif;
}

.migration-cookie-notice button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  padding: 0.55rem 0.8rem;
  color: #fff;
  background: var(--ab-blue);
  cursor: pointer;
}

.migration-cookie-notice[hidden] { display: none; }

@media (max-width: 991px) {
  body.u-body #MENU .u-logo { max-width: 240px; }

  body.u-body #index-haut {
    min-height: 520px;
    background-image:
      linear-gradient(90deg, rgba(8, 29, 43, 0.94), rgba(10, 37, 55, 0.72)),
      url('/wp-content/uploads/2024/06/female-work-brainstorming.jpg') !important;
  }

  body.u-body #index-haut .u-sheet-1 { min-height: 520px; }
  body.u-body #demandez-une-offre .u-container-layout-1 { padding: 34px 24px !important; }
}

@media (max-width: 767px) {
  body.u-body .u-sheet { width: min(100% - 30px, 1160px); }

  body.u-body #MENU,
  body.u-body #MENU .u-sheet-1 { min-height: 78px; }

  body.u-body #MENU .u-logo {
    max-width: 205px;
    padding: 6px 8px;
  }

  body.u-body #MENU .menu-collapse { margin-top: 0; }

  body.u-body #index-haut,
  body.u-body #index-haut .u-sheet-1 { min-height: 570px; }

  body.u-body #index-haut .u-text-1 { font-size: clamp(2.25rem, 11vw, 3.5rem) !important; }
  body.u-body #index-haut .u-layout-wrap-1 { margin-top: 30px !important; }
  body.u-body #index-haut .u-container-layout-1 { padding: 20px !important; }
  body.u-body .u-form { padding: 20px 16px !important; }
  .migration-cookie-notice { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.u-body .u-btn,
  body.u-body .u-nav-link,
  body.u-body .u-input { transition: none !important; }
}
