@import url("palette-gasel.css");

:root {
  color: #102e3b;
  background: #fff;
  font: 1rem/1.48 Inter, "Segoe UI", sans-serif;
  --gold: var(--cta-gradient);
  --header-blue: linear-gradient(90deg, #1d4453, #2f6d81);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #b86604; outline-offset: 4px; }
.skip { position: absolute; left: 10px; top: 10px; padding: 10px; z-index: 1; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { width: min(1260px, 88%); margin-inline: auto; }
header { background: var(--header-blue); color: white; border-bottom: 1px solid #ffffff36; }
.nav { min-height: 101px; width: min(1274px, 90%); display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); }
.nav nav { font-size: .94rem; }
.logo { width: clamp(100px, 13vw, 178px); }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 3.6vw, 58px); }
.nav nav a { padding: 8px 0; text-decoration: none; }
.nav nav a:hover, .nav nav [aria-current] { box-shadow: inset 0 -3px #ffcf4d; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 9px 24px; border-radius: 10px; background: var(--gold); color: #10242e; font-weight: 750; text-decoration: none; text-align: center; }
.button:hover { filter: brightness(1.08); }
.nav-assistance { min-height: 40px; padding: 7px 17px; border-radius: 8px; font-size: .875rem; }
.hero {
  overflow: hidden;
  position: relative;
  isolation: isolate;
  min-height: clamp(330px, 39vw, 565px);
  padding: clamp(60px, 12.5vw, 178px) 0 130px;
  color: white;
  background: var(--header-blue);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 17% 100%, 0 84%);
}
.hero-motion {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/brouillon-bandeau.png") center / cover no-repeat;
}
.site-header:has(+ main .hero-motion)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/brouillon-bandeau.png") center / cover no-repeat;
  opacity: .15;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-motion, .site-header:has(+ main .hero-motion)::before {
    animation: hero-pan 4.8s ease-in-out both;
  }
}
@keyframes hero-pan {
  from { transform: scale(1.065) translateX(-1%); }
  to { transform: scale(1.015); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, #123746f2 0%, #123746b8 49%, #15384614 90%);
}
.hero .wrap { display: grid; grid-template-columns: fit-content(100%); justify-items: start; }
.hero h1 { grid-area: 1 / 1; font-size: clamp(1.9rem, 3.66vw, 3.3rem); font-weight: 800; letter-spacing: .005em; line-height: 1.13; }
.hero p {
  grid-area: 2 / 1;
  width: 0;
  min-width: 100%;
  margin-top: 7px;
  text-align: right;
  font-size: clamp(1rem, 1.55vw, 1.375rem);
  font-weight: 650;
  font-style: italic;
  letter-spacing: .035em;
  line-height: 1.15;
  text-shadow: 0 1px 4px #032b3d;
}
h1, h2, h3 { line-height: 1.1; letter-spacing: -.028em; text-transform: uppercase; }
h1 { font-size: clamp(1.9rem, 4.2vw, 4rem); }
h2, .services h3 { font-size: clamp(1.4rem, 2.8vw, 2.75rem); }
.values { width: min(960px, 82%); display: grid; grid-template-columns: repeat(3, 1fr); padding: clamp(32px, 5.2vw, 72px) 0; list-style: none; }
.values li { display: flex; justify-content: center; align-items: center; gap: 14px; font-weight: 750; font-size: clamp(.95rem, 1.7vw, 1.4rem); }
.values li + li { border-left: 1px solid #aebcc1; }
.values { color: #374f59; }
.values img { filter: brightness(0) saturate(100%) invert(29%) sepia(17%) saturate(735%) hue-rotate(152deg) brightness(94%) contrast(91%); }
.values img, .secondary img, .objective img, .phone img { width: 33px; height: 33px; flex: none; }
.services { width: min(1004px, 88%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 26px; padding: 17px 0 68px; }
.services article > img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 6px; }
.services article > img.service-web-preview { object-position: center top; }
.services > h2 { grid-column: 1 / -1; margin: 0 auto 7px; color: #466474; font-size: clamp(1.25rem, 2.1vw, 1.875rem); font-weight: 650; font-style: italic; letter-spacing: .04em; line-height: 1.25; }
.services > h2 span { display: block; }
@supports (background-clip: text) {
  .services > h2, .services h3, .about h2, .reviews h2, .footer-contact strong {
    background: var(--blue);
    background-clip: text;
    color: transparent;
  }
  .services h3, .about h2, .reviews h2 { width: fit-content; }
}
.services > h2 span + span { padding-left: 1.3em; }
.services h3 { margin-top: 11px; font-size: clamp(1.25rem, 2.22vw, 2rem); }
.services p { margin-top: 6px; max-width: 55ch; font-size: .8125rem; }
.services article > a { display: inline-flex; align-items: center; gap: 12px; min-height: 28px; font-size: .8125rem; font-weight: 750; }
.services article > a { min-height: 36px; margin-top: 6px; padding-inline: 12px; border-radius: 7px; background: var(--gold); color: #10242e; text-decoration: none; }
.services article > a:hover { filter: brightness(1.08); }
.map:hover span { color: #31758b; }
.secondary {
  background: var(--blue);
  color: white;
  margin-block: clamp(20px, 3vw, 44px);
  padding: 55px 0;
  clip-path: polygon(0 28px, 21% 0, 100% 24px, 100% calc(100% - 55px), 55% 100%, 0 calc(100% - 22px));
}
.secondary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(1050px, 84%); }
.secondary-grid a { display: flex; gap: 16px; align-items: center; padding: 16px clamp(12px, 2.4vw, 32px); text-decoration: none; }
.secondary-grid a:hover strong { text-decoration: underline; }
.secondary-grid strong { text-transform: uppercase; }
.secondary-grid a:nth-child(even) { border-left: 1px solid #ffffff80; }
.secondary-grid a:nth-child(n+3) { border-top: 1px solid #ffffff80; }
.secondary img, .phone img { filter: invert(1); }
.secondary p { font-size: .93rem; }
main { background: radial-gradient(ellipse 22% 10% at 100% 65%, #e5eff3, transparent), radial-gradient(ellipse 22% 9% at 0 78%, #e5eff3, transparent), radial-gradient(ellipse 19% 7% at 92% 94%, #edf4f6, transparent), white; }
.about { width: min(860px, 88%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4.5vw, 64px); padding: 72px 0 80px; }
.about h2 { font-size: clamp(1.5rem, 2.35vw, 2.125rem); }
.about > div:first-child p { margin-top: 24px; }
.about h2::before, .reviews h2::before, .zone h2::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 12px; background: var(--blue); }
.about p { margin-top: 8px; font-size: .9375rem; }
.objective { display: flex; gap: 24px; align-items: center; min-height: 82px; margin-top: 12px; padding: 10px 26px; border: 1px solid #dbe4e8; border-radius: 14px; background: #ffffffb5; }
.objective p { margin-top: 2px; font-size: .875rem; }
.zone { width: min(1218px, 86%); margin-inline: auto; display: grid; grid-template-columns: 36% 64%; border-radius: 12px; overflow: hidden; background: linear-gradient(115deg, #0e3645, #347e94); color: white; }
.zone > div { padding: clamp(24px, 4.2vw, 60px); background: linear-gradient(90deg, #0e3645, #1d5364); }
.zone h2 { font-size: clamp(1.5rem, 2.55vw, 2.25rem); }
.zone h2::before { background: white; }
.zone p { margin-block: 12px; font-size: .875rem; }
.phone { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: clamp(1.2rem, 2.4vw, 2.1rem); font-weight: 750; white-space: nowrap; text-decoration: none; }
.phone:hover { text-decoration: underline; }
.map {
  display: grid;
  align-content: center;
  min-height: 240px;
  color: #122c37;
  background: linear-gradient(90deg, #1d5364 0%, #1d5364e6 13%, #1d53648c 33%, #1d53642b 57%, transparent 76%),
    linear-gradient(#34718457, #1c546775),
    url("assets/fond-carte-olivier.webp") center / cover no-repeat;
  text-decoration: none;
}
.map img { width: 100%; height: auto; }
.map span { justify-self: end; margin: 0 10px 10px; padding: 10px 12px; border-radius: 6px; background: white; font-size: .875rem; }
.map:focus-visible { outline-offset: -6px; }
.reviews { width: min(1100px, 88%); padding: 78px 0 0; }
.reviews h2 { font-size: clamp(1.4rem, 2.35vw, 2.125rem); font-weight: 650; letter-spacing: 0; }
.review-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.review-controls:not([hidden]) { display: flex; gap: 8px; }
.review-controls button { width: 44px; height: 44px; border: 1px solid #c7d5dc; border-radius: 50%; background: white; color: inherit; font: inherit; cursor: pointer; }
.review-controls button:hover { background: #e9f3f7; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.review-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review-grid li { min-height: 126px; padding: 16px; border: 1px solid #e9eef0; border-radius: 12px; background: #fff; }
.review-grid figure { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; height: 100%; font-size: .875rem; }
blockquote { font-style: italic; }
figcaption { font-size: .8125rem; font-weight: 750; }
figcaption span { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 6px; border-radius: 50%; background: #387487; color: white; }
@media (min-width: 761px) {
  .review-grid > li:nth-child(3n + 2) figcaption span { background: var(--gold); color: #10242e; }
}
footer { background: linear-gradient(112deg, #347e94, #374f59); color: white; padding: 70px 0 36px; clip-path: polygon(0 18%,13% 0,100% 16%,100% 100%,0 100%); }
footer > .wrap { width: min(1300px, 92%); }
.footer-contact, .footer-main, .footer-main nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.footer-contact { flex-direction: column; gap: 18px; padding: 64px 0 50px; text-align: center; }
.footer-contact p { color: #466474; font-size: 1rem; line-height: 1.45; }
.footer-contact strong { font-size: clamp(1.4rem, 2.1vw, 1.875rem); font-weight: 750; letter-spacing: -.025em; }
.footer-contact .button { min-height: 48px; padding-inline: 24px; border-radius: 10px; font-size: .9375rem; }
.footer-main { justify-content: space-between; align-items: end; }
.footer-main .logo { width: clamp(145px, 16vw, 228px); }
@media (max-width: 760px) {
  .nav { padding-block: 12px; flex-wrap: wrap; justify-content: space-between; }
  .nav nav { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .desktop-break { display: none; }
  .hero p { text-align: left; }
  .services > h2 span + span { padding-left: 0; }
  .footer-contact { padding-block: 54px 40px; }
  .values { width: 96%; }
  .values img { width: 21px; height: 21px; }
  .values li { gap: 5px; }
  .services, .about, .zone, .review-grid { grid-template-columns: 1fr; }
  .secondary-grid a { flex-direction: column; align-items: start; gap: 6px; }
  .zone > div { background: linear-gradient(180deg, #0e3645, #1d5364); }
  .map {
    min-height: 0;
    background-image: linear-gradient(180deg, #1d5364, #1d536454 24%, transparent 54%),
      linear-gradient(#34718457, #1c546775), url("assets/fond-carte-olivier.webp");
  }
}
#services article > img[src$="/4-4.webp"] { object-position: center 42%; }

.objective-icon {
  width: 33px;
  height: 33px;
  flex: none;
  background: linear-gradient(110deg, #364f59, #30778d);
  mask: var(--objective-icon) center / contain no-repeat;
}
.objective-icon-audit { --objective-icon: url("assets/icon-audit.svg"); }
.objective-icon-layers { --objective-icon: url("assets/icon-layers.svg"); }
.review-grid > li:nth-child(n + 4) { display: none; }

header.site-header.site-header-home { position: relative; }
body.home-header-pinned { padding-top: var(--home-header-height); }
body.home-header-pinned > header.site-header-home {
  position: fixed;
  inset: 0 0 auto;
}


body.home-header-pinned > header.site-header-home {
  background: #fff;
  color: #153846;
  border-bottom-color: #d9e4e9;
  box-shadow: 0 4px 16px #092a3814;
}
body.home-header-pinned > header.site-header-home::before { content: none; }
.home-header-pinned .site-header-services {
  background: #fff;
  border-top-color: #e5edf0;
}
.home-header-pinned .site-header-logo img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(23%) saturate(1400%) hue-rotate(153deg);
}
.home-header-pinned .site-header .button.site-header-assistance {
  background: var(--gold);
  color: #153846;
}
.home-header-pinned .site-header .site-search summary { color: #153846; }

@media (prefers-reduced-motion: no-preference) {
  body.home-header-pinned > header.site-header-home {
    opacity: var(--home-header-opacity, 1);
    translate: 0 var(--home-header-offset, 0px);
  }
}

.home-header-pinned .site-header .site-header-top {
  min-height: clamp(76px, 5.7vw, 110px);
}
.home-header-pinned .site-header .site-header-services a {
  min-height: clamp(38px, 2.7vw, 50px);
}
