/* First screen: logo tab notched into the photo, floating corner menu, split headline, three task cards. */
:root { --bar: 96px; --tab: 96px; --fillet: 16px; --photo-radius: 8px; --corner: 112px; }
#contenu { padding-top: var(--bar); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 30; transition: background-color 640ms ease, box-shadow 640ms ease; }
.header-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 32px; height: var(--bar); border-radius: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-symbol { width: 46px; height: 44px; }
.brand-name { display: flex; flex-direction: column; font-family: var(--heading); font-size: 21px; font-weight: 700; line-height: 1.02; letter-spacing: -.02em; }

/* On a wide screen the logo shares one line with the links. The notched tab returns on smaller screens, where the photo starts at the top. */
.brand-tab { position: relative; align-self: center; display: flex; align-items: center; }
.brand-tab .brand { gap: 14px; }
.brand-tab .brand-symbol { width: 64px; height: 61px; }
.brand-tab .brand-name { font-size: 28px; }
.brand-tab::before, .brand-tab::after { --r: var(--fillet); content: none; position: absolute; width: var(--r); height: var(--r); background: radial-gradient(circle at 100% 100%, transparent calc(var(--r) - .5px), #fff var(--r)); pointer-events: none; }
.brand-tab::before { top: var(--bar); left: 100%; }
.brand-tab::after { --r: var(--photo-radius); top: 100%; left: 0; }

.site-header nav { display: flex; align-items: center; margin-left: auto; }
.nav-heading, .nav-extra, .nav-index, .nav-links .circle-arrow { display: none; }
.nav-utilities { display: none; gap: 6px; }
.nav-chip { padding: 3px 13px; background: #fff; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); font-family: var(--heading); font-size: 12px; font-weight: 550; transition: border-color 250ms, color 250ms; }
.nav-chip:hover { border-color: var(--sky-deep); color: var(--sky-deep); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { position: relative; padding-block: 3px; font-family: var(--heading); font-size: 15px; font-weight: 550; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--sky-deep); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; margin-left: 36px; }
.header-account { position: relative; padding-block: 3px; font-family: var(--heading); font-size: 15px; font-weight: 550; white-space: nowrap; }
.header-account::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--sky-deep); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease); }
.header-account:hover::after { transform: scaleX(1); }
.header-actions .header-cta { flex-shrink: 0; white-space: nowrap; }
@media (min-width: 1051px) and (max-width: 1240px) {
  .nav-links { gap: 20px; }
  .header-actions { gap: 12px; margin-left: 20px; }
}
.lang-switch { display: inline-flex; padding: 3px; background: #eef3f8; border-radius: 100px; }
.lang-switch-menu { display: none; }
nav.is-open .lang-switch-menu { display: inline-flex; }
.lang-switch button { min-width: 36px; padding: 6px 9px; border: 0; border-radius: 100px; background: transparent; color: var(--muted); font-family: var(--heading); font-size: 12px; font-weight: 650; letter-spacing: .04em; }
.lang-switch button.is-selected { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #15255a1f; }
nav.is-open .lang-switch { order: -1; align-self: flex-start; margin-bottom: 28px; background: #ffffff14; }
nav.is-open .lang-switch button { color: #ffffffb8; }
nav.is-open .lang-switch button.is-selected { background: #fff; color: var(--ink); }
.menu-open .header-actions { display: none; }
/* Quarter-circle menu tucked into the top-right corner of the screen. */
.menu-toggle { position: fixed; top: 0; right: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 7px; width: var(--corner); height: var(--corner); padding: 30px 0 0 calc(var(--corner) * .3); color: #fff; background: var(--sky-deep); border: 0; border-radius: 0 0 0 100%; opacity: 0; pointer-events: none; transform: translate(30%, -30%) scale(.7); transform-origin: top right; transition: opacity 560ms, transform 760ms var(--ease), background 300ms; }
.menu-lines { display: flex; flex-direction: column; gap: 7px; }
.menu-lines span { width: 26px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 350ms var(--ease); }
.menu-label { font-family: var(--heading); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.menu-toggle:hover { background: #18608f; }
.menu-toggle[aria-expanded=true] { background: var(--ink); }
.menu-toggle[aria-expanded=true] .menu-lines span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded=true] .menu-lines span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu-open .menu-toggle { opacity: 1; pointer-events: auto; transform: none; }

/* Past the first screen: a solid white bar that steps aside while scrolling down. */
.site-header.is-floating { position: fixed; background: #fff; box-shadow: 0 1px 0 #e3e7ee, 0 10px 30px #15255a0f; transition: background-color 640ms ease, box-shadow 640ms ease, transform 640ms var(--ease); }
.site-header.is-floating.is-tucked:not(.menu-open) { transform: translateY(-100%); }
.site-header.is-instant, .site-header.is-instant * { transition: none !important; }
.is-floating .brand-tab { align-self: center; height: auto; background: none; border-radius: 0; }
.is-floating .brand-tab::before, .is-floating .brand-tab::after, .is-floating .nav-utilities { display: none; }
.is-floating nav:not(.is-open) { flex-direction: row; align-items: center; }
.is-floating .nav-links a[aria-current] { color: var(--sky-deep); }
.is-floating .nav-links a[aria-current]::after { transform: scaleX(1); }

/* Open menu: a navy panel slides in under the corner button. */
.site-header.menu-open::before { content: ''; position: fixed; inset: 0; background: rgb(8 15 40 / 45%); animation: fade-in 560ms ease; pointer-events: auto; }
.site-header nav.is-open { position: fixed; inset: 0 0 0 auto; z-index: 1; display: flex; flex-direction: column; align-items: stretch; gap: 0; width: min(500px, 100%); margin: 0; padding: 130px 44px 36px; overflow-y: auto; color: #fff; background: var(--ink); animation: panel-in 760ms var(--ease); }
nav.is-open .nav-heading { display: block; margin-bottom: 14px; color: #ffffff80; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
nav.is-open .nav-links { order: 1; flex-direction: column; gap: 0; }
nav.is-open .nav-links a { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; padding: 22px 0; font-size: 28px; letter-spacing: -.01em; border-bottom: 1px solid #ffffff1f; }
nav.is-open .nav-links a::after { display: none; }
nav.is-open .nav-links a[aria-current] .nav-text { color: #9fdcff; }
nav.is-open .nav-index { display: block; color: var(--sky); font-size: 13px; letter-spacing: .06em; }
nav.is-open .nav-links .circle-arrow { display: grid; width: 34px; height: 34px; border-color: #ffffff59; }
nav.is-open .nav-links a:hover .circle-arrow { color: var(--ink); background: #fff; border-color: #fff; transform: rotate(-35deg); }
nav.is-open .nav-utilities { display: flex; order: 2; margin-top: 26px; }
nav.is-open .nav-chip { padding: 6px 15px; color: #fff; background: transparent; border-color: #ffffff47; font-size: 13px; }
nav.is-open .nav-chip:hover { color: var(--ink); background: #fff; }
nav.is-open .nav-extra { order: 3; display: block; margin-top: auto; padding-top: 40px; }
.nav-extra p { margin-bottom: 18px; color: #ffffffb3; font-size: 15px; line-height: 1.5; }
.nav-extra strong { color: #fff; font-family: var(--heading); font-size: 18px; }
.nav-extra .button { justify-content: space-between; width: 100%; }
body.menu-open { overflow: hidden; }
@keyframes panel-in { from { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }

.hero { position: relative; height: clamp(520px, 36vw, 920px); overflow: hidden; border-radius: 8px; background: #2b3b55; color: #fff; }
.hero-media { position: absolute; inset: 0; pointer-events: none; }
.hero-slides { position: absolute; inset: -24px 0; isolation: isolate; transform: translateY(var(--photo-drift, 0px)); }
.hero-slide { position: absolute; inset: 0; z-index: 0; display: block; visibility: hidden; opacity: 0; }
.hero-slide.is-active { z-index: 2; visibility: visible; opacity: 1; }
.hero-slides.is-animating .hero-slide { visibility: visible; opacity: 1; }
.hero-slides.is-animating .hero-slide:not(.is-active) { z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slides.is-animating .hero-slide:not(.is-active) { opacity: 1; }
  .hero-slides.is-animating .hero-slide.is-active { animation: hero-fade 900ms var(--ease) both; }
}
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
.hero-slide-consult img { object-position: 50% 25%; }
.hero-slide-family img { object-position: 50% 32%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(6 14 30 / 18%), rgb(6 14 30 / 38%) 55%, rgb(6 14 30 / 48%)); }
.hero-content {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 31%);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 6%;
  row-gap: 22px;
  padding: 0 7% 0 9%;
}
.hero h1 {
  grid-column: 1;
  max-width: 11em;
  font-size: clamp(44px, 4.2vw, 80px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-shadow: 0 2px 24px rgb(6 14 30 / 25%);
}
.hero h1 > span { display: block; }
.hero-controls { grid-column: 2; display: flex; align-items: center; gap: 10px; font-family: var(--heading); font-size: 15px; font-weight: 550; }
.slide-pause, .slide-next { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; color: #fff; background: transparent; border: 1.5px solid #ffffffd9; border-radius: 50%; }
.slide-next { margin-left: 4px; padding: 6px; }
.pause-symbol { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.slide-pause.is-paused .pause-symbol { width: 0; height: 0; margin-left: 2px; border: 0; border-left: 8px solid currentColor; border-block: 5px solid transparent; }
.slide-caption { margin-right: 6px; }
.slide-dots { display: flex; }
.slide-dots button { display: grid; place-items: center; width: 22px; height: 30px; padding: 0; background: transparent; border: 0; }
.slide-dots button::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ffffff80; transition: width 350ms, background 350ms; }
.slide-dots button.is-active::before { width: 18px; border-radius: 4px; background: #fff; }
:is(.slide-next, .slide-pause):hover { color: var(--ink); background: #fff; }
.hero :focus-visible { outline-color: #9fdcff; }

.service-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.shortcut {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 36px 40px 32px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  background: var(--beige);
  border: 0;
  border-radius: 8px;
  transition: background 250ms;
}
.shortcut:hover { background: #ece7dd; }
.shortcut .line-icon { width: 34px; height: 34px; }
.shortcut-title { margin: 40px 0 26px; font-family: var(--heading); font-size: clamp(20px, 1.6vw, 24px); font-weight: 550; line-height: 1.2; letter-spacing: -.01em; }
.shortcut-link { display: flex; align-items: center; gap: 10px; margin-top: auto; font-family: var(--heading); font-size: 15px; font-weight: 550; }

@media (max-width: 1050px) {
  :root { --bar: 8px; --tab: 84px; --fillet: 14px; --corner: 96px; }
  #contenu { padding-top: 0; }
  .hero.boxed, .header-inner.boxed { width: 100%; margin-inline: 0; border-radius: 0; }
  .hero { border-radius: 0 0 16px 16px; }
  .brand-tab { align-self: flex-start; align-items: center; height: var(--tab); padding: 0 28px 0 16px; background: #fff; border-radius: 0 0 var(--fillet) 0; }
  .brand-tab::before, .brand-tab::after { content: none; }
  .brand-tab .brand-symbol { width: 54px; height: 52px; }
  .brand-tab .brand-name { font-size: 24px; }
  .site-header nav:not(.is-open), .header-actions { display: none; }
  nav.is-open .lang-switch-menu { display: inline-flex; }
  .menu-toggle { opacity: 1; pointer-events: auto; transform: none; padding-top: 24px; }
  .site-header.is-floating { background: transparent; box-shadow: none; }
  .site-header.is-floating.is-tucked:not(.menu-open) { transform: translateY(calc(-1 * var(--corner) - 16px)); }
  .is-floating .brand-tab { align-self: flex-start; height: var(--tab); padding: 0 28px 0 16px; background: #fff; border-radius: 0 0 var(--fillet) 0; }
  .site-header nav.is-open { padding: 116px 28px 28px; }
  nav.is-open .nav-links a { font-size: 24px; padding: 20px 0; }

  .hero { height: min(640px, 78svh); min-height: 460px; }
  .hero-slides { inset: 0; transform: none; }
  .hero-shade { background: linear-gradient(180deg, rgb(6 14 30 / 4%) 35%, rgb(6 14 30 / 62%) 100%); }
  .hero-content { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 18px; padding: 0 24px 36px; text-align: center; }
  .hero h1 { display: block; font-size: clamp(36px, 5.6vw, 48px); line-height: 1.04; }
  .hero h1 > span { display: inline; max-width: none; }
  .hero h1 > span:first-child::after { content: ' '; }

  .service-shortcuts { grid-template-columns: 1fr; }
  .shortcut { flex-direction: row; align-items: center; gap: 22px; min-height: 72px; padding: 16px 22px; }
  .shortcut .line-icon { width: 30px; height: 30px; }
  .shortcut-title { display: none; }
  .shortcut-link { flex: 1; justify-content: space-between; margin: 0; font-size: 17px; }
}
@media (max-width: 760px) {
  :root { --tab: 80px; --corner: 88px; }
  .brand-tab .brand-symbol { width: 50px; height: 48px; }
  .brand-tab .brand-name { font-size: 22px; }
  .menu-toggle { gap: 6px; padding-top: 21px; }
  .menu-lines span { width: 23px; }
  .hero { height: min(620px, 78svh); min-height: 440px; }
  .hero-slide-consult img { object-position: 74% 50%; }
  .hero-slide-family img { object-position: 46% 34%; }
  .hero-content { padding: 0 18px 26px; }
  .hero h1 { font-size: clamp(34px, 9vw, 42px); }
  .hero-controls { justify-content: center; font-size: 14px; }
  .slide-dots, .slide-next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides { transform: none !important; }
  .hero-slide, .hero-slide img, .site-header, .site-header::before, .site-header nav { animation: none !important; }
}

/* Zoomed-out and very wide windows: keep the same composition instead of stretching it across the viewport. */
@media (min-width: 2000px) {
  .boxed,
  .engagements,
  .story {
    width: min(1760px, calc(100% - 48px));
    max-width: 1760px;
    margin-inline: auto;
  }
  .story-pin { margin-inline: 0; }
  .hero { height: min(760px, 40vw); }
  .hero-content {
    grid-template-columns: minmax(0, max-content) minmax(0, max-content);
    justify-content: space-between;
    align-items: center;
    column-gap: 48px;
  }
  .hero-controls { width: max-content; max-width: 28em; justify-self: end; }
}
