/* #region PAGE REALISATIONS */
.projects-page {
  padding-top: 128px;
  position: relative;
  overflow: hidden;
}

.projects-page-hero {
  position: relative;
  padding: 120px 0 64px;
  overflow: hidden;
  background: var(--bg);
}

.projects-hero-bg {
  display: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  opacity: .55;
  animation: heroFloat 10s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.hero-orb-1 {
  width: 320px;
  height: 320px;
  top: -60px;
  left: -80px;
  background: radial-gradient(circle, rgba(117,184,234,.28) 0%, rgba(117,184,234,0) 72%);
}

.hero-orb-2 {
  width: 420px;
  height: 420px;
  right: -120px;
  top: 40px;
  background: radial-gradient(circle, rgba(74,151,223,.22) 0%, rgba(74,151,223,0) 72%);
  animation-delay: 1.2s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(117,184,234,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117,184,234,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 78%);
  opacity: .45;
}

@keyframes heroFloat {
  from {
    transform: translateY(0) translateX(0) scale(1);
  }

  to {
    transform: translateY(24px) translateX(12px) scale(1.06);
  }
}

.projects-page-head {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
}

.projects-page-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(117,184,234,.1);
  border: 1px solid rgba(117,184,234,.22);
  color: #166e8d;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.projects-page-title {
  position: relative;
  display: inline-block;
  text-align: center;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: 0;
  color: #11151b;
  margin: 0 auto 26px;
  text-wrap: balance;
}

.projects-page-title::after {
  content: "";
  display: block;
  width: 82px;
  height: 3px;
  margin-top: 20px;
  margin-left: 0;
  transform: translateX(0);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-strong));
  box-shadow: 0 8px 18px rgba(74,151,223,.18);
}

.projects-page-title span {
  color: var(--blue-strong);
  text-shadow: 0 0 24px rgba(117,184,234,.16);
}

.projects-page-intro {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.02rem, 1.35vw, 1.25rem);
  line-height: 1.8;
  color: #33404b;
}

.projects-page-intro strong {
  color: #1694aa;
  font-weight: 600;
}

.projects-page-stats {
  margin: 42px auto 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-stat {
  padding: 20px 20px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(245,250,253,.9));
  border: 1px solid rgba(211,227,238,.9);
  box-shadow:
    0 12px 26px rgba(16,24,32,.05),
    inset 0 1px 0 rgba(255,255,255,.8);
  transition:
    transform .28s var(--ease-smooth),
    box-shadow .28s ease,
    border-color .25s ease;
}

.project-stat:hover {
  transform: translateY(-5px);
  border-color: rgba(117,184,234,.48);
  box-shadow:
    0 18px 36px rgba(16,24,32,.09),
    0 8px 18px rgba(74,151,223,.07);
}

.project-stat strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  color: #162033;
}

.project-stat span {
  display: block;
  font-size: .9rem;
  color: #66727f;
  line-height: 1.55;
}

.projects-page-grid-section {
  position: relative;
  padding: 42px 0 150px;
}

.projects-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: stretch;
}

.realisation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,249,252,.98) 100%);
  border: 1px solid rgba(214,225,232,.95);
  box-shadow:
    0 14px 32px rgba(16,24,32,.07),
    0 4px 12px rgba(16,24,32,.04);
  transition:
    transform .38s var(--ease-smooth),
    box-shadow .38s var(--ease-smooth),
    border-color .3s ease;
}

.realisation-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(117,184,234,.14), transparent 42%, transparent 100%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 1;
}

.realisation-card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #75b8ea, #4a97df, #75b8ea);
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .38s var(--ease-smooth);
  z-index: 2;
}

.realisation-card:hover {
  transform: translateY(-10px);
  border-color: rgba(117,184,234,.46);
  box-shadow:
    0 26px 50px rgba(16,24,32,.12),
    0 10px 24px rgba(74,151,223,.08);
}

.realisation-card:hover::before {
  opacity: 1;
}

.realisation-card:hover::after {
  transform: scaleX(1);
}

.realisation-card:focus-visible {
  outline: 3px solid rgba(74,151,223,.24);
  outline-offset: 5px;
}

.project-modal.open ~ * .realisation-card:focus-visible {
  outline: none;
}

.realisation-card-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.realisation-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,21,30,.38), rgba(15,21,30,.04) 55%, rgba(15,21,30,0));
  z-index: 1;
  pointer-events: none;
}

.realisation-card-image img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  object-position: center;
  transition:
    transform .7s var(--ease-smooth),
    filter .4s ease;
}

.realisation-card:hover .realisation-card-image img {
  transform: scale(1.08);
  filter: saturate(1.05);
}

.realisation-card-chip {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.72);
  color: #1f2b36;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.realisation-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
  padding: 24px 24px 22px;
}

.realisation-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.realisation-card-location,
.realisation-card-date {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(117,184,234,.1);
  color: #4b5a67;
  font-size: .82rem;
  font-weight: 600;
}

.realisation-card-body h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.22rem, 1.5vw, 1.5rem);
  line-height: 1.15;
  font-weight: 800;
  color: #162033;
  letter-spacing: 0;
}

.realisation-card-body p {
  font-size: .98rem;
  line-height: 1.72;
  color: #4b5864;
  margin: 0;
}

.realisation-card-partner-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.realisation-card-partner-inline .partner-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(25,123,158,.08);
  color: #166e8d;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.realisation-card-partner-inline img {
  display: block;
  width: auto;
  object-fit: contain;
}

.realisation-card-footer {
  position: relative;
  z-index: 2;
  padding: 0 24px 24px;
  margin-top: auto;
}

.realisation-card-partner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.realisation-card-partner .partner-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(25,123,158,.08);
  color: #166e8d;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.realisation-card-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 128px;
  min-height: 42px;
  width: fit-content;
  margin-top: 4px;
  padding: 8px 15px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  font-family: "Sora", sans-serif;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 8px 18px rgba(72,145,208,.18);
  transition:
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease,
    transform .3s var(--ease-smooth),
    box-shadow .3s var(--ease-smooth);
  will-change: transform;
}

.realisation-card-link::before {
  content: "";
  position: absolute;
  inset: -2px auto -2px -58%;
  width: 46%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.44), transparent);
  transition: transform .55s var(--ease-out-soft);
  pointer-events: none;
}

.realisation-card-link svg {
  width: 15px;
  height: 15px;
  transition: transform .28s ease;
}

.realisation-card:hover .realisation-card-link {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 12px 22px rgba(72,145,208,.2);
}

.realisation-card:hover .realisation-card-link::before {
  transform: translateX(350%) skewX(-18deg);
}

.realisation-card:hover .realisation-card-link svg {
  transform: translateX(3px);
}

.logo-leon-grosse {
  height: 44px !important;
  max-width: 140px;
}

.logo-eiffage {
  height: 28px !important;
  max-width: 110px;
}

.projects-page-cta {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 72px;
  flex-wrap: wrap;
}

.projects-page-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 190px;
  min-height: 54px;
  padding: 13px 24px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(72,145,208,.2);
  transition:
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease,
    transform .3s var(--ease-smooth),
    box-shadow .3s var(--ease-smooth);
  will-change: transform;
}

.projects-page-btn::before {
  content: "";
  position: absolute;
  inset: -2px auto -2px -58%;
  width: 46%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.44), transparent);
  transition: transform .55s var(--ease-out-soft);
  pointer-events: none;
}

.projects-page-btn:hover {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 16px 28px rgba(72,145,208,.2);
}

.projects-page-btn:hover::before {
  transform: translateX(350%) skewX(-18deg);
}

.projects-page-btn-secondary {
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  box-shadow: 0 10px 22px rgba(72,145,208,.2);
}

.projects-page-btn-secondary:hover {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 16px 28px rgba(72,145,208,.2);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .28s ease,
    visibility .28s ease;
}

.project-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-modal-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(117,184,234,.12), transparent 35%),
    rgba(17,23,31,.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.project-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,252,.98));
  border: 1px solid rgba(220,229,236,.95);
  box-shadow:
    0 30px 70px rgba(0,0,0,.28),
    0 10px 24px rgba(74,151,223,.08);
  transform: translateY(24px) scale(.98);
  opacity: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(117,184,234,.7) rgba(228,237,244,.9);
}

.project-modal.open .project-modal-dialog {
  animation: modalDialogIn .34s var(--ease-out-soft) forwards;
}

@keyframes modalDialogIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.project-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(238,244,248,.94);
  color: #1f2430;
  font-size: 1.8rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color .25s ease,
    transform .25s ease;
  z-index: 10;
}

.project-modal-close:hover {
  background: #dcebf4;
  transform: scale(1.06) rotate(90deg);
}

.project-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 34px;
  align-items: start;
}

.modal-carousel {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #edf3f7;
  border: 1px solid rgba(216,227,234,.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
}

.carousel-track-wrapper {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
}

.carousel-slide {
  display: none;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  object-position: center;
  border-radius: 22px;
}

.carousel-slide.active {
  display: block;
  animation: modalImageFade .3s ease;
}

@keyframes modalImageFade {
  from {
    opacity: 0;
    transform: scale(.986);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(200,215,228,.82);
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2430;
  transition:
    background-color .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

.carousel-btn:hover {
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.carousel-prev {
  left: 14px;
}

.carousel-next {
  right: 14px;
}

.carousel-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-thumb {
  width: 74px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  flex-shrink: 0;
  opacity: .64;
  transition:
    opacity .22s ease,
    border-color .22s ease,
    transform .22s ease;
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-thumb:hover {
  opacity: .9;
  transform: translateY(-2px);
}

.carousel-thumb.active {
  border-color: var(--blue-strong);
  opacity: 1;
  box-shadow: 0 8px 18px rgba(74,151,223,.18);
}

.carousel-counter {
  text-align: center;
  font-size: .82rem;
  color: #8a939c;
  margin-top: 8px;
}

.project-modal-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(117,184,234,.1);
  color: #166e8d;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-modal-content h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.85rem, 2.2vw, 2.6rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 14px;
  color: #162033;
  letter-spacing: 0;
}

.project-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .96rem;
  color: #7a8590;
  margin-bottom: 22px;
}

.project-modal-content p,
#projectModalDescription {
  font-size: 1rem;
  line-height: 1.78;
  color: #2f3942;
}

.project-keyfacts {
  margin: 26px 0;
  padding: 22px 22px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,249,253,.94));
  border: 1px solid rgba(211,227,238,.95);
  box-shadow:
    0 12px 26px rgba(16,24,32,.05),
    inset 0 1px 0 rgba(255,255,255,.78);
}

.project-keyfacts h3 {
  margin: 0 0 14px;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #162033;
  letter-spacing: 0;
}

.project-keyfacts ul {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.project-keyfacts li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .94rem;
  line-height: 1.55;
  color: #44515d;
  padding-left: 18px;
}

.project-keyfacts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-strong);
  box-shadow: 0 0 0 4px rgba(117,184,234,.14);
}

#projectModalDescription {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

#projectModalDescription span {
  display: block;
}

.project-modal-partner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
}

.project-modal-partner[hidden] {
  display: none !important;
}

.project-modal-partner .partner-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(25,123,158,.12);
  color: #166e8d;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.project-modal-partner-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.project-modal-partner-logo.logo-leon-grosse {
  height: 58px;
}

body.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}
/* #endregion */
/* Ajustement demandé : titre centré et barre bleue sous le N de NOS */
.projects-page-head { text-align: center !important; }
.projects-page-title { display: inline-block !important; text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
.projects-page-title::after { margin-left: 0 !important; margin-right: auto !important; transform: none !important; }
.projects-page-intro { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
