/* #region PAGE ACCUEIL */
.hero {
  position: relative;
  min-height: 100svh;
  background:
    linear-gradient(rgba(26, 31, 40, .52), rgba(26, 31, 40, .52)),
    url("../Assets/Photos/BackgroundAccueil.png") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(117, 184, 234, .16), transparent 32%),
    radial-gradient(circle at 80% 70%, rgba(117, 184, 234, .1), transparent 28%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
  will-change: opacity, transform;
}

@keyframes heroGlow {
  from {
    opacity: .55;
    transform: scale(1);
  }

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 18, .78) 0%, rgba(7, 11, 18, .46) 42%, rgba(7, 11, 18, .16) 100%),
    linear-gradient(180deg, rgba(8, 12, 18, .18) 0%, rgba(8, 12, 18, .04) 42%, rgba(8, 12, 18, .72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 56px), var(--container));
  margin: 0 auto;
  text-align: center;
  color: #fff;
  padding-top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content::before {
  content: "";
  display: block;
  width: 98px;
  height: 3px;
  margin: 0 auto 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-strong));
  box-shadow: 0 10px 26px rgba(74, 151, 223, .38);
  opacity: 0;
  animation: heroFadeUp .95s .08s var(--ease-out-soft) forwards;
}

.hero-content > * {
  opacity: 0;
  animation: heroFadeUp .95s var(--ease-out-soft) forwards;
}

.hero-content h1 {
  animation-delay: .2s;
}

.hero-subtitle {
  animation-delay: .4s;
}

.hero-actions {
  animation-delay: .6s;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

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

.hero h1 {
  max-width: 1100px;
  margin: 0 auto 22px;
  font-size: clamp(3.2rem, 6.4vw, 6.35rem);
  line-height: .96;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
  text-align: center;
  text-shadow: 0 18px 44px rgba(0, 0, 0, .38);
}

.hero h1 span {
  display: inline-block;
  color: var(--blue-strong);
  animation: heroAccentGlow 4.2s ease-in-out infinite;
}

@keyframes heroAccentGlow {
  0%,
  100% {
    color: #4a97df;
    text-shadow: 0 0 0 rgba(117, 184, 234, 0);
  }

  50% {
    color: #75b8ea;
    text-shadow: 0 0 18px rgba(117, 184, 234, .22);
  }
}

.hero-subtitle {
  max-width: 900px;
  margin: 0 auto 48px;
  font-size: clamp(1.1rem, 1.9vw, 1.62rem);
  line-height: 1.55;
  font-weight: 600;
  color: rgba(255, 255, 255, .94);
  text-align: center;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

.hero-actions {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 224px;
  min-height: 62px;
  padding: 16px 30px;
  border-radius: 18px;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 28px rgba(72, 145, 208, .22);
  transition:
    transform .3s var(--ease-smooth),
    box-shadow .3s var(--ease-smooth),
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease;
  will-change: transform;
}

.hero-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;
}

.hero-btn:hover {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 32px rgba(72, 145, 208, .22);
}

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

/* Partenaires */
.partners {
  overflow: hidden;
}

.partners .container {
  position: relative;
}

.logo-marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 10px 0 4px;
}

.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 2;
  pointer-events: none;
}

.logo-marquee::before {
  left: 0;
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.logo-marquee::after {
  right: 0;
  background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: partnerMarquee 34s linear infinite;
  will-change: transform;
}

/* Le bandeau client continue même au survol */
.logo-marquee:hover .logo-track {
  animation-play-state: running;
}

@keyframes partnerMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.partner {
  flex: 0 0 240px;
  width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.partner-logo {
  width: 170px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .28s ease, opacity .28s ease;
  transform-origin: center;
  opacity: .92;
}

.partner-logo img:hover {
  transform: scale(1.06);
  opacity: 1;
}

.partner-logo.logo-boost-sm img {
  transform: scale(1.08);
}

.partner-logo.logo-boost-md img {
  transform: scale(1.2);
}

.partner-logo.logo-boost-lg img {
  transform: scale(1.34);
}

.partner-logo.logo-aum img {
  transform: scale(1.75);
}

.partner-logo.logo-boost-sm img:hover {
  transform: scale(1.14);
}

.partner-logo.logo-boost-md img:hover {
  transform: scale(1.26);
}

.partner-logo.logo-boost-lg img:hover {
  transform: scale(1.4);
}

.partner-logo.logo-aum img:hover {
  transform: scale(1.82);
}

/* Prestations */
.services {
  position: relative;
  overflow: hidden;
}

.services .container {
  position: relative;
}

.services-intro {
  max-width: 760px;
  margin: -44px 0 52px;
  text-align: left;
  font-size: 1.04rem;
  line-height: 1.8;
  color: #5f6670;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  max-width: 1160px;
  margin: 0 auto;
}

.services-grid .service-item {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.services-grid .service-item:nth-child(1),
.services-grid .service-item:nth-child(2),
.services-grid .service-item:nth-child(3) {
  grid-column: span 4;
}

.services-grid .service-item:nth-child(4) {
  grid-column: 3 / span 4;
}

.services-grid .service-item:nth-child(5) {
  grid-column: 7 / span 4;
}

.service-item {
  position: relative;
  text-align: center;
  padding: 34px 24px 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(248, 251, 253, .96) 100%);
  border: 1px solid rgba(214, 225, 232, .95);
  box-shadow:
    0 18px 38px rgba(16, 24, 32, .06),
    0 4px 14px rgba(16, 24, 32, .03),
    inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform .4s var(--ease-smooth),
    box-shadow .4s var(--ease-smooth),
    border-color .3s ease,
    background .3s ease;
  overflow: hidden;
  align-items: center;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, var(--service-accent-soft, rgba(117, 184, 234, .16)), transparent 46%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.service-item::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--service-accent, var(--blue)), var(--service-accent-line, var(--blue-strong)));
  transform: translateX(-50%);
  opacity: .95;
}

.service-item:hover {
  transform: translateY(-10px);
  border-color: var(--service-accent-line, rgba(117, 184, 234, .52));
  box-shadow:
    0 26px 54px rgba(16, 24, 32, .1),
    0 10px 26px var(--service-accent-soft, rgba(74, 151, 223, .08));
  background: linear-gradient(180deg, #fff 0%, #f4f9fd 100%);
}

.service-item:focus-visible,
.service-card[aria-expanded="true"] {
  border-color: rgba(74, 151, 223, .64);
  box-shadow: var(--focus-ring), 0 26px 54px rgba(16, 24, 32, .1);
}

.service-item:hover::before {
  opacity: 1;
}

.service-icon {
  width: 92px;
  height: 92px;
  margin: 6px auto 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 38%, transparent 39%),
    linear-gradient(180deg, #eef4f8 0%, #e4edf3 100%);
  border: 1px solid #d7e1e8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, .9),
    0 10px 24px rgba(16, 24, 32, .06);
  transition:
    transform .35s var(--ease-smooth),
    box-shadow .35s var(--ease-smooth),
    border-color .3s ease;
}

.service-icon::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--service-accent-soft, rgba(117, 184, 234, .16)), transparent 72%);
  opacity: 0;
  transform: scale(.92);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}

.service-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .35));
}

.service-item:hover .service-icon {
  transform: translateY(-4px) scale(1.04);
  border-color: var(--service-accent-line, rgba(117, 184, 234, .62));
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, .95),
    0 18px 30px var(--service-accent-soft, rgba(74, 151, 223, .14));
}

.service-item:hover .service-icon::after {
  opacity: 1;
  transform: scale(1);
}

.service-card {
  cursor: pointer;
}

/* Palette prestations */
.service-card[data-service="ite"] {
  --service-accent: #5e9dd3;
  --service-accent-soft: rgba(94, 157, 211, .14);
  --service-accent-line: rgba(94, 157, 211, .74);
}

.service-card[data-service="bardage"] {
  --service-accent: #078994;
  --service-accent-soft: rgba(7, 137, 148, .14);
  --service-accent-line: rgba(7, 137, 148, .70);
}

.service-card[data-service="ravalement"] {
  --service-accent: #5bb684;
  --service-accent-soft: rgba(91, 182, 132, .14);
  --service-accent-line: rgba(91, 182, 132, .70);
}

.service-card[data-service="atelier"] {
  --service-accent: #374344;
  --service-accent-soft: rgba(55, 67, 68, .12);
  --service-accent-line: rgba(55, 67, 68, .56);
}

.service-card[data-service="bureau-etudes"] {
  --service-accent: #397fbd;
  --service-accent-soft: rgba(57, 127, 189, .14);
  --service-accent-line: rgba(57, 127, 189, .70);
}

.service-item h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  color: #20242b;
  max-width: 100%;
  margin: 0 0 12px;
  transition: color .28s ease, transform .28s ease;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-wrap: balance;
}

.service-item:hover h3 {
  color: #18212b;
  transform: translateY(-1px);
}

.service-card-hint {
  margin-top: auto;
  padding-top: 18px;
  font-size: .96rem;
  line-height: 1.5;
  color: #6a7480;
  transition: color .25s ease, transform .25s ease;
  text-align: center;
}

.service-card-hint::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--service-accent-soft, rgba(117, 184, 234, .38));
  transition: width .28s ease, background .28s ease;
}

.service-item:hover .service-card-hint {
  color: var(--service-accent, var(--blue-strong));
  transform: translateY(-1px);
}

.service-item:hover .service-card-hint::before {
  width: 56px;
  background: var(--service-accent-line, rgba(117, 184, 234, .82));
}


.service-details-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 21, 30, .52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}

.service-details-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.service-details-panel {
  --panel-accent: var(--blue-strong);
  --panel-accent-soft: rgba(74, 151, 223, .12);
  --panel-accent-line: rgba(74, 151, 223, .36);
  --panel-surface: rgba(255, 255, 255, .88);
  position: fixed;
  top: 0;
  right: 0;
  width: min(540px, 100%);
  height: 100vh;
  background:
    linear-gradient(135deg, var(--panel-accent-soft), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(245, 249, 252, .99));
  border-left: 1px solid rgba(214, 225, 232, .95);
  box-shadow:
    -18px 0 44px rgba(16, 24, 32, .16),
    -6px 0 16px rgba(16, 24, 32, .06);
  z-index: 2300;
  transform: translateX(100%);
  transition: transform .38s var(--ease-out-soft);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.service-details-panel::before {
  content: "";
  position: sticky;
  top: 0;
  z-index: 1;
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--panel-accent), var(--panel-accent-line), transparent);
}

.service-details-panel.is-open {
  transform: translateX(0);
}

.service-details-panel.service-panel-ite {
  --panel-accent: #377fbd;
  --panel-accent-soft: rgba(55, 127, 189, .14);
  --panel-accent-line: rgba(93, 155, 212, .72);
}

.service-details-panel.service-panel-bardage {
  --panel-accent: #078b92;
  --panel-accent-soft: rgba(7, 139, 146, .13);
  --panel-accent-line: rgba(94, 180, 132, .58);
}

.service-details-panel.service-panel-ravalement {
  --panel-accent: #338666;
  --panel-accent-soft: rgba(51, 134, 102, .13);
  --panel-accent-line: rgba(94, 180, 132, .62);
}

.service-details-panel.service-panel-atelier {
  --panel-accent: #70a995;
  --panel-accent-soft: rgba(112, 169, 149, .14);
  --panel-accent-line: rgba(173, 214, 217, .72);
}

.service-details-panel.service-panel-bureau-etudes {
  --panel-accent: #394243;
  --panel-accent-soft: rgba(57, 66, 67, .13);
  --panel-accent-line: rgba(51, 134, 102, .58);
}

.service-details-inner {
  position: relative;
  z-index: 2;
  padding: 88px 32px 34px;
}

.service-details-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--panel-accent-soft);
  color: #162033;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.service-details-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--panel-accent);
  box-shadow: 0 0 0 5px var(--panel-accent-soft);
  flex: 0 0 auto;
}

.service-details-panel h3 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.7rem, 2.1vw, 2.3rem);
  line-height: 1.08;
  font-weight: 800;
  color: #162033;
  letter-spacing: 0;
  margin-bottom: 16px;
}

#serviceDetailsIntro {
  font-size: 1rem;
  line-height: 1.78;
  color: #33404b;
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--panel-surface);
  border: 1px solid rgba(214, 225, 232, .82);
  box-shadow: 0 12px 28px rgba(16, 24, 32, .045);
}

.service-details-block {
  padding: 20px;
  border-radius: 22px;
  background: var(--panel-surface);
  border: 1px solid rgba(214, 225, 232, .84);
  box-shadow:
    0 12px 26px rgba(16, 24, 32, .045),
    inset 0 1px 0 rgba(255, 255, 255, .82);
}

.service-details-block + .service-details-block {
  margin-top: 16px;
}

.service-details-block h4 {
  position: relative;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #162033;
  margin-bottom: 14px;
  padding-left: 14px;
}

.service-details-block h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  bottom: .2em;
  width: 4px;
  border-radius: 999px;
  background: var(--panel-accent);
}

#serviceDetailsList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

#serviceDetailsList li {
  position: relative;
  padding: 11px 12px 11px 30px;
  border-radius: 14px;
  background: rgba(247, 250, 253, .74);
  font-size: .98rem;
  line-height: 1.45;
  color: #44515d;
}

#serviceDetailsList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--panel-accent);
  transform: translate(13px, -50%);
  box-shadow: 0 0 0 4px var(--panel-accent-soft);
}

#serviceDetailsApplications,
#serviceDetailsStrengths {
  font-size: .98rem;
  line-height: 1.72;
  color: #44515d;
}

.service-details-actions {
  margin-top: 22px;
}

.service-details-actions .pill-btn {
  min-width: 168px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--panel-accent);
  border-color: var(--panel-accent);
}

.service-details-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(238, 244, 248, .94);
  border: 1px solid rgba(214, 225, 232, .95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .25s ease, transform .25s ease;
  z-index: 6;
}

.service-details-close:hover {
  background: #dcebf4;
  transform: scale(1.05) rotate(90deg);
}

.service-details-close span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: #1f2430;
  border-radius: 999px;
}

.service-details-close span:first-child {
  transform: rotate(45deg);
}

.service-details-close span:last-child {
  transform: rotate(-45deg);
}

body.service-panel-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

/* Réalisations accueil */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  align-items: stretch;
}

.project-card {
  position: relative;
  background: #dfe8ee;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .06);
  transition:
    transform .35s var(--ease-smooth),
    box-shadow .35s var(--ease-smooth),
    border-color .3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(214, 225, 232, .78);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 42px rgba(16, 24, 32, .12);
  border-color: rgba(117, 184, 234, .42);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .45s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-body {
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.project-body h3 {
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #1694aa;
  margin: 0;
}

.project-body > p {
  margin: 0;
  font-size: .92rem;
  color: #74808b;
}

.project-card-partner {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 0;
  width: auto;
}

.partner-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(25, 123, 158, .08);
  color: #166e8d;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: 0 0 auto;
}

.partner-info {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: auto;
}

.partner-info img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-eiffage-home {
  display: block;
  width: auto;
  height: 18px;
  max-width: 90px;
  margin: 0;
  flex: 0 0 auto;
}

.partner-info span {
  font-size: .9rem;
  font-weight: 600;
  color: #30353b;
}

.cta-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 46px;
}

/* Qui sommes-nous */
.about-grid {
  display: grid;
  grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.about-media {
  overflow: hidden;
  border-radius: 28px;
  background: #e8f0f5;
}

.about-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .14);
  transition:
    transform .6s var(--ease-smooth),
    box-shadow .3s ease,
    filter .4s ease;
}

.about-media:hover img {
  transform: scale(1.04);
  filter: saturate(1.04);
  box-shadow: 0 26px 48px rgba(0, 0, 0, .18);
}

.about-content {
  max-width: 760px;
}

.about-content p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #2d3238;
  margin-bottom: 22px;
}

.about-content .pill-btn {
  margin-top: 14px;
}

.home-projects-reveal {
  width: 100%;
}

/* Cards */
.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;
}

/* FIX netteté badges localisation/date accueil */
.projects .realisation-card {
  transform: none;
  backface-visibility: hidden;
}

.projects .realisation-card-location,
.projects .realisation-card-date {
  font-size: .86rem;
  font-weight: 700;
  color: #26313b;
  background: rgba(117, 184, 234, .16);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  transform: translateZ(0);
}

.projects .realisation-card:hover {
  transform: translateY(-6px);
}
/* #endregion */

/* #region RESPONSIVE ACCUEIL */
@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-media {
    max-width: 720px;
    width: 100%;
  }

  .about-media img {
    height: 380px;
  }
}

@media (max-width: 767px) {
  .hero h1 {
    font-size: clamp(2.65rem, 12vw, 4rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 34px;
  }

  .hero-actions {
    width: 100%;
    max-width: 330px;
  }

  .hero-btn {
    width: 100%;
    min-width: 0;
  }

  .about-media img {
    height: 280px;
  }
}
/* #endregion */


/* Correctif final prestations : couleurs d'origine, architecture conservée */
.service-card[data-service] {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(248, 251, 253, .96) 100%) !important;
  border-color: rgba(214, 225, 232, .95) !important;
  color: inherit !important;
  box-shadow:
    0 18px 38px rgba(16, 24, 32, .06),
    0 4px 14px rgba(16, 24, 32, .03),
    inset 0 1px 0 rgba(255, 255, 255, .8) !important;
}

.service-card[data-service="ite"] {
  --service-accent: #5e9dd3;
  --service-accent-soft: rgba(94, 157, 211, .14);
  --service-accent-line: rgba(94, 157, 211, .74);
}

.service-card[data-service="bardage"] {
  --service-accent: #078994;
  --service-accent-soft: rgba(7, 137, 148, .14);
  --service-accent-line: rgba(7, 137, 148, .70);
}

.service-card[data-service="ravalement"] {
  --service-accent: #5bb684;
  --service-accent-soft: rgba(91, 182, 132, .14);
  --service-accent-line: rgba(91, 182, 132, .70);
}

.service-card[data-service="atelier"] {
  --service-accent: #374344;
  --service-accent-soft: rgba(55, 67, 68, .12);
  --service-accent-line: rgba(55, 67, 68, .56);
}

.service-card[data-service="bureau-etudes"] {
  --service-accent: #397fbd;
  --service-accent-soft: rgba(57, 127, 189, .14);
  --service-accent-line: rgba(57, 127, 189, .70);
}

.service-card[data-service]::before {
  background: radial-gradient(circle at top center, var(--service-accent-soft), transparent 46%) !important;
  opacity: 0 !important;
}

.service-card[data-service]::after {
  background: linear-gradient(90deg, var(--service-accent), var(--service-accent-line)) !important;
  opacity: .95 !important;
}

.service-card[data-service]:hover {
  background: linear-gradient(180deg, #fff 0%, #f4f9fd 100%) !important;
  border-color: var(--service-accent-line) !important;
  box-shadow:
    0 26px 54px rgba(16, 24, 32, .1),
    0 10px 26px rgba(74, 151, 223, .08) !important;
}

.service-card[data-service]:hover::before {
  opacity: 1 !important;
}

.service-card[data-service] h3,
.service-card[data-service]:hover h3 {
  color: #20242b !important;
}

.service-card[data-service] .service-card-hint {
  color: #6a7480 !important;
}

.service-card[data-service]:hover .service-card-hint {
  color: var(--service-accent) !important;
}

.service-card[data-service] .service-card-hint::before {
  background: var(--service-accent-soft) !important;
}

.service-card[data-service]:hover .service-card-hint::before {
  background: var(--service-accent-line) !important;
}

.service-card[data-service] .service-icon {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 38%, transparent 39%),
    linear-gradient(180deg, #eef4f8 0%, #e4edf3 100%) !important;
  border-color: color-mix(in srgb, var(--service-accent) 28%, #d7e1e8) !important;
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, .9),
    0 10px 24px rgba(16, 24, 32, .06) !important;
}

.service-card[data-service]:hover .service-icon {
  border-color: var(--service-accent-line) !important;
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, .95),
    0 18px 30px rgba(74, 151, 223, .14) !important;
}

.service-card[data-service] .service-icon::after {
  background: radial-gradient(circle, var(--service-accent-soft), transparent 72%) !important;
}

/* Panneau prestation : palette bleu/vert/gris validée */
.service-details-panel.service-panel-ite {
  --panel-accent: #377fbd;
  --panel-accent-soft: rgba(55, 127, 189, .14);
  --panel-accent-line: rgba(93, 155, 212, .72);
}

.service-details-panel.service-panel-bardage {
  --panel-accent: #078b92;
  --panel-accent-soft: rgba(7, 139, 146, .13);
  --panel-accent-line: rgba(94, 180, 132, .58);
}

.service-details-panel.service-panel-ravalement {
  --panel-accent: #338666;
  --panel-accent-soft: rgba(51, 134, 102, .13);
  --panel-accent-line: rgba(94, 180, 132, .62);
}

.service-details-panel.service-panel-atelier {
  --panel-accent: #70a995;
  --panel-accent-soft: rgba(112, 169, 149, .14);
  --panel-accent-line: rgba(173, 214, 217, .72);
}

.service-details-panel.service-panel-bureau-etudes {
  --panel-accent: #394243;
  --panel-accent-soft: rgba(57, 66, 67, .13);
  --panel-accent-line: rgba(51, 134, 102, .58);
}

/* Bouton du panneau : comportement proche du bouton Contact navbar + reflet conservé */
.service-details-actions .pill-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 168px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(72, 145, 208, .2);
  transition:
    transform .3s var(--ease-smooth),
    box-shadow .3s var(--ease-smooth),
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease;
}

.service-details-actions .pill-btn::before {
  content: "";
  position: absolute;
  inset: -2px auto -2px -58%;
  z-index: 0;
  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;
}

.service-details-actions .pill-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);
}

.service-details-actions .pill-btn:hover::before {
  transform: translateX(350%) skewX(-18deg);
}

/* Correctif demandé : les cards restent sur le bleu du titre, les panneaux gardent leur palette dédiée. */
.service-card[data-service] {
  --service-accent: var(--blue-strong) !important;
  --service-accent-soft: rgba(74, 151, 223, .14) !important;
  --service-accent-line: var(--blue-strong) !important;
}

.service-card[data-service]::after {
  background: var(--blue-strong) !important;
}

.service-card[data-service]:hover {
  border-color: var(--blue-strong) !important;
}

.service-card[data-service]:hover .service-card-hint {
  color: var(--blue-strong) !important;
}

.service-card[data-service] .service-card-hint::before,
.service-card[data-service]:hover .service-card-hint::before {
  background: rgba(74, 151, 223, .14) !important;
}

.service-card[data-service] .service-icon,
.service-card[data-service]:hover .service-icon {
  border-color: var(--blue-strong) !important;
}

.service-card[data-service] .service-icon::after {
  background: radial-gradient(circle, rgba(74, 151, 223, .14), transparent 72%) !important;
}

.service-details-panel[class*="service-panel-"] {
  --panel-accent: var(--blue-strong) !important;
  --panel-accent-soft: rgba(74, 151, 223, .14) !important;
  --panel-accent-line: var(--blue-strong) !important;
}

/* CTA follows the panel scroll, then settles into its natural bottom position. */
.service-details-panel {
  height: 100dvh;
}

.service-details-inner {
  padding-bottom: 34px;
}

.service-details-actions {
  position: sticky;
  bottom: 0;
  z-index: 7;
  display: flex;
  justify-content: flex-start;
  margin: 24px -32px -34px;
  padding: 18px 32px max(22px, env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.98) 32%),
    linear-gradient(90deg, var(--panel-accent-soft), rgba(255,255,255,.96));
  border-top: 1px solid rgba(214, 225, 232, .76);
  box-shadow: 0 -14px 30px rgba(16, 24, 32, .08);
}

/* Correctif : le CTA des panneaux prestation reste sans fond blanc derriere. */
.service-details-actions {
  background: transparent !important;
  border-top: 0 !important;
  box-shadow: none !important;
}

.service-details-actions {
  justify-content: center !important;
  margin: 22px 0 0 !important;
  padding: 0 clamp(10px, 2vw, 16px) max(14px, env(safe-area-inset-bottom)) !important;
}

.service-details-actions .pill-btn {
  width: min(100%, 420px) !important;
  min-width: 0;
  min-height: 46px !important;
  padding: 10px 20px !important;
  border-radius: 12px !important;
}
