/* GP Notaires Slider 1.0.5 — mobile pleine image, sans fond séparé, pleine largeur, sans jQuery. */
.gpns,
.gpns * { box-sizing: border-box; }
.gpns {
  --gpns-ink: #2e3145;
  --gpns-height: clamp(590px, 56vw, 780px);
  position: relative;
  display: block;
  /* Slider Revolution d'origine : layouttype=fullwidth. Elementor peut placer
     le shortcode dans une colonne à largeur limitée ; le carrousel doit
     s'étendre à la fenêtre, sans changer la largeur des autres widgets. */
  width: 100vw;
  max-width: none;
  margin-inline-start: calc(50% - 50vw);
  height: var(--gpns-height);
  overflow: hidden;
  background: #242835;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.gpns__track, .gpns__slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.gpns__slide {
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1000ms ease, visibility 1000ms;
}
.gpns__slide.is-active { z-index: 1; opacity: 1; visibility: visible; pointer-events: auto; }
.gpns__image {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  transform: scale(1.005);
  transition: transform 6800ms cubic-bezier(.22,.64,.29,1);
  max-width: none;
  border: 0;
}
.gpns__slide.is-active .gpns__image { transform: scale(1.065); }
.gpns__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,16,30,.59) 0%, rgba(16,20,34,.36) 37%, rgba(8,10,20,.08) 75%),
              linear-gradient(0deg, rgba(11,16,30,.24), transparent 37%);
}
.gpns__copy-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 75px clamp(64px,9.5vw,166px) 110px;
}
.gpns__copy {
  width: min(100%, 660px);
  max-width: 660px;
  text-align: left;
}
.gpns__eyebrow, .gpns__title, .gpns__description, .gpns__link { opacity: 0; transform: translate3d(0,28px,0); }
.gpns__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 23px;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .22em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,.87);
}
.gpns__eyebrow-line { display: inline-block; width: 36px; height: 1px; background: rgba(255,255,255,.67); }
.gpns__title {
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(38px,4.1vw,64px);
  font-weight: 400;
  letter-spacing: -.023em;
  line-height: 1.09;
  text-transform: none;
  text-shadow: 0 1px 14px rgba(0,0,0,.12);
}
.gpns__description {
  max-width: 525px;
  margin: 24px 0 30px;
  font-size: clamp(15px,1.23vw,18px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  color: rgba(255,255,255,.96);
}
.gpns__link {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 53px;
  padding: 15px 23px 15px 27px;
  background: var(--gpns-ink);
  color: #fff !important;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 0;
  text-transform: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background-color .24s ease, box-shadow .24s ease;
}
.gpns__link:hover, .gpns__link:focus-visible { background: #171d32; box-shadow: 0 8px 22px rgba(0,0,0,.22); color: #fff !important; }
.gpns__link svg { flex: none; transition: transform .24s ease; }
.gpns__link:hover svg { transform: translateX(4px); }
.gpns__slide.is-active .gpns__eyebrow { animation: gpns-rise 800ms cubic-bezier(.18,.76,.3,1) 150ms both; }
.gpns__slide.is-active .gpns__title { animation: gpns-rise 800ms cubic-bezier(.18,.76,.3,1) 300ms both; }
.gpns__slide.is-active .gpns__description { animation: gpns-rise 800ms cubic-bezier(.18,.76,.3,1) 600ms both; }
.gpns__slide.is-active .gpns__link { animation: gpns-rise 800ms cubic-bezier(.18,.76,.3,1) 900ms both; }
@keyframes gpns-rise { from { opacity: 0; transform: translate3d(0,28px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
.gpns__arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  padding: 0;
  background: rgba(22,25,33,.55);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.gpns__arrow--prev { left: 16px; }
.gpns__arrow--next { right: 16px; }
.gpns__arrow:hover { background: var(--gpns-ink); border-color: rgba(255,255,255,.28); }
.gpns__toolbar {
  position: absolute;
  z-index: 6;
  top: clamp(92px, 8.5vw, 122px);
  left: clamp(64px,9.5vw,166px);
  display: flex;
  align-items: center;
  gap: 23px;
  min-height: 34px;
}
.gpns__count { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; line-height: 1; font-weight: 700; letter-spacing: .13em; font-variant-numeric: tabular-nums; }
.gpns__count-divider { width: 19px; height: 1px; background: rgba(255,255,255,.65); transform: rotate(-49deg); }
.gpns__dots { display: flex; align-items: center; gap: 7px; }
.gpns__dot { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: none; background: transparent; cursor: pointer; }
.gpns__dot::before { content: ''; display: block; width: 18px; height: 2px; background: rgba(255,255,255,.5); transition: width .2s, background-color .2s; }
.gpns__dot.is-active::before, .gpns__dot:hover::before { width: 26px; background: #fff; }
.gpns__pause { display: inline-grid; width: 32px; height: 32px; place-items: center; padding: 0; border: none; color: rgba(255,255,255,.9); background: transparent; cursor: pointer; }
.gpns__pause:hover { color: #fff; }
.gpns__play-triangle { display: none; }
.gpns__pause[aria-pressed="true"] .gpns__play-triangle { display: block; }
.gpns__pause[aria-pressed="true"] .gpns__pause-lines { display: none; }
.gpns__sr-only { position: absolute !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; margin: -1px !important; white-space: nowrap !important; }
.gpns :is(button, a):focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (min-width: 1440px) {
  .gpns__copy-wrap { padding-left: max(8vw, calc((100vw - 1320px)/2 + 50px)); }
  .gpns__toolbar { left: max(8vw, calc((100vw - 1320px)/2 + 50px)); }
}
@media (max-width: 1024px) {
  .gpns { --gpns-height: 620px; }
  .gpns__copy-wrap { padding-left: 76px; padding-right: 76px; }
  .gpns__toolbar { left: 76px; top: 92px; }
  .gpns__title { font-size: clamp(38px,5.4vw,54px); }
  .gpns__arrow { width: 36px; height: 36px; }
  .gpns__arrow--prev { left: 12px; }
  .gpns__arrow--next { right: 12px; }
}
/* Sur smartphone, l'image doit couvrir tout le hero, comme l'original,
   sans panneau ou fond bleu séparé. Les contrôles restent en haut et
   le texte se lit grâce à un dégradé sur l'image elle-même. */
@media (max-width: 767px) {
  .gpns {
    --gpns-height: min(700px, 84svh);
    min-height: 560px;
    height: var(--gpns-height);
    background: #161a29;
  }
  .gpns__slide {
    background: transparent;
  }
  .gpns__image,
  .gpns__slide.is-active .gpns__image {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.01);
    transition: transform 6800ms cubic-bezier(.22,.64,.29,1);
  }
  .gpns__slide.is-active .gpns__image {
    transform: scale(1.06);
  }
  .gpns__shade {
    inset: 0;
    background:
      linear-gradient(180deg, rgba(10,13,24,.28) 0%, rgba(10,13,24,.08) 20%, rgba(10,13,24,.08) 40%, rgba(10,13,24,.58) 72%, rgba(10,13,24,.84) 100%),
      linear-gradient(90deg, rgba(10,13,24,.30) 0%, rgba(10,13,24,.12) 42%, rgba(10,13,24,.06) 100%);
  }
  .gpns__copy-wrap {
    align-items: flex-end;
    padding: 112px 28px 132px;
    background: transparent;
  }
  .gpns__copy {
    width: 100%;
    max-width: 100%;
  }
  .gpns__eyebrow {
    font-size: 9px;
    letter-spacing: .14em;
    margin-bottom: 14px;
    gap: 10px;
  }
  .gpns__eyebrow-line { width: 24px; }
  .gpns__title {
    font-size: clamp(34px, 9vw, 52px);
    line-height: 1.08;
    letter-spacing: -.025em;
    max-width: 92%;
  }
  .gpns__description {
    margin: 16px 0 24px;
    font-size: 15px;
    line-height: 1.5;
    max-width: 92%;
  }
  .gpns__link {
    min-height: 48px;
    padding: 13px 19px;
    gap: 24px;
    font-size: 13px;
  }
  .gpns__arrow {
    top: calc(50% + 50px);
    bottom: auto;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    background: rgba(20,25,39,.58);
  }
  .gpns__arrow--prev { left: 14px; }
  .gpns__arrow--next { right: 14px; }
  .gpns__toolbar {
    top: 16px;
    left: 20px;
    bottom: auto;
    transform: none;
    gap: 10px;
    padding: 3px 8px;
    min-height: 32px;
    background: rgba(18,23,36,.26);
    border-radius: 2px;
  }
  .gpns__count { font-size: 10px; gap: 6px; }
  .gpns__count-divider { width: 12px; }
  .gpns__dots { gap: 0; }
  .gpns__dot { width: 22px; }
  .gpns__dot::before { width: 10px; }
  .gpns__dot.is-active::before, .gpns__dot:hover::before { width: 16px; }
  .gpns__pause { width: 27px; }
}
@media (max-width: 380px) {
  .gpns {
    --gpns-height: min(680px, 84svh);
    min-height: 540px;
  }
  .gpns__copy-wrap {
    padding: 102px 22px 126px;
  }
  .gpns__title {
    font-size: clamp(31px, 8.8vw, 38px);
    max-width: 96%;
  }
  .gpns__description {
    font-size: 14px;
    max-width: 96%;
  }
  .gpns__toolbar { left: 15px; top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .gpns__slide, .gpns__image, .gpns__link, .gpns__link svg, .gpns__dot::before { transition-duration: 0ms !important; }
  .gpns__image, .gpns__slide.is-active .gpns__image { transform: none !important; }
  .gpns__slide.is-active .gpns__eyebrow, .gpns__slide.is-active .gpns__title, .gpns__slide.is-active .gpns__description, .gpns__slide.is-active .gpns__link { animation: none !important; opacity: 1 !important; transform: none !important; }
}
