:root {
  --ve-ink: #10253f;
  --ve-blue: #087aa8;
  --ve-blue-dark: #07506f;
  --ve-aqua: #dff5f5;
  --ve-line: #dbe5ec;
  --ve-shadow: 0 20px 60px rgba(16,37,63,.12);
}

/* Fond commun : aucune bande grise autour de la page. */
html,
body,
body > .page {
  background: #fff;
}

body > .page {
  width: 100%;
  max-width: none;
  margin: 0;
}

.ve-modern-header,
.ve-modern-header * {
  box-sizing: border-box;
}

.ve-modern-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  width: 100%;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(219,229,236,.85);
  backdrop-filter: blur(16px);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}

.ve-nav-wrap {
  width: min(calc(100% - 32px),1450px);
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.ve-modern-header a { text-decoration: none; }

.ve-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  min-width: max-content;
}

.ve-brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(16,37,63,.18);
}

.ve-brand-name {
  display: grid;
  gap: .28rem;
  line-height: 1;
  white-space: nowrap;
}

.ve-brand-name strong {
  color: var(--ve-ink);
  font-size: .9rem;
  letter-spacing: .035em;
}

.ve-brand-name small {
  color: var(--ve-blue);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.ve-main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  background: transparent;
  box-shadow: none;
}

.ve-nav-link,
.ve-nav-button {
  border: 0;
  background: transparent;
  padding: .65rem .62rem;
  border-radius: 10px;
  color: #334a60;
  font: 750 .88rem/1.2 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.ve-nav-link:hover,
.ve-nav-button:hover,
.ve-nav-link[aria-current="page"],
.ve-nav-button[aria-current="page"] {
  background: #eaf5f8;
  color: var(--ve-blue-dark);
}

.ve-nav-item { position: relative; }
.ve-nav-button::after { content: "⌄"; margin-left: .35rem; }

.ve-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: max-content;
  min-width: 310px;
  max-width: calc(100vw - 32px);
  padding: .6rem;
  background: #fff;
  border: 1px solid var(--ve-line);
  border-radius: 15px;
  box-shadow: var(--ve-shadow);
}

.ve-nav-item.open .ve-dropdown { display: grid; }

.ve-dropdown a {
  padding: .65rem .75rem;
  border-radius: 9px;
  color: #41576b;
  font-size: .9rem;
  white-space: nowrap;
}

.ve-dropdown a:hover { background: #edf7f9; color: var(--ve-blue); }
.ve-dropdown-top10 { min-width: 320px; }
.ve-dropdown-separator { margin-top: .35rem; padding-top: 1rem !important; border-top: 1px solid var(--ve-line); }

.ve-menu-search {
  display: flex;
  flex: 0 0 190px;
  width: 190px;
  height: 40px;
  margin: 0 0 0 8px;
}

.ve-menu-search input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 10px 0 13px;
  border: 1px solid var(--ve-line);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  outline: 0;
  background: #f5f8fb;
  color: #334a60;
  font: 600 .82rem/40px Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}

.ve-menu-search input[type="search"]:focus {
  border-color: var(--ve-blue);
  background: #fff;
}

.ve-menu-search input[type="search"]::placeholder { color: #718294; opacity: 1; }

.ve-menu-search button {
  flex: 0 0 42px;
  width: 42px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ve-blue);
  border-radius: 0 10px 10px 0;
  background: var(--ve-blue);
  color: #fff;
  cursor: pointer;
}

.ve-menu-search button:hover,
.ve-menu-search button:focus { background: var(--ve-blue-dark); border-color: var(--ve-blue-dark); }
.ve-menu-search svg { display: block; width: 18px; height: 18px; margin: auto; fill: currentColor; }
.ve-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ve-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ve-line);
  border-radius: 12px;
  background: #fff;
  font-size: 0;
  cursor: pointer;
}

.ve-menu-toggle::before,
.ve-menu-toggle::after,
.ve-menu-toggle span {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ve-ink);
  transition: .2s;
}

.ve-menu-toggle.is-open span { opacity: 0; }
.ve-menu-toggle.is-open::before { transform: translateY(7px) rotate(45deg); }
.ve-menu-toggle.is-open::after { transform: translateY(-7px) rotate(-45deg); }

.ve-nav-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  min-width: 230px;
  padding: .65rem 1.15rem;
  border-radius: 999px;
  background: var(--ve-blue);
  color: #fff;
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
}

.ve-nav-cta:hover { background: var(--ve-blue-dark); color: #fff; }

@media (max-width:1199px) {
  .ve-menu-toggle { display: block; }
  .ve-main-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: none;
    max-height: calc(100vh - 64px);
    overflow: auto;
    align-items: stretch;
    padding: 14px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--ve-line);
    box-shadow: var(--ve-shadow);
  }
  .ve-main-nav.open { display: grid; }
  .ve-nav-link,.ve-nav-button { width: 100%; padding: .85rem; text-align: left; }
  .ve-nav-item { position: static; }
  .ve-dropdown {
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0 0 8px 12px;
    border: 0;
    border-left: 2px solid var(--ve-aqua);
    border-radius: 0;
    box-shadow: none;
  }
  .ve-dropdown a { white-space: normal; }
  .ve-nav-cta { display: none; }
  .ve-menu-search {
    width: 100%;
    height: 44px;
    margin: 10px 0 0;
    flex-basis: auto;
  }
  .ve-menu-search input[type="search"] { height: 44px; line-height: 44px; }
  .ve-menu-search button { height: 44px; }
}

@media (max-width:620px) {
  .ve-nav-wrap { width: min(calc(100% - 20px),1450px); }
}

@media (prefers-reduced-motion:reduce) {
  .ve-menu-toggle::before,.ve-menu-toggle::after,.ve-menu-toggle span { transition: none; }
}

/* Footer élargi sur la même largeur visuelle que le menu. */
#footer {
  width: 100%;
  max-width: none;
  margin: 0;
}

#footer > .container {
  width: min(calc(100% - 32px),1450px);
  max-width: 1450px;
  margin: 0 auto;
}

#footer > .container > .row {
  display: grid;
  grid-template-columns: 2fr 1.25fr 1.25fr 1fr;
  gap: clamp(24px,3vw,58px);
  margin: 0;
}

#footer > .container > .row > [class*="grid_"] {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
}

@media (max-width:979px) {
  #footer > .container > .row {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/* Footer moderne identique à celui de la page d'accueil. */
.footer,
.footer * {
  box-sizing: border-box;
}

.footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 58px 0 30px;
  background: #081f31;
  color: #d5e2e8;
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}

.footer > .container {
  width: min(calc(100% - 32px),1450px);
  max-width: 1450px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3,1fr);
  gap: 38px;
}

.footer-grid > div {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
}

.footer h3 {
  margin: 0 0 14px;
  padding: 0;
  color: #fff;
  font-size: .9rem;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.footer p {
  margin: 18px 0 0;
  color: #d5e2e8;
  font-size: .9rem;
  line-height: 1.65;
}

.footer a {
  display: block;
  margin: .45rem 0;
  color: #b9cbd4;
  font-size: .9rem;
  line-height: 1.4;
  text-decoration: none;
}

.footer a:hover { color: #fff; }

.footer .brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .85rem;
  margin: 0;
  color: #fff;
}

.footer .brand-logo-footer {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.footer .brand-name {
  display: grid;
  gap: .28rem;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(5px);
}

.footer .brand-name strong {
  color: #fff;
  font-size: .9rem;
  letter-spacing: .035em;
}

.footer .brand-name small {
  color: #42c8e8;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #8fa7b3;
  font-size: .8rem;
}

@media (max-width:1199px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width:700px) {
  .footer > .container { width: min(calc(100% - 28px),1450px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer .brand { display: inline-flex; }
  .footer .brand-logo-footer { width: 76px; height: 76px; }
}

@media (max-width:620px) {
  #footer > .container {
    width: min(calc(100% - 30px),1450px);
  }

  #footer > .container > .row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* STYLE COMMUN FINAL : anciens footers, identique visuellement à l'accueil. */
#footer,
#footer * {
  box-sizing: border-box;
}

#footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 58px 0 30px;
  background: #081f31;
  color: #d5e2e8;
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}

#footer > .container {
  width: min(calc(100% - 32px),1450px);
  max-width: 1450px;
  margin: 0 auto;
}

#footer > .container > .row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3,1fr);
  gap: 38px;
  margin: 0;
}

#footer > .container > .row > [class*="grid_"] {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
}

#footer .h2_2,
#footer .h2_3 {
  margin: 0 0 14px;
  padding: 0;
  color: #fff;
  font-size: .9rem;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

#footer .p_1 {
  margin: 0;
  color: #d5e2e8;
  font-size: .9rem;
  line-height: 1.65;
}

#footer .default-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer .default-list li {
  margin: 0;
  padding: 0;
}

#footer a,
#footer .default-list a {
  display: block;
  margin: .45rem 0;
  padding: 0;
  color: #b9cbd4;
  background: transparent;
  font-size: .9rem;
  line-height: 1.4;
  font-weight: 400;
  text-decoration: none;
}

#footer a:hover,
#footer .default-list a:hover {
  color: #fff;
  background: transparent;
}

#footer .default-list img {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

@media (max-width:1199px) {
  #footer > .container > .row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:700px) {
  #footer {
    padding: 42px 0 24px;
    text-align: left;
  }

  #footer > .container {
    width: min(calc(100% - 28px),1450px);
  }

  #footer > .container > .row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #footer .p_1,
  #footer .default-list {
    padding-bottom: 0;
  }
}
